Merge branch 'next-version-dev' of https://forgejo.damimani-alex.org/damimani/N3OW into next-version-dev

This commit is contained in:
edwardtheelbowhigh 2026-10-04 21:23:33 +01:00
commit 5ddbe037d3
48 changed files with 6831 additions and 3226 deletions

View file

@ -289,7 +289,33 @@ culture_hybrid_cooldown = {
limit = {
has_game_rule = no_hybrid_and_divergence_cooldowns
}
multiply = 0
add = -10000 # See above comment in culture_divergence_cooldown.
}
}
expand_new_culture_chance = {
if = {
limit = {
any_parent_culture = {
count = 1
}
}
value = 100
}
else = {
if = {
limit = {
any_parent_culture = {
save_temporary_scope_as = first_parent
}
exists = scope:first_parent
}
every_parent_culture = {
limit = { this != scope:first_parent }
value = "cultural_acceptance(scope:first_parent)"
}
}
min = 30
}
}
@ -522,6 +548,7 @@ language_soft_cap = {
add = {
add = learning
divide = language_learning_divide_value
floor = yes
}
}
if = {
@ -573,6 +600,23 @@ language_soft_cap = {
}
add = 1
}
# Clergy get a free slot for their rite's liturgical tongue so it does not crowd out others
if = {
limit = {
is_clergy = yes
OR = {
AND = {
knows_language = language_latin
portrait_religious_western_christian_trigger = yes
}
AND = {
knows_language = language_greek
portrait_religious_orthodox_trigger = yes
}
}
}
add = 1
}
}
language_soft_cap_modifier_value = {
@ -846,10 +890,6 @@ court_language_ai_score = {
capital_province = { geographical_region = world_india_deccan }
NOT = { scope:target.capital_province = { geographical_region = world_india_deccan } }
}
AND = {
capital_province = { geographical_region = world_burma }
NOT = { scope:target.capital_province = { geographical_region = world_burma } }
}
AND = {
capital_province = { geographical_region = world_himalaya }
NOT = { scope:target.capital_province = { geographical_region = world_himalaya } }

View file

@ -1051,7 +1051,7 @@ gunpowder_raise_limit_existing_gunpowder_units = {
gunpowder_raise_limit_existing_gunpowder_buildings = {
value = 0
every_realm_province = {
every_directly_owned_province = {
limit = {
has_building_or_higher = powder_magazine_01
}
@ -1095,3 +1095,13 @@ gunpowder_raise_limit_existing_gunpowder_buildings = {
gunpowder_building_limit_bonus_1 = 1
gunpowder_building_limit_bonus_2 = 2
gunpowder_building_limit_bonus_3 = 3
akritai_holy_order_priority_value = {
value = 0
if = {
limit = {
has_variable = ho_akritai
}
add = 1000
}
}

View file

@ -571,7 +571,7 @@ culture_acceptance_baseline = {
has_same_culture_language = scope:culture
}
add = {
value = 15 # please update CULTURE_PILLAR_TOOLTIP_LANGUAGE_EFFECT if this number changes
value = 10 # please update CULTURE_PILLAR_TOOLTIP_LANGUAGE_EFFECT if this number changes
desc = ACCEPTANCE_BASELINE_LANGUAGE
}
}
@ -1142,17 +1142,17 @@ culture_acceptance_baseline = {
}
if = { # Pluralistic close faiths
limit = {
scope:our_faith ?= {
has_doctrine = doctrine_pluralism_pluralistic
scope:our_faith.main_rite ?= {
rite_has_doctrine = doctrine_pluralism_pluralistic
}
scope:their_faith ?= {
has_doctrine = doctrine_pluralism_pluralistic
scope:their_faith.main_rite ?= {
rite_has_doctrine = doctrine_pluralism_pluralistic
}
any_culture_county = {
percent >= 0.5
title_province = {
faith = {
has_doctrine = doctrine_pluralism_pluralistic
rite = {
rite_has_doctrine = doctrine_pluralism_pluralistic
}
}
}
@ -1160,8 +1160,8 @@ culture_acceptance_baseline = {
any_culture_county = {
percent >= 0.5
title_province = {
faith = {
has_doctrine = doctrine_pluralism_pluralistic
rite = {
rite_has_doctrine = doctrine_pluralism_pluralistic
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -52,6 +52,12 @@
}
add = 20
}
if = {
limit = {
has_personal_tenet_flag = tenet_love_thy_neighbour_vassalage_acceptance
}
add = 15
}
#Cultural Acceptance
if = {
@ -75,7 +81,7 @@
scope:impress_check = {
NOR = { #Of two different faiths AND the potential vassal's faith is not pluralistic.
faith = root.faith
faith = { has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
}
}
@ -110,10 +116,10 @@
limit = {
scope:impress_check = {
faith != root.faith
faith = { has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
NOT = {
root.faith = { has_doctrine = doctrine_pluralism_pluralistic }
root.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
}
add = {
@ -147,8 +153,8 @@
limit = {
scope:impress_check = {
faith != root.faith
root.faith = { has_doctrine = doctrine_pluralism_pluralistic }
faith = { has_doctrine = doctrine_pluralism_pluralistic }
root.rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
}
add = {
@ -209,12 +215,23 @@
}
if = {
limit = {
scope:impress_check.highest_held_title_tier = tier_empire
scope:impress_check.highest_held_title_tier >= tier_empire
}
multiply = 1.5
}
}
}
#A Spiritual Head of Faith of King rank or above will not put their see under a liege
if = {
limit = {
scope:impress_check = {
highest_held_title_tier >= tier_kingdom
faith = { has_doctrine_parameter = spiritual_head_of_faith }
faith.religious_head ?= this
}
}
add = -500
}
#We just fought against each other.
if = {
limit = {
@ -546,7 +563,7 @@
has_trait = bastard
}
scope:impress_check = {
faith = { NOT = { has_doctrine = doctrine_bastardry_none } }
rite = { NOT = { rite_has_doctrine = doctrine_bastardry_none } }
}
}
has_trait = denounced
@ -782,6 +799,18 @@
}
#HISTORICALLY ADMIN PEOPLES WANT TO BE ADMIN
if = {
limit = {
government_has_mechanic = administrative
scope:impress_check = {
culture = {
culture_is_historically_admin_trigger = yes
}
}
}
add = 30
}
# AI-only weights, keep the pope from vassalizing too fast
if = {

View file

@ -1368,6 +1368,12 @@ base_legend_promote_ai = {
}
if = { #no free meals
limit = {
primary_title.tier = tier_hegemony
}
add = -32
}
else_if = {
limit = {
primary_title.tier = tier_empire
}

View file

@ -413,7 +413,7 @@ granary_modifier_scaling_value = {
}
add = {
value = 100
subtract = domicile.domicile_location.county.county_control
subtract = domicile_location.county.county_control
multiply = 0.1
round = yes
min = 1
@ -516,12 +516,6 @@ influence_inherit_large_bonus_value = 0.3
influence_inherit_medium_bonus_value = 0.2
influence_inherit_small_bonus_value = 0.1
appointment_score_script_value = {
value = "appointment_candidate_score(root.primary_title)"
min = 1
desc = APPOINTMENT_SCORE_SCRIPT_VALUE_DESC
}
# The cost for taking command of other theme troops - ROOT is the title the requested troops belong to
admin_title_troop_command_cost_value = {
save_temporary_scope_as = recipient_title
@ -743,43 +737,6 @@ diarch_more_efficient_administrative_emperor_promotion_candidate_major_value = 1
diarch_more_efficient_administrative_emperor_promotion_candidate_medium_value = 0.75
diarch_more_efficient_administrative_emperor_promotion_candidate_mild_value = 0.5
# For use when promoting a candidate via interaction.
appointment_score_interaction_multiplier_modifiers_value = {
value = 1
# Co-emperors are more efficient to promote.
if = {
limit = {
exists = scope:target
exists = scope:secondary_recipient
appointment_interactions_recipient_is_suitable_co_emperor_trigger = yes
}
if = {
limit = {
scope:actor.top_liege = { has_diarchy_active_parameter = diarch_more_efficient_administrative_emperor_promotion_candidate_massive }
}
add = diarch_more_efficient_administrative_emperor_promotion_candidate_massive_value
}
else_if = {
limit = {
scope:actor.top_liege = { has_diarchy_active_parameter = diarch_more_efficient_administrative_emperor_promotion_candidate_major }
}
add = diarch_more_efficient_administrative_emperor_promotion_candidate_major_value
}
else_if = {
limit = {
scope:actor.top_liege = { has_diarchy_active_parameter = diarch_more_efficient_administrative_emperor_promotion_candidate_medium }
}
add = diarch_more_efficient_administrative_emperor_promotion_candidate_medium_value
}
else_if = {
limit = {
scope:actor.top_liege = { has_diarchy_active_parameter = diarch_more_efficient_administrative_emperor_promotion_candidate_mild }
}
add = diarch_more_efficient_administrative_emperor_promotion_candidate_mild_value
}
}
}
# Eparch values
eparch_aptitude_modifier_scaling_value = {
value = 1
@ -791,6 +748,10 @@ eparch_aptitude_modifier_scaling_value = {
}
university_cost_reduction_value = 0.25
eparch_scheme_secrecy_bonus_value = {
if = {
limit = {
is_scheme_target_type = character
}
if = {
limit = {
scope:owner ?= { has_court_position = eparch_court_position }
@ -803,6 +764,24 @@ eparch_scheme_secrecy_bonus_value = {
desc = eparch_scheme_bonus_desc
}
}
}
else_if = {
limit = {
is_scheme_target_type = title
}
if = {
limit = {
scope:owner ?= { has_court_position = eparch_court_position }
scope:target.holder = {
domicile ?= { domicile_location = owner.top_liege.capital_province }
}
}
add = {
value = 15
desc = eparch_scheme_bonus_desc
}
}
}
}
# State Faith
@ -813,7 +792,7 @@ ep3_triumph_gold_cost = {
value = 100
if = {
limit = {
NOT = { government_allows = administrative }
NOT = { government_has_flag = government_has_influence }
}
add = 100
if = {
@ -831,7 +810,7 @@ ep3_triumph_influence_cost = {
value = 0
if = {
limit = {
government_allows = administrative
government_has_flag = government_has_influence
}
add = 50
if = {
@ -940,10 +919,14 @@ ep3_laamp_chance_score_value = {
# Culture/Faith
if = {
limit = {
faith = { has_doctrine_parameter = unlock_voluntary_laampdom_faith }
rite = { rite_has_parameter = unlock_voluntary_laampdom_faith }
}
add = 5
}
if = {
limit = { has_personal_tenet_flag = unlock_voluntary_laampdom_faith }
add = 5
}
if = {
limit = {
culture = { has_cultural_parameter = unlock_voluntary_laampdom }
@ -2052,7 +2035,7 @@ governor_efficiency = {
if = { # The Great Barracks duchy building bonus (great project)
limit = {
OR = {
vassal_contract_has_flag = celestial_military_appointment # Only for celestial military governors
vassal_contract_has_flag = province_military # Only for military governors
government_has_flag = government_is_administrative # All regular admin types are eligible
is_independent_ruler = yes # The top liege can always use it
}
@ -2203,121 +2186,6 @@ governance_modifier_scaling_tier_value = {
estate_governance_contract_bonus_value = 0.5
appointment_cost_multiplier_value = {
value = 1
if = {
limit = {
top_liege = { has_realm_law = male_preference_law }
is_female = yes
}
add = 1
}
else_if = {
limit = {
top_liege = { has_realm_law = male_only_law }
is_female = yes
}
multiply = 3
}
else_if = {
limit = {
top_liege = { has_realm_law = female_preference_law }
is_female = no
}
multiply = 1
}
else_if = {
limit = {
top_liege = { has_realm_law = female_only_law }
is_female = no
}
multiply = 3
}
}
appointment_minor_influence_cost = {
value = 50
}
appointment_medium_influence_cost = {
value = 100
}
appointment_major_influence_cost = {
value = 250
}
appointment_score_minor_value = {
value = appointment_minor_influence_cost
multiply = 0.2
}
appointment_score_medium_value = {
value = appointment_medium_influence_cost
multiply = 0.2
}
appointment_score_major_value = {
value = appointment_major_influence_cost
multiply = 0.2
}
appointment_score_minor_loss_value = {
value = appointment_score_minor_value
multiply = -1
}
appointment_score_medium_loss_value = {
value = appointment_score_medium_value
multiply = -1
}
appointment_score_major_loss_value = {
value = appointment_score_major_value
multiply = -1
}
appointment_score_max_tt_value = {
value = 0
if = {
limit = {
exists = scope:target
exists = scope:secondary_recipient
NOT = { scope:secondary_recipient = scope:target.current_heir }
}
add = {
value = "scope:target.current_heir.appointment_candidate_score(scope:target)"
multiply = 1.1
}
subtract = "scope:secondary_recipient.appointment_candidate_score(scope:target)"
min = 4 # We do this to prevent cases when the default score of the candidate is already much higher than that the heir
}
multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value
}
appointment_score_medium_tt_value = {
value = appointment_score_medium_value
multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value
}
appointment_score_major_tt_value = {
value = appointment_score_major_value
multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value
}
appointment_score_medium_loss_tt_value = {
value = appointment_score_medium_loss_value
multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value
}
appointment_score_major_loss_tt_value = {
value = appointment_score_major_loss_value
multiply = scope:actor.appointment_score_interaction_multiplier_modifiers_value
}
appointment_non_preferred_gender_penalty_value = 0.8
appointment_opposite_gender_penalty_value = 1
admin_council_cost_value = {
add = {
add = {
@ -2692,26 +2560,32 @@ task_contract_opinion_crime_backed_down_value = -10
task_contract_extra_reward_multiplier_value = 1.5 # Update all relevant parameter tootlips if this is changed! e.g. improved_learning_contract_rewards
# How do we multiply the cash rewards in a task contract depending on the employer's tier?
task_contract_tier_gold_multiplier_value = {
value = 1 # Barons and counts are neutral, so no multiplier needed here.
if = {
limit = { exists = scope:task_contract.task_contract_employer }
task_contract_employer_tier_gold_multiplier_value = {
value = 1
# Kings'n'emperors.
if = {
limit = { scope:task_contract.task_contract_employer.highest_held_title_tier >= define:NTaskContract|HIGH_TASK_CONTRACT_TIER }
limit = { highest_held_title_tier >= define:NTaskContract|HIGH_TASK_CONTRACT_TIER }
add = 3
}
# Dukes.
else_if = {
limit = { scope:task_contract.task_contract_employer.highest_held_title_tier >= define:NTaskContract|MEDIUM_TASK_CONTRACT_TIER }
limit = { highest_held_title_tier >= define:NTaskContract|MEDIUM_TASK_CONTRACT_TIER }
add = 2
}
# Courtiers first, as we give them a bit less.
else_if = {
limit = { scope:task_contract.task_contract_employer.highest_held_title_tier <= 0 }
add = 0.5
ceiling = yes
limit = { highest_held_title_tier <= 0 }
subtract = 0.5
}
}
task_contract_tier_gold_multiplier_value = {
# Barons and counts are neutral, so no multiplier needed here.
if = {
limit = { exists = scope:task_contract.task_contract_employer }
value = scope:task_contract.task_contract_employer.task_contract_employer_tier_gold_multiplier_value
}
else = {
value = 1
}
}
# How do we multiply the non-cash rewards in a task contract depending on the employer's tier?
@ -3162,6 +3036,7 @@ laamp_base_2011_actual_surveyable_holdings_per_tier_value = {
value = sub_realm_size
every_sub_realm_barony = {
limit = {
exists = holder
holder.highest_held_title_tier = tier_barony
title_province != root.domicile.domicile_location
}
@ -3696,7 +3571,7 @@ prison_break_value = {
# Powerful Family Rating
# House power score is used in code to enable bonuses from powerful houses
# root - house under evaluation
# current scope - house under evaluation
house_power_score = {
value = {
value = 0
@ -3712,19 +3587,15 @@ house_power_score = {
house_head = { government_is_japanese_trigger = yes }
}
add = {
every_house_member = {
limit = { top_liege = scope:target_house.house_head.top_liege }
add = 1.5
}
add = list_size:house_member
multiply = 1.5
desc = members_in_realm_desc
}
}
else = {
add = {
every_house_member = {
limit = { top_liege = scope:target_house.house_head.top_liege }
add = 3
}
add = list_size:house_member
multiply = 3
desc = members_in_realm_desc
}
}
@ -3820,11 +3691,11 @@ house_power_score = {
}
}
# Malus for not practicing the state faith
# Malus for not practicing the state rite
if = {
limit = {
house_head.top_liege ?= { government_allows = state_faith }
NOT = { house_head.top_liege.primary_title.state_faith ?= scope:target_house.house_head.faith }
NOT = { house_head.top_liege.primary_title.state_rite ?= scope:target_house.house_head.rite }
}
add = {
value = -25
@ -3905,7 +3776,7 @@ house_power_score = {
house_head = {
exists = top_liege.capital_province
domicile ?= {
is_domicile_type = estate
domicile_is_estate_trigger = yes
domicile_location = prev.top_liege.capital_province
}
}
@ -3972,7 +3843,10 @@ house_power_score = {
add = {
value = 0
house_head.confederation = {
every_confederation_member_house = { add = 10 }
add = {
value = list_size:confederation_member_house
multiply = 10
}
}
desc = led_bloc_size_desc
}
@ -3985,7 +3859,7 @@ house_power_score = {
limit = {
# Using the triggers of is_governor directly to save performance
is_landed = yes
government_allows = administrative
government_has_mechanic = administrative
top_liege != this
highest_held_title_tier >= main_administrative_tier
house.house_head.top_liege ?= top_liege
@ -4007,20 +3881,14 @@ house_power_score = {
# Bonus for being the imperial house (we deliberately but this at the end, behind the governorship multiplier, as an added bonus on top of everything else)
if = {
limit = {
any_house_member = {
top_liege = this
#primary_title.tier >= tier_empire (this is commented out because the house in power should always get this big boost)
house.house_head.top_liege ?= top_liege
}
this = house_head.top_liege.house
}
add = {
value = 100
if = {
limit = {
any_house_member = {
top_liege = this
house_head.top_liege = {
primary_title.tier < tier_empire
house.house_head.top_liege ?= top_liege
}
}
subtract = 50 #For Kings and below the bonus is not quite as high - they are not a far ahead of everyone else as an emperor
@ -4044,6 +3912,7 @@ house_power_score = {
add = 1
}
}
min = -0.8
}
desc = challenge_status_powerful_family_rating_modifier
}
@ -4060,241 +3929,6 @@ house_power_score = {
round = yes
}
# Maximum investment a character can make to support a candidate for a title appointment
# root - investor
appointment_investment_cap = {
value = {
add = {
value = 50 # Base
desc = BASE_VALUE
}
##### FAMILY RATING
if = {
limit = { house.house_head ?= this }
add = {
value = house.house_power_score
desc = appointment_investment_cap_family_rating
}
}
##### AGE
if = { # ADULT - scaling bonus
limit = { is_adult = yes }
add = {
value = {
add = age
subtract = 16
divide = 2
ceiling = yes
}
desc = appointment_investment_cap_age
}
}
else = { # CHILD - scaling malus
add = {
value = {
add = age
subtract = 16
divide = 2
floor = yes
}
desc = appointment_investment_cap_age
}
}
##### INFLUENCE LEVEL
if = { # NEGATIVE
limit = { influence_level < 1 }
add = {
value = -20
desc = appointment_investment_cap_influence_level
}
}
else_if = { # POSITIVE
limit = { influence_level > 1 }
add = {
value = {
add = influence_level
multiply = 10
}
desc = appointment_investment_cap_influence_level
}
}
##### ESTATE BUILDINGS
if = {
limit = { exists = house.house_head.domicile }
house.house_head.domicile = {
add = {
value = 0
if = {
limit = { has_domicile_building = estate_main_02 }
add = 10
}
else_if = {
limit = { has_domicile_building = estate_main_03 }
add = 20
}
else_if = {
limit = { has_domicile_building = estate_main_04 }
add = 30
}
else_if = {
limit = { has_domicile_building = estate_main_05 }
add = 40
}
if = {
limit = { has_domicile_building = reception_hall_02 }
add = 10
}
else_if = {
limit = { has_domicile_building = reception_hall_03 }
add = 20
}
else_if = {
limit = { has_domicile_building = reception_hall_04 }
add = 30
}
else_if = {
limit = { has_domicile_building = reception_hall_05 }
add = 40
}
if = {
limit = { has_domicile_building = east_asian_estate_main_02 }
add = 10
}
else_if = {
limit = { has_domicile_building = east_asian_estate_main_03 }
add = 20
}
else_if = {
limit = { has_domicile_building = east_asian_estate_main_04 }
add = 30
}
else_if = {
limit = { has_domicile_building = east_asian_estate_main_05 }
add = 40
}
if = {
limit = { has_domicile_building = east_asian_estate_reception_hall_02 }
add = 10
}
else_if = {
limit = { has_domicile_building = east_asian_estate_reception_hall_03 }
add = 20
}
else_if = {
limit = { has_domicile_building = east_asian_estate_reception_hall_04 }
add = 30
}
else_if = {
limit = { has_domicile_building = east_asian_estate_reception_hall_05 }
add = 40
}
if = {
limit = { has_domicile_building = japanese_manor_office_01 }
add = 5
}
else_if = {
limit = { has_domicile_building = japanese_manor_office_02 }
add = 10
}
else_if = {
limit = { has_domicile_building = japanese_manor_office_03 }
add = 15
}
else_if = {
limit = { has_domicile_building = japanese_manor_office_04 }
add = 20
}
else_if = {
limit = { has_domicile_building = japanese_manor_office_05 }
add = 25
}
else_if = {
limit = { has_domicile_building = japanese_manor_office_06 }
add = 30
}
desc = appointment_investment_cap_estate_buildings
}
}
}
##### FAMILY ATTRIBUTES
house ?= {
add = {
value = 0
if = {
limit = { has_house_aspiration_parameter = increased_investment_cap_bonus_3 }
add = increased_investment_cap_bonus_3_value
}
else_if = {
limit = { has_house_aspiration_parameter = increased_investment_cap_bonus_2 }
add = increased_investment_cap_bonus_2_value
}
else_if = {
limit = { has_house_aspiration_parameter = increased_investment_cap_bonus_1 }
add = increased_investment_cap_bonus_1_value
}
desc = political_meddlers_attribute_name_desc
}
}
##### EXPANDED POWER BASE
save_temporary_value_as = temp_total
if = {
limit = { has_character_modifier = ep3_expanded_power_base_minor_modifier }
add = {
value = scope:temp_total
multiply = 0.10
round = yes
min = 25
desc = ep3_expanded_power_base_minor_modifier
}
}
if = {
limit = { has_character_modifier = ep3_expanded_power_base_medium_modifier }
add = {
value = scope:temp_total
multiply = 0.20
round = yes
min = 50
desc = ep3_expanded_power_base_medium_modifier
}
}
if = {
limit = { has_character_modifier = ep3_expanded_power_base_major_modifier }
add = {
value = scope:temp_total
multiply = 0.30
round = yes
min = 75
desc = ep3_expanded_power_base_major_modifier
}
}
##### MERIT
if = {
limit = { merit_level >= 1 }
add = {
value = {
add = merit_level
multiply = 5
}
desc = "[merit_level|E]"
}
}
##### CELESTIAL MINISTER
if = {
limit = {
is_councillor = yes
liege ?= {
tgp_has_access_to_ministry_trigger = yes
}
}
add = {
value = 10
desc = is_a_minister_desc
}
}
min = 0
}
}
dominant_family_threshold_value = 0.25
ep3_governor_yearly_8150_total_count_value = {
@ -4636,7 +4270,7 @@ number_vassals_converting_to_new_state_faith = {
target = root
value >= 30
}
faith != root.faith
rite != root.rite
NOT = { has_vassal_stance = zealot }
is_ai = yes
}
@ -4957,7 +4591,11 @@ replenishable_troops_max_gold_tt_value = {
}
replenishable_troops_provision_cost_value = {
value = scope:actor.replenishable_troops_value
value = 0
# some of them have per-type requirement
scope:actor = {
every_maa_regiment = { add = replenishable_troops_value }
}
max = scope:actor.domicile.max_provisions
multiply = -1
}
@ -5459,7 +5097,7 @@ ep3_governor_yearly_3070_governorship_value = {
ep3_found_despotate_control_total_value = {
value = 0
primary_title.kingdom = {
every_de_jure_county = { add = 1 }
add = list_size:de_jure_county
}
}
@ -5497,7 +5135,7 @@ number_of_counties_with_heresy_1 = {
top_liege = {
every_realm_county = {
limit = {
faith = scope:heresy_1
rite = scope:heresy_1
}
add = 1
}
@ -5509,7 +5147,7 @@ number_of_counties_with_heresy_2 = {
top_liege = {
every_realm_county = {
limit = {
faith = scope:heresy_2
rite = scope:heresy_2
}
add = 1
}
@ -5521,7 +5159,7 @@ number_of_counties_with_heresy_3 = {
top_liege = {
every_realm_county = {
limit = {
faith = scope:heresy_3
rite = scope:heresy_3
}
add = 1
}
@ -5532,7 +5170,7 @@ number_of_counties_with_heresy_acceptance = {
value = 0
every_realm_county = {
limit = {
faith = scope:heresy
rite = scope:heresy
}
add = 10
}
@ -5542,7 +5180,7 @@ number_of_vassals_with_heresy_acceptance = {
value = 0
every_vassal = {
limit = {
faith = scope:heresy
rite = scope:heresy
}
add = 5
}
@ -5787,14 +5425,9 @@ kennels_more_successful_hunts_2_value = 15
cultivated_sophistication_development_gain = minor_development_progress_gain
slander_appointment_score_value = -25
slander_acclamation_score_value = -50
promote_appointment_score_value = 30
promote_acclamation_score_value = 50
ep3_requested_faith_support_0_value = {
value = major_influence_gain
multiply = 1.5
}
ep3_requested_faith_support_1_value = {
value = ep3_requested_faith_support_0_value

View file

@ -449,7 +449,7 @@ holy_war_cb_piety_cost_multiplier = {
if = {
limit = {
scope:attacker = {
faith = { has_doctrine_parameter = cheaper_holy_wars_active }
rite = { rite_has_parameter = cheaper_holy_wars_active }
}
}
multiply = {
@ -701,6 +701,28 @@ common_cb_prestige_cost_multiplier = {
multiply = common_cb_cost_multiplier
}
vassalization_cb_prestige_cost_mulitiplier = {
value = 1
if = {
limit = {
scope:defender.primary_title.tier = tier_kingdom
}
multiply = {
value = 2
desc = CB_VASSALIZING_KING
}
}
else_if = {
limit = {
scope:defender.primary_title.tier = tier_empire
}
multiply = {
value = 4
desc = CB_VASSALIZING_EMPEROR
}
}
}
# Base Costs
claim_cb_prestige_cost = {
if = {
@ -756,6 +778,18 @@ claim_cb_prestige_cost = {
}
}
}
every_in_list = {
list = target_titles
limit = { tier = tier_hegemony }
add = {
value = 1600
if = {
# 25% cheaper to take Pressed claims.
limit = { scope:attacker = { has_strong_claim_on = prev } }
add = -400
}
}
}
# Player adventurers pay much more.
if = {
@ -807,14 +841,14 @@ claim_cb_prestige_cost = {
sex_opposite_of = scope:defender
}
OR = {
scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated }
scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated }
scope:attacker.rite = { rite_has_doctrine = doctrine_gender_male_dominated }
scope:attacker.rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
}
multiply = {
if = {
limit = {
scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated }
scope:attacker.rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
if = {
limit = { # 25% cheaper for men to press claims on female rulers in male-dominated societies.
@ -836,7 +870,7 @@ claim_cb_prestige_cost = {
}
else_if = {
limit = {
scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated }
scope:attacker.rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
if = {
limit = { # 25% cheaper for women to press claims on male rulers in female-dominated societies.
@ -906,6 +940,11 @@ claim_cb_prestige_cost = {
limit = { tier = tier_empire }
add = 3000
}
every_in_list = {
list = target_titles
limit = { tier = tier_hegemony }
add = 5000
}
desc = "CB_CLAIM_COST_TARGET_TITLES"
}
if = {
@ -955,6 +994,9 @@ tribal_subjugation_cb_prestige_cost = {
if = {
limit = {
exists = scope:attacker.primary_title
}
if = {
limit = {
scope:attacker.primary_title = {
tier = tier_kingdom
}
@ -966,7 +1008,6 @@ tribal_subjugation_cb_prestige_cost = {
}
else_if = {
limit = {
exists = scope:attacker.primary_title
scope:attacker.primary_title = {
tier = tier_empire
}
@ -976,6 +1017,18 @@ tribal_subjugation_cb_prestige_cost = {
desc = CB_COST_RULES_EMPIRE
}
}
else_if = {
limit = {
scope:attacker.primary_title = {
tier = tier_hegemony
}
}
multiply = {
value = 3.5
desc = CB_COST_RULES_HEGEMONY
}
}
}
multiply = common_cb_prestige_cost_multiplier
}
@ -1011,6 +1064,13 @@ ancestor_cb_prestige_cost = {
value = 800
}
}
every_in_list = {
list = target_titles
limit = { tier = tier_hegemony }
add = {
value = 1600
}
}
desc = "CB_CLAIM_COST_TARGET_TITLES"
}
if = { # 50% cheaper for adults to take titles from child rulers.
@ -1050,14 +1110,14 @@ ancestor_cb_prestige_cost = {
sex_opposite_of = scope:defender
}
OR = {
scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated }
scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated }
scope:attacker.rite = { rite_has_doctrine = doctrine_gender_male_dominated }
scope:attacker.rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
}
multiply = {
if = {
limit = {
scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated }
scope:attacker.rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
if = {
limit = { # 25% cheaper for men to press claims on female rulers in male-dominated societies.
@ -1079,7 +1139,7 @@ ancestor_cb_prestige_cost = {
}
else_if = {
limit = {
scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated }
scope:attacker.rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
if = {
limit = { # 25% cheaper for women to press claims on male rulers in female-dominated societies.

File diff suppressed because it is too large Load diff

View file

@ -29,6 +29,15 @@ inverted_spouse_skill_rating_4 = {
spouse_default_task_diplomacy_scale = {
add = diplomacy
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -43,6 +52,7 @@ spouse_default_task_diplomacy_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -50,6 +60,7 @@ spouse_default_task_diplomacy_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 5
if = {
@ -69,6 +80,15 @@ spouse_default_task_diplomacy_scale = {
spouse_default_task_martial_scale = {
add = martial
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -83,6 +103,7 @@ spouse_default_task_martial_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -90,6 +111,7 @@ spouse_default_task_martial_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 5
if = {
@ -109,6 +131,15 @@ spouse_default_task_martial_scale = {
spouse_default_task_intrigue_scale = {
add = intrigue
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -123,6 +154,7 @@ spouse_default_task_intrigue_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -130,6 +162,7 @@ spouse_default_task_intrigue_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 5
if = {
@ -149,6 +182,15 @@ spouse_default_task_intrigue_scale = {
spouse_default_task_learning_scale = {
add = learning
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -163,6 +205,7 @@ spouse_default_task_learning_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -170,6 +213,7 @@ spouse_default_task_learning_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 5
if = {
@ -189,6 +233,15 @@ spouse_default_task_learning_scale = {
spouse_default_task_stewardship_scale = {
add = stewardship
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -203,6 +256,7 @@ spouse_default_task_stewardship_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -210,6 +264,7 @@ spouse_default_task_stewardship_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 5
if = {
@ -229,6 +284,15 @@ spouse_default_task_stewardship_scale = {
spouse_task_court_politics_scale = {
add = diplomacy
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -243,6 +307,7 @@ spouse_task_court_politics_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -250,6 +315,7 @@ spouse_task_court_politics_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 2
if = {
@ -269,6 +335,15 @@ spouse_task_court_politics_scale = {
spouse_task_chivalry_scale = {
add = martial
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -283,6 +358,7 @@ spouse_task_chivalry_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -290,6 +366,7 @@ spouse_task_chivalry_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 2
if = {
@ -309,6 +386,15 @@ spouse_task_chivalry_scale = {
spouse_task_court_intrigue_scale = {
add = intrigue
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -323,6 +409,7 @@ spouse_task_court_intrigue_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -330,6 +417,7 @@ spouse_task_court_intrigue_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 2
if = {
@ -349,6 +437,15 @@ spouse_task_court_intrigue_scale = {
spouse_task_manage_domain_scale = {
add = stewardship
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -363,6 +460,7 @@ spouse_task_manage_domain_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -370,6 +468,7 @@ spouse_task_manage_domain_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 2
if = {
@ -389,6 +488,15 @@ spouse_task_manage_domain_scale = {
spouse_task_patronage_scale = {
add = learning
scope:councillor_liege = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
culture = { has_cultural_parameter = better_spouses }
}
multiply = 1.5
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
else = {
if = {
limit = {
has_perk = loyalty_and_respect_perk
@ -403,6 +511,7 @@ spouse_task_patronage_scale = {
multiply = 1.25
save_temporary_value_as = has_been_modified # for performance reasons, to avoid checking trigger again
}
}
if = {
limit = {
faith = {
@ -410,6 +519,7 @@ spouse_task_patronage_scale = {
}
}
multiply = 1.25
save_temporary_value_as = has_been_modified
}
divide = 2
if = {

View file

@ -273,7 +273,7 @@ small_gold_tribute_value = {
scope:actor = { save_temporary_scope_as = tribute_target }
}
else = {
suzerain ?= { save_temporary_scope_as = tribute_target } #Temporary error fix until widgets are evaluated after is_shown on decisions TIT-67694
suzerain ?= { save_temporary_scope_as = tribute_target }
}
}
else = {
@ -282,7 +282,7 @@ small_gold_tribute_value = {
value = 0
if = {
limit = {
scope:tribute_target = { has_treasury = yes }
scope:tribute_target ?= { has_treasury = yes }
}
add = minor_treasury_value
}
@ -291,7 +291,7 @@ small_gold_tribute_value = {
}
if = {
limit = {
scope:tribute_target = {
scope:tribute_target ?= {
has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = prev }
}
}
@ -299,14 +299,14 @@ small_gold_tribute_value = {
}
else_if = {
limit = {
scope:tribute_target = {
scope:tribute_target ?= {
has_any_bad_relationship_with_character_trigger = { CHARACTER = prev }
}
}
multiply = 1.25
}
max = {
scope:tribute_target.culture = {
scope:tribute_target.culture ?= {
if = {
limit = {
has_cultural_era_or_later = culture_era_late_medieval
@ -338,7 +338,7 @@ small_gold_tribute_value = {
}
floor = yes
if = {
limit = { scope:tribute_target = { highest_held_title_tier = tier_hegemony } }
limit = { scope:tribute_target ?= { highest_held_title_tier = tier_hegemony } }
if = {
limit = { primary_title.tier >= tier_empire }
min = 100
@ -429,7 +429,7 @@ adequate_gold_tribute_value = {
}
}
else = {
suzerain ?= { save_temporary_scope_as = tribute_target } #Temporary error fix until widgets are evaluated after is_shown on decisions TIT-67694
suzerain ?= { save_temporary_scope_as = tribute_target }
}
}
else = {
@ -438,7 +438,7 @@ adequate_gold_tribute_value = {
value = 0
if = {
limit = {
scope:tribute_target = { has_treasury = yes }
scope:tribute_target ?= { has_treasury = yes }
}
add = major_treasury_value
}
@ -447,7 +447,7 @@ adequate_gold_tribute_value = {
}
if = {
limit = {
scope:tribute_target = {
scope:tribute_target ?= {
has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = prev }
}
}
@ -455,14 +455,14 @@ adequate_gold_tribute_value = {
}
else_if = {
limit = {
scope:tribute_target = {
scope:tribute_target ?= {
has_any_bad_relationship_with_character_trigger = { CHARACTER = prev }
}
}
multiply = 1.25
}
max = {
scope:tribute_target = {
scope:tribute_target ?= {
culture ?= {
if = {
limit = {
@ -496,7 +496,7 @@ adequate_gold_tribute_value = {
}
floor = yes
if = {
limit = { scope:tribute_target = { highest_held_title_tier = tier_hegemony } }
limit = { scope:tribute_target ?= { highest_held_title_tier = tier_hegemony } }
if = {
limit = { primary_title.tier >= tier_empire }
min = 150
@ -511,6 +511,7 @@ adequate_gold_tribute_value = {
}
excessive_gold_tribute_value = {
save_temporary_scope_as = tribute_target
if = {
limit = { is_tributary = no }
if = {
@ -587,7 +588,7 @@ excessive_gold_tribute_value = {
}
}
else = {
suzerain ?= { save_temporary_scope_as = tribute_target } #Temporary error fix until widgets are evaluated after is_shown on decisions TIT-67694
suzerain ?= { save_temporary_scope_as = tribute_target }
}
}
else = {
@ -596,7 +597,7 @@ excessive_gold_tribute_value = {
value = 0
if = {
limit = {
scope:tribute_target = { has_treasury = yes }
scope:tribute_target ?= { has_treasury = yes }
}
add = massive_treasury_value
}
@ -605,7 +606,7 @@ excessive_gold_tribute_value = {
}
if = {
limit = {
scope:tribute_target = {
scope:tribute_target ?= {
has_any_worst_bad_relationship_with_character_trigger = { CHARACTER = prev }
}
}
@ -613,14 +614,14 @@ excessive_gold_tribute_value = {
}
else_if = {
limit = {
scope:tribute_target = {
scope:tribute_target ?= {
has_any_bad_relationship_with_character_trigger = { CHARACTER = prev }
}
}
multiply = 1.25
}
max = {
scope:tribute_target.culture = {
scope:tribute_target.culture ?= {
if = {
limit = {
has_cultural_era_or_later = culture_era_late_medieval
@ -652,7 +653,7 @@ excessive_gold_tribute_value = {
}
floor = yes
if = {
limit = { scope:tribute_target = { highest_held_title_tier = tier_hegemony } }
limit = { scope:tribute_target ?= { highest_held_title_tier = tier_hegemony } }
if = {
limit = { primary_title.tier >= tier_empire }
min = 250

View file

@ -744,6 +744,18 @@ cranial_trophies_stolen_prestige_value = {
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
@ -815,7 +827,6 @@ 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_development_growth_factor_value_1 = 0.05
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

View file

@ -39,6 +39,37 @@ basic_is_available_ai = {
has_contagious_deadly_disease_trigger = no
}
is_in_activity = {
OR = {
custom_description = {
text = ALREADY_IN_ACTIVITY
OR = {
exists = involved_activity
has_variable = {
name = homage_liege_scope
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
name = merchant_var # only added here since they should always be travelling
}
is_being_visited_on_tour_strict = yes
}
}
custom_description = {
text = ALREADY_PLANNING_ACTIVITY
has_character_flag = planning_an_activity
}
# Variable set on Mandala succession
custom_tooltip = {
text = busy_in_mandala_succession
has_variable = busy_in_mandala_succession
}
}
}
is_available_allow_travelling = {
is_available_quick = {
alive = yes
@ -56,7 +87,10 @@ is_available_allow_travelling = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
name = merchant_var # only added here since they should always be travelling
}
is_being_visited_on_tour_strict = yes
}
@ -65,8 +99,6 @@ is_available_allow_travelling = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
# Variable set on Mandala succession
custom_tooltip = {
text = busy_in_mandala_succession
@ -93,7 +125,9 @@ is_available = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -102,8 +136,6 @@ is_available = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
# Variable set on Mandala succession
custom_tooltip = {
text = busy_in_mandala_succession
@ -121,9 +153,10 @@ is_available_travelling = {
travel = yes
}
has_contagious_deadly_disease_trigger = no
NOR = {
has_character_flag = is_in_task_contract_event_chain
has_variable = gone_adventuring
has_none_of_variables = {
name = is_in_task_contract_event_chain
name = gone_adventuring
name = merchant_var
}
}
@ -138,9 +171,10 @@ is_available_travelling_adult = {
incapable = no
}
has_contagious_deadly_disease_trigger = no
NOR = {
has_character_flag = is_in_task_contract_event_chain
has_variable = gone_adventuring
has_none_of_variables = {
name = is_in_task_contract_event_chain
name = gone_adventuring
name = merchant_var
}
}
@ -156,9 +190,10 @@ is_available_travelling_ai_adult = {
incapable = no
}
has_contagious_deadly_disease_trigger = no
NOR = {
has_character_flag = is_in_task_contract_event_chain
has_variable = gone_adventuring
has_none_of_variables = {
name = is_in_task_contract_event_chain
name = gone_adventuring
name = merchant_var
}
}
@ -222,7 +257,9 @@ is_available_ai = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -231,8 +268,6 @@ is_available_ai = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -256,7 +291,9 @@ is_available_child = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -265,8 +302,6 @@ is_available_child = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -289,7 +324,9 @@ is_available_child_allow_travel = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -298,8 +335,6 @@ is_available_child_allow_travel = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -323,7 +358,9 @@ is_available_ai_child = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -332,8 +369,6 @@ is_available_ai_child = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -356,7 +391,9 @@ is_available_healthy_child = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -365,8 +402,6 @@ is_available_healthy_child = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -390,7 +425,9 @@ is_available_healthy_ai_child = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -399,8 +436,6 @@ is_available_healthy_ai_child = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -423,7 +458,9 @@ is_available_adult = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -432,8 +469,6 @@ is_available_adult = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -457,7 +492,9 @@ is_available_ai_adult = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -466,8 +503,6 @@ is_available_ai_adult = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -490,7 +525,9 @@ is_available_healthy_adult = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -499,8 +536,6 @@ is_available_healthy_adult = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -524,7 +559,9 @@ is_available_healthy_ai_adult = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -533,8 +570,6 @@ is_available_healthy_ai_adult = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
is_available_adult_or_is_commanding = {
@ -564,7 +599,9 @@ is_available_at_peace = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -573,8 +610,6 @@ is_available_at_peace = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -598,7 +633,9 @@ is_available_at_peace_adult = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -607,8 +644,6 @@ is_available_at_peace_adult = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -634,7 +669,9 @@ is_available_at_peace_ai_adult = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -643,8 +680,6 @@ is_available_at_peace_ai_adult = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -669,7 +704,9 @@ is_available_at_peace_adult_lenient = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -678,8 +715,6 @@ is_available_at_peace_adult_lenient = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
# If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
@ -704,7 +739,9 @@ is_available_even_at_war_adult = {
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
}
is_being_visited_on_tour_strict = yes
}
@ -713,8 +750,6 @@ is_available_even_at_war_adult = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
}
is_capable_adult = {
@ -863,7 +898,10 @@ is_landless_adventurer = {
# This trigger checks if a character is a governor in an admin realm (implying they are landed)
is_governor = {
government_allows = administrative
custom_description = {
text = is_governor
subject = this
government_has_mechanic = administrative
is_landed = yes
top_liege != this
OR = {
@ -871,18 +909,27 @@ is_governor = {
highest_held_title_tier >= min_title_maa_tier
}
tgp_is_ceremonial_liege_trigger = no
}
}
is_governor_or_admin_count = {
government_allows = administrative
government_has_mechanic = administrative
is_landed = yes
top_liege != this
highest_held_title_tier >= tier_county
tgp_is_ceremonial_liege_trigger = no
}
is_governor_or_landless_admin = {
OR = {
is_governor = yes
is_landless_administrative = yes
tgp_is_any_minister = yes
}
}
# Checks if a character is a landless house_head within an admin realm
is_landless_administrative = {
government_allows = administrative
government_has_mechanic = administrative
is_landed = no
is_house_head = yes
has_domicile = yes
@ -901,20 +948,38 @@ is_landed_or_landless_administrative = {
OR = {
is_landed = yes
is_landless_administrative = yes
tgp_is_any_minister = yes # ministers should receive admin events and activity even if they are not house head
}
}
is_landed_or_landless_administrative_or_theocratic = {
OR = {
is_landed = yes
is_landless_administrative = yes
tgp_is_any_minister = yes # ministers should receive admin events and activity even if they are not house head
AND = {
is_ruler = yes
government_has_flag = government_is_theocracy
}
}
}
# Checks if a character is either landed, a landless house head within an admin realm, a landless nomad, a landless adventurer, a landless soryo, or a minister
is_playable_character = {
is_ruler = yes
OR = {
exists = domicile
# exclude barons
trigger_if = {
limit = {
OR = {
government_has_flag = government_is_prepublic
government_has_flag = government_is_urepublic
is_landed = yes
is_landless_administrative = yes
is_landless_adventurer = yes
is_landless_nomad = yes
is_landless_soryo = yes
tgp_is_any_minister = yes # To keep ministers playable, regardless of having a nobel family title or not
government_has_flag = government_is_theocracy
}
}
highest_held_title_tier > tier_barony
}
tgp_is_any_minister = yes # To keep ministers playable, regardless of having a noble family title or not
has_variable = laamp_transition
}
}
@ -937,3 +1002,13 @@ is_eunuch_trigger = {
has_trait = beardless_eunuch
}
}
should_in_default_location_trigger = {
is_available_quick = {
alive = yes
travel = no
in_army = no
imprisoned = no
}
NOT = { exists = involved_activity }
}

View file

@ -46,7 +46,7 @@ building_requirement_nomad_holding_in_county = {
building_requirement_herder = {
scope:holder ?= {
government_has_flag = government_is_true_herder
government_has_flag = government_is_herder
}
}
@ -60,6 +60,46 @@ building_requirement_herder_holding_in_county = {
}
}
holding_is_tribal = {
OR = {
has_holding_type = tribal_holding
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
holding_is_nomad = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
holding_is_castle = {
OR = {
has_holding_type = castle_holding
has_holding_type = temple_citadel_holding
}
}
holding_is_church = {
OR = {
has_holding_type = church_holding
has_holding_type = temple_citadel_holding
}
}
holding_is_city = {
has_holding_type = city_holding
}
holding_is_feudalized = {
OR = {
has_holding_type = castle_holding
has_holding_type = city_holding
has_holding_type = church_holding
has_holding_type = temple_citadel_holding
}
}
######################################################################
# Holding Level
######################################################################
@ -175,15 +215,6 @@ building_pastures_requirement_terrain = {
terrain = jungle
NOT = { geographical_region = world_innovation_elephants }
}
AND = {
OR = {
terrain = taiga
terrain = wetlands
}
culture = {
has_cultural_parameter = taiga_wetland_pastures_allowed
}
}
}
}
@ -285,8 +316,17 @@ building_paddy_fields_requirement_terrain = {
text = building_paddy_fields_requirement_terrain_tt
OR = {
terrain = terraced_hills
AND = {
terrain = floodplains
OR = {
geographical_region = graphical_east_asia
geographical_region = custom_viet_lands
}
}
AND = {
terrain = wetlands
county.culture = { has_cultural_parameter = champa_rice_wet_land_paddies }
}
AND = {
OR = {
terrain = hills
@ -566,6 +606,7 @@ building_hospices_requirement_terrain = {
has_any_special_mine_trigger = {
has_building_with_flag = special_mine
#OR = {
# has_building_or_higher = rammelsberg_mines_01
# has_building_or_higher = kutna_hora_mines_01
# has_building_or_higher = kremnica_mines_01
# has_building_or_higher = falun_mines_01
@ -861,7 +902,6 @@ religious_special_building_exclusion_trigger = { # checks if any special buildin
has_building = holy_site_chinese_temple_01
has_building = holy_site_se_asia_pagan_temple_01
has_building = izumo_taisha_01
has_building = bone_temple_melar_01
}
}
AND = { # Islamic
@ -906,7 +946,7 @@ religious_special_building_exclusion_trigger = { # checks if any special buildin
building_monastic_schools_holding_level_requirement_trigger = {
trigger_if = {
limit = { scope:holder.faith = { has_doctrine_parameter = monastic_schools_allowed_in_every_holding_type } }
limit = { scope:holder.rite = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type } }
OR = {
has_building_or_higher = castle_$LEVEL$
has_building_or_higher = city_$LEVEL$
@ -950,7 +990,6 @@ building_spice_plantation_requirement_terrain = {
geographical_region = world_asia_sulawesi_maluku
geographical_region = world_asia_indonesia
geographical_region = world_india
geographical_region = world_burma
}
OR = {
terrain = jungle

View file

@ -5,12 +5,13 @@
# Character must have a valid reasion to be naked.
OR = {
has_character_modifier = diplomacy_majesty_4090_no_raiment_modifier # Lunatic event where character goes naked instead of buying new clothes.
has_character_modifier = natural_primitivism_court_naturism_modifier
has_character_flag = is_naked # Special flag used in certain events.
# faith = { has_doctrine_parameter = naked_adherents_active }
rite = { rite_has_parameter = naked_adherents_active }
culture = { has_cultural_parameter = naked_culture_active }
trigger_if = {
limit = {
faith = { has_doctrine_parameter = naked_priests_active }
rite = { rite_has_parameter = naked_priests_active }
}
OR = {
government_has_flag = government_is_theocracy
@ -23,6 +24,25 @@
}
}
natural_primitivism_supports_naturism_trigger = {
exists = this
OR = {
should_be_naked_trigger = yes
rite = { rite_has_parameter = naked_adherents_active }
rite = { rite_has_parameter = naked_priests_active }
culture = { has_cultural_parameter = naked_culture_active }
has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision
}
}
natural_primitivism_fulfillment_trigger = {
exists = this
OR = {
rite = { rite_has_parameter = naked_adherents_active }
has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision
}
}
# Can only be checked in the interface since the setting isn't synced
should_be_fully_naked_portrait_trigger = {
should_show_nudity = yes
@ -120,12 +140,12 @@ portrait_wear_armor_trigger = {
is_in_army = yes
}
OR = {
# Mercenaries, Holy Orders, Adventurers
# Mercenaries, Military Orders, Adventurers
AND = {
is_ruler = yes
OR = {
government_has_flag = government_is_mercenary
government_has_flag = government_is_holy_order
government_has_flag = government_is_military_holy_order
has_realm_law = camp_purpose_mercenaries
has_realm_law = camp_purpose_brigands
}
@ -137,7 +157,7 @@ portrait_wear_armor_trigger = {
exists = knight_army
AND = {
OR = {
is_landed_or_landless_administrative = no
is_landed_or_landless_administrative_or_theocratic = no
liege = { is_at_war = yes }
}
is_councillor = no
@ -176,7 +196,7 @@ portrait_wear_armor_trigger = {
AND = {
has_council_position = councillor_marshal
OR = {
is_landed_or_landless_administrative = no
is_landed_or_landless_administrative_or_theocratic = no
primary_title.tier < tier_kingdom
}
}
@ -184,22 +204,16 @@ portrait_wear_armor_trigger = {
trigger_if = {
limit = {
is_independent_ruler = no
OR = {
has_government = celestial_government
has_government = meritocratic_government
has_government = steppe_admin_government
}
government_allows = merit
}
OR = {
vassal_contract_has_flag = celestial_province_protectorate
vassal_contract_has_flag = celestial_province_military
vassal_contract_has_flag = meritocratic_province_military
has_title = title:e_minister_grand_marshal
vassal_contract_has_flag = province_military
vassal_contract_has_flag = celestial_grand_marshal_obligation
}
is_adult = yes
trigger_if = {
limit = { has_trait = devoted }
faith = { has_doctrine_parameter = clergy_can_fight }
rite = { rite_has_parameter = clergy_can_fight }
}
save_temporary_scope_as = fighter_temp
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:fighter_temp }
@ -262,7 +276,7 @@ portrait_accoladed_knight_trigger = {
}
AND = {
liege ?= {
highest_held_title_tier = tier_empire
highest_held_title_tier >= tier_empire
}
}
}
@ -294,17 +308,24 @@ portrait_wear_helmet_trigger = { # Different from Armor, as (crowned) Kings and
government_has_flag = government_is_landless_adventurer
has_realm_law = camp_purpose_mercenaries
}
# Holy Orders
# Military Orders
# Rank-and-file military order members only wear helmets when actively fighting
# (commanding an army or riding out as a knight). Otherwise they're shown in their
# tonsured monastic form. Mirrors the commanding-army / knight_army logic used for
# regular knights & marshals below. NOTE: portrait_wear_armor_trigger still lets
# them wear their armor at all times, per the military-order aesthetic.
AND = {
is_ruler = yes
government_has_flag = government_is_holy_order
}
has_trait = order_member
OR = {
is_commanding_army = yes
exists = knight_army
}
}
# Commanding and lower than a King or uncrowned
AND = {
is_commanding_army = yes
OR = {
is_landed_or_landless_administrative = no
is_landed_or_landless_administrative_or_theocratic = no
AND = {
exists = primary_title
OR = {
@ -321,7 +342,7 @@ portrait_wear_helmet_trigger = { # Different from Armor, as (crowned) Kings and
is_knight = yes
is_councillor = no
OR = {
is_landed_or_landless_administrative = no
is_landed_or_landless_administrative_or_theocratic = no
AND = {
exists = primary_title
primary_title.tier < tier_kingdom
@ -341,7 +362,7 @@ portrait_wear_helmet_trigger = { # Different from Armor, as (crowned) Kings and
AND = {
has_council_position = councillor_marshal
OR = {
is_landed_or_landless_administrative = no
is_landed_or_landless_administrative_or_theocratic = no
primary_title.tier < tier_duchy
}
}
@ -359,21 +380,27 @@ portrait_wear_helmet_trigger = { # Different from Armor, as (crowned) Kings and
# Military style governor
AND = {
is_independent_ruler = no
government_allows = merit
OR = {
has_government = celestial_government
has_government = meritocratic_government
has_government = steppe_admin_government
vassal_contract_has_flag = province_military
vassal_contract_has_flag = celestial_grand_marshal_obligation
AND = {
has_council_position = councillor_marshal
liege = {
OR = {
AND = {
is_independent_ruler = yes
highest_held_title_tier >= tier_kingdom
}
tgp_is_ceremonial_liege_trigger = yes
}
}
}
OR = {
vassal_contract_has_flag = celestial_province_protectorate
vassal_contract_has_flag = celestial_province_military
vassal_contract_has_flag = meritocratic_province_military
has_title = title:e_minister_grand_marshal
}
is_adult = yes
trigger_if = {
limit = { has_trait = devoted }
faith = { has_doctrine_parameter = clergy_can_fight }
rite = { rite_has_parameter = clergy_can_fight }
}
save_temporary_scope_as = fighter_temp
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:fighter_temp }
@ -391,7 +418,7 @@ portrait_wear_helmet_trigger = { # Different from Armor, as (crowned) Kings and
is_leading_faction_type = peasant_faction
AND = {
is_ruler = yes
is_landed_or_landless_administrative = no
is_landed_or_landless_administrative_or_theocratic = no
OR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
@ -434,18 +461,18 @@ portrait_wear_no_crown_trigger = { # Rulers should be coronated to wear a crown
}
}
portrait_wear_christian_holy_order_trigger = { # Christian holy order members/vassals should wear different armor
portrait_wear_christian_holy_order_trigger = { # Christian Military Order members/vassals should wear different armor
OR = {
AND = { # Is a Christian holy order member
AND = { # Is a Christian Military Order member
OR = {
religion = religion:eastern_orthodox_religion
religion = religion:catholic_religion
religion = religion:protestant_religion
religion = religion:oriental_orthodox_religion
}
government_has_flag = government_is_holy_order
government_has_flag = government_is_military_holy_order
}
AND = { # Is a Christian holy order vassal
AND = { # Is a Christian Military Order vassal
OR = {
religion = religion:eastern_orthodox_religion
religion = religion:catholic_religion
@ -454,7 +481,7 @@ portrait_wear_christian_holy_order_trigger = { # Christian holy order members/va
}
is_playable_character = no
portrait_wear_armor_trigger = yes
liege ?= { government_has_flag = government_is_holy_order }
liege ?= { government_has_flag = government_is_military_holy_order }
}
}
}
@ -2634,7 +2661,7 @@ portrait_war_nobles_helmet_trigger = {
religion = religion:protestant_religion
religion = religion:oriental_orthodox_religion
}
government_has_flag = government_is_holy_order
government_has_flag = government_is_military_holy_order
}
AND = {
OR = {
@ -2646,7 +2673,7 @@ portrait_war_nobles_helmet_trigger = {
is_playable_character = no
portrait_wear_armor_trigger = yes
liege ?= {
government_has_flag = government_is_holy_order
government_has_flag = government_is_military_holy_order
}
}
AND = {
@ -2710,7 +2737,7 @@ portrait_western_crusades_trigger = {
religion = religion:protestant_religion
religion = religion:oriental_orthodox_religion
}
government_has_flag = government_is_holy_order
government_has_flag = government_is_military_holy_order
}
AND = {
OR = {
@ -2722,7 +2749,7 @@ portrait_western_crusades_trigger = {
is_playable_character = no
portrait_wear_armor_trigger = yes
liege ?= {
government_has_flag = government_is_holy_order
government_has_flag = government_is_military_holy_order
}
}
AND = {
@ -2754,6 +2781,25 @@ portrait_western_crusades_trigger = {
}
}
}
#Add culture triggers because this is only western armor... so why are we applying it elsewhere...?
portrait_era3_armor_trigger = yes
OR = {
faith = faith:roman_catholic
portrait_commoner_armor_trigger = {
CULTURE_INPUT = western
}
portrait_low_nobles_armor_trigger = {
CULTURE_INPUT = western
}
portrait_high_nobles_armor_trigger = {
CULTURE_INPUT = western
}
portrait_royalty_armor_trigger = {
CULTURE_INPUT = western
}
}
}
@ -2815,6 +2861,19 @@ portrait_prisoner_trigger = {
}
# Saints count as beautified even if Beautify Deceased is off, but de-aging still needs the setting
portrait_beautified_trigger = {
exists = this
OR = {
AND = {
is_alive = no
should_limit_age_for_dead_portraits = yes
}
has_trait = saint
}
}
portrait_sickness_trigger = {
exists = this
OR = {
@ -2859,20 +2918,31 @@ portrait_religious_devoted_trigger = {
OR = {
AND = {
has_character_flag = need_priest_outfit
faith = {
has_doctrine_parameter = vows_of_poverty_active
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
portrait_has_trait_trigger = { TRAIT = devoted }
# Clerics with a poverty rite take the habit, because portrait_religious_high bars the priestly look
AND = {
faith = {
has_doctrine_parameter = vows_of_poverty_active
portrait_has_trait_trigger = { TRAIT = cleric }
rite = {
rite_has_parameter = vows_of_poverty_active
}
OR = {
is_ruler = no
pam_is_clergy_ruler_trigger = yes
}
}
AND = {
rite = {
rite_has_parameter = vows_of_poverty_active
}
OR = {
AND = {
has_council_position = councillor_court_chaplain
faith = {
has_doctrine = doctrine_theocracy_lay_clergy
rite = {
rite_has_doctrine = doctrine_theocracy_lay_clergy
}
}
is_theocratic_lessee = yes
@ -2885,13 +2955,100 @@ portrait_religious_devoted_trigger = {
}
}
# Historical Latin monastic orders grouped by habit color (PAM art), in landed title scope
# Dynamic orders have no static title key and fall back to the mixed devoted pool
portrait_pam_black_habit_order_title_trigger = {
OR = {
this = title:d_benedictine_order
this = title:d_cluniacs
this = title:d_iberian_cluniacs
this = title:d_eastern_cluniacs
this = title:d_fleurians
this = title:d_columban_benedictines
this = title:d_sankt_gallen_benedictines
this = title:d_maurian_benedictines
this = title:d_ottonian_benedictines
this = title:d_guntherian_benedictines
this = title:d_hirsau_benedictines
this = title:d_princely_benedictines
this = title:d_ripollese_benedictines
this = title:d_anianian_benedictines
this = title:d_st_denis_benedictines
this = title:d_corbine_benedictines
this = title:d_gurloesian_benedictines
this = title:d_gallic_benedictines
this = title:d_latin_benedictines
this = title:d_ugo_benedictines
this = title:d_glagolitic_benedictines
this = title:d_martinian_benedictines
this = title:d_edgaric_benedictines
this = title:d_pastoral_benedictines
this = title:d_norman_benedictines
this = title:d_augustinian_canons
this = title:d_fontevraud_order
this = title:d_dominicans # Blackfriars: the black template includes the black-and-white habits
}
}
portrait_pam_white_habit_order_title_trigger = {
OR = {
this = title:d_carthusians
this = title:d_premonstratensians
this = title:d_cistercians
this = title:d_norman_cistercians
this = title:d_baltic_cistercians
this = title:d_iberian_cistercians
this = title:d_eastern_cistercians
this = title:d_eremetic_benedictines # Romualdine hermits, precursors of the white-clad Camaldolese
}
}
portrait_pam_gray_habit_order_title_trigger = {
this = title:d_tironensians # The Grey Monks of Tiron
}
portrait_pam_brown_habit_order_title_trigger = {
OR = {
this = title:d_vallombrosans
this = title:d_franciscans
this = title:d_carmelites
# Insular abbeys: undyed wool habits
this = title:d_ulaid_monasteries
this = title:d_midlands_monasteries
this = title:d_gaelic_columbans
this = title:d_brythonic_abbeys
this = title:d_gaelic_abbeys
}
}
portrait_pam_camaldolese_order_title_trigger = {
this = title:d_camaldolese
}
# Ruler of a historical monastic order, or a monk/nun in its court.
portrait_pam_monastic_order_member_trigger = {
OR = {
AND = {
government_has_flag = government_is_monastic_holy_order
primary_title ?= { $ORDER_TITLE_TRIGGER$ = yes }
}
AND = {
employer ?= {
government_has_flag = government_is_monastic_holy_order
primary_title ?= { $ORDER_TITLE_TRIGGER$ = yes }
}
portrait_religious_devoted_trigger = yes
}
}
}
portrait_religious_high_trigger = {
exists = this
OR = {
has_character_flag = need_priest_outfit
is_theocratic_lessee = yes
AND = {
is_ruler = yes
exists = primary_title # Check exists = primary_title instead of is_ruler, as dead characters aren't rulers
government_has_flag = government_is_theocracy
}
AND = {
@ -2903,10 +3060,97 @@ portrait_religious_high_trigger = {
}
}
}
# Ordained clerics dress as priests, unless they rise to lay rule
AND = {
portrait_has_trait_trigger = { TRAIT = cleric }
OR = {
is_ruler = no
pam_is_clergy_ruler_trigger = yes
}
}
}
NOT = {
faith = {
has_doctrine_parameter = vows_of_poverty_active
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
}
portrait_is_archbishop_trigger = {
exists = this
exists = primary_title # Check exists = primary_title instead of is_ruler, as dead characters aren't rulers
government_has_flag = government_is_theocracy
OR = {
any_held_title = {
has_clerical_region = yes
}
primary_title = {
has_clerical_region = yes
}
}
}
portrait_is_prince_bishop_trigger = {
exists = this
is_landed = yes
government_has_flag = government_is_theocracy
any_held_title = {
tier = tier_county
}
portrait_is_archbishop_trigger = no
}
portrait_is_kingdom_bishop_trigger = {
exists = this
highest_held_title_tier < tier_county
has_council_position = councillor_court_chaplain
liege ?= {
highest_held_title_tier >= tier_kingdom
}
}
portrait_is_cardinal_trigger = {
exists = this
has_pam_dlc_trigger = yes
exists = clerical_elector_title
portrait_religious_head_no_poverty_trigger = no
NOT = {
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
}
# Shared with the no_cloak weight cut in 06_cloaks_special.txt
portrait_pam_prelate_cope_trigger = {
exists = this
has_pam_dlc_trigger = yes
is_female = no # The cope has no female variant
portrait_religious_western_christian_trigger = yes
portrait_is_cardinal_trigger = no
NOT = {
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
OR = {
portrait_religious_head_popes_trigger = yes
AND = {
portrait_religious_high_trigger = yes
OR = {
portrait_is_archbishop_trigger = yes
portrait_is_prince_bishop_trigger = yes
portrait_is_kingdom_bishop_trigger = yes
}
}
}
NOR = {
has_character_modifier = vow_of_poverty_modifier
should_be_naked_trigger = yes
portrait_wear_armor_trigger = yes
AND = {
portrait_sickness_trigger = yes
portrait_beautified_trigger = no
}
}
}
@ -2914,7 +3158,7 @@ portrait_religious_high_trigger = {
portrait_iconoclast_high_trigger = {
exists = this
AND = {
faith = { has_doctrine = tenet_aniconism }
rite = { rite_has_tenet = tenet_aniconism }
faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion } }
}
OR = {
@ -2927,8 +3171,8 @@ portrait_iconoclast_high_trigger = {
has_council_position = councillor_court_chaplain
}
NOT = {
faith = {
has_doctrine_parameter = vows_of_poverty_active
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
}
@ -2973,33 +3217,41 @@ portrait_religious_high_headgear_trigger = {
}
}
NOT = {
faith = {
has_doctrine_parameter = vows_of_poverty_active
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
}
# Includes Challenger HoFs
portrait_religious_head_trigger = {
exists = this
OR = {
primary_title ?= {
is_head_of_faith = yes
}
has_character_flag = antipope_flag
}
NOT = {
faith = {
has_doctrine_parameter = vows_of_poverty_active
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
}
portrait_religious_head_no_poverty_trigger = {
exists = this
OR = {
primary_title ?= {
is_head_of_faith = yes
}
has_character_flag = antipope_flag
}
}
portrait_religious_head_popes_trigger = {
exists = this
# Every held-title check is paired with a primary_title one, as dead characters hold no titles
OR = {
AND = {
OR = {
@ -3007,13 +3259,20 @@ portrait_religious_head_popes_trigger = {
faith = faith:roman_catholic
}
is_adult = yes
OR = {
any_held_title ?= {
is_head_of_faith = yes
}
primary_title ?= {
is_head_of_faith = yes
}
}
}
any_equipped_character_artifact = {
has_variable = pope_hat
}
has_title = title:k_papal_state
primary_title ?= title:k_papal_state
}
}
@ -3024,8 +3283,8 @@ portrait_religious_head_ruler_trigger = {
}
is_ruler = yes
NOT = {
faith = {
has_doctrine_parameter = vows_of_poverty_active
rite = {
rite_has_parameter = vows_of_poverty_active
}
}
}
@ -3051,23 +3310,68 @@ portrait_religious_faith_or_foundational_trigger = {
portrait_religious_christian_trigger = {
OR = {
religion = religion:catholic_religion
religion = religion:eastern_orthodox_religion
religion = religion:catholic_religion
religion = religion:protestant_religion
religion = religion:oriental_orthodox_religion
}
}
portrait_religious_catholic_trigger = {
religion = religion:catholic_religion
faith = {
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:roman_catholic }
}
}
# Eastern Christian: Orthodox, Miaphysite, Church of the East, Iconoclast, Bogomilist, Paulician, Messalian, etc.
# Rite doctrine, not faith: Chalcedonian christian_faith has rites of both traditions
portrait_religious_orthodox_trigger = {
OR = {
faith = faith:chaldean
faith = faith:greek_catholic
religion = religion:eastern_orthodox_religion
religion = religion:oriental_orthodox_religion
rite = {
rite_has_doctrine = special_doctrine_is_eastern_christian_faith
}
portrait_christian_faith_orthodox_trigger = yes
}
}
# Western Christian: Catholic, Cathar, Waldensian, Lollard, Adamites, Bosnian Church, Adoptionist, Conversos, etc.
# Rite doctrine, not faith, with a culture fallback for the doctrine-less Chalcedonian faith
portrait_religious_western_christian_trigger = {
OR = {
rite = {
rite_has_doctrine = special_doctrine_is_western_christian_faith
}
AND = {
portrait_religious_christian_trigger = yes
NOT = { portrait_religious_orthodox_trigger = yes }
}
}
}
portrait_christian_faith_orthodox_trigger = {
AND = { # Fallback for the generic Chalcedonian christian_faith (no Western/Eastern doctrine).
faith = faith:christian_faith
OR = { # 867 start date
culture = culture:greek
culture = culture:bulgarian
}
}
}
portrait_religious_orthodox_landed_clergy_trigger = {
exists = this
portrait_religious_orthodox_trigger = yes
OR = {
is_ruler = yes
AND = { # Vassal of a king+ ruler
liege != root
liege.highest_held_title_tier >= tier_empire
is_clergy = yes
}
}
OR = {
is_theocratic_lessee = yes
government_has_flag = government_is_theocracy
}
}
@ -3083,6 +3387,33 @@ portrait_religious_muslim_trigger = {
religion = religion:islam_religion
}
portrait_western_christian_clean_shaven_clergy_trigger = {
exists = this
portrait_religious_western_christian_trigger = yes
OR = {
portrait_religious_devoted_trigger = yes
portrait_religious_high_trigger = yes
portrait_religious_high_no_poverty_trigger = yes
}
NOT = { has_trait = order_member }
}
# Used by the +200 weight entries in 01_beards_base.txt
should_always_have_beard_trigger = {
OR = {
scope:faith.religion = religion:islam_religion
is_culture_or_descended_from_trigger = { CULTURE = culture:emishi }
AND = {
portrait_religious_orthodox_trigger = yes
OR = {
portrait_religious_devoted_trigger = yes
portrait_religious_high_trigger = yes
portrait_religious_high_no_poverty_trigger = yes
}
}
}
}
portrait_religious_norse_trigger = {
religion = religion:folkgerman_religion
}
@ -3106,8 +3437,7 @@ portrait_religious_sami_trigger = {
portrait_religious_emishi_trigger = {
has_cp7_dlc_trigger = yes
always = no
# religion = religion:kamuyism_religion
religion = religion:kamuyism_religion
}
portrait_religious_shamanism_trigger = {
# technically this just makes it so shamanists wear vanilla steppe religious clothing so probably doesn't need a dlc check
@ -3129,7 +3459,7 @@ portrait_religious_steppe_trigger = {
# religion = religion:tani_religion
religion = religion:mediterranean_religion
# faith = {
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:old_bon }
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:bon_faith }
# }
}
}
@ -3138,7 +3468,7 @@ portrait_religious_buddhist_trigger = {
OR = {
religion = religion:buddhism_religion
# faith = {
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:bon }
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:bon_faith }
# }
}
}
@ -3161,7 +3491,7 @@ portrait_religious_zoroastrian_trigger = {
# religion = religion:yazidi_religion
# religion = religion:zunism_religion
# faith = {
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mandeaism }
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mandaean_faith }
# }
# religion = religion:dualism_religion
# religion = religion:basque_religion
@ -3362,6 +3692,39 @@ use_longsword_default_trigger = {
culture = { has_cultural_pillar = heritage_japonic }
}
royal_councillor_or_regent_trigger = {
OR = {
AND = {
is_councillor = yes
liege = {
OR = {
AND = {
is_independent_ruler = yes
highest_held_title_tier >= tier_kingdom
}
tgp_is_ceremonial_liege_trigger = yes
}
}
}
tgp_is_ceremonial_regent_trigger = yes
}
}
korea_high_rank_trigger = {
merit_level >= 5
}
korea_mid_rank_trigger = {
OR = {
merit_level = 4
merit_level = 3
}
}
korea_low_rank_trigger = {
merit_level <= 2
}
### N3OW triggers ###
artifact_visual_after_death_trigger = {

View file

@ -75,14 +75,18 @@ coa_castilian_trigger = {
coa_coptic_trigger = {
always = no
# OR = {
# scope:faith = faith:coptic
# scope:faith.main_rite ?= rite:coptic_rite
# AND = {
# exists = root
# rite ?= rite:coptic_rite
# }
# }
}
coa_cross_trigger = {
scope:faith = {
OR = { religion = religion:catholic_religion religion = religion:eastern_orthodox_religion religion = religion:protestant_religion religion = religion:oriental_orthodox_religion }
NOT = { has_doctrine = tenet_aniconism }
NOT = { main_rite = { rite_has_tenet = tenet_aniconism } }
}
}
@ -347,198 +351,198 @@ has_recognizable_chinese_seal = {
limit = { exists = scope:title }
scope:title = { is_noble_family_title = yes }
}
house ?= {
dynasty ?= {
OR = {
### CHINESE ###
has_base_name = "dynn_Bai_767D"
has_base_name = "dynn_Cai_8521"
has_base_name = "dynn_Cao_66F9"
has_base_name = "dynn_Chen_9673"
has_base_name = "dynn_Cheng_7A0B"
has_base_name = "dynn_Cui_5D14"
has_base_name = "dynn_Da_5927"
has_base_name = "dynn_Dai_6234"
has_base_name = "dynn_Deng_9127"
has_base_name = "dynn_Ding_4E01"
has_base_name = "dynn_Dong_8463"
has_base_name = "dynn_Du_675C"
has_base_name = "dynn_Duan_6BB5"
has_base_name = "dynn_Fan_8303"
has_base_name = "dynn_Fang_65B9"
has_base_name = "dynn_Feng_99AE"
has_base_name = "dynn_Fu_5085"
has_base_name = "dynn_Gao_9AD8"
has_base_name = "dynn_Gong_9F94"
has_base_name = "dynn_Gu_9867"
has_base_name = "dynn_Guo_90ED"
has_base_name = "dynn_Han_97D3"
has_base_name = "dynn_Hao_90DD"
has_base_name = "dynn_He_4F55"
has_base_name = "dynn_He_8CC0"
has_base_name = "dynn_Hou_4FAF"
has_base_name = "dynn_Hu_80E1"
has_base_name = "dynn_Huang_9EC3"
has_base_name = "dynn_Jia_8CC8"
has_base_name = "dynn_Jiang_59DC"
has_base_name = "dynn_Jiang_6C5F"
has_base_name = "dynn_Jiang_8523"
has_base_name = "dynn_Jin_91D1"
has_base_name = "dynn_Kong_5B54"
has_base_name = "dynn_Lei_96F7"
has_base_name = "dynn_Li_674E"
has_base_name = "dynn_Li_9ECE"
has_base_name = "dynn_Liang_6881"
has_base_name = "dynn_Liao_5ED6"
has_base_name = "dynn_Liao_907C"
has_base_name = "dynn_Lin_6797"
has_base_name = "dynn_Liu_5289"
has_base_name = "dynn_Long_9F8D"
has_base_name = "dynn_Lu_5442"
has_base_name = "dynn_Lu_76E7"
has_base_name = "dynn_Lu_9678"
has_base_name = "dynn_Luo_7F85"
has_base_name = "dynn_Ma_99AC"
has_base_name = "dynn_Mao_6BDB"
has_base_name = "dynn_Meng_5B5F"
has_base_name = "dynn_Meng_8499"
has_base_name = "dynn_Mo_83AB"
has_base_name = "dynn_Nan_5357"
has_base_name = "dynn_Nangong_5357"
has_base_name = "dynn_Ou_6B50"
has_base_name = "dynn_Pan_6F58"
has_base_name = "dynn_Peng_5F6D"
has_base_name = "dynn_Po_6734"
has_base_name = "dynn_Qian_9322"
has_base_name = "dynn_Qin_79E6"
has_base_name = "dynn_Qiu_90B1"
has_base_name = "dynn_Quan_6B0A"
has_base_name = "dynn_Ren_4EFB"
has_base_name = "dynn_Shan_55AE"
has_base_name = "dynn_Shao_90B5"
has_base_name = "dynn_Shen_6C88"
has_base_name = "dynn_Shi_53F2"
has_base_name = "dynn_Shi_77F3"
has_base_name = "dynn_Situ_53F8_5F92"
has_base_name = "dynn_Song_5B8B"
has_base_name = "dynn_Su_8607"
has_base_name = "dynn_Sun_5B6B"
has_base_name = "dynn_Tan_8983"
has_base_name = "dynn_Tan_8B5A"
has_base_name = "dynn_Tang_5510"
has_base_name = "dynn_Tao_9676"
has_base_name = "dynn_Tian_7530"
has_base_name = "dynn_Wan_842C"
has_base_name = "dynn_Wang_6C6A"
has_base_name = "dynn_Wang_738B"
has_base_name = "dynn_Wei_97CB"
has_base_name = "dynn_Wei_9B4F"
has_base_name = "dynn_Wen_6587"
has_base_name = "dynn_Wu_5433"
has_base_name = "dynn_Wu_6B66"
has_base_name = "dynn_Xia_590F"
has_base_name = "dynn_Xiang_5411"
has_base_name = "dynn_Xiao_856D"
has_base_name = "dynn_Xie_8B1D"
has_base_name = "dynn_Xie_90aa"
has_base_name = "dynn_Xi_897F"
has_base_name = "dynn_Xin_8F9B"
has_base_name = "dynn_Xiong_718A"
has_base_name = "dynn_Xu_5F90"
has_base_name = "dynn_Xu_8A31"
has_base_name = "dynn_Xue_859B"
has_base_name = "dynn_Yan_56B4"
has_base_name = "dynn_Yan_95BB"
has_base_name = "dynn_Yang_694A"
has_base_name = "dynn_Yao_59DA"
has_base_name = "dynn_Ye_8449"
has_base_name = "dynn_Yin_5C39"
has_base_name = "dynn_Yu_4E8E"
has_base_name = "dynn_Yu_4F59"
has_base_name = "dynn_Yuan_8881"
has_base_name = "dynn_Yue_8D8A"
has_base_name = "dynn_Zeng_66FE"
has_base_name = "dynn_Zhang_5F35"
has_base_name = "dynn_Zhao_8A54"
has_base_name = "dynn_Zhao_8D99"
has_base_name = "dynn_Zheng_912D"
has_base_name = "dynn_Zhong_937E"
has_base_name = "dynn_Zhou_5468"
has_base_name = "dynn_Zhu_6731"
has_base_name = "dynn_Zou_9112"
dynasty_has_base_name = "dynn_Bai_767D"
dynasty_has_base_name = "dynn_Cai_8521"
dynasty_has_base_name = "dynn_Cao_66F9"
dynasty_has_base_name = "dynn_Chen_9673"
dynasty_has_base_name = "dynn_Cheng_7A0B"
dynasty_has_base_name = "dynn_Cui_5D14"
dynasty_has_base_name = "dynn_Da_5927"
dynasty_has_base_name = "dynn_Dai_6234"
dynasty_has_base_name = "dynn_Deng_9127"
dynasty_has_base_name = "dynn_Ding_4E01"
dynasty_has_base_name = "dynn_Dong_8463"
dynasty_has_base_name = "dynn_Du_675C"
dynasty_has_base_name = "dynn_Duan_6BB5"
dynasty_has_base_name = "dynn_Fan_8303"
dynasty_has_base_name = "dynn_Fang_65B9"
dynasty_has_base_name = "dynn_Feng_99AE"
dynasty_has_base_name = "dynn_Fu_5085"
dynasty_has_base_name = "dynn_Gao_9AD8"
dynasty_has_base_name = "dynn_Gong_9F94"
dynasty_has_base_name = "dynn_Gu_9867"
dynasty_has_base_name = "dynn_Guo_90ED"
dynasty_has_base_name = "dynn_Han_97D3"
dynasty_has_base_name = "dynn_Hao_90DD"
dynasty_has_base_name = "dynn_He_4F55"
dynasty_has_base_name = "dynn_He_8CC0"
dynasty_has_base_name = "dynn_Hou_4FAF"
dynasty_has_base_name = "dynn_Hu_80E1"
dynasty_has_base_name = "dynn_Huang_9EC3"
dynasty_has_base_name = "dynn_Jia_8CC8"
dynasty_has_base_name = "dynn_Jiang_59DC"
dynasty_has_base_name = "dynn_Jiang_6C5F"
dynasty_has_base_name = "dynn_Jiang_8523"
dynasty_has_base_name = "dynn_Jin_91D1"
dynasty_has_base_name = "dynn_Kong_5B54"
dynasty_has_base_name = "dynn_Lei_96F7"
dynasty_has_base_name = "dynn_Li_674E"
dynasty_has_base_name = "dynn_Li_9ECE"
dynasty_has_base_name = "dynn_Liang_6881"
dynasty_has_base_name = "dynn_Liao_5ED6"
dynasty_has_base_name = "dynn_Liao_907C"
dynasty_has_base_name = "dynn_Lin_6797"
dynasty_has_base_name = "dynn_Liu_5289"
dynasty_has_base_name = "dynn_Long_9F8D"
dynasty_has_base_name = "dynn_Lu_5442"
dynasty_has_base_name = "dynn_Lu_76E7"
dynasty_has_base_name = "dynn_Lu_9678"
dynasty_has_base_name = "dynn_Luo_7F85"
dynasty_has_base_name = "dynn_Ma_99AC"
dynasty_has_base_name = "dynn_Mao_6BDB"
dynasty_has_base_name = "dynn_Meng_5B5F"
dynasty_has_base_name = "dynn_Meng_8499"
dynasty_has_base_name = "dynn_Mo_83AB"
dynasty_has_base_name = "dynn_Nan_5357"
dynasty_has_base_name = "dynn_Nangong_5357"
dynasty_has_base_name = "dynn_Ou_6B50"
dynasty_has_base_name = "dynn_Pan_6F58"
dynasty_has_base_name = "dynn_Peng_5F6D"
dynasty_has_base_name = "dynn_Po_6734"
dynasty_has_base_name = "dynn_Qian_9322"
dynasty_has_base_name = "dynn_Qin_79E6"
dynasty_has_base_name = "dynn_Qiu_90B1"
dynasty_has_base_name = "dynn_Quan_6B0A"
dynasty_has_base_name = "dynn_Ren_4EFB"
dynasty_has_base_name = "dynn_Shan_55AE"
dynasty_has_base_name = "dynn_Shao_90B5"
dynasty_has_base_name = "dynn_Shen_6C88"
dynasty_has_base_name = "dynn_Shi_53F2"
dynasty_has_base_name = "dynn_Shi_77F3"
dynasty_has_base_name = "dynn_Situ_53F8_5F92"
dynasty_has_base_name = "dynn_Song_5B8B"
dynasty_has_base_name = "dynn_Su_8607"
dynasty_has_base_name = "dynn_Sun_5B6B"
dynasty_has_base_name = "dynn_Tan_8983"
dynasty_has_base_name = "dynn_Tan_8B5A"
dynasty_has_base_name = "dynn_Tang_5510"
dynasty_has_base_name = "dynn_Tao_9676"
dynasty_has_base_name = "dynn_Tian_7530"
dynasty_has_base_name = "dynn_Wan_842C"
dynasty_has_base_name = "dynn_Wang_6C6A"
dynasty_has_base_name = "dynn_Wang_738B"
dynasty_has_base_name = "dynn_Wei_97CB"
dynasty_has_base_name = "dynn_Wei_9B4F"
dynasty_has_base_name = "dynn_Wen_6587"
dynasty_has_base_name = "dynn_Wu_5433"
dynasty_has_base_name = "dynn_Wu_6B66"
dynasty_has_base_name = "dynn_Xia_590F"
dynasty_has_base_name = "dynn_Xiang_5411"
dynasty_has_base_name = "dynn_Xiao_856D"
dynasty_has_base_name = "dynn_Xie_8B1D"
dynasty_has_base_name = "dynn_Xie_90aa"
dynasty_has_base_name = "dynn_Xi_897F"
dynasty_has_base_name = "dynn_Xin_8F9B"
dynasty_has_base_name = "dynn_Xiong_718A"
dynasty_has_base_name = "dynn_Xu_5F90"
dynasty_has_base_name = "dynn_Xu_8A31"
dynasty_has_base_name = "dynn_Xue_859B"
dynasty_has_base_name = "dynn_Yan_56B4"
dynasty_has_base_name = "dynn_Yan_95BB"
dynasty_has_base_name = "dynn_Yang_694A"
dynasty_has_base_name = "dynn_Yao_59DA"
dynasty_has_base_name = "dynn_Ye_8449"
dynasty_has_base_name = "dynn_Yin_5C39"
dynasty_has_base_name = "dynn_Yu_4E8E"
dynasty_has_base_name = "dynn_Yu_4F59"
dynasty_has_base_name = "dynn_Yuan_8881"
dynasty_has_base_name = "dynn_Yue_8D8A"
dynasty_has_base_name = "dynn_Zeng_66FE"
dynasty_has_base_name = "dynn_Zhang_5F35"
dynasty_has_base_name = "dynn_Zhao_8A54"
dynasty_has_base_name = "dynn_Zhao_8D99"
dynasty_has_base_name = "dynn_Zheng_912D"
dynasty_has_base_name = "dynn_Zhong_937E"
dynasty_has_base_name = "dynn_Zhou_5468"
dynasty_has_base_name = "dynn_Zhu_6731"
dynasty_has_base_name = "dynn_Zou_9112"
### KOREAN/BALHAE ###
has_base_name = "dynn_An_694A"
has_base_name = "dynn_Baek_767D"
has_base_name = "dynn_Bak_6734"
has_base_name = "dynn_Chae_8521"
has_base_name = "dynn_Choe_5D14"
has_base_name = "dynn_Dae_5927"
has_base_name = "dynn_Du_675C_KO"
has_base_name = "dynn_Gang_59DC"
has_base_name = "dynn_Gim_91D1"
has_base_name = "dynn_Go_9AD8"
has_base_name = "dynn_Gwak_90ED"
has_base_name = "dynn_Gwon_6B0A"
has_base_name = "dynn_Ha_590F"
has_base_name = "dynn_Ha_8CC0"
has_base_name = "dynn_Han_97D3_KO"
has_base_name = "dynn_I_674E"
has_base_name = "dynn_Im_4EFB"
has_base_name = "dynn_Jang_5F35"
has_base_name = "dynn_Jeong_912D"
has_base_name = "dynn_Jo_8D99"
has_base_name = "dynn_Ju_5468"
has_base_name = "dynn_Ju_6731"
has_base_name = "dynn_Ma_99AC_KO"
has_base_name = "dynn_Mun_6587"
has_base_name = "dynn_O_5433"
has_base_name = "dynn_Pung_99AE"
has_base_name = "dynn_Ra_7F85"
has_base_name = "dynn_Rim_6797"
has_base_name = "dynn_Sa_53F2"
has_base_name = "dynn_Seo_5F90"
has_base_name = "dynn_Sin_8F9B"
has_base_name = "dynn_Song_5B8B_KO"
has_base_name = "dynn_Wang_738B_KO"
has_base_name = "dynn_Yang_6881"
has_base_name = "dynn_Yang_694A_KO"
has_base_name = "dynn_Yeo_5442"
has_base_name = "dynn_Yu_5289"
has_base_name = "dynn_Yun_5C39"
dynasty_has_base_name = "dynn_An_694A"
dynasty_has_base_name = "dynn_Baek_767D"
dynasty_has_base_name = "dynn_Bak_6734"
dynasty_has_base_name = "dynn_Chae_8521"
dynasty_has_base_name = "dynn_Choe_5D14"
dynasty_has_base_name = "dynn_Dae_5927"
dynasty_has_base_name = "dynn_Du_675C_KO"
dynasty_has_base_name = "dynn_Gang_59DC"
dynasty_has_base_name = "dynn_Gim_91D1"
dynasty_has_base_name = "dynn_Go_9AD8"
dynasty_has_base_name = "dynn_Gwak_90ED"
dynasty_has_base_name = "dynn_Gwon_6B0A"
dynasty_has_base_name = "dynn_Ha_590F"
dynasty_has_base_name = "dynn_Ha_8CC0"
dynasty_has_base_name = "dynn_Han_97D3_KO"
dynasty_has_base_name = "dynn_I_674E"
dynasty_has_base_name = "dynn_Im_4EFB"
dynasty_has_base_name = "dynn_Jang_5F35"
dynasty_has_base_name = "dynn_Jeong_912D"
dynasty_has_base_name = "dynn_Jo_8D99"
dynasty_has_base_name = "dynn_Ju_5468"
dynasty_has_base_name = "dynn_Ju_6731"
dynasty_has_base_name = "dynn_Ma_99AC_KO"
dynasty_has_base_name = "dynn_Mun_6587"
dynasty_has_base_name = "dynn_O_5433"
dynasty_has_base_name = "dynn_Pung_99AE"
dynasty_has_base_name = "dynn_Ra_7F85"
dynasty_has_base_name = "dynn_Rim_6797"
dynasty_has_base_name = "dynn_Sa_53F2"
dynasty_has_base_name = "dynn_Seo_5F90"
dynasty_has_base_name = "dynn_Sin_8F9B"
dynasty_has_base_name = "dynn_Song_5B8B_KO"
dynasty_has_base_name = "dynn_Wang_738B_KO"
dynasty_has_base_name = "dynn_Yang_6881"
dynasty_has_base_name = "dynn_Yang_694A_KO"
dynasty_has_base_name = "dynn_Yeo_5442"
dynasty_has_base_name = "dynn_Yu_5289"
dynasty_has_base_name = "dynn_Yun_5C39"
### VIET ###
has_base_name = "dynn_Bach_767D"
has_base_name = "dynn_Cao_9AD8"
has_base_name = "dynn_Chu_6731"
has_base_name = "dynn_Dao_9676"
has_base_name = "dynn_Dinh_4E01"
has_base_name = "dynn_Doan_6BB5"
has_base_name = "dynn_Dong_8463_VN"
has_base_name = "dynn_Duong_694A"
has_base_name = "dynn_Ha_4F55"
has_base_name = "dynn_Ho_80E1"
has_base_name = "dynn_Hoang_9EC3"
has_base_name = "dynn_Lam_6797"
has_base_name = "dynn_Le_9ECE"
has_base_name = "dynn_Loi_96F7"
has_base_name = "dynn_Luu_5289"
has_base_name = "dynn_Ly_674E"
has_base_name = "dynn_Mac_83AB"
has_base_name = "dynn_Ngo_5433"
has_base_name = "dynn_Phan_6F58"
has_base_name = "dynn_Pham_8303"
has_base_name = "dynn_Phung_99AE"
has_base_name = "dynn_Quach_90ED"
has_base_name = "dynn_Quyen_6B0A"
has_base_name = "dynn_Ta_8B1D"
has_base_name = "dynn_To_8607"
has_base_name = "dynn_Ton_5B6B"
has_base_name = "dynn_Tong_5B8B"
has_base_name = "dynn_Tran_9673"
has_base_name = "dynn_Trieu_8D99"
has_base_name = "dynn_Trinh_912D"
has_base_name = "dynn_Truong_5F35"
has_base_name = "dynn_Van_6587"
has_base_name = "dynn_Vu_6B66"
has_base_name = "dynn_Vuong_738B"
dynasty_has_base_name = "dynn_Bach_767D"
dynasty_has_base_name = "dynn_Cao_9AD8"
dynasty_has_base_name = "dynn_Chu_6731"
dynasty_has_base_name = "dynn_Dao_9676"
dynasty_has_base_name = "dynn_Dinh_4E01"
dynasty_has_base_name = "dynn_Doan_6BB5"
dynasty_has_base_name = "dynn_Dong_8463_VN"
dynasty_has_base_name = "dynn_Duong_694A"
dynasty_has_base_name = "dynn_Ha_4F55"
dynasty_has_base_name = "dynn_Ho_80E1"
dynasty_has_base_name = "dynn_Hoang_9EC3"
dynasty_has_base_name = "dynn_Lam_6797"
dynasty_has_base_name = "dynn_Le_9ECE"
dynasty_has_base_name = "dynn_Loi_96F7"
dynasty_has_base_name = "dynn_Luu_5289"
dynasty_has_base_name = "dynn_Ly_674E"
dynasty_has_base_name = "dynn_Mac_83AB"
dynasty_has_base_name = "dynn_Ngo_5433"
dynasty_has_base_name = "dynn_Phan_6F58"
dynasty_has_base_name = "dynn_Pham_8303"
dynasty_has_base_name = "dynn_Phung_99AE"
dynasty_has_base_name = "dynn_Quach_90ED"
dynasty_has_base_name = "dynn_Quyen_6B0A"
dynasty_has_base_name = "dynn_Ta_8B1D"
dynasty_has_base_name = "dynn_To_8607"
dynasty_has_base_name = "dynn_Ton_5B6B"
dynasty_has_base_name = "dynn_Tong_5B8B"
dynasty_has_base_name = "dynn_Tran_9673"
dynasty_has_base_name = "dynn_Trieu_8D99"
dynasty_has_base_name = "dynn_Trinh_912D"
dynasty_has_base_name = "dynn_Truong_5F35"
dynasty_has_base_name = "dynn_Van_6587"
dynasty_has_base_name = "dynn_Vu_6B66"
dynasty_has_base_name = "dynn_Vuong_738B"
}
}
}

View file

@ -33,11 +33,17 @@ can_be_councillor_gender_trigger = {
has_variable = can_be_councillor_override
AND = {
is_female = yes
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = male_dominated_council } }
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
}
AND = {
is_female = yes
$COURT_OWNER$ = {
has_personal_tenet_flag = tenet_hyperdulia_women_can_be_councillors
}
}
AND = {
is_male = yes
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = female_dominated_council } }
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
}
}
}
@ -49,7 +55,7 @@ can_be_chancellor_trigger = {
}
NAND = {
has_council_position = councillor_court_chaplain
faith = { has_doctrine_parameter = clerical_appointment_fixed }
rite = { rite_has_parameter = clerical_appointment_fixed }
}
NOR = {
has_council_position = councillor_spouse
@ -68,7 +74,7 @@ can_be_steward_trigger = {
}
NAND = {
has_council_position = councillor_court_chaplain
faith = { has_doctrine_parameter = clerical_appointment_fixed }
rite = { rite_has_parameter = clerical_appointment_fixed }
}
NOR = {
has_council_position = councillor_spouse
@ -88,7 +94,7 @@ can_be_marshal_trigger = {
is_hostage = no
NAND = {
has_council_position = councillor_court_chaplain
faith = { has_doctrine_parameter = clerical_appointment_fixed }
rite = { rite_has_parameter = clerical_appointment_fixed }
}
NOR = {
has_council_position = councillor_spouse
@ -110,7 +116,7 @@ can_be_spymaster_trigger = {
can_be_councillor_basics_trigger = yes
NAND = {
has_council_position = councillor_court_chaplain
faith = { has_doctrine_parameter = clerical_appointment_fixed }
rite = { rite_has_parameter = clerical_appointment_fixed }
}
NOR = {
has_council_position = councillor_spouse
@ -135,11 +141,11 @@ can_be_court_chaplain_trigger = {
liege = { has_diarchy_active_parameter = diarchy_is_vizierate }
}
}
$COURT_OWNER$.faith = { has_allowed_gender_for_clergy = scope:court_chaplain_check }
faith = $COURT_OWNER$.faith
$COURT_OWNER$.rite = { rite_has_allowed_gender_for_clergy = scope:court_chaplain_check }
rite = $COURT_OWNER$.rite
trigger_if = {
limit = {
faith = { has_doctrine = doctrine_theocracy_temporal }
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
}
OR = {
is_ruler = no
@ -158,6 +164,48 @@ can_be_court_chaplain_trigger = {
}
NOT = { has_trait = excommunicated }
}
trigger_if = { # Married characters are excluded if the doctrine is not there
limit = {
rite = {
NOT = { rite_has_parameter = clergy_can_marry }
}
}
is_married = no
}
}
# Shared with the chaplain position's can_fire, can_reassign and can_change_once
can_appoint_own_court_chaplain_trigger = {
OR = {
religious_head_or_challenger ?= this # The appointment authority itself has no one to request a chaplain from
rite = {
NOT = { rite_has_parameter = clerical_appointment_fixed }
}
tgp_has_access_to_ministry_trigger = yes
}
}
# Whether this character is a suitable landed Realm Priest for $COURT_OWNER$.
can_be_landed_realm_priest_trigger = {
is_vassal_of = $COURT_OWNER$ # liege resolves to self for independent rulers, so don't compare lieges here
is_physically_able_adult = yes
government_has_flag = government_is_theocracy
rite = $COURT_OWNER$.rite
can_be_court_chaplain_trigger = { COURT_OWNER = $COURT_OWNER$ }
}
court_chaplain_endorse_override_trigger = {
trigger_if = {
limit = { exists = scope:ruler }
OR = {
scope:ruler = { has_strong_hook = scope:lessee }
puppeteer ?= scope:ruler
}
}
trigger_else = {
liege = { has_strong_hook = prev }
puppeteer ?= liege
}
}
can_be_spouse_councillor_trigger = {
@ -218,11 +266,11 @@ can_be_kurultai_trigger = {
is_ruler = yes
AND = {
is_female = yes
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = male_dominated_council } }
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
}
AND = {
is_male = yes
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = female_dominated_council } }
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
}
AND = {
has_trait = shieldmaiden
@ -265,11 +313,11 @@ can_be_any_kurultai_trigger = {
is_ruler = yes
AND = {
is_female = yes
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = male_dominated_council } }
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
}
AND = {
is_male = yes
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = female_dominated_council } }
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
}
AND = {
has_trait = shieldmaiden
@ -388,10 +436,10 @@ can_be_fired_from_council_trigger = {
has_council_position = councillor_court_chaplain
liege = { tgp_has_access_to_ministry_trigger = no }
}
faith = {
rite = {
OR = {
has_doctrine = doctrine_clerical_succession_temporal_appointment
has_doctrine = doctrine_clerical_succession_spiritual_appointment
rite_has_doctrine = doctrine_clerical_succession_temporal_appointment
rite_has_doctrine = doctrine_clerical_succession_spiritual_appointment
}
}
}
@ -709,7 +757,7 @@ spouse_learning_tier_1_trigger = {
OR = {
has_character_modifier = councillor_spouse_learning_2_modifier
has_character_modifier = councillor_spouse_learning_1_modifier
has_trait = scholar
has_trait = erudite
learning >= spouse_skill_rating_1
is_performing_council_task = task_patronage
}
@ -724,7 +772,7 @@ spouse_learning_tier_2_trigger = {
}
OR = {
has_character_modifier = councillor_spouse_learning_2_modifier
has_trait = scholar
has_trait = erudite
learning >= spouse_skill_rating_3
AND = {
is_performing_council_task = task_patronage
@ -732,7 +780,7 @@ spouse_learning_tier_2_trigger = {
learning >= spouse_skill_rating_2
has_character_modifier = councillor_spouse_learning_2_modifier
has_character_modifier = councillor_spouse_learning_1_modifier
has_trait = scholar
has_trait = erudite
}
}
}
@ -746,14 +794,14 @@ spouse_learning_tier_3_trigger = {
value > 50
}
OR = {
has_trait = scholar
has_trait = erudite
learning >= spouse_skill_rating_4
AND = {
is_performing_council_task = task_patronage
OR = {
learning >= spouse_skill_rating_2
has_character_modifier = councillor_spouse_learning_2_modifier
has_trait = scholar
has_trait = erudite
}
}
}
@ -967,6 +1015,305 @@ steward_task_county_corruption_county_trigger = {
}
}
# expect scope:councillor_liege, scope:councillor
task_conversion_valid_county_trigger = {
is_landless_type_title = no
save_temporary_scope_as = county_check
# Liege rite when the county will convert into the liege's faith
trigger_if = {
limit = {
OR = {
scope:councillor_liege = {
tgp_has_access_to_ministry_trigger = yes
}
faith = scope:councillor_liege.faith
scope:councillor.faith = scope:councillor_liege.faith
}
}
custom_tooltip = {
text = task_conversion.tt.county_rite_already_matches_liege
rite != scope:councillor_liege.rite
}
}
trigger_else = {
custom_tooltip = {
text = task_conversion.tt.county_rite_already_matches_chaplain
rite != scope:councillor.rite
}
}
trigger_if = {
limit = {
scope:councillor_liege = {
is_alive = yes
has_variable = hold_court_8120_religion_block
}
}
custom_tooltip = {
text = hold_court_8120_conversion_tt
faith != scope:councillor_liege.var:hold_court_8120_religion_block
}
}
custom_description = { # Vassal Contract forbids meddling by liege
text = "is_protected_via_contract_self_or_liege"
subject = holder
# don't "protect" same faith in edge cases
trigger_if = {
limit = {
scope:county_check.holder = { is_vassal_or_below_of = scope:councillor_liege }
scope:councillor_liege.faith != scope:county_check.holder.faith
}
holder = {
NOR = {
vassal_contract_has_flag = religiously_protected
any_liege_or_above = {
is_vassal_or_below_of = scope:councillor_liege
vassal_contract_has_flag = religiously_protected
}
}
}
}
}
trigger_if = {
limit = {
var:cannot_be_converted_by_value ?= scope:councillor_liege
}
custom_tooltip = {
text = promised_to_not_convert_county
NOT = {
var:cannot_be_converted_by_value ?= scope:councillor_liege
}
}
}
trigger_if = {
limit = {
scope:councillor_liege = { is_ai = yes }
OR = {
faith = scope:councillor_liege.faith
faith = scope:councillor.faith
}
}
NOT = {
rite = { has_variable = pam_rite_grace_period }
}
}
trigger_if = {
limit = { scope:councillor_liege = { is_ai = yes } }
# Unreformed Pagans do not tend to even try conversion of non-unreformed faiths unless zealous
trigger_if = {
limit = {
scope:councillor_liege = {
faith = {
has_doctrine_parameter = unreformed
}
}
}
OR = {
scope:councillor_liege = {
has_character_flag = vassal_directive_convert_faith
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = { ai_zeal >= 50 }
scope:county_check.faith = { has_doctrine_parameter = unreformed }
scope:county_check = { # Always convert holy sites
any_county_province = {
barony = {
is_holy_site_of = scope:councillor_liege.faith
}
}
}
}
}
# Do not convert Righteous faiths, unless disturbingly zealous
trigger_if = {
limit = {
scope:councillor_liege = {
faith = {
faith_hostility_level = {
target = scope:county_check.faith
value <= faith_fully_accepted_level
}
}
}
}
OR = {
scope:councillor_liege = {
has_character_flag = vassal_directive_convert_faith
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = {
ai_zeal >= 100
ai_rationality <= -50
}
scope:county_check = { # Always convert holy sites
any_county_province = {
barony = {
is_holy_site_of = scope:councillor_liege.faith
}
}
}
}
}
# Converting Astray faiths only happens during certain circumstances
trigger_if = {
limit = {
scope:councillor_liege = {
faith = {
faith_hostility_level = {
target = scope:county_check.faith
value <= faith_astray_level
}
}
}
}
trigger_if = {
limit = {
scope:councillor_liege = {
has_tolerant_faith_or_culture_trigger = yes
}
}
OR = {
scope:councillor_liege = {
has_character_flag = vassal_directive_convert_faith
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = { ai_zeal >= 100 }
scope:county_check = { county_opinion <= -25 }
scope:county_check = { # Always convert holy sites
any_county_province = {
barony = {
is_holy_site_of = scope:councillor_liege.faith
}
}
}
}
}
trigger_else_if = {
limit = {
scope:councillor_liege = {
rite = { rite_has_doctrine = doctrine_pluralism_fundamentalist }
}
}
OR = {
scope:councillor_liege = {
has_character_flag = vassal_directive_convert_faith
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = { ai_zeal >= 0 }
scope:county_check = { county_opinion <= -10 }
scope:county_check = { # Always convert holy sites
any_county_province = {
barony = {
is_holy_site_of = scope:councillor_liege.faith
}
}
}
}
}
trigger_else = {
OR = {
scope:councillor_liege = {
has_character_flag = vassal_directive_convert_faith
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = { ai_zeal >= 25 }
scope:county_check = { county_opinion <= -15 }
scope:county_check = { # Always convert holy sites
any_county_province = {
barony = {
is_holy_site_of = scope:councillor_liege.faith
}
}
}
}
}
}
# Ash'ari in Spain tend to not convert Muwhalladi often
trigger_if = {
limit = {
scope:councillor_liege = {
faith = faith:sunni
capital_province ?= { geographical_region = world_europe_west_iberia }
scope:county_check.rite = rite:maliki
}
scope:county_check = {
title_province = { geographical_region = world_europe_west_iberia }
}
}
OR = {
scope:councillor_liege = {
has_character_flag = vassal_directive_convert_faith
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = { ai_zeal >= 50 }
scope:county_check = { county_opinion <= -20 }
scope:county_check = { # Always convert holy sites
any_county_province = {
barony = {
is_holy_site_of = scope:councillor_liege.faith
}
}
}
}
}
# If a ruler has Jizya tax, they'll only convert the same *religious family* when ai_zeal is really high, they're converting unreformed pagans, counties in a kingdom with a Holy Site, or others of the same religion
trigger_if = {
limit = {
scope:councillor_liege = {
OR = {
rite = { rite_has_tenet = tenet_tax_nonbelievers }
faith = { has_doctrine = special_doctrine_jizya }
}
}
scope:councillor_liege.faith = { faith_is_in_same_rf = { FAITH = scope:county_check.faith } }
}
OR = {
scope:councillor_liege = {
has_character_flag = vassal_directive_convert_faith
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = { ai_zeal >= 50 }
scope:county_check.faith = { has_doctrine_parameter = unreformed }
scope:councillor_liege.faith = {
any_holy_site_barony = {
kingdom = scope:county_check.kingdom
}
}
#scope:county_check.religion = scope:councillor_liege.religion # Excluded, as tax nonbelievers actually works for different faiths within the same religion
AND = { # Islamic heartlands, to help fend off encroaching faiths
scope:councillor_liege.religion = religion:islam_religion
scope:county_check.title_province = {
geographical_region = islamic_heartlands
}
}
}
}
}
# Struggle phases may sometimes restrict targets for involved characters.
trigger_if = {
# Give an exception for pre-existing conversions: these can take a while and it's not fair to lose years or decades of progress to a phase change.
limit = {
NOT = {
scope:county_check = { is_target_of_council_task = task_conversion }
}
}
NOT = {
scope:councillor_liege = {
custom_tooltip = {
text = task_conversion.tt.forbidden.due_to_struggle_phase
any_character_struggle = {
involvement = involved
is_struggle_parameter_active_secondary_county_trigger = {
PARAMETER = county_conversion_disabled_for_involved_faiths_within_region
COUNTY = scope:county_check
}
}
}
}
}
}
}
councillor_spouse_learning_2603_valid_councillor_trigger = {
is_available_ai_adult = yes
this != scope:councillor
@ -1085,25 +1432,8 @@ can_be_trained_as_knight_now_light_trigger = {
can_be_knight_now_light_trigger = yes
is_in_army = no
has_contagious_deadly_disease_trigger = no
NOT = { has_trait = incapable }
custom_description = {
text = ALREADY_IN_ACTIVITY
NOR = {
exists = involved_activity
has_variable = homage_liege_scope
has_character_flag = meditation_character_flag
has_character_flag = local_shrine_rite
has_character_flag = petition_liege_character_flag
has_character_flag = holding_court_character_flag
is_being_visited_on_tour_strict = yes
}
}
custom_description = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_activity }
}
# Variable set within the adventure inspiration events
NOT = { has_variable = gone_adventuring }
is_incapable = no
is_in_activity = yes
}
teacher_has_trait_that_student_does_not_trigger = {

View file

@ -320,11 +320,14 @@ guest_allowed_to_arrive_trigger = {
#Isn't too good for host
NAND = {
OR = {
any_claim = { tier = tier_empire }
any_close_family_member = { highest_held_title_tier = tier_empire }
any_claim = { tier >= tier_empire }
any_close_family_member = { highest_held_title_tier >= tier_empire }
}
$HOST$ = { highest_held_title_tier <= tier_county }
}
# Prevent paiza merchants from arriving as guests
NOT = { has_variable = merchant_var }
} #Note: this trigger used to contain opinion triggers but then some awful rulers could never get guests because everyone hates them
@ -558,6 +561,13 @@ can_recruit_character_to_court_trigger = {
}
}
}
custom_description = {
text = "is_paiza_merchant"
subject = scope:recruitee
scope:recruitee = {
has_variable = merchant_var
}
}
}
}
}
@ -587,7 +597,7 @@ useful_courtier_or_guest_claim_trigger = {
#The higher tier the ruler has, the longer distance is acceptable
#We prefer to measure against the title's province, but if there is none, check its holder
trigger_if = {
limit = { $RULER$ = { highest_held_title_tier = tier_empire } }
limit = { $RULER$ = { highest_held_title_tier >= tier_empire } }
trigger_if = {
limit = { exists = title_province }
title_province = { squared_distance = { target = $RULER$.capital_province value <= squared_distance_almost_massive } }
@ -791,6 +801,7 @@ pool_character_is_pruneable_trigger = {
is_ai = no
}
has_character_flag = easteregg
has_variable = merchant_var
}
trigger_if = {
limit = {
@ -837,14 +848,14 @@ is_courtier_or_knight_of_root = {
}
guest_herder_candidate_trigger = {
government_has_flag = government_is_true_herder
government_has_flag = government_is_herder
has_trait = lifestyle_seasoned_pastor
trigger_if = {
limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } }
limit = { root.rite = { rite_has_doctrine = doctrine_gender_male_dominated } }
is_male = yes
}
trigger_if = {
limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } }
limit = { root.rite = { rite_has_doctrine = doctrine_gender_female_dominated } }
is_female = yes
}
age < 45

View file

@ -599,7 +599,7 @@ cultures_share_relevant_region_trigger = {
AND = {
culture_overlaps_geographical_region = world_asia_china
scope:culture = {
culture_overlaps_geographical_region = world_asia_southeast
culture_overlaps_geographical_region = world_asia_southeast_mainland
}
}
AND = {
@ -627,7 +627,7 @@ faith_is_vegetarian_trigger = {
religion = religion:jainism_religion
# religion = religion:bon_religion
# this = faith:mazdakism
# this = faith:manichean
# this = faith:manichaean_faith
}
}
}
@ -648,3 +648,14 @@ culture_is_or_has_ancestor_trigger = {
any_parent_culture_or_above = { this = $CULTURE$ }
}
}
culture_is_historically_admin_trigger = {
OR = {
culture_is_or_has_ancestor_trigger = { CULTURE = culture:moldavian }
culture_is_or_has_ancestor_trigger = { CULTURE = culture:banatian }
culture_is_or_has_ancestor_trigger = { CULTURE = culture:translyvanian }
culture_is_or_has_ancestor_trigger = { CULTURE = culture:wallachian }
culture_is_or_has_ancestor_trigger = { CULTURE = culture:NEOW_gagauz }
culture_is_or_has_ancestor_trigger = { CULTURE = culture:NEOW_pannonisch }
}
}

View file

@ -111,23 +111,23 @@ is_diarch_able_trigger = {
regency_for_personal_reasons_trigger = no
# You'd clearly be preoccupied.
trigger_if = {
limit = { exists = involved_activity }
limit = {
exists = involved_activity
# An independent candidate has no liege whose realm could clash with the activity
exists = liege
}
save_temporary_scope_as = diarch_temp
involved_activity.activity_location.county.holder = {
NOR = {
this = scope:diarch_temp.liege
NOT = {
any_liege_or_above = { this = scope:diarch_temp.liege }
}
}
target_is_same_character_or_above = scope:diarch_temp.liege
}
}
# allow diarchy of diarchy of diarchy anyway, otherwise grand secretary get broken.
# If you're in a diarchy for any other reason, you need to chill.
NOT = { has_active_diarchy = yes }
# NOT = { has_active_diarchy = yes }
}
# And *this* needs to be added to guest activity intents to keep diarchs from showing up to the same parties as their liege.
bannable_serving_diarch_trigger = {
bannable_serving_diarch_trigger = {
liege ?= {
NOR = {
is_landless_adventurer = yes
@ -169,15 +169,15 @@ diarch_matches_liege_faith_gender_preference_trigger = {
# Female preference.
AND = {
is_female = yes
liege.faith = { has_doctrine = doctrine_gender_female_dominated }
liege.rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
# Male preference.
AND = {
is_male = yes
liege.faith = { has_doctrine = doctrine_gender_male_dominated }
liege.rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
# Equality.
liege.faith = { has_doctrine = doctrine_gender_equal }
liege.rite = { rite_has_doctrine = doctrine_gender_equal }
}
}
@ -186,7 +186,7 @@ diarch_matches_liege_faith_gender_preference_trigger = {
basic_eligible_for_diarchy_trigger = {
highest_held_title_tier >= tier_county
is_landed_or_landless_administrative = yes
is_landed_or_landless_administrative_or_theocratic = yes
has_active_diarchy = no
NOT = { government_has_flag = government_is_landless_adventurer } # Laamps don't use diarchs
}
@ -198,7 +198,7 @@ regency_for_personal_reasons_trigger = {
AND = {
is_adult = no
NOT = {
liege = { has_diarchy_parameter = diarchy_type_is_junior_emperorship }
liege ?= { has_diarchy_parameter = diarchy_type_is_junior_emperorship }
}
}
is_incapable = yes
@ -326,17 +326,17 @@ diarch_swing_scales_valid_shared_hof_trigger = {
# You must share a HoF to be able to petition one.
custom_tooltip = {
text = swing_scales_currency_interaction.tt.no_shared_hof
exists = scope:actor.faith.religious_head
exists = scope:recipient.faith.religious_head
scope:actor.faith.religious_head = scope:recipient.faith.religious_head
exists = scope:actor.religious_head_or_challenger
exists = scope:recipient.religious_head_or_challenger
scope:actor.religious_head_or_challenger = scope:recipient.religious_head_or_challenger
}
# And opinions've gotta line up.
trigger_if = {
limit = { exists = scope:actor.faith.religious_head }
limit = { exists = scope:actor.religious_head_or_challenger }
# They must like you.
custom_tooltip = {
text = swing_scales_currency_interaction.tt.hof_needs_to_like_you_more
scope:actor.faith.religious_head = {
scope:actor.religious_head_or_challenger = {
opinion = {
target = scope:actor
value >= high_positive_opinion
@ -346,7 +346,7 @@ diarch_swing_scales_valid_shared_hof_trigger = {
# And not like scope:recipient too much.
custom_tooltip = {
text = swing_scales_currency_interaction.tt.hof_needs_to_like_them_less
scope:actor.faith.religious_head = {
scope:actor.religious_head_or_challenger = {
opinion = {
target = scope:recipient
value <= medium_positive_opinion
@ -357,7 +357,7 @@ diarch_swing_scales_valid_shared_hof_trigger = {
custom_tooltip = {
text = swing_scales_currency_interaction.tt.hof_refuses_to_cross_recipient
NOT = {
scope:recipient = { has_strong_hook = scope:actor.faith.religious_head }
scope:recipient = { has_strong_hook = scope:actor.religious_head_or_challenger }
}
}
}
@ -547,7 +547,7 @@ governor_can_be_called_as_ally_in_expedition_war_basic_trigger = {
scope:recipient = {
liege ?= scope:actor.liege
# Must be a governor.
government_has_flag = government_is_special_administrative
government_has_mechanic = administrative
}
}
@ -572,6 +572,10 @@ liege_should_systematically_maim_co_ruler_trigger = {
liege_can_maim_co_ruler_without_killing_them_trigger = yes
is_diarch_of_target = scope:recipient
}
AND = {
has_diarchy_active_parameter = diarchy_type_is_co_monarchy
diarch ?= scope:recipient
}
}
}
@ -755,10 +759,7 @@ diarch_coup_attempt_is_valid_trigger = {
is_imprisoned = no
is_travelling = no
is_at_war = no
custom_tooltip = {
text = custom.not_attending_activity
NOT = { exists = involved_activity }
}
is_in_activity = no
age >= 5
}
# Support checks.
@ -873,6 +874,19 @@ diarch_wants_to_engage_with_mandates_trigger = {
}
}
is_powerful_vassal_or_house_head_trigger = {
custom_tooltip = {
text = custom_description.tt.is_power_vassal_or_family
OR = {
AND = {
house ?= { is_powerful_family = yes }
is_house_head = yes
}
is_powerful_vassal = yes
}
}
}
##################################################
# Events

View file

@ -30,6 +30,7 @@ has_unelectable_trait_trigger = {
has_unelectable_government_trigger = {
OR = {
government_has_flag = government_is_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_mercenary
government_has_flag = government_is_holy_order
@ -37,22 +38,22 @@ has_unelectable_government_trigger = {
}
this_is_martial_society_trigger = {
faith = {
rite = {
NOR = {
has_doctrine = tenet_pacifism
has_doctrine = tenet_dharmic_pacifism
rite_has_tenet = tenet_pacifism
rite_has_tenet = tenet_dharmic_pacifism
}
}
OR = {
government_has_flag = government_is_clan
government_has_flag = government_is_tribal
government_has_flag = government_is_mercenary
government_has_flag = government_is_holy_order
faith = {
government_has_flag = government_is_military_holy_order
rite = {
OR = {
has_doctrine_parameter = great_holy_wars_active
has_doctrine_parameter = great_holy_wars_active_if_reformed
has_doctrine_parameter = cheaper_holy_wars_active
rite_has_parameter = great_holy_wars_active
rite_has_parameter = great_holy_wars_active_if_reformed
rite_has_parameter = cheaper_holy_wars_active
}
}
culture = {
@ -68,29 +69,33 @@ this_is_diplomatic_society_trigger = {
government_has_flag = government_is_theocracy
}
OR = {
faith = { has_doctrine = tenet_communal_identity }
faith = { has_doctrine = tenet_alexandrian_catechism }
faith = { has_doctrine = tenet_legalism }
rite = { rite_has_tenet = tenet_communal_identity }
rite = { rite_has_tenet = tenet_alexandrian_catechism }
rite = { rite_has_tenet = tenet_legalism }
}
}
this_is_spiritual_society_trigger = {
faith = {
rite = {
NOR = {
has_doctrine = tenet_false_conversion_sanction
has_doctrine = tenet_hedonistic
has_doctrine = tenet_carnal_exaltation
has_doctrine = tenet_exaltation_of_pain
has_doctrine = tenet_pursuit_of_power
rite_has_tenet = tenet_false_conversion_sanction
rite_has_tenet = tenet_hedonistic
rite_has_tenet = tenet_carnal_exaltation
rite_has_tenet = tenet_exaltation_of_pain
rite_has_tenet = tenet_pursuit_of_power
}
}
OR = {
has_doctrine = tenet_inner_journey
has_doctrine = tenet_asceticism
has_doctrine = tenet_literalism
has_doctrine = tenet_esotericism
has_doctrine = tenet_astrology
has_doctrine = tenet_monasticism
rite = {
OR = {
rite_has_tenet = tenet_inner_journey
rite_has_tenet = tenet_asceticism
rite_has_tenet = tenet_literalism
rite_has_tenet = tenet_esotericism
rite_has_tenet = tenet_astrology
}
}
faith = { faith_has_monasticism_trigger = yes }
}
}
ere_elective_politician_titles_trigger = { #Used in Byzantine Elective to determine AI behavior.
@ -152,7 +157,11 @@ parent_for_elective_succession_trigger = { #This trigger is used to prevent gran
feudal_elective_potential_landed_candidate_trigger = {
save_temporary_scope_as = potential_candidate
# Same-government matching empties the pool when the holder has an unelectable government, so fall back to electable candidates.
OR = {
has_same_government = scope:holder
scope:holder = { has_unelectable_government_trigger = yes }
}
#Either the candidate is in the realm, or the title is independent, or the realm of the title does NOT have protected inheritance.
OR = {
any_liege_or_above = {
@ -275,12 +284,12 @@ feudal_elective_potential_landless_dynastic_candidate_trigger = {
exists = mother
exists = father
mother = {
relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = prev.father }
relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = prev.father }
}
}
#Let's make the incredibly bold assumption that if incest is completely allowed we'll just default to check the child instead of parents
scope:holder.faith = {
has_doctrine_parameter = consanguinity_unrestricted_incest
scope:holder.rite = {
rite_has_parameter = consanguinity_unrestricted_incest
}
}
}

View file

@ -16,7 +16,7 @@
#hungarian_migration_valid_pannonian_target_trigger = {
# NOR = {
# culture = culture:mogyer
# any_liege_or_above = {sre = culture:mogyer }
# any_liege_or_above = { culture = culture:mogyer }
# }
# is_ai = yes
# any_realm_county = {
@ -53,22 +53,21 @@ exclave_independence_trigger = {
# Sometimes we disable these events for specific characters.
harm_game_rule_enablement_trigger = {
# Disable entirely if harm_safe.
trigger_if = {
limit = { has_game_rule = harm_safe }
switch = {
trigger = has_game_rule
harm_safe = {
always = no
}
# harm_target_player_only
trigger_else_if = {
limit = { has_game_rule = harm_target_player_only }
harm_target_player_only = {
is_ai = no
}
# harm_target_ai_only
trigger_else_if = {
limit = { has_game_rule = harm_target_ai_only }
harm_target_ai_only = {
is_ai = yes
}
# harm_target_all
trigger_else = { always = yes }
fallback = {
always = yes
}
}
# Never just kill the player if it'd utterly game-over them.
trigger_if = {
limit = { is_ai = no }
@ -118,10 +117,24 @@ rule_title_creation_imperial_power_projection_title_creation_targeting_trigger =
rule_title_creation_imperial_power_projection_title_creation_trigger = {
trigger_if = {
limit = {
has_game_rule = title_creation_imperial_power_projection_any_power_advantage
empire_faith_gate_enabled_trigger = yes
}
can_create_empire_faith_gate_trigger = yes
empire_creation_hof_requirements_trigger = yes
trigger_if = {
limit = { is_ai = yes }
ai_only_check_stronger_same_faith_empire_exists_trigger = no
}
}
trigger_if = {
limit = {
rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes
highest_held_title_tier <= tier_kingdom
}
switch = {
trigger = has_game_rule
title_creation_imperial_power_projection_any_power_advantage = {
custom_tooltip = {
text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.any_power_advantage
any_neighboring_top_liege_realm_owner = {
@ -135,16 +148,10 @@ rule_title_creation_imperial_power_projection_title_creation_trigger = {
root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength
}
}
trigger_else = { always = yes }
}
}
}
trigger_else_if = {
limit = {
has_game_rule = title_creation_imperial_power_projection_hard_power_only
rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes
highest_held_title_tier <= tier_kingdom
}
title_creation_imperial_power_projection_hard_power_only = {
custom_tooltip = {
text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.hard_power_only
any_neighboring_top_liege_realm_owner = {
@ -154,16 +161,10 @@ rule_title_creation_imperial_power_projection_title_creation_trigger = {
save_temporary_scope_as = char_temp
root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength
}
trigger_else = { always = yes }
}
}
}
trigger_else_if = {
limit = {
has_game_rule = title_creation_imperial_power_projection_soft_power_only
rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes
highest_held_title_tier <= tier_kingdom
}
title_creation_imperial_power_projection_soft_power_only = {
custom_tooltip = {
text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.soft_power_only
any_neighboring_top_liege_realm_owner = {
@ -176,16 +177,10 @@ rule_title_creation_imperial_power_projection_title_creation_trigger = {
root = { has_strong_hook = scope:char_temp }
}
}
trigger_else = { always = yes }
}
}
}
trigger_else_if = {
limit = {
has_game_rule = title_creation_imperial_power_projection_hard_power_only_strict
rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes
highest_held_title_tier <= tier_kingdom
}
title_creation_imperial_power_projection_hard_power_only_strict = {
custom_tooltip = {
text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.hard_power_only_strict.neighbours
any_neighboring_top_liege_realm_owner = {
@ -195,7 +190,6 @@ rule_title_creation_imperial_power_projection_title_creation_trigger = {
save_temporary_scope_as = char_temp
root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength
}
trigger_else = { always = yes }
}
}
custom_tooltip = {
@ -214,12 +208,7 @@ rule_title_creation_imperial_power_projection_title_creation_trigger = {
}
}
}
trigger_else_if = {
limit = {
has_game_rule = title_creation_imperial_power_projection_any_power_strict
rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes
highest_held_title_tier <= tier_kingdom
}
title_creation_imperial_power_projection_any_power_strict = {
custom_tooltip = {
text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.any_power_strict.neighbours
any_neighboring_top_liege_realm_owner = {
@ -256,7 +245,9 @@ rule_title_creation_imperial_power_projection_title_creation_trigger = {
}
}
}
trigger_else = { always = yes }
fallback = { always = yes }
}
}
}
game_rule_rig_norman_conquest_for_hereward_trigger = {

View file

@ -65,7 +65,6 @@ should_use_temple_character_background_trigger = {
}
trigger_else = {
OR = {
has_trait = order_member
has_council_position = councillor_court_chaplain
government_has_flag = government_is_theocracy
is_clergy = yes
@ -81,11 +80,11 @@ has_mandala_culture_trigger = {
}
has_mandala_faith_trigger = {
custom_description = {
text = "hof_interaction_unreformed_faith"
custom_tooltip = {
text = HOF_INTERACTION_UNREFORMED_FAITH
NOT = {
faith = { has_doctrine_parameter = unreformed }
}
}
faith = { has_doctrine = doctrine_polytheist }
rite = { rite_has_doctrine = doctrine_polytheist }
}

View file

@ -658,7 +658,6 @@ steppe_building_gfx_use_indian_trigger = {
OR = {
#western steppe should only be mena if you are clan
geographical_region = world_india
geographical_region = world_burma
geographical_region = world_tibet
geographical_region = world_asia_southeast
}
@ -753,7 +752,7 @@ high_tier_throne_room_spouse_trigger = {
byzantine_governor_trigger = {
is_landed = yes
government_allows = administrative
government_has_mechanic = administrative
liege ?= {
OR = {
# is_roman_emperor_primary_title_trigger = yes
@ -772,11 +771,11 @@ byzantine_governor_trigger = {
byzantine_governor_close_family_trigger = {
location = prev.location
is_landed = yes
government_has_flag = government_is_special_administrative
government_has_mechanic = administrative
exists = top_liege
top_liege = {
OR = {
# is_roman_emperor_primary_title_trigger = yes
is_roman_emperor_primary_title_trigger = yes
AND = {
culture = {
OR = {
@ -791,7 +790,7 @@ byzantine_governor_close_family_trigger = {
east_asian_governor_trigger = {
is_landed = yes
government_allows = administrative
government_has_mechanic = administrative
top_liege ?= {
OR = {
primary_title = title:h_china
@ -807,7 +806,7 @@ east_asian_governor_trigger = {
east_asian_governor_close_family_trigger = {
location = prev.location
is_landed = yes
government_has_flag = government_is_special_administrative
government_has_mechanic = administrative
top_liege ?= {
OR = {
primary_title = title:h_china

View file

@ -69,7 +69,7 @@ has_extra_criminal_reason_against_trigger = {
}
title_revocation_standard_valid_showing_failures_only_trigger = {
scope:actor = {
scope:puppet_or_actor = {
NOR = {
is_at_war_with = scope:recipient
has_truce = scope:recipient
@ -86,7 +86,7 @@ title_revocation_standard_valid_showing_failures_only_trigger = {
}
}
scope:recipient = {
NOT = { has_strong_hook = scope:actor }
NOT = { has_strong_hook = scope:puppet_or_actor }
}
}
@ -106,6 +106,25 @@ title_revocation_standard_can_pick_title_trigger = {
text = "character_interactions_not_rel_head_title"
is_head_of_faith = no
}
custom_description = {
text = "character_interactions_not_clerical_region_title"
has_clerical_region = no
}
custom_description = {
text = "character_interactions_not_clerical_elector_title"
pam_title_is_clerical_elector_trigger = no
}
custom_description = {
text = "character_interactions_not_antipope_office_title"
pam_title_is_antipope_office_trigger = no
}
custom_tooltip = {
text = special_title_cannot_be_revoked.tt
NOR = {
this = title:k_papal_state
this = title:k_orthodox
}
}
}
diarch_revocation_has_claim_check_trigger = {
@ -121,11 +140,11 @@ diarch_revocation_has_claim_check_trigger = {
}
title_revocation_is_admin_governor_trigger = {
government_allows = administrative
government_has_mechanic = administrative
top_liege = this
save_temporary_scope_as = liege_temp
$VASSAL$ = {
is_landed_or_landless_administrative = yes
government_has_mechanic = administrative
target_is_liege_or_above = scope:liege_temp
}
}
@ -139,20 +158,32 @@ title_revocation_is_tyrannical_trigger = {
has_claim_on = scope:landed_title
}
title_revocation_is_admin_governor_trigger = { VASSAL = $VASSAL$ }
faith = {
AND = {
rite = { rite_has_parameter = tenet_legalism_sinful_revocation }
$VASSAL$ = {
NOT = { vassal_contract_has_flag = religiously_protected}
num_sinful_traits = {
value > 0
target = prev.rite
}
}
}
AND = {
$VASSAL$ = {
NOT = { vassal_contract_has_flag = religiously_protected }
}
OR = {
AND = {
has_doctrine_parameter = pluralism_righteous_revocation_tyranny_reduced
rite = { rite_has_parameter = pluralism_righteous_revocation_tyranny_reduced }
faith = {
faith_hostility_level = {
target = $VASSAL$.faith
value = faith_evil_level
}
}
}
AND = {
has_doctrine_parameter = pluralism_fundamentalist_revocation_tyranny_minimal
rite = { rite_has_parameter = pluralism_fundamentalist_revocation_tyranny_minimal }
faith = {
faith_hostility_level = {
target = $VASSAL$.faith
value >= faith_hostile_level
@ -161,29 +192,42 @@ title_revocation_is_tyrannical_trigger = {
}
}
}
}
}
# The liege is root, and $VASSAL$ is the target
# Sets liege_temp and rebel_temp for revoke_refusal_war_rising_strength_value
revoke_refusal_war_would_be_massive_trigger = {
NOT = { has_revoke_title_reason = $VASSAL$ }
NOT = { government_has_flag = no_powerful_vassals }
save_temporary_scope_as = liege_temp
$VASSAL$ = { save_temporary_scope_as = rebel_temp }
current_military_strength < revoke_refusal_war_rising_strength_value
}
vassal_revocation_is_tyrannical_trigger = {
NOR = {
exists = scope:administrative_revocation
AND = {
government_allows = administrative
government_has_mechanic = administrative
$VASSAL$ = {
government_allows = administrative
government_has_mechanic = administrative
}
}
has_revoke_title_reason = $VASSAL$
faith = {
OR = {
AND = {
has_doctrine_parameter = pluralism_righteous_revocation_tyranny_reduced
rite = { rite_has_parameter = pluralism_righteous_revocation_tyranny_reduced }
faith = {
faith_hostility_level = {
target = $VASSAL$.faith
value = faith_evil_level
}
}
}
AND = {
has_doctrine_parameter = pluralism_fundamentalist_revocation_tyranny_minimal
rite = { rite_has_parameter = pluralism_fundamentalist_revocation_tyranny_minimal }
faith = {
faith_hostility_level = {
target = $VASSAL$.faith
value >= faith_hostile_level
@ -196,10 +240,10 @@ vassal_revocation_is_tyrannical_trigger = {
vassal_retraction_standard_valid_showing_failures_only_trigger = {
NOT = {
scope:actor = { is_at_war_with = scope:recipient }
scope:puppet_or_actor = { is_at_war_with = scope:recipient }
}
scope:recipient = {
NOT = { has_strong_hook = scope:actor }
NOT = { has_strong_hook = scope:puppet_or_actor }
}
}
@ -271,7 +315,7 @@ can_any_traveling_family_members_travel_trigger = {
}
imprison_neutral_is_valid_showing_failures_only_triggers_trigger = {
scope:actor.liege = {
scope:puppet_or_actor.liege = {
trigger_if = {
limit = { has_realm_law_flag = imprisonment_toggle_enable }
# TIT-43801
@ -279,7 +323,7 @@ imprison_neutral_is_valid_showing_failures_only_triggers_trigger = {
NOT = { has_realm_law = tribal_authority_0 }
}
}
scope:actor = { is_imprisoned = no }
scope:puppet_or_actor = { is_imprisoned = no }
custom_description = {
text = cannot_imprison_almohad_leader
subject = scope:recipient

View file

@ -29,7 +29,7 @@ maa_regiments_valid_to_refill_trigger = {
scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } }
is_unit_type = elephant_cavalry
}
scope:actor.domicile ?= { has_domicile_parameter = camp_reinforce_elephant_regiments_anywhere }
regiment_owner.domicile ?= { has_domicile_parameter = camp_reinforce_elephant_regiments_anywhere }
}
}
@ -54,7 +54,7 @@ any_laamp_portion_at_sea_trigger = {
}
}
}
#
#character_is_valid_for_harrying_of_the_north_trigger = {
# title:k_england.holder ?= { owns_story_of_type = story_cycle_harrying_of_the_north }
# trigger_if = {
@ -115,7 +115,7 @@ any_laamp_portion_at_sea_trigger = {
# limit = { scope:recipient = character:90028 }
# custom_tooltip = {
# text = owns_a_story_trigger
# scope:actor = {
# scope:puppet_or_actor = {
# NOR = {
# owns_story_of_type = story_cycle_harrying_of_the_north
# any_liege_or_above = { owns_story_of_type = story_cycle_harrying_of_the_north }
@ -124,7 +124,7 @@ any_laamp_portion_at_sea_trigger = {
# }
# }
#}
#
#disable_interaction_for_hasan_trigger = {
# trigger_if = {
# limit = { scope:recipient = character:41702 }
@ -160,7 +160,7 @@ is_valid_for_laampdom = {
limit = {
NAND = {
is_ai = no
government_allows = administrative
government_has_mechanic = administrative
top_liege = this
is_landed = no
}
@ -294,7 +294,7 @@ ep3_negotiate_settlement_valid_county_trigger = {
holder = scope:actor
trigger_if = {
limit = {
scope:actor = { government_has_flag = government_is_special_administrative }
scope:actor = { government_has_mechanic = administrative }
}
holder = { target_is_liege_or_above = scope:actor }
}
@ -412,7 +412,7 @@ valid_laamp_basic_trigger = {
# Plus some standard stuff.
is_alive = yes
is_adult = yes
NOT = { government_has_flag = government_is_true_herder }
NOT = { government_has_flag = government_is_herder }
}
$EMPLOYER$ = { is_incapable = no }
# Laamps shouldn't offer contracts in their local area, ever.
@ -482,11 +482,18 @@ employer_has_treasury_to_offer_job_trigger = {
limit = { is_ai = no }
scope:employer = {
OR = {
treasury_or_gold >= 50
treasury_or_gold >= {
value = 50
multiply = task_contract_employer_tier_gold_multiplier_value
}
trigger_if = {
limit = { government_allows = barter }
# no define:NBarter|BARTER_GOODS_TO_LOOT_MULT here. wanua rulers start as lower than 100 barter goods
barter_goods >= 50
barter_goods >= {
value = 50
multiply = task_contract_employer_tier_gold_multiplier_value
# wanua rulers start with lower than 100 barter goods
# divide = define:NBarter|BARTER_GOODS_TO_LOOT_MULT
}
}
}
}
@ -507,7 +514,7 @@ valid_laamp_sensible_start_trigger = {
limit = {
any_character_task_contract = {
count >= 1
task_contract_employer = scope:employer
task_contract_employer ?= scope:employer
}
}
always = no
@ -682,7 +689,8 @@ council_task_contract_valid_employer_trigger = {
# Travel Triggers
is_laamp_exiled_from_province_trigger = {
$PROVINCE$.county.holder = {
# Sea provinces have no county and a county can sit unheld; nobody there can have exiled us
$PROVINCE$.county.holder ?= {
is_laamp_exiled_from_holder_or_liege_trigger = { LAAMP = $LAAMP$ }
}
}

View file

@ -61,12 +61,136 @@ has_partition_succession_realm_law_trigger = {
}
}
can_increase_government_authority = {
realm_law_authority_level_max = no
realm_law_use_government_authority = yes
trigger_if = {
limit = {
has_realm_law_flag = has_requirement_for_authority_level
}
trigger_if = {
limit = {
realm_law_use_church_authority = yes
}
switch = {
trigger = has_realm_law_flag
authority_level_2 = { can_pass_law_church_authority_3_trigger = yes }
authority_level_1 = { can_pass_law_church_authority_2_trigger = yes }
authority_level_0 = { can_pass_law_church_authority_1_trigger = yes }
fallback = { always = no }
}
}
trigger_else = {
switch = {
trigger = has_realm_law_flag
authority_level_2 = { can_pass_law_ca3_trigger = yes }
authority_level_1 = { can_pass_law_ca2_trigger = yes }
authority_level_0 = { can_pass_law_ca1_trigger = yes }
fallback = { always = no }
}
}
}
}
realm_law_use_government_authority = {
custom_description = {
text = use_government_authority
has_realm_law_flag = authority_level_0
}
}
realm_law_authority_level_0 = {
has_realm_law_flag = authority_level_0
NOT = { has_realm_law_flag = authority_level_1 }
}
realm_law_authority_level_1 = {
has_realm_law_flag = authority_level_1
NOT = { has_realm_law_flag = authority_level_2 }
}
realm_law_authority_level_2 = {
has_realm_law_flag = authority_level_2
NOT = { has_realm_law_flag = authority_level_3 }
}
realm_law_authority_level_3 = {
has_realm_law_flag = authority_level_3
NOT = { has_realm_law_flag = authority_level_4 }
}
realm_law_authority_level_max = {
has_realm_law_flag = max_authority_level
}
should_synchronize_liege_law = {
top_liege != this
OR = {
trigger_if = {
limit = { realm_law_use_japanese_bureaucracy = yes }
liege = { realm_law_use_japanese_bureaucracy = yes }
}
trigger_else = {
government_has_mechanic = administrative
top_liege = {
government_has_mechanic = administrative
}
}
}
use_same_authority_with_liege = yes
}
use_same_authority_with_liege = {
OR = {
government_type = liege.government_type
trigger_if = {
limit = { realm_law_use_crown_authority = yes }
liege = { realm_law_use_crown_authority = yes }
}
trigger_else_if = {
limit = { realm_law_use_tribal_authority = yes }
liege = { realm_law_use_tribal_authority = yes }
}
trigger_else_if = {
limit = { realm_law_use_imperial_bureaucracy = yes }
liege = { realm_law_use_imperial_bureaucracy = yes }
}
trigger_else_if = {
limit = { realm_law_use_nomadic_authority = yes }
liege = { realm_law_use_nomadic_authority = yes }
}
trigger_else_if = {
limit = { realm_law_use_celestial_bureaucracy = yes }
liege = { realm_law_use_celestial_bureaucracy = yes }
}
trigger_else_if = {
limit = { realm_law_use_meritocratic_bureaucracy = yes }
liege = { realm_law_use_meritocratic_bureaucracy = yes }
}
trigger_else_if = {
limit = { realm_law_use_japanese_bureaucracy = yes }
liege = { realm_law_use_japanese_bureaucracy = yes }
}
trigger_else_if = {
limit = { realm_law_use_church_authority = yes }
liege = { realm_law_use_church_authority = yes }
}
trigger_else = {
always = no
}
}
}
realm_law_use_crown_authority = {
government_has_flag = government_uses_crown_authority
}
realm_law_use_church_authority = {
government_has_flag = government_uses_church_authority
}
realm_law_use_tribal_authority = {
government_has_flag = government_is_tribal
government_has_flag = government_uses_tribal_authority
}
realm_law_use_camp_purpose = {
@ -74,13 +198,7 @@ realm_law_use_camp_purpose = {
}
realm_law_use_imperial_bureaucracy = {
government_allows = administrative
NOR = {
government_has_flag = government_is_celestial
government_has_flag = government_is_meritocratic
government_has_flag = government_is_steppe_admin
government_has_flag = government_is_japan_administrative
}
government_has_flag = government_uses_imperial_bureaucracy
}
realm_law_use_nomadic_authority = {
@ -88,7 +206,7 @@ realm_law_use_nomadic_authority = {
}
realm_law_use_celestial_bureaucracy = {
government_has_flag = government_is_celestial
government_has_flag = government_uses_celestial_bureaucracy
}
realm_law_is_mandala = {
@ -96,10 +214,7 @@ realm_law_is_mandala = {
}
realm_law_use_meritocratic_bureaucracy = {
OR = {
government_has_flag = government_is_meritocratic
government_has_flag = government_is_steppe_admin
}
government_has_flag = government_uses_meritocratic_bureaucracy
}
realm_uses_treasury_laws_trigger = {
@ -107,7 +222,7 @@ realm_uses_treasury_laws_trigger = {
}
realm_law_use_japanese_bureaucracy = {
government_is_japanese_trigger = yes
government_has_flag = government_uses_japanese_bureaucracy
}
can_have_confederate_partition_succession_law_trigger = {
@ -189,7 +304,7 @@ can_keep_high_partition_succession_law_trigger = {
# has_title = title:e_omnod_dalai_khanate
}
}
NOT = { government_has_flag = government_is_clan}
NOT = { government_has_flag = government_is_clan }
}
can_have_high_partition_succession_law_trigger = {
@ -264,7 +379,7 @@ can_have_single_heir_succession_law_trigger = {
OR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
government_allows = administrative
government_has_mechanic = administrative
government_has_flag = government_is_japan_feudal
tgp_has_ceremonial_liege_title_trigger = yes
}
@ -284,7 +399,7 @@ can_have_single_heir_succession_law_trigger = {
}
# Admin rules
trigger_if = {
limit = { government_allows = administrative }
limit = { government_has_mechanic = administrative }
trigger_if = {
limit = { tgp_realm_has_ceremonial_liege_trigger = yes }
tgp_has_ceremonial_liege_title_trigger = yes
@ -320,7 +435,7 @@ can_have_single_heir_youngest_succession_law_trigger = {
OR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
government_allows = administrative
government_has_mechanic = administrative
government_has_flag = government_is_japan_feudal
}
}
@ -337,7 +452,7 @@ can_have_single_heir_youngest_succession_law_trigger = {
}
trigger_if = {
limit = {
government_allows = administrative
government_has_mechanic = administrative
}
is_independent_ruler = yes
}
@ -385,7 +500,7 @@ can_have_single_heir_dynasty_house_trigger = {
government_has_flag = government_is_japan_feudal
}
}
NOT = { government_allows = administrative }
NOT = { government_has_mechanic = administrative }
}
can_have_bishop_theocratic_succession_law_trigger = {
@ -395,6 +510,25 @@ can_have_bishop_theocratic_succession_law_trigger = {
}
}
should_use_theocratic_elective_succession_law_trigger = {
faith = {
has_doctrine_parameter = has_clerical_electors
trigger_if = {
limit = { exists = religious_head_title }
religious_head ?= prev
}
trigger_else = {
prev = { has_title = title:k_papal_state }
}
}
}
should_use_clerical_appointment_law_trigger = {
government_has_mechanic = theocracy
highest_held_title_tier >= tier_county
should_use_theocratic_elective_succession_law_trigger = no
}
is_temporal_head_of_faith_trigger = {
is_head_of_faith = yes
holder.faith = { has_doctrine = doctrine_temporal_head }
@ -404,13 +538,43 @@ can_title_have_law_general_trigger = {
tier >= tier_duchy
is_temporal_head_of_faith_trigger = no
}
can_title_have_law_county_trigger = {
tier >= tier_county
is_temporal_head_of_faith_trigger = no
}
can_have_holy_order_succession_law_trigger = {
government_has_flag = government_is_holy_order
government_has_flag = government_is_military_holy_order
NOT = {
primary_title ?= {
has_variable = order_heritage
}
}
}
can_have_cultural_holy_order_succession_law_trigger = {
government_has_flag = government_is_military_holy_order
primary_title ?= {
has_variable = order_heritage
}
}
can_have_monastic_holy_order_succession_law_trigger = {
government_has_flag = government_is_monastic_holy_order
NOR = {
primary_title ?= {
has_variable = female_order
}
primary_title ?= {
has_variable = male_order
}
}
}
can_have_female_monastic_holy_order_succession_law_trigger = {
government_has_flag = government_is_monastic_holy_order
primary_title ?= {
has_variable = female_order
}
}
can_have_male_monastic_holy_order_succession_law_trigger = {
government_has_flag = government_is_monastic_holy_order
primary_title ?= {
has_variable = male_order
}
}
can_have_mercenary_succession_law_trigger = {
@ -422,7 +586,7 @@ can_have_city_succession_law_trigger = {
}
can_have_herder_succession_law_trigger = {
government_has_flag = government_is_true_herder
government_has_flag = government_is_herder
}
title_can_reduce_partition_law_trigger = {
@ -454,15 +618,28 @@ can_pass_law_ca3_trigger = {
culture = { has_innovation = innovation_royal_prerogative }
}
can_pass_law_church_authority_1_trigger = {
can_pass_law_ca1_trigger = yes
piety_level >= low_piety_level
}
can_pass_law_church_authority_2_trigger = {
culture = { has_innovation = innovation_chronicle_writing }
piety_level >= medium_piety_level
}
can_pass_law_church_authority_3_trigger = {
culture = { has_innovation = innovation_divine_right }
piety_level >= high_piety_level
}
can_have_acclamation_succession_law_trigger = {
has_ep3_dlc_trigger = yes
top_liege = this
government_allows = administrative
government_has_mechanic = administrative
NOR = {
government_has_flag = government_is_celestial
government_has_flag = government_has_merit
government_has_flag = government_is_japan_administrative
government_has_flag = government_is_meritocratic
government_has_flag = government_is_steppe_admin
}
}
@ -482,11 +659,10 @@ can_change_acclamation_succession_law_trigger = {
can_have_appointment_succession_law_trigger = {
has_ep3_dlc_trigger = yes
government_allows = administrative
government_has_mechanic = administrative
NOR = {
government_has_flag = government_is_celestial
government_has_flag = government_has_merit
government_has_flag = government_is_japan_administrative
government_has_flag = government_is_meritocratic
}
is_independent_ruler = no
}
@ -504,3 +680,35 @@ can_keep_appointment_succession_law_trigger = {
can_change_appointment_succession_law_trigger = {
has_ep3_dlc_trigger = yes
}
# Scope's $AUTHORITY$ authority law level is at least $CHARACTER$'s
has_higher_or_equal_authority_trigger = {
OR = {
has_realm_law = $AUTHORITY$_authority_3
AND = {
has_realm_law = $AUTHORITY$_authority_2
$CHARACTER$ = {
OR = {
has_realm_law = $AUTHORITY$_authority_0
has_realm_law = $AUTHORITY$_authority_1
has_realm_law = $AUTHORITY$_authority_2
}
}
}
AND = {
has_realm_law = $AUTHORITY$_authority_1
$CHARACTER$ = {
OR = {
has_realm_law = $AUTHORITY$_authority_0
has_realm_law = $AUTHORITY$_authority_1
}
}
}
AND = {
has_realm_law = $AUTHORITY$_authority_0
$CHARACTER$ = {
has_realm_law = $AUTHORITY$_authority_0
}
}
}
}

View file

@ -31,9 +31,16 @@ can_change_succession_laws_realm_flag_trigger = {
has_realm_law_flag = can_change_succession_laws
}
}
trigger_else_if = {
limit = { government_has_flag = government_is_japan_feudal }
custom_description = {
text = has_crown_law_allowing_succession_law_change_japanese_feudal
has_realm_law_flag = can_change_succession_laws
}
}
trigger_else = {
custom_description = {
text = "has_crown_law_allowing_succession_law_change"
text = "has_crown_law_allowing_succession_law_change_feudal"
has_realm_law_flag = can_change_succession_laws
}
}
@ -96,7 +103,7 @@ can_change_to_equal_succession_law_trigger = {
}
OR = {
culture = { has_cultural_parameter = gender_equal_inheritance }
faith = { has_doctrine = doctrine_gender_equal }
rite = { rite_has_doctrine = doctrine_gender_equal }
}
}
trigger_else = {
@ -143,14 +150,7 @@ can_change_partition_succession_law_trigger = {
can_designate_heir_trigger = {
trigger_if = {
# Admin always has access to this
limit = { government_allows = administrative }
custom_description = {
text = "has_admin_allowing_designate_heir"
any_held_title = {
is_noble_family_title = yes
}
}
limit = { government_has_mechanic = administrative }
}
trigger_else_if = {
# Feudal and clan can get this by increasing crown authority

View file

@ -170,7 +170,7 @@ launch_hungarian_migration_misplaced_count_suitable_liege_trigger = {
#favour_the_countryside_basques_rationale_virtuous_basque_pagan_traits_trigger = {
# num_virtuous_traits = {
# value >= favour_the_countryside_basques_decision_basque_pagan_virtues_tally_value
# target = faith:basque_pagan
# target = faith:basque_pagan.main_rite
# }
#}
#
@ -192,9 +192,9 @@ launch_hungarian_migration_misplaced_count_suitable_liege_trigger = {
# }
#}
#
##################################################
# Rebuke Roman Revanchism Triggers
###################################################
## Rebuke Roman Revanchism Triggers
#
#rebuke_roman_revanchism_counties_controlled_trigger = {
# holder = {
# OR = {
@ -244,3 +244,23 @@ launch_hungarian_migration_misplaced_count_suitable_liege_trigger = {
# }
#}
#
#hre_valid_prince_elector_trigger = {
# is_landed = yes
# faith = root.faith
# OR = { # must be de-jure vassal of empire
# AND = {
# capital_province.kingdom.holder ?= root
# capital_province.empire != title:e_italy
# }
# capital_province.empire.holder ?= root
# }
# NOT = { # not already selected
# any_held_title = {
# is_target_in_global_variable_list = {
# name = hre_elector_list
# target = this
# }
# }
# }
#}
#

View file

@ -31,18 +31,14 @@ can_marry_common_trigger = {
}
is_leading_faction_type = peasant_faction
is_leading_faction_type = populist_faction
government_has_flag = government_is_true_herder
government_has_flag = government_is_herder
}
}
# Clergy cannot marry if their faith disallows it
trigger_if = {
limit = {
is_clergy = yes
}
faith = {
has_doctrine_parameter = clergy_can_marry
}
limit = { is_clergy = yes }
marriage_clergy_can_marry_trigger = yes
}
trigger_if = {
limit = {
@ -62,11 +58,8 @@ can_marry_trigger = {
allowed_to_marry_same_sex_trigger = {
has_game_rule = accepted_same_sex_marriage
faith = {
NOR = {
has_doctrine_parameter = homosexuality_shunned
has_doctrine_parameter = homosexuality_illegal
}
rite = {
rite_has_parameter = homosexuality_accepted
}
}
@ -106,8 +99,8 @@ could_marry_character_trigger = {
#Faith hostility & consanguinity
trigger_if = {
limit = { NOT = { is_courtier_of = $CHARACTER$ } } #If you're someone's courtier, your liege can marry you anyway
faith = {
faith_allows_marriage_consanguinity_trigger = {
rite = {
rite_allows_marriage_consanguinity_trigger = {
CHARACTER_1 = scope:can_marry_check
CHARACTER_2 = $CHARACTER$
}
@ -119,8 +112,8 @@ could_marry_character_trigger = {
}
trigger_if = {
limit = { $CHARACTER$ = { NOT = { is_courtier_of = scope:can_marry_check } } } #If you're someone's courtier, your liege can marry you anyway
$CHARACTER$.faith = {
faith_allows_marriage_consanguinity_trigger = {
$CHARACTER$.rite = {
rite_allows_marriage_consanguinity_trigger = {
CHARACTER_1 = scope:can_marry_check
CHARACTER_2 = $CHARACTER$
}
@ -151,8 +144,8 @@ can_take_as_concubine_character_trigger = {
#Faith hostility & consanguinity
trigger_if = {
limit = { NOT = { is_courtier_of = $CHARACTER$ } } #If you're someone's courtier, your liege can marry you anyway
faith = {
faith_allows_marriage_consanguinity_trigger = {
rite = {
rite_allows_marriage_consanguinity_trigger = {
CHARACTER_1 = scope:can_marry_check
CHARACTER_2 = $CHARACTER$
}
@ -164,8 +157,8 @@ can_take_as_concubine_character_trigger = {
}
trigger_if = {
limit = { $CHARACTER$ = { NOT = { is_courtier_of = scope:can_marry_check } } } #If you're someone's courtier, your liege can marry you anyway
$CHARACTER$.faith = {
faith_allows_marriage_consanguinity_trigger = {
$CHARACTER$.rite = {
rite_allows_marriage_consanguinity_trigger = {
CHARACTER_1 = scope:can_marry_check
CHARACTER_2 = $CHARACTER$
}
@ -359,46 +352,47 @@ marriage_interaction_can_be_picked_trigger = {
}
}
marriage_clergy_can_marry_trigger = {
#Monks can never marry
NOR = {
has_trait = devoted
has_trait = order_member
}
OR = {
rite = { rite_has_parameter = clergy_can_marry }
# AND = {
# is_ruler = yes
# top_participant_group:the_christian_church ?= { has_participant_group_parameter = clergy_can_marry }
# trigger_if = {
# limit = { is_ai = yes }
# saeculum_obscurum_clergy_would_marry_trigger = yes
# }
# }
}
}
marriage_interaction_valid_target_trigger = {
# Clergy cannot marry if their faith doesn't allow it
trigger_if = {
limit = {
scope:secondary_actor = {
is_clergy = yes
NOT = {
faith = {
has_doctrine_parameter = clergy_can_marry
}
}
}
scope:secondary_actor = { is_clergy = yes }
}
custom_description = {
text = character_is_clergy_and_cannot_marry
subject = scope:secondary_actor
object = scope:secondary_recipient
scope:secondary_actor = {
is_clergy = no
}
scope:secondary_actor = { marriage_clergy_can_marry_trigger = yes }
}
}
trigger_else_if = {
limit = {
scope:secondary_recipient = {
is_clergy = yes
NOT = {
faith = {
has_doctrine_parameter = clergy_can_marry
}
}
}
scope:secondary_recipient = { is_clergy = yes }
}
custom_description = {
text = character_is_clergy_and_cannot_marry
subject = scope:secondary_recipient
object = scope:secondary_actor
scope:secondary_recipient = {
is_clergy = no
}
scope:secondary_recipient = { marriage_clergy_can_marry_trigger = yes }
}
}
#Marriage
@ -468,9 +462,9 @@ marriage_interaction_auto_accept_trigger = {
#Strong hook = 100% accept (unless marrying 1st or 2nd player heir or the ruler and asking for matrilineal/partrilineal resulting in no dynasty children for them)
custom_description = {
text = "spending_hook"
subject = scope:actor
subject = scope:puppet_or_actor
object = scope:recipient
scope:actor = { has_strong_hook = scope:recipient }
scope:puppet_or_actor = { has_strong_hook = scope:recipient }
scope:recipient = {
NAND = {
#Secondary recipient can't be recipient or 1st/2nd heir...
@ -502,16 +496,16 @@ marriage_interaction_auto_accept_trigger = {
}
make_concubine_is_shown_trigger = {
scope:actor = {
scope:puppet_or_actor = {
allowed_concubines = yes
is_adult = yes
}
scope:recipient = {
OR = {
is_courtier_of = scope:actor
is_imprisoned_by = scope:actor
is_courtier_of = scope:puppet_or_actor
is_imprisoned_by = scope:puppet_or_actor
}
can_become_concubine_of_character_valid_trigger = { CHARACTER = scope:actor }
can_become_concubine_of_character_valid_trigger = { CHARACTER = scope:puppet_or_actor }
}
}
@ -519,7 +513,7 @@ make_concubine_is_valid_trigger = {
custom_description = {
text = take_concubine_allowed_more
object = scope:recipient
scope:actor = {
scope:puppet_or_actor = {
allowed_more_concubines = yes
}
}
@ -529,13 +523,13 @@ make_concubine_is_valid_trigger = {
NOT = {
has_opinion_modifier = {
modifier = divorced_me_opinion
target = scope:actor
target = scope:puppet_or_actor
}
}
}
OR = {
AND = {
is_imprisoned_by = scope:actor
is_imprisoned_by = scope:puppet_or_actor
is_married = yes
}
is_married = no
@ -648,25 +642,25 @@ cost_prestige_for_break_betrothal_trigger = {
OR = {
scope:rejected_betrothed = {
OR = {
is_close_family_of = scope:actor
is_close_family_of = scope:puppet_or_actor
AND = {
exists = dynasty
exists = scope:actor.dynasty
dynasty = scope:actor.dynasty
exists = scope:puppet_or_actor.dynasty
dynasty = scope:puppet_or_actor.dynasty
}
}
}
scope:rejecting_betrothed = {
OR = {
is_close_family_of = scope:actor
is_close_family_of = scope:puppet_or_actor
AND = {
exists = dynasty
exists = scope:actor.dynasty
dynasty = scope:actor.dynasty
exists = scope:puppet_or_actor.dynasty
dynasty = scope:puppet_or_actor.dynasty
}
}
}
scope:actor = {
scope:puppet_or_actor = {
yields_alliance = {
candidate = scope:rejecting_betrothed
target = scope:rejected_betrothal_owner

View file

@ -44,11 +44,10 @@ can_set_relation_lover_trigger = {
this = $CHARACTER$
has_relation_lover = $CHARACTER$
}
is_attracted_to_gender_of = $CHARACTER$
$CHARACTER$ = {
is_adult = yes
is_attracted_to_gender_of = prev
}
matching_gender_and_sexuality_with_trigger = { CHARACTER = $CHARACTER$ }
}
can_set_relation_soulmate_trigger = {
@ -291,7 +290,10 @@ upgrade_ready_rival_to_nemesis_trigger = {
is_below_ai_friend_soft_cap_trigger = {
trigger_if = {
limit = { is_ai = yes }
limit = {
is_ai = yes
NOT = { puppeteer ?= { is_ai = no } }
}
trigger_if = {
limit = {
@ -313,7 +315,10 @@ is_below_ai_friend_soft_cap_trigger = {
is_below_ai_lover_soft_cap_trigger = {
trigger_if = {
limit = { is_ai = yes }
limit = {
is_ai = yes
NOT = { puppeteer ?= { is_ai = no } }
}
trigger_if = {
limit = {
@ -589,7 +594,7 @@ is_of_major_interest_trigger = {
exists = $CHARACTER$.faith.religious_head
this = $CHARACTER$.faith.religious_head
}
# Powerful vassals (including fellow)
trigger_if = {
limit = {
top_liege = this
@ -598,7 +603,7 @@ is_of_major_interest_trigger = {
this = $CHARACTER$
}
}
#House Head
# House Head
trigger_if = {
limit = {
exists = $CHARACTER$.house.house_head
@ -613,6 +618,10 @@ is_of_major_interest_trigger = {
}
intent_target = $CHARACTER$
}
# Relations
has_relation_nemesis = $CHARACTER$
has_relation_soulmate = $CHARACTER$
has_relation_best_friend = $CHARACTER$
}
}
@ -758,7 +767,7 @@ major_interest_liege_trigger = {
#Support trigger
major_interest_realm_priest_trigger = {
faith = { has_doctrine = doctrine_theocracy_temporal }
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
exists = cp:councillor_court_chaplain
NOT = {
cp:councillor_court_chaplain = { is_in_list = $LISTNAME$ }
@ -1160,6 +1169,10 @@ has_RelationToMe_relation = {
$CHARACTER$ = { top_liege != this }
liege = $CHARACTER$.liege
}
AND = {
faith = $CHARACTER$.faith
$CHARACTER$.capital_county.clerical_region_title.holder ?= scope:relation_check
}
has_relation_crush = $CHARACTER$
has_relation_ward = $CHARACTER$
has_relation_guardian = $CHARACTER$
@ -1212,6 +1225,10 @@ has_RelationToMe_relation = {
$CHARACTER$ = {
host ?= scope:relation_check
}
superior ?= $CHARACTER$
$CHARACTER$ = {
superior ?= scope:relation_check
}
is_knight_of = $CHARACTER$
AND = {
is_female = yes

File diff suppressed because it is too large Load diff

View file

@ -9,6 +9,7 @@ can_raid_trigger = {
vassal_contract_has_flag = vassal_contract_allow_raiding
# Faith Logic.
faith = { has_doctrine_parameter = faith_can_raid }
has_personal_tenet_flag = unlock_destruction_raid_intent_personal
# Dynasty logic.
dynasty ?= {
OR = {
@ -54,7 +55,8 @@ can_raid_trigger = {
# Some faiths prohibit this.
OR = {
NOR = {
faith = { has_doctrine_parameter = holy_wars_forbidden }
rite ?= { rite_has_parameter = holy_wars_forbidden }
rite ?= { rite_has_parameter = tenet_peace_of_god_raid_ban }
government_has_flag = government_is_landless_adventurer
}
# But not for Nomads or Wanua

View file

@ -24,7 +24,7 @@ special_succession_jirga_trigger = {
historical_succession_access_single_heir_succession_law_trigger = {
trigger_if = {
limit = { government_allows = administrative }
limit = { government_has_mechanic = administrative }
OR = {
tgp_japan_single_heir_succession_override_trigger = yes
tgp_korea_single_heir_succession_override_trigger = yes
@ -59,7 +59,7 @@ historical_succession_access_single_heir_succession_law_trigger = {
}
historical_succession_access_single_heir_succession_law_youngest_trigger = {
NOT = { government_allows = administrative }
NOT = { government_has_mechanic = administrative }
# OR = {
# #has_title = title:e_byzantium
# #Add any subsequent exceptions here.
@ -67,7 +67,7 @@ historical_succession_access_single_heir_succession_law_youngest_trigger = {
}
historical_succession_access_single_heir_dynasty_house_trigger = {
NOT = { government_allows = administrative }
NOT = { government_has_mechanic = administrative }
AND = {
has_title = title:d_bohemia
culture = { has_innovation = innovation_table_of_princes }
@ -78,7 +78,7 @@ can_have_meritocratic_regency_succession_law_trigger = {
has_tgp_dlc_trigger = yes
is_independent_ruler = yes
highest_held_title_tier = tier_empire
government_allows = administrative
government_has_mechanic = administrative
government_allows = merit
NOT = { government_allows = obedience } # Stop Khanates
OR = {

View file

@ -119,11 +119,12 @@ title_counts_towards_too_many_duchies_trigger = {
title_lost_from_realm_on_foreign_ruler_succession_trigger = {
tier > $VASSAL$.highest_held_title_tier
exists = holder # Ignoring titles that will be created by confederate partition, cause that be magic and unlikely to make a warning anyway
NOT = { heir_resigns_realm_on_inheriting = $VASSAL$ }
holder = {
NOR = {
this = $LIEGE$
target_is_liege_or_above = $LIEGE$
government_has_flag = government_is_special_administrative # Ignoring because admin counts do not take it with them, but immediately resign it when they inherit a governorship
government_has_mechanic = administrative # Ignoring because admin counts do not take it with them, but immediately resign it when they inherit a governorship
}
}
}
@ -136,14 +137,14 @@ character_title_allows_off_screen_wandering_trigger = {
AND = {
highest_held_title_tier >= tier_empire
OR = {
government_has_flag = government_is_special_administrative
government_has_mechanic = administrative
government_has_flag = government_is_clan
}
}
# No administrative kings.
AND = {
highest_held_title_tier = tier_kingdom
government_has_flag = government_is_special_administrative
government_has_mechanic = administrative
}
# No religious heads.
faith.religious_head ?= this

View file

@ -220,13 +220,244 @@ can_potentially_call_ally_trigger = {
}
}
admin_governor_allows_declaring_war_trigger = {
OR = {
vassal_contract_has_flag = admin_theme_frontier
vassal_contract_has_flag = admin_theme_naval
}
}
allows_declaring_war_against_target_trigger = {
save_temporary_scope_as = attacker_check
$TARGET$ = { save_temporary_scope_as = defender_check }
custom_tooltip = {
text = sworn_peace_tt
NOT = { has_character_flag = sworn_peace }
}
is_incapable = no
trigger_if = {
limit = {
NOT = {
has_cb_on = {
target = scope:defender_check
casus_belli = pam_humiliation_cb
}
}
}
can_attack_in_hierarchy = scope:defender_check
}
trigger_if = {
limit = {
NOT = {
government_has_flag = can_start_war_with_raised_troops
}
}
has_raised_armies = no
}
trigger_else = {
custom_description = {
text = army_blocks_defender_army
NOT = {
any_army = {
location.county.holder ?= {
target_is_same_character_or_above = scope:defender_check
}
}
}
}
}
NOT = {
is_allied_in_war = scope:defender_check
}
custom_description = {
text = "is_not_bankrupt"
is_in_debt = no
}
is_in_activity = no
trigger_if = {
limit = {
culture = { has_cultural_parameter = cannot_attack_allies }
}
NOT = {
is_allied_to = scope:defender_check
}
}
trigger_if = {
limit = {
culture = { has_cultural_parameter = cannot_attack_truces }
}
NOT = {
has_truce = scope:defender_check
}
}
is_imprisoned = no
trigger_if = {
limit = {
has_variable_list = subjugation_offer_under_consideration
}
custom_description = {
text = is_not_considering_offer_of_subjugation
NOT = {
is_target_in_variable_list = {
name = subjugation_offer_under_consideration
target = scope:defender_check
}
}
}
}
scope:defender_check = {
custom_tooltip = {
text = is_a_herder_recipient_tt
NOT = { government_has_flag = government_is_herder } # herders can't fight
}
NOT = { is_tributary_of_suzerain_or_above = scope:attacker_check } # can't fight your tributaries or your tributaries' tributaries
NOT = { has_strong_hook = scope:attacker_check }
trigger_if = {
limit = { is_imprisoned = yes }
custom_tooltip = {
text = declare_war_target_is_your_prisoner_tt
imprisoner != scope:attacker_check
}
}
}
trigger_if = {
limit = { liege != this }
trigger_if = {
limit = {
government_has_mechanic = administrative
}
# internal war
trigger_if = {
limit = { top_liege = scope:defender_check.top_liege }
trigger_if = {
limit = {
scope:defender_check = { government_has_mechanic = administrative }
top_liege != scope:defender_check
}
custom_tooltip = {
text = admin_cannot_declare_internal_wars
always = no
}
}
}
trigger_else = {
trigger_if = { # Admin - Laws prevent all vassals from declaring war
limit = {
top_liege = {
has_realm_law_flag = admin_vassal_wars_banned
}
}
custom_tooltip = {
text = admin_all_vassal_wars_banned
always = no
}
}
trigger_else = {
trigger_if = { # Admin - Laws only allow frontier and naval themes to declare war
limit = {
top_liege = {
has_realm_law_flag = admin_vassal_wars_restricted
}
}
custom_tooltip = {
text = admin_all_vassal_wars_banned
admin_governor_allows_declaring_war_trigger = yes
}
}
trigger_if = { # Admin - Laws only allow frontier and naval themes to declare war IF they have permission
limit = {
top_liege = {
has_realm_law_flag = admin_vassal_wars_permission_only
}
}
custom_tooltip = {
text = admin_vassal_wars_permission_only_desc
has_variable = admin_permission_to_declare_war
}
}
}
}
}
trigger_else = {
trigger_if = {
limit = {
liege ?= {
has_realm_law_flag = vassal_all_wars_banned_permanent
}
NOT = {
top_participant_group:dynastic_cycle ?= {
has_participant_group_parameter = dynastic_cycle_vassal_internal_wars_allowed
}
}
}
custom_tooltip = {
text = admin_all_vassal_wars_banned
government_has_mechanic = administrative
}
}
}
trigger_if = {
limit = {
trigger_if = {
limit = { NOT = { exists = scope:recipient } }
scope:defender_check = {
save_temporary_scope_as = recipient
}
}
war_declarer_needs_hook_on_liege = yes
}
has_usable_hook = liege
}
}
trigger_if = {
limit = {
scope:defender_check = {
OR = {
has_subject_contract_group = tributary_celestial
has_subject_contract_group = tributary_hegemonic
}
}
is_independent_ruler = no # to avoid duplicating tooltips already applying to the top_liege
}
NOT = {
scope:defender_check = {
is_tributary_of = scope:attacker_check.top_liege
}
}
}
scope:attacker_check = {
trigger_if = {
limit = { has_government = landless_adventurer_government }
custom_tooltip = {
text = camp_located_in_defender_realm.tt
domicile.domicile_location.county.holder = {
NOT = {
target_is_same_character_or_above = scope:defender_check
}
}
}
}
}
trigger_if = {
limit = {
scope:attacker_check = {
is_confederation_member = yes
}
}
NOT = {
scope:defender_check = {
is_member_of_confederation = scope:attacker_check.confederation
}
}
}
}
war_declarer_needs_hook_on_liege = {
scope:actor = {
top_liege != this
liege != scope:recipient
NAND = {
government_allows = administrative
liege = { government_allows = administrative }
government_has_mechanic = administrative
liege = { government_has_mechanic = administrative }
}
NOT = {
vassal_contract_has_flag = vassal_contract_war_override
@ -237,11 +468,6 @@ war_declarer_needs_hook_on_liege = {
liege = { has_realm_law_flag = vassal_internal_wars_banned }
}
liege = { has_realm_law_flag = vassal_all_wars_banned }
AND = {
has_realm_law = japanese_bureaucracy_2
NOT = { government_allows = administrative }
}
}
}
}
@ -261,7 +487,7 @@ can_use_conquest_cbs_trigger = {
government_has_flag = government_is_clan
government_has_flag = government_is_nomadic
government_has_flag = government_is_steppe_admin
faith = { has_doctrine_parameter = conquest_cb_enabled }
rite = { rite_has_parameter = conquest_cb_enabled }
culture = { has_cultural_parameter = can_use_conquest_cbs }
AND = {
government_has_flag = government_is_japan_feudal
@ -289,7 +515,7 @@ can_be_warrior_trigger = {
#not for admin
$ARMY_OWNER$ = {
NOT = {
government_allows = administrative
government_has_mechanic = administrative
}
culture = { has_cultural_parameter = non_admin_close_family_non_martial_gender_knights_in_defensive_wars }
}
@ -318,7 +544,8 @@ can_be_knight_trigger = {
can_be_warrior_trigger = { ARMY_OWNER = $ARMY_OWNER$ }
trigger_if = { # Admin governors cannot be knights
limit = {
government_allows = administrative
$ARMY_OWNER$ = { government_has_mechanic = administrative }
is_courtier = no
exists = primary_title
}
primary_title = {
@ -342,7 +569,13 @@ can_be_knight_trigger = {
is_clergy = yes
}
OR = {
faith = { has_doctrine_parameter = clergy_can_fight }
rite = { rite_has_parameter = clergy_can_fight }
AND = {
has_personal_tenet_flag = clergy_can_fight_personal
NOT = {
rite = { rite_has_parameter = pacifist }
}
}
culture = { has_cultural_parameter = culture_clergy_can_fight }
AND = {
$ARMY_OWNER$.culture = {
@ -390,14 +623,6 @@ can_be_commander_basic_trigger = {
incapable = no
hostage = no
}
NAND = {
is_clergy = yes
NOR = {
has_trait = order_member # Order Members will fight for their faith even if their faith says no
faith = { has_doctrine_parameter = clergy_can_fight }
culture = { has_cultural_parameter = culture_clergy_can_fight }
}
}
OR = { # You can always lead your own armies
this = $ARMY_OWNER$
@ -438,6 +663,7 @@ can_be_commander_now_trigger = {
has_character_flag = meditation_character_flag
has_character_flag = local_shrine_rite
has_character_flag = petition_liege_character_flag
has_variable = petition_head_of_faith_petitioner
has_character_flag = holding_court_character_flag
is_being_visited_on_tour_strict = yes
}
@ -446,19 +672,24 @@ can_be_commander_now_trigger = {
get_valid_commander_list_trigger = {
any_vassal = {
count = all
add_to_temporary_list = temp$LIST$
}
any_courtier = {
count = all
add_to_temporary_list = temp$LIST$
}
any_in_list = {
list = temp$LIST$
count = all
trigger_if = {
limit = {
can_be_commander_now_trigger = { ARMY_OWNER = scope:army_owner }
}
add_to_temporary_list = $LIST$
}
}
}
prisoner_gives_warscore_for_trigger = {
@ -686,13 +917,25 @@ is_religious_war = {
}
}
# scope:attacker and scope:defender come from holy war defensive joining
same_faith_clergy_war_trigger = {
scope:attacker.faith = scope:defender.faith
scope:attacker = { government_has_flag = government_uses_church_authority }
scope:defender = {
OR = {
government_has_flag = government_is_theocracy
government_has_flag = government_is_holy_order
}
}
}
conquest_cb_holder_under_target_can_be_vassalized = {
# If there is no holder they can't be vassalized!
holder ?= {
# We can only vassalize characters of a lower tier than us.
highest_held_title_tier < scope:attacker.highest_held_title_tier
# We can't vassalize Governors
NOT = { government_has_flag = government_is_special_administrative }
NOT = { government_has_mechanic = administrative }
# Only (sub)vassals of the defender can be considered for transfer (no poaching vassals from 3rd parties without fighting them!)
target_is_liege_or_above = scope:defender
# *All* of a character's subrealm must be within the target area. If we're attacking for Jerusalem, we don't want to also be stealing parts of Egypt, Syria, etc.
@ -707,17 +950,17 @@ religious_cb_holder_under_target_can_be_vassalized = {
conquest_cb_holder_under_target_can_be_vassalized = yes
# Religious Tolerance Check
scope:attacker.faith = {
OR = {
# For all Faiths, if the attacker views this vassal's faith more favorably than the defender does, they are 'liberated' and become vassals under the attacker.
# For example, if Catholics are crusading against Ash'aris(viewed as Evil), any Messalian vassals (viewed as Hostile) will become vassals under the Catholic attacker.
scope:attacker.faith = {
faith_hostility_level_comparison = {
prev.holder.faith < scope:defender.faith
}
}
# Pluralist faiths always attempt to preserve vassals if possible, even if the vassal follows an Evil faith.
has_doctrine_parameter = pluralism_pluralistic_holy_wars_preserve_vassals
}
scope:attacker.rite = { rite_has_parameter = pluralism_pluralistic_holy_wars_preserve_vassals }
}
}
@ -767,7 +1010,7 @@ can_use_viking_invasion_cbs_trigger = {
can_use_viking_invasion_cbs_dlc_trigger = {
culture = { has_innovation = innovation_longboats }
faith = { has_doctrine = tenet_warmonger }
rite = { rite_has_tenet = tenet_warmonger }
any_sub_realm_county = { is_coastal_county = yes }
trigger_if = {
limit = { is_ai = yes }
@ -779,7 +1022,7 @@ can_use_viking_invasion_cbs_dlc_trigger = {
NOT = {
any_liege_or_above = {
NOT = {
faith = { has_doctrine = tenet_warmonger }
rite = { rite_has_tenet = tenet_warmonger }
}
}
}
@ -906,7 +1149,7 @@ herders_and_tributary_constraints = {
NOR = {
custom_tooltip = {
text = is_a_herder_defender_tt # herders can't fight
government_has_flag = government_is_true_herder
government_has_flag = government_is_herder
}
is_tributary_of_suzerain_or_above = scope:attacker # can't fight your tributaries or your tributaries' tributaries
}
@ -985,7 +1228,7 @@ feudal_clan_tribal_conquest_constraints = {
short_term_gold < 200
OR = {
AND = {
government_has_flag = government_is_special_administrative
government_has_mechanic = administrative
short_term_gold < 700
this != top_liege
}

View file

@ -106,7 +106,6 @@ tropical_seasons_region_trigger = {
geographical_region = world_africa_west
geographical_region = world_africa_east
geographical_region = world_india_deccan
geographical_region = world_burma
geographical_region = world_asia_china
geographical_region = world_asia_southeast
}
@ -394,15 +393,22 @@ current_season_dry_season = {
current_month < 3
}
}
trigger_else = {
trigger_else_if = {
limit = {
location = {
geographical_region = seasonal_region_deccan
}
}
OR = {
current_month >= 12
current_month < 3
}
}
trigger_else = { # June, July and August are generally dry
#Generic Northern Hemisphere
current_month >= 6
current_month < 9
}
}
current_season_rainy_season = {
@ -501,6 +507,14 @@ current_season_wet = {
current_season_rainy_season = yes
}
}
current_season_wet_extended = {
OR = {
current_season_spring = yes
current_season_autumn = yes
current_season_winter = yes
current_season_rainy_season = yes
}
}
current_season_dry = {
OR = {
current_season_summer = yes

View file

@ -211,7 +211,7 @@ basic_can_have_trial_by_combat_trigger = {
can_have_trial_by_combat_trigger = {
# First, evaluate culture to trim down our potentials list.
scope:actor = { basic_can_have_trial_by_combat_trigger = yes }
scope:puppet_or_actor = { basic_can_have_trial_by_combat_trigger = yes }
scope:recipient = { basic_can_have_trial_by_combat_trigger = yes }
}
@ -221,14 +221,14 @@ eligible_knight_to_champion_trial_by_combat_trigger = {
}
trial_by_combat_shown_and_not_invalid_trigger = {
# Scope:actor must be able to fight personally.
scope:actor = { can_start_single_combat_trigger = yes }
# Scope:actor cannot challenge someone they have a ceasefire against.
scope:actor = {
# Scope:puppet_or_actor must be able to fight personally.
scope:puppet_or_actor = { can_start_single_combat_trigger = yes }
# Scope:puppet_or_actor cannot challenge someone they have a ceasefire against.
scope:puppet_or_actor = {
NOT = { has_truce = scope:recipient }
}
# Scope:actor *definitely* cannot challenge someone they're at war with.
scope:actor = {
# Scope:puppet_or_actor *definitely* cannot challenge someone they're at war with.
scope:puppet_or_actor = {
NOT = { is_at_war_with = scope:recipient }
}
}
@ -237,7 +237,7 @@ trial_by_combat_is_valid_trigger = {
# Calc some stuff that might invalidate elsewhere before the bout is sorted.
trial_by_combat_shown_and_not_invalid_trigger = yes
# Must have an imprisonment reason on the character.
scope:actor = { has_imprisonment_reason = scope:recipient }
scope:puppet_or_actor = { has_imprisonment_reason = scope:recipient }
# Scope:recipient must be able to fight or else have at least *one* designatable champion.
scope:recipient = {
trigger_if = {
@ -273,7 +273,7 @@ trial_by_combat_is_valid_trigger = {
}
}
# Neither of the characters can be imprisoned.
scope:actor = { is_imprisoned = no }
scope:puppet_or_actor = { is_imprisoned = no }
scope:recipient = { is_imprisoned = no }
}

View file

@ -19,6 +19,8 @@ ep1_is_valid_character_for_inspiration_trigger = {
any_traveling_family_member = {
count = 1
}
# Prevent paiza merchants from becoming inspired
NOT = { has_variable = merchant_var }
}
}
@ -290,7 +292,6 @@ hold_court_8010_county_trigger = {
}
target_of_powerful_faction_trigger = {
exists = yes
OR = {
faction_is_type = liberty_faction
faction_is_type = claimant_faction

View file

@ -59,14 +59,8 @@ eligible_for_fp2_dynasty_legacies_trigger = {
#is_toledo_ownership_valid_trigger = {
# title:c_toledo.holder = {
# OR = {
# this = root
# liege = root
# top_liege = root
# }
# faith = {
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church }
# }
# target_is_same_character_or_above = root
# rite = rite:mozarabic_church
# }
#}
@ -507,10 +501,15 @@ fp2_struggle_secure_iberian_foothold_faith_trigger = {
}
fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = {
exists = empire
empire != title:e_spain
kingdom.holder.top_liege = root
}
fp2_struggle_secure_iberian_foothold_neighbor_with_outsider_kingdom_trigger = {
any_de_jure_county = {
any_title_to_title_neighboring_and_across_water_county = {
NOT = { empire = title:e_spain }
kingdom.holder = root
fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes
}
}
}
@ -618,7 +617,8 @@ struggle_can_access_unlocks_bargain_fealty_interaction_trigger = {
#
#fp2_lyonese_monk_0002_valid_character_configuration_trigger = {
# OR = {
# has_trait = scholar
# has_trait = erudite
# has_trait = lifestyle_scholar
# has_trait = theologian
# has_trait = lifestyle_mystic
# AND = {
@ -662,7 +662,7 @@ struggle_can_access_unlocks_bargain_fealty_interaction_trigger = {
# is_alive = no
# is_imprisoned = yes
# AND = {
# is_landed_or_landless_administrative = no
# is_landed_or_landless_administrative_or_theocratic = no
# NOT = {
# host = scope:acolyte_host
# # Make an exception if you're in prison, since that should give a different event.
@ -670,7 +670,7 @@ struggle_can_access_unlocks_bargain_fealty_interaction_trigger = {
# }
# }
# AND = {
# is_landed_or_landless_administrative = yes
# is_landed_or_landless_administrative_or_theocratic = yes
# NOT = {
# any_liege_or_above = { this = scope:acolyte_host }
# }
@ -682,13 +682,13 @@ struggle_can_access_unlocks_bargain_fealty_interaction_trigger = {
#fp2_lyonese_monk_0000_out_of_freedom_trigger = { is_imprisoned = yes }
#
#fp2_lyonese_monk_0000_out_of_popes_trigger = {
# NOT = { exists = scope:story.var:base_faith.religious_head }
# NOT = { exists = faith.main_rite.head_of_rite }
#}
#
#fp2_lyonese_monk_0000_out_of_faith_trigger = {
# OR = {
# scope:acolyte.faith.religious_head != scope:story.var:base_faith.religious_head
# scope:acolyte_host.faith.religious_head != scope:story.var:base_faith.religious_head
# scope:acolyte.faith.main_rite.head_of_rite != scope:story.var:base_faith.main_rite.head_of_rite
# scope:acolyte_host.faith.main_rite.head_of_rite != scope:story.var:base_faith.main_rite.head_of_rite
# }
#}
#
@ -731,5 +731,6 @@ fp2_purchase_truce_interaction_soft_requirements_trigger = {
# }
has_perk = defensive_negotiations_perk
culture = { has_cultural_parameter = unlocks_purchase_truce }
has_personal_tenet_flag = tenet_peace_of_god_personal_truce
}
}

View file

@ -5,7 +5,7 @@
dynasty = {
OR = {
dynast = {
government_allows = administrative
government_has_mechanic = administrative
}
has_dynasty_perk = ep3_administrative_legacy_1
}
@ -72,7 +72,7 @@ valid_for_byz_governor_content_trigger = {
}
}
}
#
valid_for_byz_succession_trigger = {
is_eunuch_trigger = no
NOR = {
@ -125,14 +125,14 @@ available_charioteers_spots_trigger = {
#}
is_competing_for_same_title_as = {
government_allows = administrative
government_has_mechanic = administrative
any_heir_title = {
exists = this
is_noble_family_title = no
save_temporary_scope_as = temp_title
}
$CHARACTER$ = {
government_allows = administrative
government_has_mechanic = administrative
}
scope:temp_title = {
any_title_heir = {
@ -266,12 +266,12 @@ is_candidate_for_title_trigger = {
valid_governor_contract_trigger = {
OR = {
government_allows = administrative
government_has_mechanic = administrative
AND = {
government_has_flag = government_is_landless_minority
exists = liege
liege = {
government_allows = administrative
government_has_mechanic = administrative
}
}
}
@ -286,11 +286,17 @@ valid_governor_contract_trigger = {
valid_governor_contract_basic_trigger = {
task_contract_taker = {
#you have to be a governor
OR = {
trigger_if = {
limit = {
government_has_flag = government_is_celestial
}
AND = {
government_has_flag = government_is_landless_minority
exists = liege
liege = {
government_has_mechanic = administrative
}
}
is_governor_or_admin_count = yes
}
trigger_else = {
@ -305,14 +311,6 @@ valid_governor_contract_basic_trigger = {
}
}
}
AND = {
government_has_flag = government_is_landless_minority
exists = liege
liege = {
government_allows = administrative
}
}
}
}
}
@ -886,9 +884,33 @@ is_appointment_valid_trigger = {
$TOP_LIEGE$ = { save_temporary_scope_as = top_liege_temp }
custom_tooltip = { # Capital should be never a valid appointment (go for higher title instead
text = not_top_liege_capital_county_tt
trigger_if = { # Candidates outside a landed realm have no capital county to clash with
limit = { exists = scope:candidate_temp.top_liege.capital_county }
NOT = { scope:title_temp ?= scope:candidate_temp.top_liege.capital_county }
}
}
scope:candidate_temp = {
trigger_if = {
limit = {
scope:top_liege_temp = { tgp_realm_has_ceremonial_liege_trigger = yes }
tgp_is_in_ceremonial_house_trigger = yes
}
trigger_if = {
limit = {
scope:title_temp ?= { has_variable = administrative_ui_special_title }
}
custom_tooltip = {
text = ceremonial_liege_only_heir_can_be_ruler_trigger
tgp_is_ceremonial_liege_or_direct_heir_trigger = yes
}
}
trigger_else = {
custom_tooltip = {
text = ceremonial_liege_cannot_be_governor_trigger
tgp_is_ceremonial_liege_trigger = no
}
}
}
trigger_if = {
limit = { exists = scope:title_temp }
custom_tooltip = { # Has relevant law
@ -900,6 +922,10 @@ is_appointment_valid_trigger = {
}
}
}
custom_tooltip = {
text = follows_other_title_appointment_tt
$TITLE$.tier = $TITLE$.holder.primary_title.tier
}
trigger_if = {
limit = {
NOT = { top_liege.highest_held_title_tier = scope:title_temp.tier }
@ -956,13 +982,21 @@ is_appointment_valid_trigger = {
text = only_administrative_tt
trigger_if = {
limit = { is_landed = yes }
government_allows = administrative
government_has_mechanic = administrative
}
}
is_clergy = no
}
}
domicile_is_estate_trigger = {
OR = {
is_domicile_type = estate
is_domicile_type = east_asian_estate
is_domicile_type = japanese_manor
}
}
ep3_adventurer_ai_logic_valid_trigger = {
is_alive = yes
is_ai = yes
@ -973,8 +1007,8 @@ ep3_adventurer_ai_logic_valid_trigger = {
ep3_laamp_diplo_range_trigger = {
custom_description = {
text = ep3_laamp_diplo_range_trigger_tt
subject = scope:actor
object = scope:recipient
subject = $LAAMP$
object = $TARGET$
trigger_if = {
limit = { exists = $LAAMP$.domicile.domicile_location }
trigger_if = {
@ -1095,9 +1129,9 @@ cid_story_cycle_start_trigger = {
is_alive = yes
is_playable_character = yes
has_ep3_dlc_trigger = yes
NOR = {
has_variable = ongoing_cid_story_cycle
has_variable = had_cid_story_cycle
has_none_of_variables = {
name = ongoing_cid_story_cycle
name = had_cid_story_cycle
}
has_government = landless_adventurer_government
top_liege ?= {
@ -1156,13 +1190,13 @@ has_any_gallowsbait_xp_trigger = {
# }
#}
faith_is_interesting_heresy_to_state_faith_trigger = {
religion = root.top_liege.primary_title.state_faith.religion
this != root.top_liege.primary_title.state_faith
num_county_followers >= 3
rite_is_interesting_heresy_to_state_rite_trigger = {
faith.religion = root.top_liege.primary_title.state_rite.faith.religion
this != root.top_liege.primary_title.state_rite
num_rite_county_followers >= 3
save_temporary_scope_as = temp_heresy
root.top_liege.primary_title.state_faith = {
faith_hostility_level = {
root.top_liege.primary_title.state_rite = {
rite_hostility_level = {
target = scope:temp_heresy
value >= faith_hostile_level
}
@ -1250,7 +1284,7 @@ ep3_interesting_courtier_to_ask_trigger = {
ep3_admin_faction_trigger = {
trigger_if = { # Enabled for all admin realms with EP3
limit = { has_ep3_dlc_trigger = yes }
$FACTION_TARGET$ = { government_allows = administrative }
$FACTION_TARGET$ = { government_has_mechanic = administrative }
}
# trigger_else = { # Enabled for Byzantium without EP3
# $FACTION_TARGET$ = { has_title = title:e_byzantium }
@ -1513,7 +1547,6 @@ ep3_adventurer_ai_valid_contract_trigger = {
can_create_task_contract = { type_name = laamp_join_faction_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_help_faith_conversion_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_fight_faith_conversion_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_help_find_secrets_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_help_fabricate_claim_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_help_increase_control_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_help_find_secrets_contract employer = $EMPLOYER$ }

View file

@ -8,20 +8,21 @@
# NOT = { exists = title:e_latin_empire.holder }
# #Byzantine emperor is Christian, but not Catholic
# title:e_byzantium.holder.faith = {
# NOT = { this = faith:catholic }
# OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
# religion = religion:christianity_religion
# }
# title:e_byzantium.holder.rite = {
# rite_has_doctrine = special_doctrine_is_eastern_christian_faith
# }
# trigger_if = {
# limit = {
# title:e_byzantium.holder = {
# government_has_flag = government_is_special_administrative
# government_has_mechanic = administrative
# }
# }
# #Byzantine state faith is not Catholic
# #Byzantine state rite is still Eastern Christian (not Latin)
# title:e_byzantium.holder.primary_title = {
# state_faith = {
# NOT = { this = faith:catholic }
# OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
# state_rite = {
# rite_has_doctrine = special_doctrine_is_eastern_christian_faith
# }
# }
# }
@ -130,17 +131,22 @@
#ep3_frankokratia_transiting_relative_trigger = {
# OR = {
# is_ruler = no
# # Prefer char_temp; root is a faith in great_holy_war.0001, so do not evaluate root.highest_held_title_tier there.
# AND = {
# trigger_if = {
# limit = {
# exists = scope:char_temp
# }
# highest_held_title_tier <= scope:char_temp.highest_held_title_tier
# }
# AND = {
# trigger_else = {
# exists = root
# highest_held_title_tier <= root.highest_held_title_tier
# }
# }
# highest_held_title_tier < tier_county
# NOT = {
# religion = religion:catholic_religion
# faith = faith:catholic
# }
# is_imprisoned = yes
# is_incapable = yes
@ -164,7 +170,7 @@
#
#ep3_frankokratia_story_owner_trigger = {
# save_temporary_scope_as = char_temp
# religion = religion:catholic_religion
# faith = faith:catholic
# is_playable_character = yes
# highest_held_title_tier >= tier_county
# highest_held_title_tier <= tier_kingdom
@ -382,7 +388,7 @@
#}
#
#ep3_frankokratia_financier_trigger = {
# religion = religion:catholic_religion
# faith = faith:catholic
# is_ai = yes
# #Not pals with byz emperor
# NOR = {
@ -577,8 +583,8 @@
# has_trait = incapable
# has_trait = devoted
# AND = {
# scope:frankokratia_crusader.faith = {
# has_doctrine = doctrine_theocracy_temporal
# scope:frankokratia_crusader.rite = {
# rite_has_doctrine = doctrine_theocracy_temporal
# }
# has_council_position = councillor_court_chaplain
# }
@ -675,8 +681,9 @@
# }
# }
# #Most affected Christians
# religion = religion:catholic_religion
# faith = faith:catholic
# faith = faith:orthodox
# faith = faith:miaphysitism
# faith = faith:armenian_apostolic
# #Target faith of crusade
# faith = scope:defender.faith
@ -697,6 +704,13 @@
#}
#
#ep3_orthodox_faith_trigger = {
# religion = religion:eastern_orthodox_religion
# OR = {
# faith = faith:orthodox
# faith = faith:miaphysitism
# faith = faith:armenian_apostolic
# faith = faith:iconoclast
# faith = faith:bogomilist
# faith = faith:paulician
# faith = faith:nestorian
# }
#}
#

View file

@ -53,7 +53,7 @@ mpo_gok_coalition_member_trigger = {
}
highest_held_title_tier < tier_county
government_has_flag = government_is_true_herder
government_has_flag = government_is_herder
is_imprisoned_by = root
is_obedient_to = root
}
@ -140,7 +140,7 @@ mpo_gok_submitting_coward_trigger = {
}
OR = {
is_imprisoned_by = root
government_has_flag = government_is_true_herder
government_has_flag = government_is_herder
has_relation_friend = root
AND = {
exists = root.house
@ -279,10 +279,7 @@ gok_desirable_vassal_trigger = {
}
}
mpo_greatest_of_khans_0030_willing_nomad_vassal = {
OR = {
government_has_flag = government_is_nomadic
government_has_flag = government_is_true_herder
}
government_has_flag = government_is_in_steppe
OR = {
is_obedient = yes
opinion = {
@ -304,10 +301,7 @@ mpo_greatest_of_khans_0030_willing_nomad_vassal = {
}
mpo_greatest_of_khans_0030_dominated_nomad_vassal = {
OR = {
government_has_flag = government_is_nomadic
government_has_flag = government_is_true_herder
}
government_has_flag = government_is_in_steppe
OR = {
is_obedient = yes
opinion = {
@ -334,8 +328,7 @@ mpo_greatest_of_khans_0030_dominated_nomad_vassal = {
mpo_greatest_of_khans_0030_willing_sedentary_vassal = {
NOR = {
government_has_flag = government_is_nomadic
government_has_flag = government_is_true_herder
government_has_flag = government_is_in_steppe
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
}
@ -360,8 +353,7 @@ mpo_greatest_of_khans_0030_willing_sedentary_vassal = {
}
mpo_greatest_of_khans_0030_dominated_sedentary_vassal = {
NOR = {
government_has_flag = government_is_nomadic
government_has_flag = government_is_true_herder
government_has_flag = government_is_in_steppe
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
}
@ -414,10 +406,9 @@ gok_willing_new_admin_vassal_trigger = {
OR = {
mpo_greatest_of_khans_0030_dominated_nomad_vassal = yes
mpo_greatest_of_khans_0030_willing_sedentary_vassal = yes
culture_is_historically_admin_trigger = yes
}
NOR = {
government_has_flag = government_is_special_administrative
government_has_flag = government_is_administrative
government_has_flag = government_is_tribal
}
}

View file

@ -11,7 +11,7 @@
}
}
trigger_if = {
limit = { government_allows = administrative }
limit = { government_has_mechanic = administrative }
is_independent_ruler = yes
}
trigger_else = {
@ -66,15 +66,132 @@ coronation_hostile_to_host_trigger = {
}
}
is_important_hof_trigger = {
faith = {
# The HoF actually matters
NOT = { has_doctrine = doctrine_theocracy_temporal }
# And this HoF is relevant to the activity
this = scope:host.faith
# We save coronation_anointment_authority silently because another tooltip trigger already reports it
coronation_anointment_save_authority_trigger = {
trigger_if = {
limit = { exists = religious_head_or_challenger }
religious_head_or_challenger = { save_temporary_scope_as = coronation_anointment_authority }
}
trigger_else_if = {
limit = {
exists = rite.head_of_rite
rite.head_of_rite = { pam_is_clergy_ruler_trigger = yes }
}
rite.head_of_rite = { save_temporary_scope_as = coronation_anointment_authority }
}
trigger_else = {
# No authority: callers check scope:coronation_anointment_authority
always = yes
}
}
coronation_anointment_authority_available_trigger = {
coronation_anointment_save_authority_trigger = yes
custom_description = {
text = CORONATION_RELIGIOUS_AUTHORITY_DOESNT_EXIST
exists = scope:coronation_anointment_authority
}
}
# Kept in step with activity_types/coronation.txt is_location_valid for anointment location
coronation_anointment_no_holy_site_available_trigger = {
NOT = {
AND = {
$AUTHORITY$ = { is_landed = yes }
$AUTHORITY$.faith = {
any_holy_site_barony = {
holder = {
target_is_same_character_or_above = $AUTHORITY$
}
}
}
}
}
NOT = {
$HOST$.faith = {
any_holy_site_barony = {
holder = {
target_is_same_character_or_above = $HOST$
}
}
}
}
}
coronation_anointment_authority_is_trigger = {
trigger_if = {
limit = { exists = religious_head_or_challenger }
religious_head_or_challenger ?= $CHARACTER$
}
trigger_else_if = {
limit = {
exists = rite.head_of_rite
rite.head_of_rite = { pam_is_clergy_ruler_trigger = yes }
}
rite.head_of_rite ?= $CHARACTER$
}
trigger_else = {
always = no
}
}
is_important_hof_trigger = {
# The HoF actually matters
rite = { NOT = { rite_has_doctrine = doctrine_theocracy_temporal } }
government_has_flag = government_is_theocracy
OR = {
AND = {
# Preserve the ordinary-coronation Head of Faith behavior
faith = scope:host.faith
any_held_title = { is_head_of_faith = yes }
}
AND = {
scope:host.involved_activity ?= {
has_activity_option = {
category = special_type
option = coronation_type_anointment
}
}
scope:host = {
coronation_anointment_authority_is_trigger = { CHARACTER = root }
}
}
}
}
is_coronation_artifact_trigger = {
artifact_owner = {
trigger_if = {
limit = {
faith = {
coronation_proper_artifact_crown_trigger = yes
coronation_proper_artifact_regalia_trigger = no
}
}
prev = {
artifact_slot_type = helmet
}
}
trigger_else_if = {
limit = {
faith = {
coronation_proper_artifact_regalia_trigger = yes
coronation_proper_artifact_crown_trigger = no
}
}
prev = {
artifact_slot_type = regalia
}
}
trigger_else = {
prev = {
OR = {
artifact_slot_type = helmet
artifact_slot_type = regalia
}
}
}
}
}
coronation_has_proper_artifact_trigger = {

View file

@ -22,7 +22,7 @@ tgp_is_japanese_governor_trigger = {
can_have_kampaku_acclamation_succession_law_trigger = {
has_tgp_dlc_trigger = yes
government_allows = administrative
government_has_mechanic = administrative
is_independent_ruler = yes
}
@ -178,7 +178,7 @@ tgp_ceremonial_candidacy_restriction_trigger = {
}
trigger_if = {
limit = {
top_liege.primary_title.var:administrative_ui_special_title.holder = { tgp_has_ceremonial_liege_title_trigger = yes }
top_liege.primary_title.var:administrative_ui_special_title.holder = { tgp_is_ceremonial_liege_trigger = yes }
}
custom_tooltip = {
text = ceremonial_liege_only_heir_can_be_ruler_trigger
@ -227,11 +227,11 @@ tgp_ceremonial_title_revoke_restriction_trigger = {
trigger_if = {
limit = {
exists = scope:recipient.house
scope:actor.top_liege.primary_title.var:administrative_ui_special_title.holder ?= scope:recipient
scope:puppet_or_actor.top_liege.primary_title.var:administrative_ui_special_title.holder ?= scope:recipient
}
custom_tooltip = {
text = tgp_blocked_ceremonial_title_revocation_trigger
NOT = { scope:target ?= scope:actor.top_liege.primary_title.var:administrative_ui_special_title }
NOT = { scope:target ?= scope:puppet_or_actor.top_liege.primary_title.var:administrative_ui_special_title }
}
}
}
@ -411,6 +411,7 @@ realm_law_use_imperial_policy_trigger = {
tgp_japan_defense_mobilization_valid_trigger = {
custom_tooltip = {
text = defense_mobilization_law_valid_trigger
exists = capital_county
OR = {
AND = {
is_at_war = yes
@ -436,7 +437,7 @@ tgp_japan_defense_mobilization_valid_trigger = {
}
}
}
capital_county.empire = {
capital_county.empire ?= {
any_de_jure_county = { holder.top_liege != root.top_liege }
}
}
@ -496,10 +497,10 @@ tgp_install_regent_faction_can_create_trigger = {
trigger_if = {
limit = {
scope:target ?= {
has_government = meritocratic_government # am I a compatible government type?
government_has_flag = government_is_meritocratic # am I a compatible government type?
}
}
has_government = meritocratic_government
government_has_flag = government_is_meritocratic
}
}
@ -683,7 +684,7 @@ tgp_japan_cadet_creates_dynasty_trigger = {
this = dynasty.dynast
this = house.house_head
}
dynasty.dynast ?= { government_allows = administrative }
dynasty.dynast ?= { government_has_mechanic = administrative }
}
tgp_soryo_or_bushido_trigger = {
@ -720,6 +721,7 @@ should_learn_chinese_trigger = {
government_is_japanese_trigger = yes
#This will account for korea and friends
government_allows = merit
culture = { culture_use_chinese_character_trigger = yes } # it's free content so don't block everything in gov type
}
OR = {
#Cultural acceptance will be our guiding light for teaching young, noblemen (dominate gender) adults Chinese. These values will be set in game_start.txt
@ -730,9 +732,10 @@ should_learn_chinese_trigger = {
value >= 65
}
any_parent_culture_or_above = { this = culture:han }
has_cultural_tradition = tradition_sinophilic
}
}
top_liege = {
top_liege ?= {
highest_held_title_tier >= tier_kingdom
has_dlc_feature = royal_court
has_court_language_of_culture = culture:han

View file

@ -85,7 +85,9 @@ administrative_tier_allows_independence = {
limit = {
administrative_counts_can_be_independent = yes
}
highest_held_title_tier >= tier_county
any_held_county = {
is_noble_family_title = no
}
}
trigger_else = { # Administrative/default
highest_held_title_tier >= tier_kingdom
@ -361,10 +363,7 @@ should_be_mandala_tributary_trigger = {
AND = {
$SUZERAIN$ = { has_government = mandala_government }
$TRIBUTARY$ = {
OR = {
has_government = tribal_government
has_government = wanua_government
}
government_has_flag = government_is_tribal
}
}
}
@ -515,7 +514,7 @@ tgp_should_become_meritocratic_trigger = {
is_independent_ruler = yes
liege = {
NOT = {
government_has_flag = government_is_administrative
government_has_mechanic = administrative
}
}
}
@ -523,7 +522,6 @@ tgp_should_become_meritocratic_trigger = {
OR = {
geographical_region = world_asia
geographical_region = world_tibet
geographical_region = world_burma
geographical_region = world_steppe_east
}
}
@ -558,6 +556,15 @@ tgp_can_become_celestial_trigger = {
}
}
tgp_can_become_japanese_feudal_trigger = {
has_tgp_dlc_trigger = yes
OR = {
top_liege = { government_is_japanese_trigger = yes } # Soryo not created outside Ritsuryo/Soryo Realms
domicile ?= { is_domicile_type = japanese_manor } # Vassalized Ritsuryo/Soryo stay Soryo
has_character_flag = can_become_japanese_feudal
}
}
tgp_mongol_vassal_will_become_admin = {
highest_held_title_tier > tier_barony
primary_title = {
@ -576,12 +583,7 @@ tgp_mongol_vassal_will_become_admin = {
#An admin type
has_trait = governor
faith.religion = religion:confucianism_religion
culture = {
has_cultural_pillar = heritage_chinese
}
culture = {
has_cultural_pillar = heritage_korean
}
culture_is_historically_admin_trigger = yes
#Nomad type
government_has_flag = government_is_nomadic
has_trait = nomadic_philosophy
@ -638,12 +640,36 @@ tgp_is_chinese_style_emperor_trigger = {
government_allows = merit
}
culture_use_chinese_character_trigger = {
OR = {
culture_use_standard_chinese_character_trigger = yes
culture_use_variant_chinese_character_trigger = yes
}
}
culture_use_standard_chinese_character_trigger = {
OR = {
has_cultural_pillar = language_chinese
has_cultural_pillar = language_korean
has_cultural_pillar = language_japonic
has_cultural_pillar = language_vietnamese
}
}
culture_use_variant_chinese_character_trigger = {
OR = {
has_cultural_pillar = language_khitan
has_cultural_pillar = language_tungusic # all 3 cultures using this has different chinese character variant
has_cultural_tradition = tradition_sinophilic # assume they have do same thing
}
}
is_valid_for_east_asian_events_trigger = {
culture = {
OR = {
has_cultural_pillar = heritage_japonic
has_cultural_pillar = heritage_chinese
has_cultural_pillar = heritage_korean
has_cultural_pillar = heritage_buyeo
has_cultural_pillar = heritage_viet
}
}
}
@ -668,10 +694,7 @@ shared_raid_estate_participant_valid_trigger = {
any_held_title = { is_noble_family_title = yes }
house.house_head ?= this
}
OR = {
government_allows = administrative
government_is_japanese_trigger = yes
}
government_allows = noble_families
tgp_is_ceremonial_liege_trigger = no
}
@ -913,6 +936,7 @@ is_merit_based_official = {
}
}
}
tgp_is_ceremonial_regent_trigger = yes
}
}
@ -947,13 +971,7 @@ tgp_is_ceremonial_petition_valid_trigger = {
}
take_vows_available_trigger = {
OR = {
faith = { has_doctrine_parameter = take_vows_active }
AND = {
religion:buddhism_religion ?= religion
faith = { has_doctrine = special_doctrine_immaterial_harmony }
}
}
rite = { rite_has_parameter = take_vows_active }
}
tgp_use_chinese_naming_trigger = {
@ -1076,3 +1094,20 @@ farm_estates_3_4_trigger = {
}
}
}
culture_uses_eastern_siege_weapons_trigger = {
OR = {
has_cultural_pillar = heritage_chinese
has_cultural_pillar = heritage_korean
has_cultural_pillar = heritage_japonic
has_cultural_pillar = heritage_buyeo
has_cultural_pillar = heritage_viet
}
}
tgp_cranial_trophies_collection_trigger = {
OR = {
rite = { rite_has_parameter = killing_bestows_heads }
has_personal_tenet_flag = killing_bestows_heads
}
}

View file

@ -48,6 +48,13 @@ valid_confederation_member_trigger = {
}
}
}
custom_tooltip = {
OR = {
government_has_flag = government_is_tribal
government_has_flag = government_is_nomadic
}
text = is_nomadic_or_tribal_tt
}
is_confederation_member = no
}
@ -189,14 +196,14 @@ mpo_valid_heir_friend_trigger = {
NOT = {
has_relation_blood_brother = $CHARACTER$.player_heir
}
custom_description = {
custom_tooltip = {
text = not_friends_with_player_heir_tt
NOR = {
has_relation_friend = $CHARACTER$.player_heir
has_relation_best_friend = $CHARACTER$.player_heir
}
}
custom_description = {
custom_tooltip = {
text = not_bad_relation_with_player_heir_tt
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = $CHARACTER$.player_heir }
@ -205,10 +212,7 @@ mpo_valid_heir_friend_trigger = {
is_imprisoned = no
is_incapable = no
OR = {
custom_description = {
text = is_nomadic_tt
government_has_flag = government_is_nomadic
}
has_trait = nomadic_philosophy
}
highest_held_title_tier >= tier_county
@ -621,10 +625,8 @@ mpo_overrunning_willing_vassal_trigger = {
}
}
}
highest_held_title_tier >= tier_county
highest_held_title_tier = tier_county
government_has_flag = government_is_nomadic
highest_held_title_tier < tier_duchy
NOT = { government_has_flag = government_is_herder }
}
is_tsagaan_sar = {
@ -740,10 +742,10 @@ mpo_valid_widow_marrier_trigger = {
# faith.religion = faith:tengri_pagan.religion
}
#Can have multiple wives or concubines
faith = {
rite = {
OR = {
has_doctrine = doctrine_polygamy
has_doctrine = doctrine_concubines
rite_has_doctrine = doctrine_polygamy
rite_has_doctrine = doctrine_concubines
}
}
is_male = yes
@ -760,7 +762,7 @@ mpo_valid_widow_marrier_trigger = {
}
#Can marry the widow
NOT = {
relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = scope:widow }
relation_with_character_is_incestuous_in_my_rite_trigger = { CHARACTER = scope:widow }
}
}
@ -1056,8 +1058,8 @@ mpo_can_be_blood_brothers_trigger = {
}
}
}
$CHARACTER_1$.faith = {
NOT = { has_doctrine_parameter = gender_equal_law }
$CHARACTER_1$.rite = {
NOT = { rite_has_parameter = gender_equal_law }
}
}
custom_tooltip = {
@ -1391,6 +1393,7 @@ mpo_blood_brother_loving_trigger = {
has_bad_season_nomadic_capital_root_trigger = {
any_county_situation_sub_region = {
situation_sub_region_has_county = prev
OR = {
sub_region_current_phase = situation_steppe_white_zud_season
sub_region_current_phase = situation_steppe_cold_zud_season
@ -1401,6 +1404,7 @@ has_bad_season_nomadic_capital_root_trigger = {
}
has_zud_season_nomadic_capital_root_trigger = {
root ?= {
any_character_situation = {
OR = {
any_situation_sub_region = {
@ -1417,10 +1421,12 @@ has_zud_season_nomadic_capital_root_trigger = {
}
}
}
}
}
has_zud_season_in_county_trigger = {
any_character_situation = {
$COUNTY$ = {
any_county_situation = {
OR = {
any_situation_sub_region = {
sub_region_current_phase = situation_steppe_white_zud_season
@ -1436,9 +1442,11 @@ has_zud_season_in_county_trigger = {
}
}
}
}
}
has_bad_season_nomadic_capital_character_trigger = {
$CHARACTER$ = {
any_character_situation = {
OR = {
any_situation_sub_region = {
@ -1459,10 +1467,12 @@ has_bad_season_nomadic_capital_character_trigger = {
}
}
}
}
}
has_bad_season_in_county_trigger = {
any_county_situation_sub_region = {
situation_sub_region_has_county = prev
OR = {
sub_region_current_phase = situation_steppe_white_zud_season
sub_region_current_phase = situation_steppe_cold_zud_season
@ -1473,6 +1483,7 @@ has_bad_season_in_county_trigger = {
}
has_good_season_nomadic_capital_root_trigger = {
root ?= {
any_character_situation = {
OR = {
any_situation_sub_region = {
@ -1486,13 +1497,14 @@ has_good_season_nomadic_capital_root_trigger = {
any_situation_sub_region = {
sub_region_current_phase = situation_steppe_sky_blessing_season
situation_sub_region_has_county = root.capital_county
}
}
}
}
}
has_good_season_nomadic_capital_character_trigger = {
$CHARACTER$ = {
any_character_situation = {
OR = {
any_situation_sub_region = {
@ -1509,10 +1521,12 @@ has_good_season_nomadic_capital_character_trigger = {
}
}
}
}
}
has_good_season_in_county_trigger = {
any_county_situation_sub_region = {
situation_sub_region_has_county = prev
OR = {
sub_region_current_phase = situation_steppe_abundant_grazing_season
sub_region_current_phase = situation_steppe_warm_nights_season
@ -1910,6 +1924,7 @@ mpo_nomad_invasion_war_ai_trigger = {
# Havsaran zud? Leave the steppe!
capital_county ?= {
any_county_situation_sub_region = {
situation_sub_region_has_county = prev
sub_region_current_phase = situation_steppe_havsarsan_zud_season
}
}
@ -2002,6 +2017,7 @@ mpo_nomad_duchy_invasion_war_ai_trigger = {
# Havsaran zud? Leave the steppe!
capital_county ?= {
any_county_situation_sub_region = {
situation_sub_region_has_county = prev
sub_region_current_phase = situation_steppe_havsarsan_zud_season
}
}

View file

@ -193,12 +193,22 @@ should_use_specifically_persian_music_trigger = {
}
}
should_use_european_christian_music_trigger = {
NOT = { government_has_flag = government_is_nomadic }
should_use_christian_music_trigger = {
OR = {
religion = religion:eastern_orthodox_religion
religion = religion:protestant_religion
religion = religion:oriental_orthodox_religion
}
}
should_use_european_christian_music_trigger = {
NOT = { government_has_flag = government_is_nomadic }
OR = {
OR = {
religion = religion:eastern_orthodox_religion
religion = religion:protestant_religion
religion = religion:oriental_orthodox_religion
}
AND = {
exists = capital_province
capital_province = {