修正列表

本页面所适用的版本可能已经过时,最后更新于1.1
咯咯炀讨论 | 贡献2020年11月16日 (一) 17:04的版本 →‎修正列表

修正适用于不同的作用域。

创建一个角色修正

角色修正定义于目录:../common/modifiers中的 .txt 文件。

一个角色修正的定义如下:

my_new_modifier = {
	icon = icon_name
	
	# 修正,例如
	# tax_mult = 0.25
	# county_opinion_add = -30
}

图标

每个修正都有一个图标和其名称一同显示。可以在修正主代码块中使用icon=icon_name。基础游戏有以下修正图标可用:

名称 图标 名称 图标
cat_positive cat_negative
cockroach_positive cockroach_negative
county_modifier_control_positive county_modifier_control_negative File:Modifier control negative.png
county_modifier_corruption_positive county_modifier_corruption_negative File:Modifier corruption negative.png
county_modifier_development_positive county_modifier_development_negative File:Modifier development negative.png
county_modifier_opinion_positive county_modifier_opinion_negative
diplomacy_positive diplomacy_negative
dog_positive dog_negative
dread_positive dread_negative
drink_positive drink_negative
economy_positive economy_negative
family_positive family_negative
feast_positive feast_negative
fertility_positive fertility_negative
food_positive food_negative
health_positive health_negative
horse_positive horse_negative
hunt_positive hunt_negative
intrigue_positive intrigue_negative
learning_positive learning_negative
letter_positive letter_negative
love_positive love_negative
magic_positive magic_negative
martial_positive martial_negative
outdoors_positive outdoors_negative
piety_positive piety_negative
prestige_positive prestige_negative
prison_positive prison_negative
prowess_positive prowess_negative
rat_positive rat_negative
rock_positive rock_negative
social_positive social_negative
spoon_positive spoon_negative
stewardship_positive stewardship_negative
stress_positive stress_negative
treatment_positive treatment_negative

脚本化的修正

脚本化的修正如同脚本效果和触发器一样工作。使用name = yes可以无参数地调用它们,也可以有许多参数。举例:

== 修正举例 ==
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$
	}
}

== 调用举例 ==
random_list = {
	1 = {
		example_modifier = {
			CHARACTER_1 = root
			CHARACTER_2 = root
			SCALE = 0.1
		}
	}
}

修正列表

这些修正可用于修正的定义中,以产生不同效果。注意,这个列表由控制台指令script_docs输出生成。

名称 描述 用法 支持作用域 分类
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 抵消学识惩罚 negate_learning_penalty_add = 2

位于common\religion\holy_sites\00_holy_sites.txt(阿旃陀圣地效果)

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 生育力增加 fertility = 0.2

(外交生活方式家庭重心,生育力+20%)

Character
health 健康增加 health = 0.25

(温室建筑,健康:轻微增益)

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 每位在内阁任职的强力封臣使每月虔诚增加 monthly_piety_gain_per_happy_powerful_vassal_add = 0.2

(坎特伯雷大教堂)

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 恐怖值消逝系数 dread_decay_mult = -10

(密谋生活重心拷打者分支的终生恶名:恐怖值消逝:-1000%

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_name>有效值有:feudal_government、republic_government、theocracy_government、clan_government、tribal_government、mercenary_government、holy_order_government

名称 描述 用法 支持作用域 分类
<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