values updated and purged

This commit is contained in:
trashmasteruni 2026-10-19 22:34:17 +02:00
parent 434f68af19
commit adfd8589fc
14 changed files with 186 additions and 11464 deletions

View file

@ -1,579 +0,0 @@
nomadic_faction = {
casus_belli = nomadic_war
leaders_allowed_to_leave = no
player_can_join = no
sort_order = 3
name = FACTION_NOMAD_DYNAMIC_NAME
short_effect_desc = nomadic_faction_short_effect_desc
discontent_progress = {
base = 0
modifier = {
add = 5
desc = "BASE_COLON"
}
}
power_threshold = 0
requires_county = yes
requires_character = no
is_valid = {
always = yes
}
is_county_valid = {
# Counties can only be in a faction against the top liege in their realm (who is inherently independent).
scope:faction.faction_target = holder.top_liege
holder.top_liege = {
NOR = {
has_government = herder_government
any_owned_story = {
OR = {
story_type = story_greatest_of_khans
story_type = story_mongol_invasion
}
}
}
}
title_province = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
}
can_character_join = {
joined_faction = scope:faction
}
can_county_join = {
title_province = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
}
can_county_create = {
county_opinion < 0
# Can only join factions against our top liege (not direct liege)
scope:target = holder.top_liege
holder.top_liege = {
NOR = {
has_government = herder_government
any_owned_story = {
OR = {
story_type = story_greatest_of_khans
story_type = story_mongol_invasion
}
}
}
}
title_province = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
####
# BLOCKERS
####
# General Faction immunity
custom_description = {
text = character_is_immune_to_factions
subject = scope:target
NOT = { scope:target = { immune_to_factions_trigger = yes } }
}
}
can_character_become_leader = {
always = yes
}
county_create_score = {
base = -5
compare_modifier = { # Non-nomads get it at -15 county opinion
trigger = {
scope:target = {
NOT = { government_has_flag = government_is_nomadic }
}
}
value = county_opinion
multiplier = -2
desc = "FACTION_REASON_COUNTY_OPINION"
}
compare_modifier = { # Nomads get it at roughly -35 county opinion
trigger = {
scope:target = {
government_has_flag = government_is_nomadic
}
}
value = county_opinion
multiplier = -1
desc = "FACTION_REASON_COUNTY_OPINION"
}
# If the targeted ruler isn't nomadic... time to rumble
modifier = {
add = 20
scope:target = {
NOR = {
government_has_flag = government_is_nomadic
government_has_flag = government_is_herder
}
}
desc = "FACTION_REASON_DISLIKE_NON_NOMADS"
}
legalism_virtue_and_sin_modifier = {
TARGET = scope:target
SCORE_PER_TRAIT = 10
}
# Realm Stability Settings
modifier = {
add = 25
has_game_rule = lesser_realm_stability
}
modifier = {
add = -25
has_game_rule = higher_realm_stability
}
modifier = {
add = -50
has_game_rule = extreme_realm_stability
}
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_LESSER"
add = 25
has_game_rule = lesser_realm_stability_ai_only
scope:target = {
is_ai = yes
}
}
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_HIGHER"
add = -25
has_game_rule = higher_realm_stability_ai_only
scope:target = {
is_ai = yes
}
}
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_EXTREME"
add = -50
has_game_rule = extreme_realm_stability_ai_only
scope:target = {
is_ai = yes
}
}
# Conquerors
modifier = {
add = -100
scope:target = { ai_should_get_conqueror_bonuses = yes }
}
modifier = {
add = -200
scope:target = { ai_should_get_extreme_conqueror_bonuses = yes }
}
# 10-year 'grace period' from nomadic factions forming after game start
modifier = {
years_from_game_start <= 10
factor = {
value = 0
if = {
limit = { years_from_game_start >= 5 }
add = years_from_game_start
subtract = 5
divide = 5 # In year 6 factions can begin forming, but at 20% weighting. This increases to 40% in year 7, 60% in year 8, etc., up to 100% in year 10 where things are then normal.
}
}
}
}
county_join_score = {
base = 0
compare_modifier = { # Non-nomads get it at -10 county opinion
trigger = {
scope:faction.faction_target = {
NOT = { government_has_flag = government_is_nomadic }
}
}
value = county_opinion
multiplier = -2
desc = "FACTION_REASON_COUNTY_OPINION"
}
compare_modifier = { # Nomads get it at roughly -30 county opinion
trigger = {
scope:faction.faction_target = {
government_has_flag = government_is_nomadic
}
}
value = county_opinion
multiplier = -1
desc = "FACTION_REASON_COUNTY_OPINION"
}
# If the targeted ruler isn't nomadic... time to rumble
modifier = {
add = 10
scope:faction.faction_target = {
NOR = {
government_has_flag = government_is_nomadic
government_has_flag = government_is_herder
}
}
desc = "FACTION_REASON_DISLIKE_NON_NOMADS"
}
legalism_virtue_and_sin_modifier = {
TARGET = scope:faction.faction_target
SCORE_PER_TRAIT = 10
}
# Realm Stability Settings
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_LESSER"
add = 25
has_game_rule = lesser_realm_stability
}
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_HIGHER"
add = -25
has_game_rule = higher_realm_stability
}
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_EXTREME"
add = -50
has_game_rule = extreme_realm_stability
}
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_LESSER"
add = 25
has_game_rule = lesser_realm_stability_ai_only
scope:faction.faction_target = {
is_ai = yes
}
}
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_HIGHER"
add = -25
has_game_rule = higher_realm_stability_ai_only
scope:faction.faction_target = {
is_ai = yes
}
}
modifier = {
desc = "FACTION_REASON_GAME_RULE_REALM_STABILITY_EXTREME"
add = -50
has_game_rule = extreme_realm_stability_ai_only
scope:faction.faction_target = {
is_ai = yes
}
}
# Conquerors
modifier = {
add = -100
scope:faction.faction_target = { ai_should_get_conqueror_bonuses = yes }
}
modifier = {
add = -200
scope:faction.faction_target = { ai_should_get_extreme_conqueror_bonuses = yes }
}
}
county_power = county_horde_riders_to_raise_power
ai_join_score = {
}
on_creation = {
random_faction_county_member = {
save_scope_as = founding_county
}
set_variable = {
name = faction_culture
value = scope:founding_county.culture
}
set_variable = {
name = faction_faith
value = scope:founding_county.faith
}
}
on_destroy = {
set_variable = {
name = peasant_destroying
value = yes
}
if = {
limit = { exists = special_character }
special_character = {
save_temporary_scope_as = destroyer_of_titles
if = {
limit = {
has_variable = peasant_title
exists = this.var:peasant_title.holder
}
destroy_title = this.var:peasant_title
}
if = {
limit = {
NOT = {
has_character_flag = successful_nomad_revolt_leader
}
}
every_held_title = {
limit = {
is_landless_type_title = yes
}
scope:destroyer_of_titles = { destroy_title = prev }
}
if = {
limit = { # To make sure we aren't in debt
gold > 0
}
remove_long_term_gold = gold # Zero out our wallet since the revolt is over and we're going back to being unlanded.
}
}
if = {
limit = {
is_alive = yes # To prevent dead people from being checked for variables
}
if = {
limit = {
has_variable = rebel_leader_peasants
}
remove_variable = rebel_leader_peasants
}
remove_variable = peasant_title
remove_character_flag = peasant_faction_random_peasant
remove_character_flag = peasant_faction_claimant_without_title
if = {
limit = {
has_character_flag = peasant_faction_random_peasant
NOT = { has_character_flag = peasant_revolt_do_not_kill }
}
death = {
death_reason = death_vanished
}
}
}
}
}
}
demand = {
setup_nomadic_leader_effect = yes
# Faction leader is unhappy if they reach the point of needing to issue an ultimatim.
faction_leader = {
add_opinion = {
modifier = angry_opinion
target = root.faction_target
opinion = -50
}
}
# Save scopes that will be used in the demand event.
save_scope_as = faction
special_character = {
save_scope_as = peasant_leader
}
# Check for relevant vassals that owns any land targeted by the faction.
save_temporary_scope_as = county_faction
every_faction_county_member = {
limit = {
holder = {
NOT = { this = scope:faction.faction_target }
NOT = { is_in_list = nomadic_faction_vassal_targets }
}
}
holder = {
add_to_list = nomadic_faction_vassal_targets
}
}
every_faction_county_member = {
holder = {
every_liege_or_above = {
limit = {
NOT = { this = scope:faction.faction_target }
NOT = { is_in_list = nomadic_faction_vassal_targets }
}
add_to_list = nomadic_faction_vassal_targets
}
}
}
# Check if there is a player affected by the faction. AI rulers are blocked from accepting the faction demand if so.
if = {
limit = {
any_in_list = {
list = nomadic_faction_vassal_targets
is_ai = no
}
}
scope:faction = {
set_variable = {
name = faction_targets_player
value = yes
}
}
}
# Fire the demand event. A follow up event will be sent to affected vassals.
scope:faction.faction_target = {
trigger_event = faction_demand.9998
}
}
ai_demand_chance = {
base = 100
modifier = {
add = -1000
faction_target = {
involved_activity ?= {
has_activity_type = activity_coronation
activity_host = prev
}
}
}
}
on_war_start = {
# Duchy initialization so we can concentrate the rebels in just a few important counties instead of spreading them over the entire realm.
every_faction_county_member = {
duchy = {
if = {
limit = {
NOT = {
is_in_list = areas_of_rebellion
}
}
add_to_list = areas_of_rebellion
}
}
}
# Check where in the duchy the rebellion troops should spawn, then spawn them.
every_in_list = {
list = areas_of_rebellion
save_temporary_scope_as = this_duchy
# Determine where in the duchy those troops should spawn.
ordered_in_de_jure_hierarchy = {
# Troops can only spawn in counties that belong to our faction!
limit = {
tier = tier_county
any_title_joined_faction = {
this = root
}
}
order_by = county_fertility
title_province = {
save_temporary_scope_as = local_center_of_rebellion
}
}
# Spawn the faction troops in the designated location.
root.faction_leader = {
spawn_nomadic_revolt_troops = yes
}
# Give the populist leader a commander for each stack of troops.
create_character = {
template = new_commander_character
location = scope:local_center_of_rebellion
faith = root.faction_leader.faith
rite = root.faction_leader.rite
culture = root.faction_leader.culture
save_scope_as = new_populist_commander
gender_female_chance = {
if = {
limit = { root.faction_leader.culture = { has_cultural_parameter = martial_custom_male_only_combatant } }
add = 0
}
else_if = {
limit = { root.faction_leader.culture = { has_cultural_parameter = martial_custom_female_only_combatant } }
add = 100
}
else = {
add = 50
}
}
}
scope:new_populist_commander = {
set_employer = root.faction_leader
add_trait = nomadic_philosophy
}
}
# Give the populist leader a small purse so they don't immediately go bankrupt with army maintenance.
every_faction_county_member = {
root.faction_leader = {
add_gold = 25
}
}
}
leader_leaves = {
# Should only trigger when the leader is captured in battle.
if = {
limit = {
special_character ?= {
is_alive = no
}
}
faction_war = {
end_war = defender
}
destroy_faction = yes
}
if = {
limit = {
NOT = { has_variable = peasant_destroying }
exists = faction_war
}
faction_war = {
end_war = defender
}
}
}
character_allow_create = no
special_character_title = "FACTIONS_WINDOW_LEADER"
inherit_membership = no
multiple_targeting = no
}

