修正列表

本页面所适用的版本可能已经过时,最后更新于1.0
咯咯炀讨论 | 贡献2020年9月20日 (日) 12:16的版本 (创建页面,内容为“{{Version|1.0}}{{需要翻译}} Modifiers are applied to different scopes. == Creating a Character Modifier == Character modifiers are defined in .txt files in the d…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Modifiers are applied to different scopes.

Creating a Character Modifier

Character modifiers are defined in .txt files in the directory: ../common/modifiers

A character modifier is defined as given below:

my_new_modifier = {
	icon = icon_name
	
	# Modifiers, such as
	# tax_mult = 0.25
	# county_opinion_add = -30
}

Icons

Scripted Modifiers

Scripted modifiers work like scripted effects and triggers. They can be invoked without parameters using "name = yes" or can take any number of parameters. Example:

== Example modifier ==
example_modifier = {
	modifier = {
		add = { value = 10 multiply = $SCALE$ }
		$CHARACTER_1$ = {
			has_trait = ambitious
		}
	}
	opinion_modifier = {
		target = $CHARACTER_2$
		who = $CHARACTER_1$
		multiplier = { value = 0.25 multiply = $SCALE$ }
	}
	compare_modifier = {
		target = $CHARACTER_1$
		value = stress
		multiplier = $SCALE$
	}
}

== Example invocation ==
random_list = {
	1 = {
		example_modifier = {
			CHARACTER_1 = root
			CHARACTER_2 = root
			SCALE = 0.1
		}
	}
}

List of Modifiers

These modifiers can be used in the definition of Modifiers to apply different effects to them. Note that this list has been generated from the output of the "script_docs" console command.

Name Description Usage Supported Scopes Category
diplomacy Character
martial Character
stewardship Character
intrigue Character
learning Character
prowess Character
negate_diplomacy_penalty_add Character
negate_martial_penalty_add Character
negate_stewardship_penalty_add Character
negate_intrigue_penalty_add Character
negate_learning_penalty_add Character
negate_prowess_penalty_add Character
no_prowess_loss_from_age Character
diplomacy_per_piety_level Character
martial_per_piety_level Character
stewardship_per_piety_level Character
intrigue_per_piety_level Character
learning_per_piety_level Character
prowess_per_piety_level Character
diplomacy_per_prestige_level Character
martial_per_prestige_level Character
stewardship_per_prestige_level Character
intrigue_per_prestige_level Character
learning_per_prestige_level Character
prowess_per_prestige_level Character
piety_level_impact_mult Character
prestige_level_impact_mult Character
diplomacy_per_stress_level Character
martial_per_stress_level Character
stewardship_per_stress_level Character
intrigue_per_stress_level Character
learning_per_stress_level Character
prowess_per_stress_level Character
random_skills_per_child Character
fertility Character
health Character
negate_fertility_penalty_add Character
negate_health_penalty_add Character
monthly_income Character
monthly_income_mult Character
monthly_war_income_add Character
monthly_war_income_mult Character
monthly_income_per_stress_level_add Character
monthly_income_per_stress_level_mult Character
monthly_piety Character
monthly_piety_gain_mult Character
monthly_piety_gain_per_happy_powerful_vassal_add Character
monthly_piety_gain_per_happy_powerful_vassal_mult Character
monthly_piety_gain_per_dread_add Character
monthly_piety_gain_per_dread_mult Character
monthly_piety_gain_per_knight_add Character
monthly_piety_gain_per_knight_mult Character
monthly_prestige Character
monthly_prestige_gain_mult Character
monthly_prestige_gain_per_happy_powerful_vassal_add Character
monthly_prestige_gain_per_happy_powerful_vassal_mult Character
monthly_prestige_gain_per_dread_add Character
monthly_prestige_gain_per_dread_mult Character
monthly_prestige_gain_per_knight_add Character
monthly_prestige_gain_per_knight_mult Character
monthly_piety_from_buildings_mult Character
monthly_prestige_from_buildings_mult Character
monthly_dynasty_prestige Character
monthly_dynasty_prestige_mult Character
stress_gain_mult Character
stress_loss_mult Character
monthly_dread Character
dread_gain_mult Character
dread_loss_mult Character
tyranny_gain_mult Character
tyranny_loss_mult Character
monthly_tyranny Character
dread_baseline_add Character
dread_decay_add Character
dread_decay_mult Character
dread_per_tyranny_add Character
dread_per_tyranny_mult Character
domain_limit Character
vassal_limit Character
domain_tax_mult Character
domain_tax_same_faith_mult Character
domain_tax_different_faith_mult Character
domain_tax_mult_even_if_baron Character
domain_tax_same_faith_mult_even_if_baron Character
domain_tax_different_faith_mult_even_if_baron Character
vassal_tax_mult Character
men_at_arms_maintenance Character
men_at_arms_maintenance_per_dread_mult Character
army_maintenance_mult Character
short_reign_duration_mult Character
long_reign_bonus_mult Character
diplomatic_range_mult Character
inbreeding_chance Character
positive_inactive_inheritance_chance Character
negative_inactive_inheritance_chance Character
positive_random_genetic_chance Character
negative_random_genetic_chance Character
genetic_trait_strengthen_chance Character
life_expectancy Character
years_of_fertility Character
knight_limit Character
knight_effectiveness_mult Character
title_creation_cost Character
title_creation_cost_mult Character
monthly_lifestyle_xp_gain_mult Character
mercenary_hire_cost_add Character
mercenary_hire_cost_mult Character
same_culture_mercenary_hire_cost_add Character
same_culture_mercenary_hire_cost_mult Character
holy_order_hire_cost_mult Character
holy_order_hire_cost_add Character
same_culture_holy_order_hire_cost_mult Character
same_culture_holy_order_hire_cost_add Character
opinion_of_female_rulers Character
opinion_of_male_rulers Character
opinion_of_same_culture Character
opinion_of_different_culture Character
opinion_of_same_faith Character
opinion_of_different_faith Character
opinion_of_liege Character
opinion_of_vassal Character
opinion_of_different_faith_liege Character
same_culture_opinion Character
different_culture_opinion Character
same_faith_opinion Character
different_faith_opinion Character
direct_vassal_opinion Character
fellow_vassal_opinion Character
independent_ruler_opinion Character
general_opinion Character
attraction_opinion Character
religious_vassal_opinion Character
religious_head_opinion Character
spouse_opinion Character
twin_opinion Character
close_relative_opinion Character
dynasty_house_opinion Character
dynasty_opinion Character
liege_opinion Character
different_faith_liege_opinion Character
vassal_opinion Character
clergy_opinion Character
councillor_opinion Character
realm_priest_opinion Character
powerful_vassal_opinion Character
courtier_opinion Character
guest_opinion Character
courtier_and_guest_opinion Character
prisoner_opinion Character
player_heir_opinion Character
child_opinion Character
child_except_player_heir_opinion Character
eligible_child_opinion Character
eligible_child_except_player_heir_opinion Character
ignore_negative_culture_opinion Character
ignore_different_faith_opinion Character
pursue_efficiency Combat
counter_efficiency Combat
min_combat_roll Combat
max_combat_roll Combat
men_at_arms_limit Combat
men_at_arms_cap Combat
embarkation_cost_mult Combat
naval_movement_speed_mult Combat
siege_phase_time Siege
siege_morale_loss Siege
revolting_siege_morale_loss_add Siege
revolting_siege_morale_loss_mult Siege
vassal_tax_contribution_add Government
vassal_tax_contribution_mult Government
intimidated_vassal_tax_contribution_add Character
intimidated_vassal_tax_contribution_mult Character
cowed_vassal_tax_contribution_add Character
cowed_vassal_tax_contribution_mult Character
vassal_levy_contribution_add Government
vassal_levy_contribution_mult Government
intimidated_vassal_levy_contribution_add Character
intimidated_vassal_levy_contribution_mult Character
cowed_vassal_levy_contribution_add Character
cowed_vassal_levy_contribution_mult Character
happy_powerful_vassal_tax_contribution_add Character
happy_powerful_vassal_tax_contribution_mult Character
happy_powerful_vassal_levy_contribution_add Character
happy_powerful_vassal_levy_contribution_mult Character
scheme_power Scheme
scheme_resistance Scheme
scheme_secrecy Scheme
scheme_success_chance Scheme
hostile_scheme_power_add Character
hostile_scheme_power_mult Character
personal_scheme_power_add Character
personal_scheme_power_mult Character
hostile_scheme_resistance_add Character
hostile_scheme_resistance_mult Character
personal_scheme_resistance_add Character
personal_scheme_resistance_mult Character
diplomacy_scheme_power Character
intrigue_scheme_power Character
stewardship_scheme_power Character
martial_scheme_power Character
prowess_scheme_power Character
learning_scheme_power Character
diplomacy_scheme_resistance Character
intrigue_scheme_resistance Character
stewardship_scheme_resistance Character
martial_scheme_resistance Character
prowess_scheme_resistance Character
learning_scheme_resistance Character
scheme_discovery_chance_mult Character
max_personal_schemes_add Character
max_hostile_schemes_add Character
owned_hostile_scheme_success_chance_add Character
owned_personal_scheme_success_chance_add Character
enemy_hostile_scheme_success_chance_add Character
enemy_personal_scheme_success_chance_add Character
movement_speed Combat
retreat_losses Combat
hard_casualty_modifier Combat
enemy_hard_casualty_modifier Combat
advantage Combat
attacker_advantage Combat
defender_advantage Combat
enemy_terrain_advantage Combat
tolerance_advantage_mod Combat
advantage_against_coreligionists Combat
random_advantage Combat
controlled_province_advantage Combat
no_water_crossing_penalty Combat
raid_speed Combat
hostile_county_attrition Combat
supply_duration Combat
supply_limit_mult Province
supply_limit Province
fort_level Province
supply_capacity_add Province
supply_capacity_mult Province
hostile_raid_time Province
levy_size Holding
garrison_size Holding
levy_reinforcement_rate Holding
levy_reinforcement_rate_same_faith Character
levy_reinforcement_rate_different_faith Character
levy_reinforcement_rate_even_if_baron Character
levy_reinforcement_rate_same_faith_even_if_baron Character
levy_reinforcement_rate_different_faith_even_if_baron Character
levy_reinforcement_rate_friendly_territory Holding
build_speed Holding
build_gold_cost Holding
build_piety_cost Holding
build_prestige_cost Holding
holding_build_speed Holding
holding_build_gold_cost Holding
holding_build_piety_cost Holding
holding_build_prestige_cost Holding
tax_mult Holding
development_growth_factor County
development_growth County
character_capital_county_monthly_development_growth_add Character
monthly_county_control_change_add County
monthly_county_control_change_factor County
monthly_county_control_change_add_even_if_baron County
monthly_county_control_change_factor_even_if_baron County
county_opinion_add County
different_faith_county_opinion_mult County
county_opinion_add_even_if_baron County
different_faith_county_opinion_mult_even_if_baron County
mercenary_count_mult Culture
cultural_head_fascination_add Character
cultural_head_fascination_mult Character
faith_conversion_piety_cost_add Character
faith_conversion_piety_cost_mult Character
faith_creation_piety_cost_add Character
faith_creation_piety_cost_mult Character
ai_boldness AI
ai_compassion AI
ai_sociability AI
ai_greed AI
ai_energy AI
ai_honor AI
ai_rationality AI
ai_vengefulness AI
ai_zeal AI
ai_war_chance AI
ai_war_cooldown AI
castle_holding_build_speed County
castle_holding_build_gold_cost County
castle_holding_build_piety_cost County
castle_holding_build_prestige_cost County
castle_holding_holding_build_speed County
castle_holding_holding_build_gold_cost County
castle_holding_holding_build_piety_cost County
castle_holding_holding_build_prestige_cost County
tribal_holding_build_speed County
tribal_holding_build_gold_cost County
tribal_holding_build_piety_cost County
tribal_holding_build_prestige_cost County
tribal_holding_holding_build_speed County
tribal_holding_holding_build_gold_cost County
tribal_holding_holding_build_piety_cost County
tribal_holding_holding_build_prestige_cost County
city_holding_build_speed County
city_holding_build_gold_cost County
city_holding_build_piety_cost County
city_holding_build_prestige_cost County
city_holding_holding_build_speed County
city_holding_holding_build_gold_cost County
city_holding_holding_build_piety_cost County
city_holding_holding_build_prestige_cost County
church_holding_build_speed County
church_holding_build_gold_cost County
church_holding_build_piety_cost County
church_holding_build_prestige_cost County
church_holding_holding_build_speed County
church_holding_holding_build_gold_cost County
church_holding_holding_build_piety_cost County
church_holding_holding_build_prestige_cost County
<culture>_opinion Check if this works for all modded cultures as well? Character
monthly_diplomacy_lifestyle_xp_gain_mult Character
monthly_martial_lifestyle_xp_gain_mult Character
monthly_stewardship_lifestyle_xp_gain_mult Character
monthly_intrigue_lifestyle_xp_gain_mult Character
monthly_learning_lifestyle_xp_gain_mult Character

Government Related Modifiers

These modifiers affect the opinions and contributions of characters of certain governments towards other characters. The syntax is given in the table below and valid values for <government_name> are: feudal_government, republic_government, theocracy_government, clan_government, tribal_government, mercenary_government, holy_order_government.

Name Description Usage Supported Scopes Category
<government_name>_opinion Character
<government_name>_vassal_opinion Character
<government_name>_opinion_same_faith Character
<government_name>_tax_contribution_add Character
<government_name>_tax_contribution_mult Character
<government_name>_levy_contribution_add Character
<government_name>_levy_contribution_mult Character

Scheme Related Modifiers

These modifiers affect the schemes of characters. The syntax is given in the table below and valid values for <scheme_name> are: abduct, befriend, claim_throne, convert_to_witchcraft, courting, elope, fabricate_hook, murder, seduce, sway.

Name Description Usage Supported Scopes Category
max_<scheme_name>_schemes_add Character
<scheme_name>_scheme_power_add Character
<scheme_name>_scheme_power_mult Character
<scheme_name>_scheme_resistance_add Character
<scheme_name>_scheme_resistance_mult Character

Terrain Combat Modifiers

These modifiers change the effects of the different terrains on combat. The syntax is given in the table below and valid values for <terrain_name> are: plains, farmlands, hills, mountains, desert, desert_mountains, oasis, jungle, forest, taiga, wetlands, steppe, floodplains, drylands.

Name Description Usage Supported Scopes Category
<terrain_name>_attrition_mult Combat
<terrain_name>_cancel_negative_supply Combat
<terrain_name>_advantage Combat
<terrain_name>_min_combat_roll Combat
<terrain_name>_max_combat_roll Combat

Men-at-Arms Related Modifiers

These modifiers affect the size and efficacy of Men-at-Arms units of a character. The syntax is given in the table below and valid values for <men_at_arms_name> are: heavy_infantry, pikemen, archers, light_cavalry, heavy_cavalry, skirmishers, siege_weapon.

Name Description Usage Supported Scopes Category
<men_at_arms_name>_max_size_add Character
<men_at_arms_name>_max_size_mult Character
<men_at_arms_name>_siege_value_add Character
<men_at_arms_name>_siege_value_mult Character
<men_at_arms_name>_damage_add Character
<men_at_arms_name>_damage_mult Character
<men_at_arms_name>_toughness_add Character
<men_at_arms_name>_toughness_mult Character
<men_at_arms_name>_pursuit_add Character
<men_at_arms_name>_pursuit_mult Character
<men_at_arms_name>_screen_add Character
<men_at_arms_name>_screen_mult Character