|
|
|
|
@ -183,6 +183,8 @@ pam_ecumenical_council_has_quorum_trigger = {
|
|
|
|
|
|
|
|
|
|
pam_mass_rite_conversion_requirements_trigger = {
|
|
|
|
|
has_pam_dlc_trigger = yes
|
|
|
|
|
is_landless_adventurer = no
|
|
|
|
|
is_landless_merchant = no
|
|
|
|
|
highest_held_title_tier >= tier_duchy
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -640,10 +642,8 @@ pam_valid_investiture_council_host_trigger = {
|
|
|
|
|
# True if TARGET, a county title, lies within a clerical region the scoped character holds.
|
|
|
|
|
pam_sell_claim_target_in_own_clerical_region_trigger = {
|
|
|
|
|
exists = $TARGET$.clerical_region_title
|
|
|
|
|
any_held_title = {
|
|
|
|
|
has_clerical_region = yes
|
|
|
|
|
this = $TARGET$.clerical_region_title
|
|
|
|
|
}
|
|
|
|
|
$TARGET$.clerical_region_title.holder ?= this
|
|
|
|
|
$TARGET$.clerical_region_title = { has_clerical_region = yes }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Shared with has_valid_target_showing_failures_only: can_be_picked_title is not rechecked on send
|
|
|
|
|
@ -792,6 +792,8 @@ can_influence_clerical_appointment_trigger = {
|
|
|
|
|
|
|
|
|
|
pam_cathedral_project_requirements_trigger = {
|
|
|
|
|
has_pam_dlc_trigger = yes
|
|
|
|
|
is_landless_adventurer = no
|
|
|
|
|
is_landless_merchant = no
|
|
|
|
|
highest_held_title_tier >= tier_duchy
|
|
|
|
|
has_spiritual_fulfillment_type = christian_fulfillment
|
|
|
|
|
}
|
|
|
|
|
@ -831,7 +833,7 @@ is_valid_cathedral_spot_in_province_trigger = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
has_great_building = no
|
|
|
|
|
has_great_district = no
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
has_cathedral_great_project_building_trigger = {
|
|
|
|
|
@ -842,13 +844,10 @@ is_valid_cathedral_upgrade_spot_in_province_trigger = {
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = great_project_cathedral_01_required_for_upgrade_tt
|
|
|
|
|
has_building = great_project_cathedral_01
|
|
|
|
|
NOT = { has_building = great_project_cathedral_02 }
|
|
|
|
|
NOT = { has_building = great_project_cathedral_03 }
|
|
|
|
|
}
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = no_cathedral_upgrade_in_progress_tt
|
|
|
|
|
NOR = {
|
|
|
|
|
has_building = great_project_cathedral_under_construction
|
|
|
|
|
any_great_project_in_province = {
|
|
|
|
|
OR = {
|
|
|
|
|
great_project_type = pam_cathedral_01
|
|
|
|
|
@ -864,12 +863,10 @@ is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = {
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = great_project_cathedral_02_required_for_tier_3_upgrade_tt
|
|
|
|
|
has_building = great_project_cathedral_02
|
|
|
|
|
NOT = { has_building = great_project_cathedral_03 }
|
|
|
|
|
}
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = no_cathedral_upgrade_in_progress_tt
|
|
|
|
|
NOR = {
|
|
|
|
|
has_building = great_project_cathedral_under_construction
|
|
|
|
|
any_great_project_in_province = {
|
|
|
|
|
OR = {
|
|
|
|
|
great_project_type = pam_cathedral_01
|
|
|
|
|
@ -896,14 +893,20 @@ has_accessible_cathedral_tier_2_upgrade_site_trigger = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else = {
|
|
|
|
|
# Matches the actual clerical_region_theocracy_capitals province filter
|
|
|
|
|
faith = {
|
|
|
|
|
any_faith_ruler = {
|
|
|
|
|
highest_held_title_tier >= tier_county
|
|
|
|
|
any_realm_county = {
|
|
|
|
|
any_county_province = {
|
|
|
|
|
is_valid_cathedral_upgrade_spot_in_province_trigger = yes
|
|
|
|
|
save_temporary_scope_as = cathedral_faith_temp
|
|
|
|
|
OR = {
|
|
|
|
|
any_clerical_region_title = {
|
|
|
|
|
holder ?= {
|
|
|
|
|
faith = scope:cathedral_faith_temp
|
|
|
|
|
capital_province ?= { is_valid_cathedral_upgrade_spot_in_province_trigger = yes }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
any_faith_ruler = {
|
|
|
|
|
government_has_mechanic = theocracy
|
|
|
|
|
capital_province ?= { is_valid_cathedral_upgrade_spot_in_province_trigger = yes }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -924,14 +927,20 @@ has_accessible_cathedral_tier_3_upgrade_site_trigger = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else = {
|
|
|
|
|
# Same as above
|
|
|
|
|
faith = {
|
|
|
|
|
any_faith_ruler = {
|
|
|
|
|
highest_held_title_tier >= tier_county
|
|
|
|
|
any_realm_county = {
|
|
|
|
|
any_county_province = {
|
|
|
|
|
is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = yes
|
|
|
|
|
save_temporary_scope_as = cathedral_faith_temp
|
|
|
|
|
OR = {
|
|
|
|
|
any_clerical_region_title = {
|
|
|
|
|
holder ?= {
|
|
|
|
|
faith = scope:cathedral_faith_temp
|
|
|
|
|
capital_province ?= { is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = yes }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
any_faith_ruler = {
|
|
|
|
|
government_has_mechanic = theocracy
|
|
|
|
|
capital_province ?= { is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = yes }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1138,12 +1147,12 @@ holy_order_range_trigger = {
|
|
|
|
|
county = {
|
|
|
|
|
save_temporary_scope_as = monastic_county
|
|
|
|
|
OR = {
|
|
|
|
|
clerical_region_title.holder ?= $CHARACTER$
|
|
|
|
|
$CHARACTER$ = {
|
|
|
|
|
any_sub_realm_county = {
|
|
|
|
|
this = scope:monastic_county
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
clerical_region_title.holder ?= $CHARACTER$
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
county = {
|
|
|
|
|
@ -1273,13 +1282,23 @@ can_have_realm_priest_puppet_trigger = {
|
|
|
|
|
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
|
|
|
|
|
is_clergy = no
|
|
|
|
|
tgp_has_access_to_ministry_trigger = no
|
|
|
|
|
NOT = { government_has_flag = government_is_nomadic }
|
|
|
|
|
NOR = {
|
|
|
|
|
government_has_flag = government_is_nomadic
|
|
|
|
|
government_has_flag = government_is_merchant
|
|
|
|
|
government_has_flag = government_is_landless_adventurer
|
|
|
|
|
gdp_use_patrician_council_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Ecclesiastical government is landless_playable, so do not filter these on is_landed
|
|
|
|
|
# Ecclesiastical government is landless_playable, but a landless one still needs a domicile or cardinalate to be playable
|
|
|
|
|
pam_landless_playable_cleric_trigger = {
|
|
|
|
|
has_pam_dlc_trigger = yes
|
|
|
|
|
government_has_flag = government_is_ecclesiastical
|
|
|
|
|
OR = {
|
|
|
|
|
is_landed = yes
|
|
|
|
|
exists = clerical_elector_title
|
|
|
|
|
has_domicile = yes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Archbishop (clerical region title holder) or above them in the hierarchy: Head of Rite or Head of Faith
|
|
|
|
|
@ -1366,7 +1385,7 @@ can_manage_faith_holy_sites_trigger = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Substitute authority for a faith with no head of faith: a realm priest puppet plus piety standing.
|
|
|
|
|
# Substitute authority for a faith with no head of faith: a clerical puppet plus piety standing.
|
|
|
|
|
can_manage_faith_holy_sites_without_hof_trigger = {
|
|
|
|
|
OR = {
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
@ -1374,7 +1393,10 @@ can_manage_faith_holy_sites_without_hof_trigger = {
|
|
|
|
|
# puppet: errors on non-playable characters, so we only check playable ones and tooltips never run it
|
|
|
|
|
trigger_if = {
|
|
|
|
|
limit = { is_playable_character = yes }
|
|
|
|
|
exists = puppet:theological_agent_puppet
|
|
|
|
|
OR = {
|
|
|
|
|
exists = puppet:theological_agent_puppet
|
|
|
|
|
exists = puppet:external_theological_agent_puppet
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else = {
|
|
|
|
|
always = no
|
|
|
|
|
@ -1457,11 +1479,11 @@ ecumenical_shareable_unknown_tenet_for_root_trigger = {
|
|
|
|
|
|
|
|
|
|
pam_request_legitimacy_priest_trigger = {
|
|
|
|
|
this != $CHARACTER$
|
|
|
|
|
OR = {
|
|
|
|
|
$CHARACTER$.religious_head_or_challenger = this
|
|
|
|
|
government_has_flag = government_is_ecclesiastical
|
|
|
|
|
}
|
|
|
|
|
faith = $CHARACTER$.faith
|
|
|
|
|
OR = {
|
|
|
|
|
government_has_flag = government_is_ecclesiastical
|
|
|
|
|
$CHARACTER$.religious_head_or_challenger = this
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_ecclesiastical_superior_or_subordinate_trigger = {
|
|
|
|
|
@ -1656,6 +1678,27 @@ pam_grants_own_divorce_trigger = {
|
|
|
|
|
pam_is_clergy_ruler_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
has_clergy_to_petition_for_divorce_trigger = {
|
|
|
|
|
OR = {
|
|
|
|
|
faith ?= {
|
|
|
|
|
has_doctrine = doctrine_spiritual_head
|
|
|
|
|
exists = religious_head
|
|
|
|
|
}
|
|
|
|
|
cp:councillor_court_chaplain ?= {
|
|
|
|
|
highest_held_title_tier >= tier_duchy
|
|
|
|
|
is_clergy = yes
|
|
|
|
|
}
|
|
|
|
|
AND = {
|
|
|
|
|
government_has_flag = government_is_theocracy
|
|
|
|
|
exists = superior
|
|
|
|
|
}
|
|
|
|
|
cp:councillor_court_chaplain.superior ?= {
|
|
|
|
|
highest_held_title_tier >= tier_duchy
|
|
|
|
|
is_clergy = yes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_clergy_continence_expected_trigger = {
|
|
|
|
|
rite = {
|
|
|
|
|
NOR = {
|
|
|
|
|
@ -1870,12 +1913,13 @@ pam_ai_deposable_cleric_trigger = {
|
|
|
|
|
pam_beseech_claims_access_trigger = {
|
|
|
|
|
has_pam_dlc_trigger = yes
|
|
|
|
|
pam_clergy_interactions_faith_trigger = yes
|
|
|
|
|
NOT = {
|
|
|
|
|
NOR = {
|
|
|
|
|
government_has_flag = government_is_ecclesiastical
|
|
|
|
|
government_has_flag = government_is_republic
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
pam_actor_rite_has_core_simony_trigger = {
|
|
|
|
|
scope:actor = {
|
|
|
|
|
scope:puppet_or_actor = {
|
|
|
|
|
rite = {
|
|
|
|
|
rite_has_parameter = tenet_simony_gold_donations
|
|
|
|
|
}
|
|
|
|
|
@ -1976,6 +2020,7 @@ pam_rite_sway_liege_lane_trigger = {
|
|
|
|
|
|
|
|
|
|
# $ACTOR$ and $RECIPIENT$ dioceses border or are nearby, and the scan is bounded by the actor's diocese
|
|
|
|
|
pam_rite_sway_adjacent_diocese_trigger = {
|
|
|
|
|
exists = $RECIPIENT$.capital_county.clerical_region_title # Both branches compare against it, and ?= only forgives the left side
|
|
|
|
|
OR = {
|
|
|
|
|
$ACTOR$.capital_county.clerical_region_title ?= {
|
|
|
|
|
any_county_in_clerical_region = {
|
|
|
|
|
@ -2732,6 +2777,17 @@ pam_tenet_is_christian_dogma_trigger = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Tenet scope. $FAITH$ is the faith judging the tenet
|
|
|
|
|
tenet_is_anathema_to_faith_trigger = {
|
|
|
|
|
$FAITH$ = { save_temporary_scope_as = affinity_faith }
|
|
|
|
|
anathema_to_faith > 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tenet_is_intrinsic_to_faith_trigger = {
|
|
|
|
|
$FAITH$ = { save_temporary_scope_as = affinity_faith }
|
|
|
|
|
intrinsic_to_faith > 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# $CHARACTER$ is the Head of Faith deciding, and the tenet is the scope
|
|
|
|
|
# We only apply this to the AI, so players keep the full list
|
|
|
|
|
pam_tenet_ai_may_permit_trigger = {
|
|
|
|
|
@ -2751,6 +2807,7 @@ pam_tenet_ai_may_permit_trigger = {
|
|
|
|
|
OR = {
|
|
|
|
|
pam_tenet_is_christological_heresy_trigger = yes
|
|
|
|
|
pam_tenet_is_christian_abomination_trigger = yes
|
|
|
|
|
tenet_is_anathema_to_faith_trigger = { FAITH = $CHARACTER$.faith }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = $CHARACTER$ }
|
|
|
|
|
@ -2761,6 +2818,7 @@ pam_tenet_ai_may_permit_trigger = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_tenet_ai_may_prohibit_trigger = {
|
|
|
|
|
NOT = { tenet_is_intrinsic_to_faith_trigger = { FAITH = $CHARACTER$.faith } }
|
|
|
|
|
trigger_if = {
|
|
|
|
|
limit = {
|
|
|
|
|
$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
|
|
|
|
|
@ -2768,6 +2826,7 @@ pam_tenet_ai_may_prohibit_trigger = {
|
|
|
|
|
}
|
|
|
|
|
pam_tenet_is_unpopular_trigger = { CHARACTER = $CHARACTER$ }
|
|
|
|
|
}
|
|
|
|
|
pam_tenet_ai_may_prohibit_rite_tenet_trigger = { CHARACTER = $CHARACTER$ }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Phase first: this runs per candidate tenet, so outside Reform the global lookup ends it at once
|
|
|
|
|
@ -2778,6 +2837,68 @@ pam_tenet_ai_should_purge_trigger = {
|
|
|
|
|
pam_tenet_is_christian_abomination_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
|
|
|
|
|
NOT = { tenet_is_intrinsic_to_faith_trigger = { FAITH = $CHARACTER$.faith } }
|
|
|
|
|
pam_tenet_ai_may_prohibit_rite_tenet_trigger = { CHARACTER = $CHARACTER$ }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Tenet scope. An anathema that $CHARACTER$'s rite permits
|
|
|
|
|
pam_tenet_ai_should_prohibit_anathema_trigger = {
|
|
|
|
|
save_temporary_scope_as = pam_anathema_candidate
|
|
|
|
|
$CHARACTER$.rite = {
|
|
|
|
|
has_tenet_status = { tenet = scope:pam_anathema_candidate status = permitted }
|
|
|
|
|
}
|
|
|
|
|
tenet_is_anathema_to_faith_trigger = { FAITH = $CHARACTER$.faith }
|
|
|
|
|
pam_tenet_ai_may_prohibit_trigger = { CHARACTER = $CHARACTER$ }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Tenet scope. An intrinsic tenet that $CHARACTER$'s rite prohibits
|
|
|
|
|
pam_tenet_ai_should_permit_intrinsic_trigger = {
|
|
|
|
|
save_temporary_scope_as = pam_intrinsic_candidate
|
|
|
|
|
$CHARACTER$.rite = {
|
|
|
|
|
has_tenet_status = { tenet = scope:pam_intrinsic_candidate status = prohibited }
|
|
|
|
|
}
|
|
|
|
|
tenet_is_intrinsic_to_faith_trigger = { FAITH = $CHARACTER$.faith }
|
|
|
|
|
pam_tenet_ai_may_permit_trigger = { CHARACTER = $CHARACTER$ }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Prohibiting a branched rite's core tenet drives that rite towards heresy, so only zealous AI Heads of Faith do it
|
|
|
|
|
# The bigger the largest rite holding the tenet, the more extreme they must also be
|
|
|
|
|
pam_tenet_ai_may_prohibit_rite_tenet_trigger = {
|
|
|
|
|
save_temporary_scope_as = pam_protected_tenet
|
|
|
|
|
$CHARACTER$.faith = {
|
|
|
|
|
save_temporary_scope_value_as = {
|
|
|
|
|
name = pam_protected_tenet_rite_counties
|
|
|
|
|
value = pam_largest_branched_rite_holding_tenet_counties_value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_if = {
|
|
|
|
|
limit = { scope:pam_protected_tenet_rite_counties > 0 }
|
|
|
|
|
$CHARACTER$ = { has_trait = zealous }
|
|
|
|
|
trigger_if = {
|
|
|
|
|
limit = { scope:pam_protected_tenet_rite_counties >= pam_rite_tenet_protection_large_counties_value }
|
|
|
|
|
$CHARACTER$ = {
|
|
|
|
|
OR = {
|
|
|
|
|
has_trait = lunatic
|
|
|
|
|
has_trait = possessed
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else_if = {
|
|
|
|
|
limit = { scope:pam_protected_tenet_rite_counties >= pam_rite_tenet_protection_medium_counties_value }
|
|
|
|
|
$CHARACTER$ = {
|
|
|
|
|
OR = {
|
|
|
|
|
has_trait = lunatic
|
|
|
|
|
has_trait = possessed
|
|
|
|
|
has_trait = wrathful
|
|
|
|
|
has_trait = arbitrary
|
|
|
|
|
has_trait = callous
|
|
|
|
|
has_trait = stubborn
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else = { always = yes }
|
|
|
|
|
}
|
|
|
|
|
trigger_else = { always = yes }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_tenet_can_be_persecuted_trigger = {
|
|
|
|
|
@ -2836,11 +2957,54 @@ pam_faith_tenet_is_core_trigger = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_faith_is_at_core_tenet_cap_trigger = {
|
|
|
|
|
main_rite = {
|
|
|
|
|
main_rite = { pam_rite_is_at_core_tenet_cap_trigger = yes }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Tenet scope. Unlike Asceticism, is_shown needs the PAM DLC and can_pick needs a Christian faith
|
|
|
|
|
pam_tenet_is_christian_exclusive_ascetic_tenet_trigger = {
|
|
|
|
|
OR = {
|
|
|
|
|
this = tenet:tenet_hesychasm
|
|
|
|
|
this = tenet:tenet_anachoresis
|
|
|
|
|
this = tenet:tenet_mortification_of_the_flesh
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Tenet scope. The four tenets that exclude each other in can_pick.
|
|
|
|
|
pam_tenet_is_exclusive_ascetic_tenet_trigger = {
|
|
|
|
|
OR = {
|
|
|
|
|
pam_tenet_is_christian_exclusive_ascetic_tenet_trigger = yes
|
|
|
|
|
this = tenet:tenet_asceticism
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Rite scope. $NEW$ and $DROPPED$ are tenet scopes.
|
|
|
|
|
# can_pick still sees $DROPPED$. This is that check once $DROPPED$ is set aside.
|
|
|
|
|
pam_rite_can_swap_exclusive_ascetic_tenet_trigger = {
|
|
|
|
|
$NEW$ = { pam_tenet_is_exclusive_ascetic_tenet_trigger = yes }
|
|
|
|
|
$DROPPED$ = {
|
|
|
|
|
pam_tenet_is_exclusive_ascetic_tenet_trigger = yes
|
|
|
|
|
NOT = { this = $NEW$ }
|
|
|
|
|
}
|
|
|
|
|
rite_has_tenet = $DROPPED$
|
|
|
|
|
# any_rite_tenet already walks this rite's core tenets. status would filter by the main rite instead.
|
|
|
|
|
NOT = {
|
|
|
|
|
any_rite_tenet = {
|
|
|
|
|
count >= pam_faith_core_tenets_cap_value
|
|
|
|
|
count >= 2
|
|
|
|
|
pam_tenet_is_exclusive_ascetic_tenet_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_if = {
|
|
|
|
|
limit = { $NEW$ = { pam_tenet_is_christian_exclusive_ascetic_tenet_trigger = yes } }
|
|
|
|
|
faith = { religion = religion:christianity_religion }
|
|
|
|
|
has_pam_dlc_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Rite scope
|
|
|
|
|
pam_rite_is_at_core_tenet_cap_trigger = {
|
|
|
|
|
any_rite_tenet = {
|
|
|
|
|
count >= pam_faith_core_tenets_cap_value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# $CHARACTER$'s faith supplies the popularity, from tenet scope
|
|
|
|
|
@ -3060,6 +3224,13 @@ pam_ai_mountain_capital_actor_trigger = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
is_proto_hof_trigger = {
|
|
|
|
|
OR = {
|
|
|
|
|
has_title = title:k_papal_state
|
|
|
|
|
has_title = title:k_orthodox
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# title_preferred_capital_county is the de jure capital even if k_papal_state is uncreated
|
|
|
|
|
pam_catholic_hof_weak_papal_state_control_trigger = {
|
|
|
|
|
has_pam_dlc_trigger = yes
|
|
|
|
|
@ -3105,6 +3276,36 @@ pam_demand_child_recipient_cares_trigger = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_demand_child_is_recipient_heir_trigger = {
|
|
|
|
|
scope:secondary_recipient = {
|
|
|
|
|
OR = {
|
|
|
|
|
is_primary_heir_of = scope:recipient
|
|
|
|
|
AND = {
|
|
|
|
|
is_child_of = scope:recipient
|
|
|
|
|
is_adult = no
|
|
|
|
|
OR = {
|
|
|
|
|
scope:recipient = { has_realm_law_flag = appointment_type_succession }
|
|
|
|
|
scope:recipient.primary_title ?= { has_title_law_flag = appointment_type_succession }
|
|
|
|
|
}
|
|
|
|
|
trigger_if = {
|
|
|
|
|
limit = { is_female = yes }
|
|
|
|
|
NOT = { scope:recipient = { has_realm_law = male_only_law } }
|
|
|
|
|
}
|
|
|
|
|
trigger_else = {
|
|
|
|
|
NOT = { scope:recipient = { has_realm_law = female_only_law } }
|
|
|
|
|
}
|
|
|
|
|
NOT = {
|
|
|
|
|
any_sibling = {
|
|
|
|
|
is_child_of = scope:recipient
|
|
|
|
|
sex_same_as = prev
|
|
|
|
|
age > prev.age
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_has_forbidden_personal_tenet_trigger = {
|
|
|
|
|
faith = { save_temporary_scope_as = temp_faith }
|
|
|
|
|
any_personal_tenet = {
|
|
|
|
|
@ -3139,6 +3340,78 @@ pam_ai_can_consider_forbidden_personal_tenet_trigger = {
|
|
|
|
|
pam_holds_college_elected_church_seat_trigger = no
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Scope is a tenet, root is the character who would take it as a personal tenet
|
|
|
|
|
pam_ai_can_take_personal_tenet_trigger = {
|
|
|
|
|
root = {
|
|
|
|
|
NOT = { has_personal_tenet = prev }
|
|
|
|
|
can_pick_personal_tenet = prev
|
|
|
|
|
}
|
|
|
|
|
trigger_if = {
|
|
|
|
|
limit = {
|
|
|
|
|
root.faith.main_rite = {
|
|
|
|
|
has_tenet_status = {
|
|
|
|
|
tenet = prev
|
|
|
|
|
status = prohibited
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
root = { pam_ai_can_consider_forbidden_personal_tenet_trigger = yes }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Scope is a core tenet of root's rite, root is the character who would take it as a personal tenet
|
|
|
|
|
pam_ai_personal_tenet_fallback_trigger = {
|
|
|
|
|
pam_ai_can_take_personal_tenet_trigger = yes
|
|
|
|
|
save_temporary_scope_as = pam_personal_tenet_fallback
|
|
|
|
|
root = {
|
|
|
|
|
NOT = {
|
|
|
|
|
any_undesired_tenet = {
|
|
|
|
|
only_negative = yes
|
|
|
|
|
threshold = -1
|
|
|
|
|
this = scope:pam_personal_tenet_fallback
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Scope is a tenet, root is the character who would take it as a personal tenet
|
|
|
|
|
# A personal tenet only raises fulfillment if their rite approves it
|
|
|
|
|
pam_ai_personal_tenet_candidate_trigger = {
|
|
|
|
|
pam_ai_can_take_personal_tenet_trigger = yes
|
|
|
|
|
OR = {
|
|
|
|
|
AND = {
|
|
|
|
|
root.rite = {
|
|
|
|
|
has_at_least_tenet_status = {
|
|
|
|
|
tenet = prev
|
|
|
|
|
status = permitted
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
root = {
|
|
|
|
|
expected_tenet_fulfillment_change = {
|
|
|
|
|
target = prev
|
|
|
|
|
value >= 1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
root.faith.main_rite = {
|
|
|
|
|
has_tenet_status = {
|
|
|
|
|
tenet = prev
|
|
|
|
|
status = prohibited
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Scope is a personal tenet, root is the character holding it
|
|
|
|
|
pam_personal_tenet_gives_no_fulfillment_trigger = {
|
|
|
|
|
root = {
|
|
|
|
|
expected_tenet_fulfillment_change = {
|
|
|
|
|
target = prev
|
|
|
|
|
value < 1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_is_christian_clergy_trigger = {
|
|
|
|
|
OR = {
|
|
|
|
|
religion = religion:catholic_religion
|
|
|
|
|
@ -4658,7 +4931,7 @@ pam_valid_excommunication_target_trigger = {
|
|
|
|
|
trigger_else = {
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = bishop_excommunication_target_wanderer_tt
|
|
|
|
|
location.county = {
|
|
|
|
|
location.county ?= {
|
|
|
|
|
OR = {
|
|
|
|
|
holder ?= {
|
|
|
|
|
target_is_same_character_or_above = $EXCOMMUNICATOR$
|
|
|
|
|
@ -4907,6 +5180,7 @@ valid_claim_war_incited_attacker_trigger = {
|
|
|
|
|
claim_war_incited_attacker_can_be_picked_trigger = {
|
|
|
|
|
custom_description = {
|
|
|
|
|
text = incite_claim_war_attacker_must_share_faith_tt
|
|
|
|
|
object = scope:puppet_or_actor
|
|
|
|
|
faith = scope:puppet_or_actor.faith
|
|
|
|
|
}
|
|
|
|
|
custom_description = {
|
|
|
|
|
@ -4929,6 +5203,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|
|
|
|
}
|
|
|
|
|
custom_description = {
|
|
|
|
|
text = incite_claim_war_attacker_must_be_strong_enough_tt
|
|
|
|
|
object = $RECIPIENT$
|
|
|
|
|
current_military_strength >= $RECIPIENT$.one_tenth_current_military_strength
|
|
|
|
|
}
|
|
|
|
|
custom_description = {
|
|
|
|
|
@ -4943,6 +5218,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|
|
|
|
}
|
|
|
|
|
custom_description = {
|
|
|
|
|
text = incite_claim_war_attacker_must_not_be_blocked_diplomacy_tt
|
|
|
|
|
object = $RECIPIENT$
|
|
|
|
|
NOR = {
|
|
|
|
|
this = scope:puppet_or_actor
|
|
|
|
|
this = $RECIPIENT$
|
|
|
|
|
@ -4958,6 +5234,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|
|
|
|
}
|
|
|
|
|
custom_description = {
|
|
|
|
|
text = incite_claim_war_attacker_liege_not_at_war_tt
|
|
|
|
|
object = $RECIPIENT$
|
|
|
|
|
NOT = {
|
|
|
|
|
any_liege_or_above = {
|
|
|
|
|
is_at_war_with = $RECIPIENT$
|
|
|
|
|
@ -4966,6 +5243,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|
|
|
|
}
|
|
|
|
|
custom_description = {
|
|
|
|
|
text = incite_claim_war_attacker_must_have_claim_on_recipient_tt
|
|
|
|
|
object = $RECIPIENT$
|
|
|
|
|
any_claim = {
|
|
|
|
|
tier >= tier_county
|
|
|
|
|
tier <= tier_kingdom
|
|
|
|
|
@ -4979,6 +5257,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|
|
|
|
limit = { exists = scope:target }
|
|
|
|
|
custom_description = {
|
|
|
|
|
text = incite_claim_war_attacker_must_have_claim_on_target_tt
|
|
|
|
|
object = scope:target
|
|
|
|
|
has_claim_on = scope:target
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -5694,7 +5973,13 @@ pam_college_election_title_has_electors_trigger = {
|
|
|
|
|
faith.religious_head_title = { any_elector = {} }
|
|
|
|
|
}
|
|
|
|
|
trigger_else = {
|
|
|
|
|
title:k_papal_state = { any_elector = {} }
|
|
|
|
|
# A higher tier primary title takes over the realm election from the Papacy
|
|
|
|
|
title:k_papal_state = {
|
|
|
|
|
OR = {
|
|
|
|
|
any_elector = {}
|
|
|
|
|
holder ?= { primary_title = { any_elector = {} } }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -5725,12 +6010,19 @@ pam_is_college_election_candidate_trigger = {
|
|
|
|
|
source = $SOURCE$
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else = {
|
|
|
|
|
trigger_else_if = {
|
|
|
|
|
limit = { title:k_papal_state = { any_elector = {} } }
|
|
|
|
|
is_candidate_from_set = {
|
|
|
|
|
title = title:k_papal_state
|
|
|
|
|
source = $SOURCE$
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else = {
|
|
|
|
|
is_candidate_from_set = {
|
|
|
|
|
title = title:k_papal_state.holder.primary_title
|
|
|
|
|
source = $SOURCE$
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else = { # Error log suppressing
|
|
|
|
|
always = no
|
|
|
|
|
@ -6253,10 +6545,36 @@ target_valid_request_unformed_title_trigger = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pam_personal_pacifism_offensive_war_ban_trigger = {
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = pam_personal_pacifism_offensive_war_ban_tt
|
|
|
|
|
scope:attacker = {
|
|
|
|
|
NOT = { has_personal_tenet_flag = tenet_pacifism_no_offensive_war }
|
|
|
|
|
trigger_if = {
|
|
|
|
|
limit = {
|
|
|
|
|
scope:attacker = {
|
|
|
|
|
has_personal_tenet = tenet:tenet_pacifism
|
|
|
|
|
has_personal_tenet_flag = tenet_pacifism_no_offensive_war
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = pam_personal_tenet_pacifism_offensive_war_ban_tt
|
|
|
|
|
always = no
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else_if = {
|
|
|
|
|
limit = {
|
|
|
|
|
scope:attacker = {
|
|
|
|
|
has_personal_tenet = tenet:tenet_dharmic_pacifism
|
|
|
|
|
has_personal_tenet_flag = tenet_pacifism_no_offensive_war
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = pam_personal_tenet_dharmic_pacifism_offensive_war_ban_tt
|
|
|
|
|
always = no
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trigger_else = {
|
|
|
|
|
custom_tooltip = {
|
|
|
|
|
text = pam_personal_pacifism_offensive_war_ban_tt
|
|
|
|
|
scope:attacker = {
|
|
|
|
|
NOT = { has_personal_tenet_flag = tenet_pacifism_no_offensive_war }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -7039,8 +7357,8 @@ pam_personal_syncretism_exile_rite_probe_trigger = {
|
|
|
|
|
|
|
|
|
|
# Valid exile pool entry for the personal syncretism decision.
|
|
|
|
|
pam_personal_syncretism_exile_rite_trigger = {
|
|
|
|
|
exists = var:converted_development
|
|
|
|
|
var:converted_development >= 1
|
|
|
|
|
exists = var:converted_prosperity
|
|
|
|
|
var:converted_prosperity >= 1
|
|
|
|
|
NOT = { rite_has_parameter = unreformed }
|
|
|
|
|
exists = var:associated_culture
|
|
|
|
|
exists = var:associated_county
|
|
|
|
|
@ -7404,6 +7722,27 @@ can_send_make_external_ruler_puppet_trigger = {
|
|
|
|
|
exists = $RECIPIENT$.rite.head_of_rite
|
|
|
|
|
$RECIPIENT$.rite.head_of_rite = $ACTOR$
|
|
|
|
|
}
|
|
|
|
|
AND = {
|
|
|
|
|
$ACTOR$ = {
|
|
|
|
|
is_guelph_leader_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
$RECIPIENT$ = {
|
|
|
|
|
is_guelph_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
AND = {
|
|
|
|
|
$ACTOR$ = {
|
|
|
|
|
is_ghibelline_leader_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
$RECIPIENT$ = {
|
|
|
|
|
is_ghibelline_trigger = yes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$ACTOR$ = {
|
|
|
|
|
government_has_flag = government_is_merchant
|
|
|
|
|
has_realm_law = company_purpose_creditor
|
|
|
|
|
has_hook = $RECIPIENT$
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$ACTOR$ = {
|
|
|
|
|
|