File diff suppressed because it is too large Load diff

View file

@ -145,14 +145,6 @@ declare_war_culture_acceptance_impact = {
}
}
declare_war_culture_acceptance_impact = {
value = 0
scope:defender.primary_title = {
subtract = tier
add = 1
}
}
hybridization_threshold_flat_number_value = 40
hybridization_threshold_value = {
@ -266,7 +258,7 @@ culture_divergence_cooldown = {
limit = {
has_game_rule = no_hybrid_and_divergence_cooldowns
}
multiply = 0
add = -10000 # You can have a "negative age" culture by picking a culture that hasn't been formed yet in the ruler designer. Such a culture would get blocked by a cooldown of 0 years, so the no cooldown rule needs a negative value.
}
}

View file

@ -1,15 +0,0 @@

#Values used for checking distance with the 'squared_distance' trigger.
squared_distance_small = 22500 #150 map-pixels. Roughly one Wales away (top to bottom).
squared_distance_medium = 62500 #250 map-pixels. Roughly one Ireland away (top to bottom).
squared_distance_major = {
value = squared_distance_large
divide = 2
}
squared_distance_large = 422500 #650 map-pixels. Roughly one France away (top to bottom).
squared_distance_huge = 722500 #850 map-pixels. Roughly one Holy Roman Empire away (left to right).
squared_distance_almost_massive = 1440000 #1200 map-pixels. Roughly 1.5 Holy Roman Empire away (left to right).
squared_distance_massive = 2402500 #1550 map-pixels.
squared_distance_mega = 5202500
squared_distance_monstrous = 9000000 #3000 map-pixels

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -451,7 +451,7 @@ culture_ai_weight_skirmishers = {
if = { # Cultures that favours skirmishers
limit = {
culture ?= {
culture = {
OR = {
has_cultural_pillar = heritage_baltic
has_cultural_pillar = heritage_ugro_permian
@ -463,7 +463,7 @@ culture_ai_weight_skirmishers = {
}
if = { # Cultures that dislike skirmishers
limit = {
culture ?= {
culture = {
OR = {
has_cultural_pillar = heritage_central_germanic
has_cultural_pillar = heritage_frankish
@ -477,7 +477,7 @@ culture_ai_weight_skirmishers = {
if = { # Cultures with a special MaA of that type should avoid the base version of the unit
limit = {
culture ?= {
culture = {
culture_has_skirmisher_maa = yes
}
}
@ -490,7 +490,7 @@ culture_ai_weight_archers = {
if = { # Cultures that favours archers
limit = {
culture ?= {
culture = {
OR = {
has_cultural_pillar = heritage_west_germanic
has_cultural_pillar = heritage_brythonic
@ -507,8 +507,8 @@ culture_ai_weight_archers = {
if = { # Cultures that dislike archers
limit = {
OR = {
culture ?= { has_cultural_pillar = heritage_central_germanic }
culture ?= { has_cultural_pillar = heritage_frankish }
culture = { has_cultural_pillar = heritage_central_germanic }
culture = { has_cultural_pillar = heritage_frankish }
}
}
add = -60
@ -516,7 +516,7 @@ culture_ai_weight_archers = {
if = { # Cultures with a special MaA of that type should avoid the base version of the unit
limit = {
culture ?= {
culture = {
culture_has_archer_maa = yes
}
}
@ -529,7 +529,7 @@ culture_ai_weight_heavy_infantry = {
if = { # Cultures that favours heavy infantry
limit = {
culture ?= {
culture = {
OR = {
has_cultural_pillar = heritage_central_germanic
has_cultural_pillar = heritage_north_germanic
@ -544,7 +544,7 @@ culture_ai_weight_heavy_infantry = {
if = { # Cultures with a special MaA of that type should avoid the base version of the unit
limit = {
OR = {
culture ?= {
culture = {
culture_has_heavy_infantry_maa = yes
}
@ -563,8 +563,8 @@ culture_ai_weight_pikemen = {
if = { # Cultures that favours spearmen
limit = {
OR = {
culture ?= { has_cultural_pillar = heritage_central_germanic }
culture ?= { has_cultural_pillar = heritage_latin }
culture = { has_cultural_pillar = heritage_central_germanic }
culture = { has_cultural_pillar = heritage_latin }
}
}
add = 40
@ -572,7 +572,7 @@ culture_ai_weight_pikemen = {
if = { # Cultures with a special MaA of that type should avoid the base version of the unit
limit = {
culture ?= {
culture = {
culture_has_pikemen_maa = yes
}
}
@ -587,7 +587,7 @@ culture_ai_weight_light_cavalry = {
limit = {
mpo_can_recruit_nomad_maa_trigger = no
OR = {
culture ?= { has_cultural_pillar = heritage_iranian }
culture = { has_cultural_pillar = heritage_iranian }
}
}
add = 80
@ -595,7 +595,7 @@ culture_ai_weight_light_cavalry = {
if = { # Cultures that favours light cavalry
limit = {
mpo_can_recruit_nomad_maa_trigger = no
culture ?= {
culture = {
OR = {
has_cultural_pillar = heritage_arabic
has_cultural_pillar = heritage_berber
@ -611,11 +611,11 @@ culture_ai_weight_light_cavalry = {
if = { # Cultures that dislike light cavalry
limit = {
OR = {
culture ?= { has_cultural_pillar = heritage_central_germanic }
culture ?= { has_cultural_pillar = heritage_tibetan }
culture ?= { has_cultural_pillar = heritage_baltic }
culture ?= { has_cultural_pillar = heritage_burman }
culture ?= { has_cultural_pillar = heritage_somalian }
culture = { has_cultural_pillar = heritage_central_germanic }
culture = { has_cultural_pillar = heritage_tibetan }
culture = { has_cultural_pillar = heritage_baltic }
culture = { has_cultural_pillar = heritage_burman }
culture = { has_cultural_pillar = heritage_somalian }
}
}
add = -60
@ -623,7 +623,7 @@ culture_ai_weight_light_cavalry = {
if = { # Cultures with a special MaA of that type should avoid the base version of the unit
limit = {
culture ?= {
culture = {
culture_has_light_cavalry_maa = yes
}
}
@ -632,12 +632,12 @@ culture_ai_weight_light_cavalry = {
if = { # Cultures with a preference for Camel Riders should buy those over normal light cavalry
limit = {
culture ?= {
culture = {
has_innovation = innovation_war_camels
}
OR = {
culture ?= { has_cultural_pillar = heritage_arabic }
culture ?= { has_cultural_pillar = heritage_berber }
culture = { has_cultural_pillar = heritage_arabic }
culture = { has_cultural_pillar = heritage_berber }
}
}
add = -200
@ -651,11 +651,11 @@ culture_ai_weight_heavy_cavalry = {
limit = {
mpo_can_recruit_nomad_maa_trigger = no
OR = {
culture ?= { has_cultural_pillar = heritage_iranian }
culture = { has_cultural_pillar = heritage_iranian }
# Steppe cultures
culture ?= { has_cultural_pillar = heritage_turkic }
culture ?= { has_cultural_pillar = heritage_mongolic }
culture = { has_cultural_pillar = heritage_turkic }
culture = { has_cultural_pillar = heritage_mongolic }
}
}
add = 80
@ -664,16 +664,16 @@ culture_ai_weight_heavy_cavalry = {
limit = {
mpo_can_recruit_nomad_maa_trigger = no
OR = {
culture ?= { has_cultural_pillar = heritage_central_germanic }
culture ?= { has_cultural_pillar = heritage_frankish }
culture ?= { has_cultural_pillar = heritage_indo_aryan }
culture = { has_cultural_pillar = heritage_central_germanic }
culture = { has_cultural_pillar = heritage_frankish }
culture = { has_cultural_pillar = heritage_indo_aryan }
}
}
add = 40
}
if = { # Cultures that dislike heavy cavalry
limit = {
culture ?= {
culture = {
OR = {
has_cultural_pillar = heritage_tibetan
has_cultural_pillar = heritage_baltic
@ -693,7 +693,7 @@ culture_ai_weight_heavy_cavalry = {
if = { # Cultures with a special MaA of that type should avoid the base version of the unit
limit = {
culture ?= {
culture = {
culture_has_heavy_cavalry_maa = yes
}
}
@ -707,8 +707,8 @@ culture_ai_weight_camels = {
if = { # Cultures that favours camel riders
limit = {
OR = {
culture ?= { has_cultural_pillar = heritage_arabic }
culture ?= { has_cultural_pillar = heritage_berber }
culture = { has_cultural_pillar = heritage_arabic }
culture = { has_cultural_pillar = heritage_berber }
}
}
add = 80
@ -721,9 +721,9 @@ culture_ai_weight_elephants = {
if = { # Cultures that favours war elephants
limit = {
OR = {
culture ?= { has_cultural_pillar = heritage_dravidian }
culture ?= { has_cultural_pillar = heritage_indo_aryan }
culture ?= { has_cultural_pillar = heritage_burman }
culture = { has_cultural_pillar = heritage_dravidian }
culture = { has_cultural_pillar = heritage_indo_aryan }
culture = { has_cultural_pillar = heritage_burman }
}
}
add = 60
@ -808,7 +808,7 @@ counter_synergy_ai_weight_gunpowder = {
value = 200 # Since these are hard-limited elsewhere, prefer them highly
if = {
limit = {
culture ?= { has_cultural_era_or_later = culture_era_late_medieval }
culture = { has_cultural_era_or_later = culture_era_late_medieval }
number_maa_regiments_of_base_type = {
type = pikemen
value >= 3
@ -824,7 +824,7 @@ counter_synergy_ai_weight_gunpowder = {
}
if = {
limit = {
culture ?= { has_cultural_pillar = heritage_chinese }
culture = { has_cultural_pillar = heritage_chinese }
}
add = 10 # more gun
}
@ -854,7 +854,7 @@ culture_ai_weight_crossbowmen = {
if = { # Cultures with a special MaA of that type should avoid the base version of the unit
limit = {
culture ?= {
culture = {
culture_has_improved_crossbowmen = yes
}
}

File diff suppressed because it is too large Load diff

View file

@ -3204,8 +3204,6 @@ great_holy_war_target_kingdom_weight = {
limit = {
# Belongs to an Islamic religion.
scope:the_faith.religion = religion:islam_religion
# Not the Qarmatians. Since they weren't exactly fans of the Holy Cities.
NOT = { scope:the_faith = faith:qarmatian }
# Definitely actually considers at least Mecca or Medina holy.
OR = {
title:c_mecca = {

File diff suppressed because it is too large Load diff

View file

@ -76,11 +76,7 @@ court_chaplain_religious_relations_consulted_house_bonus_modifier = {
court_chaplain_religious_relations_cultural_tradition_bonus_modifier = {
if = {
limit = {
exists = scope:councillor_liege.culture
trigger_if = {
limit = { exists = scope:councillor_liege.culture }
scope:councillor_liege.culture ?= { has_cultural_parameter = religious_relations_is_empowered }
}
scope:councillor_liege.culture = { has_cultural_parameter = religious_relations_is_empowered }
}
add = court_chaplain_religious_relations_modifier
multiply = 0.2 #When changing, adjust culture_parameter_religious_relations_is_empowered
@ -249,13 +245,13 @@ court_chaplain_religious_relations_no_hof_opinion_modifier = {
add = 0
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
OR = {
has_doctrine_parameter = no_head_of_faith
NOT = { exists = religious_head }
}
}
scope:councillor.rite ?= { rite_has_doctrine = doctrine_theocracy_lay_clergy }
scope:councillor.rite = { rite_has_doctrine = doctrine_theocracy_lay_clergy }
}
add = court_chaplain_religious_relations_opinion_modifier
divide = court_chaplain_religious_relations_no_hof_balance
@ -629,7 +625,7 @@ court_chaplain_conversion_contextual_bonuses = {
#Conversion modifiers from where the Faith is on the Pluralism spectrum.
if = {
limit = {
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_parameter = pluralism_fundamentalist_proselytization_bonus
}
}
@ -640,7 +636,7 @@ court_chaplain_conversion_contextual_bonuses = {
}
if = {
limit = {
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_parameter = pluralism_pluralistic_proselytization_penalty
}
}
@ -655,13 +651,13 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:county.rite ?= {
scope:county.rite = {
rite_has_parameter = sanctioned_false_conversion_county_resistance
}
}
if = {
limit = {
scope:county.rite ?= { rite_has_tenet = tenet_false_conversion_sanction }
scope:county.rite = { rite_has_tenet = tenet_false_conversion_sanction }
}
add = {
value = scope:councillor.conversion_false_conversion_sanction_resistance
@ -670,7 +666,7 @@ court_chaplain_conversion_contextual_bonuses = {
}
else_if = {
limit = {
scope:county.rite ?= { rite_has_tenet = tenet_pastoral_isolation }
scope:county.rite = { rite_has_tenet = tenet_pastoral_isolation }
}
add = {
value = scope:councillor.conversion_pastoral_isolation_resistance
@ -688,13 +684,13 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:county.rite ?= {
scope:county.rite = {
rite_has_parameter = reincarnation_resistance_to_conversion
}
}
if = {
limit = {
scope:county.rite ?= { rite_has_tenet = tenet_reincarnation }
scope:county.rite = { rite_has_tenet = tenet_reincarnation }
}
add = {
value = scope:councillor.conversion_reincarnation_resistance
@ -712,7 +708,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:county.rite ?= {
scope:county.rite = {
rite_has_parameter = tenet_adaptive_conversion_resistance
}
}
@ -723,7 +719,7 @@ court_chaplain_conversion_contextual_bonuses = {
}
if = {
limit = {
scope:councillor.liege.rite ?= { rite_has_parameter = other_culture_conversion_penalty_active }
scope:councillor.liege.rite = { rite_has_parameter = other_culture_conversion_penalty_active }
exists = scope:county
scope:county.culture != scope:councillor.liege.culture
}
@ -738,7 +734,7 @@ court_chaplain_conversion_contextual_bonuses = {
### Mendicant Preachers
if = {
limit = {
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_parameter = mendicant_preachers_conversion_active
}
}
@ -763,7 +759,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_parameter = same_culture_conversion_bonus_active
}
scope:county.culture = scope:councillor.liege.culture
@ -777,7 +773,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:councillor.faith ?= {
scope:councillor.faith = {
has_doctrine_parameter = ghw_no_hof_conversion_buffs_active
OR = {
has_doctrine_parameter = no_head_of_faith
@ -795,7 +791,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:councillor.rite ?= { rite_has_parameter = easier_to_convert_faith_in_mountains }
scope:councillor.rite = { rite_has_parameter = easier_to_convert_faith_in_mountains }
scope:county = {
# We check any province and not just title province, to be generous.
county_has_province_with_terrain = {
@ -815,7 +811,7 @@ court_chaplain_conversion_contextual_bonuses = {
limit = {
exists = scope:county
scope:county = {
rite ?= { rite_has_parameter = harder_to_convert_faith_away_in_mountains }
rite = { rite_has_parameter = harder_to_convert_faith_away_in_mountains }
# We check any province and not just title province, to be generous.
county_has_province_with_terrain = {
terrain = mountains
@ -834,7 +830,7 @@ court_chaplain_conversion_contextual_bonuses = {
limit = {
exists = scope:county.faith
scope:county.faith != scope:councillor.faith
scope:councillor.faith ?= { faith_is_syncretic_with = { FAITH = scope:county.faith } }
scope:councillor.faith = { faith_is_syncretic_with = { FAITH = scope:county.faith } }
}
add = {
value = scope:councillor.conversion_syncretic_with_religion_malus
@ -892,7 +888,7 @@ court_chaplain_conversion_contextual_bonuses = {
}
religion = religion:germanic_religion
}
scope:county.faith ?= {
scope:county.faith = {
NOT = { has_doctrine_parameter = unreformed }
}
}
@ -948,7 +944,7 @@ court_chaplain_conversion_contextual_bonuses = {
#Conversion bonuses from certain Holy Sites.
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = jerusalem_conversion_bonus
}
title:b_jerusalem = {
@ -962,7 +958,7 @@ court_chaplain_conversion_contextual_bonuses = {
}
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = kerala_conversion_bonus
}
title:b_mahoyadapuram = {
@ -977,7 +973,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = iona_conversion_bonus
}
title:b_islay = {
@ -995,7 +991,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:county.faith ?= {
scope:county.faith = {
controls_holy_site_with_parameter = wadi_el_milk_conversion_resistance_bonus
}
title:b_wadi_el-milk = {
@ -1009,7 +1005,7 @@ court_chaplain_conversion_contextual_bonuses = {
}
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = cordoba_conversion_bonus
}
title:b_cordoba = {
@ -1038,7 +1034,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:county.faith ?= {
scope:county.faith = {
controls_holy_site_with_parameter = visoki_conversion_resistance_bonus
}
title:b_visoki = {
@ -1055,7 +1051,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:county.culture ?= {
scope:county.culture = {
has_cultural_parameter = more_easily_converted
}
}
@ -1067,7 +1063,7 @@ court_chaplain_conversion_contextual_bonuses = {
if = {
limit = {
exists = scope:county
scope:county.culture ?= {
scope:county.culture = {
has_cultural_parameter = harder_to_convert_county_faith
}
}
@ -1112,7 +1108,7 @@ court_chaplain_conversion_contextual_bonuses = {
limit = {
exists = global_var:fp3_struggle_ending
global_var:fp3_struggle_ending = flag:fp3_struggle_shia_caliphate_ending
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_doctrine = muhammad_succession_shia_doctrine
}
}
@ -1125,7 +1121,7 @@ court_chaplain_conversion_contextual_bonuses = {
limit = {
exists = global_var:fp3_struggle_ending
global_var:fp3_struggle_ending = flag:fp3_struggle_strengthen_caliphate_ending
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_doctrine = muhammad_succession_sunni_doctrine
}
}
@ -1236,7 +1232,7 @@ court_chaplain_conversion_contextual_bonuses = {
# Faster conversion for certain special doctrines
if = {
limit = {
scope:councillor_liege.faith ?= { has_doctrine_parameter = adoptionists_attractively_intuitive_theology }
scope:councillor_liege.faith = { has_doctrine_parameter = adoptionists_attractively_intuitive_theology }
exists = scope:county
scope:county.faith.religion = religion:christianity_religion
}
@ -1251,7 +1247,7 @@ court_chaplain_conversion_factors = {
value = 1
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
has_doctrine_parameter = unreformed
}
}
@ -1327,7 +1323,7 @@ court_chaplain_conversion_factors = {
limit = {
scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier }
scope:county.rite != rite:mozarabic_church
scope:county.faith ?= {
scope:county.faith = {
religion = scope:councillor.liege.religion
NOT = { exists = religious_head }
}
@ -1345,7 +1341,7 @@ court_chaplain_conversion_factors = {
has_character_modifier = fp3_promoted_persian_scripture_modifier
is_ai = no #this is so that we don't get AI converting and homogenizing Persia too quickly
}
scope:county.culture ?= { has_cultural_pillar = heritage_iranian }
scope:county.culture = { has_cultural_pillar = heritage_iranian }
}
multiply = {
value = promote_persian_scripture_conversion_modifier_value
@ -1360,16 +1356,16 @@ court_chaplain_conversion_factors = {
switch = {
trigger = global_var:fp3_struggle_ending_assertion_school
flag:sunni = {
scope:councillor.liege.rite ?= { rite_has_doctrine = muhammad_succession_sunni_doctrine }
scope:councillor.liege.rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine }
}
flag:shia = {
scope:councillor.liege.rite ?= { rite_has_doctrine = muhammad_succession_shia_doctrine }
scope:councillor.liege.rite = { rite_has_doctrine = muhammad_succession_shia_doctrine }
}
flag:muhakkima = {
scope:councillor.liege.rite ?= { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
scope:councillor.liege.rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
}
flag:zandaqa = {
scope:councillor.liege.rite ?= { rite_has_doctrine = muhammad_succession_zandaqa_doctrine }
scope:councillor.liege.rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine }
}
}
}
@ -1688,7 +1684,7 @@ court_chaplain_progress_percentage = {
conversion_fundamentalist_faith_bonus = {
if = {
limit = {
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_parameter = pluralism_fundamentalist_proselytization_bonus
}
}
@ -1701,7 +1697,7 @@ conversion_pluralistic_faith_penalty = {
value = 0
if = {
limit = {
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_parameter = pluralism_pluralistic_proselytization_penalty
}
}
@ -1717,7 +1713,7 @@ conversion_false_conversion_sanction_resistance = {
if = {
limit = {
exists = scope:county
scope:county.rite ?= {
scope:county.rite = {
rite_has_parameter = sanctioned_false_conversion_county_resistance
}
}
@ -1731,7 +1727,7 @@ conversion_reincarnation_resistance = {
if = {
limit = {
exists = scope:county
scope:county.rite ?= {
scope:county.rite = {
rite_has_parameter = reincarnation_resistance_to_conversion
}
}
@ -1750,7 +1746,7 @@ conversion_adaptive_resistance = {
if = {
limit = {
exists = scope:county
scope:county.rite ?= {
scope:county.rite = {
rite_has_parameter = tenet_adaptive_conversion_resistance
}
}
@ -1764,7 +1760,7 @@ conversion_culture_harder_to_convert = {
if = {
limit = {
exists = scope:county
scope:county.culture ?= {
scope:county.culture = {
has_cultural_parameter = harder_to_convert_county_faith
}
}
@ -1778,7 +1774,7 @@ conversion_culture_more_easily_converted = {
if = {
limit = {
exists = scope:county
scope:county.culture ?= {
scope:county.culture = {
has_cultural_parameter = more_easily_converted
}
}
@ -1800,7 +1796,7 @@ conversion_communal_identity_resistance = {
value = 0
if = {
limit = {
scope:councillor.rite ?= { rite_has_parameter = other_culture_conversion_penalty_active }
scope:councillor.rite = { rite_has_parameter = other_culture_conversion_penalty_active }
scope:county.culture != scope:councillor.liege.culture
}
subtract = court_chaplain_conversion_base_total
@ -1812,7 +1808,7 @@ conversion_mendicant_preachers_bonus = {
value = 0
if = {
limit = {
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_parameter = mendicant_preachers_conversion_active
}
}
@ -1839,7 +1835,7 @@ conversion_communal_identity_bonus = {
if = {
limit = {
exists = scope:county
scope:councillor.rite ?= {
scope:councillor.rite = {
rite_has_parameter = same_culture_conversion_bonus_active
}
scope:county.culture = scope:councillor.liege.culture
@ -1865,13 +1861,13 @@ conversion_ghw_tenet_no_hof_bonus = {
#add = court_chaplain_conversion_base_total
if = {
limit = {
faith ?= { holy_sites_controlled = 1 }
faith = { holy_sites_controlled = 1 }
}
multiply = conversion_ghw_tenet_multiplier_control
}
else_if = {
limit = {
faith ?= { holy_sites_controlled = 2 }
faith = { holy_sites_controlled = 2 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -1880,7 +1876,7 @@ conversion_ghw_tenet_no_hof_bonus = {
}
else_if = {
limit = {
faith ?= { holy_sites_controlled = 3 }
faith = { holy_sites_controlled = 3 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -1889,7 +1885,7 @@ conversion_ghw_tenet_no_hof_bonus = {
}
else_if = {
limit = {
faith ?= { holy_sites_controlled = 4 }
faith = { holy_sites_controlled = 4 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -1898,7 +1894,7 @@ conversion_ghw_tenet_no_hof_bonus = {
}
else_if = {
limit = {
faith ?= { holy_sites_controlled = 5 }
faith = { holy_sites_controlled = 5 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -1907,7 +1903,7 @@ conversion_ghw_tenet_no_hof_bonus = {
}
else_if = {
limit = {
faith ?= { holy_sites_controlled = 6 }
faith = { holy_sites_controlled = 6 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -1916,7 +1912,7 @@ conversion_ghw_tenet_no_hof_bonus = {
}
else_if = {
limit = {
faith ?= { holy_sites_controlled = 7 }
faith = { holy_sites_controlled = 7 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -1925,7 +1921,7 @@ conversion_ghw_tenet_no_hof_bonus = {
}
else_if = {
limit = {
faith ?= { holy_sites_controlled = 8 }
faith = { holy_sites_controlled = 8 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -1934,7 +1930,7 @@ conversion_ghw_tenet_no_hof_bonus = {
}
else_if = {
limit = {
faith ?= { holy_sites_controlled = 9 }
faith = { holy_sites_controlled = 9 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -1943,7 +1939,7 @@ conversion_ghw_tenet_no_hof_bonus = {
}
else_if = {
limit = {
faith ?= { holy_sites_controlled >= 10 }
faith = { holy_sites_controlled >= 10 }
}
multiply = {
value = conversion_ghw_tenet_multiplier_control
@ -2014,7 +2010,7 @@ conversion_holy_site_jerusalem = {
value = 0
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = jerusalem_conversion_bonus
}
}
@ -2027,7 +2023,7 @@ conversion_holy_site_kerala = {
value = 0
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = kerala_conversion_bonus
}
}
@ -2040,7 +2036,7 @@ conversion_holy_site_iona = {
value = 0
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = iona_conversion_bonus
}
}
@ -2053,7 +2049,7 @@ conversion_holy_site_visoki = {
value = 0
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = visoki_conversion_resistance_bonus
}
}
@ -2066,7 +2062,7 @@ conversion_holy_site_wadi_el_milk = {
value = 0
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = wadi_el_milk_conversion_resistance_bonus
}
}
@ -2079,7 +2075,7 @@ conversion_holy_site_cordoba = {
value = 0
if = {
limit = {
scope:councillor.faith ?= {
scope:councillor.faith = {
controls_holy_site_with_parameter = cordoba_conversion_bonus
}
}
@ -2228,7 +2224,7 @@ court_chaplain_sunni_promotion = {
limit = {
exists = global_var:fp3_struggle_ending
global_var:fp3_struggle_ending = flag:fp3_struggle_strengthen_caliphate_ending
rite ?= {
rite = {
rite_has_doctrine = muhammad_succession_sunni_doctrine
}
}
@ -2244,7 +2240,7 @@ court_chaplain_shia_promotion = {
limit = {
exists = global_var:fp3_struggle_ending
global_var:fp3_struggle_ending = flag:fp3_struggle_shia_caliphate_ending
rite ?= {
rite = {
rite_has_doctrine = muhammad_succession_shia_doctrine
}
}
@ -2256,7 +2252,7 @@ court_chaplain_shia_promotion = {
}
#Cardinal Order bonus
cardinal_order_convert_faith ?= {
cardinal_order_convert_faith = {
if = {
limit = {
scope:county ?= {

View file

@ -55,9 +55,14 @@ spouse_default_task_diplomacy_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -106,9 +111,14 @@ spouse_default_task_martial_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -158,8 +168,14 @@ spouse_default_task_intrigue_scale = {
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -208,9 +224,14 @@ spouse_default_task_learning_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -259,9 +280,14 @@ spouse_default_task_stewardship_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -310,9 +336,14 @@ spouse_task_court_politics_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -361,9 +392,14 @@ spouse_task_chivalry_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -412,9 +448,14 @@ spouse_task_court_intrigue_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -463,9 +504,14 @@ spouse_task_manage_domain_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified
@ -514,9 +560,14 @@ spouse_task_patronage_scale = {
}
if = {
limit = {
faith = {
has_doctrine_parameter = neow_better_spouses
}
has_personal_tenet_flag = tenet_divine_marriage_spouse_contribution
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
if = {
limit = {
rite = { rite_has_parameter = neow_better_spouses }
}
multiply = 1.25
save_temporary_value_as = has_been_modified

File diff suppressed because it is too large Load diff

View file

@ -1,864 +0,0 @@

### HOUSE RELATIONS
house_relation_casus_belli_discount_value = 0.75
house_relation_personal_scheme_bonus_value = 15
house_relation_hostile_scheme_bonus_value = 15
house_relation_increased_marriage_acceptance = 25
house_relation_decreased_marriage_acceptance = -25
house_relation_less_likely_war_target = -150
house_relation_actions_to_improve_level_threshold_value = 10 # How many actions before House level changes
house_relation_actions_to_damage_level_threshold_value = { # Same as above, but negative
value = house_relation_actions_to_improve_level_threshold_value
multiply = -1
}
house_relation_improve_minor_value = 0.1
house_relation_improve_medium_value = 0.2
house_relation_improve_major_value = 0.3
house_relation_damage_minor_value = { # Same as above, but negative
value = house_relation_improve_minor_value
multiply = -1
}
house_relation_damage_medium_value = {
value = house_relation_improve_medium_value
multiply = -1
}
house_relation_damage_major_value = {
value = house_relation_improve_major_value
multiply = -1
}
house_relation_damage_massive_value = {
value = house_relation_improve_major_value
multiply = -2
}
house_relation_damage_monumental_value = {
value = house_relation_improve_major_value
multiply = -3
}
improve_house_relation_calculated_value = {
value = house_relation_improve_major_value
multiply = 4 #Since we know we are in Japan to use the interaction
}
# Imperial Grace loss values depending on phase
imperial_grace_loss_situation_dynastic_cycle_phase_stability = -1
imperial_grace_loss_situation_dynastic_cycle_phase_stability_expansion = -2
imperial_grace_loss_situation_dynastic_cycle_phase_stability_advancement = -1
imperial_grace_loss_situation_dynastic_cycle_phase_instability = -3
imperial_grace_loss_situation_dynastic_cycle_phase_instability_conquest = -3
imperial_grace_loss_situation_dynastic_cycle_phase_chaos = -5
# This value is used for the ai_expected_level param for mandate_legitimacy, but can also be used directly without a vassal scope
# It's set to max, unless Cycle is in Stability Era, then it is lower by 2 for the first 50 years and lower by 1 for another 50 years
dynastic_cycle_legitimacy_expectation = {
value = 7 #max
if = {
limit = {
situation:dynastic_cycle ?= {
OR = {
situation_current_phase = situation_dynastic_cycle_phase_stability_expansion
situation_current_phase = situation_dynastic_cycle_phase_stability_advancement
}
has_variable = stability_phase_start_date
}
}
if = {
limit = {
situation:dynastic_cycle = {
var:stability_phase_start_date <= {
value = current_date
subtract = 18250
}
}
}
add = -2
}
if = {
limit = {
situation:dynastic_cycle = {
var:stability_phase_start_date <= {
value = current_date
subtract = 36500
}
}
}
add = -1
}
}
}
celestial_investiture_trade_bonus_max = 50
grand_guardian_aptitude_modifier_scaling_value = {
value = 1
if = {
limit = { exists = root }
add = root.aptitude:grand_guardian_court_position
}
desc = MODIFIER_DEFINITION_MAIN_DESC_GRAND_GUARDIAN_APTITUDE
}
## IE LOC VALUES
child_exam_min_age = {
value = 6
}
metropolitan_exam_final_entrants = {
value = 10
}
metropolitan_exam_final_entrants_loc = {
value = metropolitan_exam_final_entrants
}
## LOCAL EXAMINATION VALUES
examination_success_learning_value = {
value = learning
multiply = 1.2
ceiling = yes
max = 30
}
examination_success_stewardship_value = {
value = stewardship
multiply = 1.2
ceiling = yes
max = 30
}
examination_success_martial_value = {
value = martial
multiply = 1.2
ceiling = yes
max = 30
}
examination_success_increase_miniscule_value = 5
examination_success_increase_minor_value = 10
examination_success_increase_medium_value = 15
examination_success_increase_major_value = 20
examination_success_increase_massive_value = 25
examination_merit_reward_base_value = medium_merit_value
child_examination_success_chance_value = {
value = 0
# EXAM TYPE
add = {
value = learning
multiply = 1.2
ceiling = yes
max = 30
desc = learning_modifier
}
# A Confucian Education will improve your chances
add = {
if = {
limit = { has_trait = confucian_education }
add = 5
}
desc = confucian_education_modifier
}
# Having a Tutor will improve your chances
add = {
if = {
limit = { employs_court_position = court_tutor_court_position }
add = 15
}
desc = tutor_modifier
}
# Having lost a parent will improve your chances
add = {
if = {
limit = {
any_parent = {
is_alive = no
count = all
}
}
add = 10
}
desc = mourned_parent_modifier
}
# Let's also add the child's age
add = {
value = age
desc = age_modifier
}
add = {
if = {
limit = {
has_trait = curious
}
add = 5
}
desc = curious_modifier
}
# VARIABLES
# Nr of safe bets at examination
add = {
if = {
limit = { var:safe_bets > 0 }
value = var:safe_bets
multiply = 5
}
desc = played_it_safe_modifier
}
# MODIFIERS
if = {
limit = {
has_character_modifier = tgp_local_exam_initial_success
}
add = {
value = examination_success_increase_medium_value
desc = exam_success_chance.tgp_local_exam_initial_success
}
}
if = {
limit = {
has_character_modifier = tgp_local_exam_impressed_examiner
}
add = {
value = examination_success_increase_major_value
desc = exam_success_chance.tgp_local_exam_impressed_examiner
}
}
if = {
limit = {
has_character_modifier = tgp_local_exam_strong_finish
}
add = {
value = examination_success_increase_massive_value
desc = exam_success_chance.tgp_local_exam_strong_finish
}
}
}
dynasty_legacy_influence_career_discount_value = -0.1
# Referenced to in code for the Merit tooltip (DO NOT REMOVE)
# displayed in MERIT_PROGRESSBAR_MARKER_TOOLTIP, if you change the value here be sure to update the loc key as well
movement_power_character_individual_merit_value = {
value = merit_level
multiply = 10
}
relevant_family_members_metropolitan_value = {
value = var:num_exam_family_passed_metropolitan
}
relevant_family_members_palace_value = {
value = prev.var:num_exam_family_passed_palace
ceiling = yes
max = 3
}
meritocratic_province_military_max_value = 8
meritocratic_province_protectorate_max_value = {
value = 5
}
meritocratic_province_industrial_max_value = 8
meritocratic_province_metropolitan_max_value = {
value = 5
}
# dejure governorship value for sidegrade appointments
# this is the prominence value
# root - title considered for appointment
appointment_title_value = {
value = 0
# We value titles differently depending on if it is a civilian or military appointment
if = {
limit = {
OR = {
holder ?= { vassal_contract_has_flag = meritocratic_civil_appointment }
holder ?= { vassal_contract_has_flag = celestial_civil_appointment }
}
}
# General gold income
if = {
limit = {
tier >= tier_duchy
}
add = {
every_de_jure_county = {
add = {
value = title_province.monthly_income
multiply = 24
}
}
desc = appointment_title_value.county_income
}
}
else = {
add = {
value = title_province.monthly_income
multiply = 24
desc = appointment_title_value.capital_income
}
}
# Distance to capital
add = {
value = 500
subtract = {
value = "title_province.squared_distance(root.holder.top_liege.capital_province)"
multiply = 0.0001
}
min = 0
desc = appointment_title_value.distance_to_capital
}
}
else_if = {
limit = {
holder ?= {
OR = {
vassal_contract_has_flag = meritocratic_military_appointment
vassal_contract_has_flag = celestial_military_appointment
vassal_contract_has_flag = celestial_grand_marshal_obligation
}
}
}
# Army size
add = {
every_owned_title_maa_regiment = {
add = {
value = maa_size
}
}
desc = appointment_title_value.maa_size
}
# Province size (to make larger provinces more attractive)
if = {
limit = {
tier >= tier_duchy
}
add = {
every_de_jure_county = {
add = 10
}
desc = appointment_title_value.counties
}
}
add = {
every_title_to_title_neighboring_county = {
limit = {
holder.top_liege != prev.holder.top_liege
}
add = {
value = 10
}
}
desc = appointment_title_value.neighboring_enemy_counties
}
# A protectorate is more attractive
if = {
limit = {
holder = { vassal_contract_has_flag = celestial_province_protectorate }
}
multiply = {
value = 2
desc = appointment_title_value.protectorate
}
}
}
# Minister titles
if = {
limit = {
holder ?= {
tgp_is_any_minister = yes
}
}
add = {
value = holder.top_liege.capital_province.monthly_income
multiply = 1000
desc = appointment_title_value.capital_income
}
if = {
limit = {
title:h_china.holder = {
has_diarchy_type = grand_secretariat
OR = {
AND = {
has_realm_law = grand_chancellor_law
root = title:e_minister_chancellor
}
AND = {
has_realm_law = grand_marshal_law
root = title:e_minister_grand_marshal
}
AND = {
has_realm_law = grand_censor_law
root = title:e_minister_censor
}
}
}
}
add = {
value = 1000
desc = appointment_title_value.diarch
}
}
if = {
limit = {
OR = {
this = title:e_minister_chancellor
this = title:e_minister_censor
this = title:e_minister_grand_marshal
}
}
add = {
value = 3500
desc = appointment_title_value.minister
}
}
else_if = {
limit = {
OR = {
this = title:e_minister_of_personnel
this = title:e_minister_of_revenue
}
}
add = {
value = 3000
desc = appointment_title_value.minister
}
}
else_if = {
limit = {
OR = {
this = title:e_minister_of_rites
this = title:e_minister_of_war
}
}
add = {
value = 2500
desc = appointment_title_value.minister
}
}
else_if = {
limit = {
OR = {
this = title:e_minister_of_justice
this = title:e_minister_of_works
}
}
add = {
value = 2000
desc = appointment_title_value.minister
}
}
}
}
## Movement power
event_decrease_movement_power_minor_value = -5
event_decrease_movement_power_medium_value = -10
event_decrease_movement_power_major_value = -25
event_increase_movement_power_major_value = 25
event_increase_movement_power_medium_value = 10
event_increase_movement_power_minor_value = 5
event_increased_personal_movement_power_value = 15
# Events
subsidised_estate_value = {
value = 0
if = {
limit = {
has_variable = subsidised_estate_var
}
add = var:subsidised_estate_var
}
min = 1
desc = MODIFIER_DEFINITION_SUBSIDISED_ESTATE
}
tgp_shared_bloc_cohesion_base_change_monthly_value = {
value = 0
add = {
value = 0
every_confederation_member_house = { add = -0.1 }
max = 0
desc = "HOUSE_BLOC_COHESION_FROM_SIZE_HOUSE"
}
add = {
value = 0
leading_house.house_head.top_liege ?= {
every_sub_realm_county = {
limit = { holder.house.house_confederation ?= root }
add = -0.05
}
}
max = 0
desc = "HOUSE_BLOC_COHESION_FROM_SIZE"
}
# TODO GAIN FROM FESTIVAL MODIFIERS GOES HERE
}
## Boost/Penalize bloc for having conforming/diverging members.
#
# Scopes
# ------
# root: confederation/bloc
# house: Member house that we're checking
#
#
tgp_shared_bloc_cohesion_base_change_per_house_monthly_value = {
value = 0
leading_house ?= {
if = {
limit = {
NOT = { this = scope:house }
}
if = {
limit = {
NOT = { has_same_house_aspiration_as = scope:house }
}
add = {
value = -0.25
desc = "HOUSE_BLOC_COHESION_MISMATCHED_ASPIRATION"
}
}
else = {
add = {
value = 0.25
if = { # Unlanded give less
limit = {
NOT = {
scope:house = {
any_house_member = {
is_landed = yes
top_liege = root.leading_house.house_head.top_liege
}
}
}
}
multiply = 0.5
}
desc = "HOUSE_BLOC_COHESION_MATCHED_ASPIRATION"
}
}
}
}
scope:house.house_head = {
if = {
limit = {
NOT = { has_same_government = root.leading_house.house_head }
}
add = {
value = -1
desc = "HOUSE_BLOC_COHESION_MISMATCHED_GOVERNMENT"
}
}
}
if = {
limit = {
leading_house.house_dynasty = { has_dynasty_perk = tgp_japan_legacy_1 }
leading_house.house_dynasty = scope:house.house_dynasty
scope:house != leading_house
}
add = {
value = tgp_dynasty_legacy_bloc_cohesion_value
desc = "HOUSE_BLOC_SAME_DYNASTY_LEGACY_PERK"
}
}
}
tgp_shared_bloc_cohesion_contribution_value = {
value = scope:base_value
divide = scope:num_relations
divide = root.tgp_bloc_member_house_count_value
}
tgp_shared_bloc_cohesion_soft_cap_value = {
value = 75
}
tgp_establish_soryo_administration_bloc_leader_count_value = {
value = 0
every_in_list = {
list = bloc_leaders
add = 1
}
}
tgp_establish_soryo_administration_other_joiners_count_value = {
value = 0
every_in_list = {
list = other_joiners
add = 1
}
}
#Aptitude Bonus for Dynasty Legacy
court_position_tgp_dynasty_legacy_aptitude_bonus = 10
#Bloc Joining Dynasty Legacy Bonus
tgp_legacy_japan_dynasty_bloc_bonus_value = 25
#Bloc Joining Dynasty Lifestyle Perk
tgp_join_bloc_interaction_lifestyle_perk_value = 15
#Bloc Cohesion Dynasty Legacy Bonus
tgp_dynasty_legacy_bloc_cohesion_value = 0.25
#Hosting Festival Discount Legacy Perk
tgp_dynasty_legacy_perk_festival_discount_value = 0.2
# House Bloc Cohesion
cohesion_gain_minor = 0.25
cohesion_gain_medium = 0.5
cohesion_gain_major = 1
cohesion_loss_minor = {
value = cohesion_gain_minor
multiply = -1
}
cohesion_loss_medium = {
value = cohesion_gain_medium
multiply = -1
}
cohesion_loss_major = {
value = cohesion_gain_major
multiply = -1
}
border_war_grace_period_days = {
value = 1095
}
border_war_grace_period_years = {
value = border_war_grace_period_days
divide = 365
round = yes
}
steppe_admin_target_counties_tributaries = {
value = 50
}
temp_num_qualifying_counties_count = {
value = 0
every_sub_realm_county = {
limit = {
holder = {
is_governor_or_admin_count = yes
government_has_flag = government_has_merit
}
title_province = {
OR = {
has_holding_type = castle_holding
has_holding_type = church_holding
has_holding_type = city_holding
has_holding_type = temple_citadel_holding
}
}
}
add = 1
}
}
meritocratic_conversion_county_count = {
value = 30
}
return_to_steppe_county_requirement = {
value = 10
}
maitreya_devotee_army_value = {
value = 0
if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 5
}
}
add = 1000
}
else_if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 10
}
}
add = 500
}
else_if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 20
}
}
add = 400
}
else_if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 30
}
}
add = 300
}
else_if = {
limit = {
any_sub_realm_county = {
faith = root.faith
count <= 50
}
}
add = 200
}
else = {
add = 100
}
multiply = {
value = 0
every_sub_realm_county = {
limit = {
faith = root.faith
}
add = 1
}
}
}
cranial_trophies_stolen_prestige_value = {
value = 0
if = {
limit = {
scope:dead_character.prestige > 0
}
add = scope:dead_character.prestige
}
multiply = 0.25
}
cranial_trophies_stolen_prestige_spiritual_fulfillment_value = {
value = 0
if = {
limit = {
scope:dead_character.prestige > 0
}
add = scope:dead_character.prestige
}
multiply = 0.01
max = minor_spiritual_fulfillment_value
}
tgp_ai_concubine_soft_cap = {
value = max_number_of_concubines
multiply = 0.5
}
silk_road_downstream_primary_value = 15
silk_road_downstream_primary_negative_value = {
value = silk_road_downstream_primary_value
multiply = -1
}
silk_road_downstream_secondary_value = 10
silk_road_downstream_secondary_negative_value = {
value = silk_road_downstream_secondary_value
multiply = -1
}
silk_road_downstream_tertiary_value = 5
silk_road_downstream_tertiary_negative_value = {
value = silk_road_downstream_tertiary_value
multiply = -1
}
silk_road_steppe_market_built_value = 15
silk_road_steppe_resettlement_value = 5
silk_road_steppe_canal_built_primary_value = 30
silk_road_steppe_canal_built_secondary_value = 20
silk_road_steppe_canal_built_tertiary_value = 10
silk_road_stability_primary_value = 15
silk_road_stability_secondary_value = 10
silk_road_stability_tertiary_value = 5
silk_road_expand_steppe_value = 50
silk_road_expand_steppe_negative_value = {
value = silk_road_expand_steppe_value
multiply = -1
}
silk_road_raid_value = 10
silk_road_raid_negative_value = {
value = silk_road_raid_value
multiply = -1
}
silk_road_mongol_devastation_value = 15
silk_road_mongol_devastation_negative_value = {
value = silk_road_mongol_devastation_value
multiply = -1
}
silk_road_byzantium_destroyed_value = 50
silk_road_byzantium_destroyed_negative_value = {
value = silk_road_byzantium_destroyed_value
multiply = -1
}
silk_road_steppe_iranian_intermezzo_ending_value = 15
silk_road_steppe_iranian_intermezzo_unrest_value = 3
silk_road_steppe_iranian_intermezzo_unrest_negative_value = {
value = silk_road_steppe_iranian_intermezzo_unrest_value
multiply = -1
}
silk_road_steppe_china_consolidation_value = 1000
silk_road_steppe_china_consolidation_negative_value = {
value = silk_road_steppe_china_consolidation_value
multiply = -1
}
silk_road_steppe_china_stability_value = 5
innovation_cupellation_mine_tax_bonus_value = 0.15
innovation_champa_rice_tax_mult_value_1 = 0.02
innovation_champa_rice_levy_size_value_1 = 0.02
innovation_champa_rice_tax_mult_value_2 = 0.03
innovation_champa_rice_levy_size_value_2 = 0.03
innovation_champa_rice_development_growth_factor_value_2 = 0.05
innovation_champa_rice_tax_mult_value_3 = 0.04
innovation_champa_rice_levy_size_value_3 = 0.04
innovation_champa_rice_development_growth_factor_value_3 = 0.05
innovation_champa_rice_tax_mult_value_4 = 0.04
innovation_champa_rice_levy_size_value_4 = 0.04
innovation_champa_rice_development_growth_factor_value_4 = 0.05
innovation_block_printing_control_growth_value_1 = 0.02
innovation_block_printing_development_growth_value_1 = 0.02
innovation_block_printing_control_growth_value_2 = 0.03
innovation_block_printing_development_growth_value_2 = 0.03
innovation_block_printing_control_growth_value_3 = 0.04
innovation_block_printing_development_growth_value_3 = 0.04
innovation_block_printing_control_growth_value_4 = 0.05
innovation_block_printing_development_growth_value_4 = 0.05
innovation_coking_development_growth_value_1 = 0.02
innovation_coking_development_growth_value_2 = 0.03
innovation_coking_development_growth_value_3 = 0.04
innovation_coking_development_growth_value_4 = 0.05
tgp_chinese_decision_taoism_conversion_discount_value = 0.85
treasury_budget_law_change_legitimacy_loss_base = {
value = monumental_legitimacy_loss
if = {
limit = { highest_held_title_tier = tier_hegemony }
multiply = 1.5
}
}
governor_trait_counter_bonus_value = 0.05