From c2319e81f34eabe4911bfdb1b969d03c259416bb Mon Sep 17 00:00:00 2001 From: Damimani Date: Fri, 30 Oct 2026 21:04:22 +0100 Subject: [PATCH] Update pam_scripted_triggers.txt --- .../pam_scripted_triggers.txt | 1104 ++++++++--------- 1 file changed, 552 insertions(+), 552 deletions(-) diff --git a/common/scripted_triggers/pam_scripted_triggers.txt b/common/scripted_triggers/pam_scripted_triggers.txt index cc1f0e9d8..af9aeda3a 100644 --- a/common/scripted_triggers/pam_scripted_triggers.txt +++ b/common/scripted_triggers/pam_scripted_triggers.txt @@ -2,7 +2,7 @@ has_personal_tenet_flag = consolamentum_grief_immunity } - Character scope. Keep this cheap for relation/war-enemy iterators; full target validation is below. +# Character scope. Keep this cheap for relation/war-enemy iterators; full target validation is below. pam_adorcism_curse_target_is_living_adult_trigger = { is_available_quick = { adult = yes @@ -37,10 +37,10 @@ pam_adorcism_has_available_curse_target_trigger = { } } - The liturgical language triggers below only evaluate in a rite scope; call them through - main_rite from a faith and through rite from a character. - Pre-scripted rites skip the Head of Rite culture fallback. Slavic, Georgian, Antiochian, - heresies, and custom divergences keep that fallback. +# The liturgical language triggers below only evaluate in a rite scope; call them through +# main_rite from a faith and through rite from a character. +# Pre-scripted rites skip the Head of Rite culture fallback. Slavic, Georgian, Antiochian, +# heresies, and custom divergences keep that fallback. rite_has_pre_scripted_liturgical_language_trigger = { OR = { religion = religion:catholic_religion @@ -53,7 +53,7 @@ rite_has_pre_scripted_liturgical_language_trigger = { } } - These are founding-see rites in rite scope, not map-wide or ordinary swap traditions +# These are founding-see rites in rite scope, not map-wide or ordinary swap traditions pam_rite_is_regional_trigger = { OR = { this = rite:celtic_rite @@ -142,13 +142,13 @@ can_hold_ecumenical_council_trigger = { } } -has_current_phase_any_debate_trigger = { - OR = { - has_current_phase = ecumenical_council_phase_first_debate - has_current_phase = ecumenical_council_phase_second_debate - has_current_phase = ecumenical_council_phase_third_debate - } -} +#has_current_phase_any_debate_trigger = { +# OR = { +# has_current_phase = ecumenical_council_phase_first_debate +# has_current_phase = ecumenical_council_phase_second_debate +# has_current_phase = ecumenical_council_phase_third_debate +# } +#} pam_is_clerical_region_holder_trigger = { any_held_title = { @@ -179,50 +179,50 @@ pam_ecumenical_council_has_quorum_trigger = { } } -the_christian_church_radical_change_allowed_trigger = { - situation:the_christian_church ?= { - OR = { - has_situation_top_phase_parameter = era_type_instability - has_situation_top_phase_parameter = era_type_crisis - } - } -} +#the_christian_church_radical_change_allowed_trigger = { +# situation:the_christian_church ?= { +# OR = { +# has_situation_top_phase_parameter = era_type_instability +# has_situation_top_phase_parameter = era_type_crisis +# } +# } +#} -pam_mass_rite_conversion_conversion_phase_trigger = { - situation:the_christian_church ?= { - has_situation_top_phase_parameter = the_christian_church_mass_rite_conversion_decision - } -} +#pam_mass_rite_conversion_conversion_phase_trigger = { +# situation:the_christian_church ?= { +# has_situation_top_phase_parameter = the_christian_church_mass_rite_conversion_decision +# } +#} -pam_mass_rite_conversion_requirements_trigger = { - has_pam_dlc_trigger = yes - highest_held_title_tier >= tier_duchy -} +#pam_mass_rite_conversion_requirements_trigger = { +# has_pam_dlc_trigger = yes +# highest_held_title_tier >= tier_duchy +#} - Great Schism: progress can still change. Any scope -pam_great_schism_progress_can_change_trigger = { - NOT = { has_global_variable = pam_great_schism_decision_taken } - exists = situation:the_christian_church -} +# Great Schism: progress can still change. Any scope +#pam_great_schism_progress_can_change_trigger = { +# NOT = { has_global_variable = pam_great_schism_decision_taken } +# exists = situation:the_christian_church +#} -pam_can_pick_great_schism_stance_trigger = { - situation:the_christian_church ?= { - var:pam_great_schism_status ?= flag:ongoing - pam_great_schism_progress_can_change_trigger = yes - exists = var:schism_mainline_rite - exists = var:schism_competitor_rite - } - is_ruler = yes - faith = faith:christian_faith -} +#pam_can_pick_great_schism_stance_trigger = { +# situation:the_christian_church ?= { +# var:pam_great_schism_status ?= flag:ongoing +# pam_great_schism_progress_can_change_trigger = yes +# exists = var:schism_mainline_rite +# exists = var:schism_competitor_rite +# } +# is_ruler = yes +# faith = faith:christian_faith +#} - pam_save_schism_head_of_faith_effect saves the see first, then we run in character scope - Uses situation main-power faith so this works before 0062 saves christianity -pam_schism_can_seat_head_of_faith_trigger = { - this = scope:schism_peacemaker - exists = scope:new_head_of_faith - situation:the_christian_church.var:tcc_main_power_faith ?= { NOT = { has_doctrine = doctrine_temporal_head } } -} +# pam_save_schism_head_of_faith_effect saves the see first, then we run in character scope +# Uses situation main-power faith so this works before 0062 saves christianity +#pam_schism_can_seat_head_of_faith_trigger = { +# this = scope:schism_peacemaker +# exists = scope:new_head_of_faith +# situation:the_christian_church.var:tcc_main_power_faith ?= { NOT = { has_doctrine = doctrine_temporal_head } } +#} pam_is_ecumenical_patriarch_trigger = { faith = faith:orthodox_faith @@ -234,124 +234,124 @@ pam_is_ecumenical_patriarch_trigger = { } } - Great Schism: schism stance champions $RITE$ ($OTHER_RITE$ is the opposing side). Character scope -pam_schism_stance_supports_rite_trigger = { - OR = { - AND = { - var:pam_schism_stance ?= flag:mainline - faith:christian_faith.main_rite ?= rite:$RITE$ - } - AND = { - var:pam_schism_stance ?= flag:competitor - faith:christian_faith.main_rite ?= rite:$OTHER_RITE$ - } - } -} +# Great Schism: schism stance champions $RITE$ ($OTHER_RITE$ is the opposing side). Character scope +#pam_schism_stance_supports_rite_trigger = { +# OR = { +# AND = { +# var:pam_schism_stance ?= flag:mainline +# faith:christian_faith.main_rite ?= rite:$RITE$ +# } +# AND = { +# var:pam_schism_stance ?= flag:competitor +# faith:christian_faith.main_rite ?= rite:$OTHER_RITE$ +# } +# } +#} -pam_schism_is_chalcedonian_trigger = { - OR = { - faith = scope:schism_western_faith - faith = scope:schism_eastern_faith - faith = faith:christian_faith - } -} +#pam_schism_is_chalcedonian_trigger = { +# OR = { +# faith = scope:schism_western_faith +# faith = scope:schism_eastern_faith +# faith = faith:christian_faith +# } +#} - Great Schism: has a personal tenet dear to $RITE$. Character scope -pam_has_personal_tenet_of_rite_trigger = { - any_personal_tenet = { - rite:$RITE$ ?= { rite_has_tenet = prev } - } -} +# Great Schism: has a personal tenet dear to $RITE$. Character scope +#pam_has_personal_tenet_of_rite_trigger = { +# any_personal_tenet = { +# rite:$RITE$ ?= { rite_has_tenet = prev } +# } +#} - The delegate's rite is $RITE$, not the judging host's, on a character -pam_ecumenical_council_rite_delegate_trigger = { - this != root - rite = rite:$RITE$ -} +# The delegate's rite is $RITE$, not the judging host's, on a character +#pam_ecumenical_council_rite_delegate_trigger = { +# this != root +# rite = rite:$RITE$ +#} - Heading a rite does not make the holder follow it -pam_is_head_of_schism_pair_rite_trigger = { - OR = { - AND = { - rite = rite:roman_rite - rite:roman_rite.head_of_rite ?= this - } - AND = { - rite = rite:byzantine_rite - rite:byzantine_rite.head_of_rite ?= this - } - } -} +# Heading a rite does not make the holder follow it +#pam_is_head_of_schism_pair_rite_trigger = { +# OR = { +# AND = { +# rite = rite:roman_rite +# rite:roman_rite.head_of_rite ?= this +# } +# AND = { +# rite = rite:byzantine_rite +# rite:byzantine_rite.head_of_rite ?= this +# } +# } +#} - Great Schism: $FIRST$ and $SECOND$ follow opposite schism-pair rites. False if unset. Any scope -pam_schism_characters_in_opposite_pair_rites_trigger = { - situation:the_christian_church ?= { - exists = var:schism_mainline_rite - exists = var:schism_competitor_rite - OR = { - AND = { - $FIRST$.rite ?= var:schism_mainline_rite - $SECOND$.rite ?= var:schism_competitor_rite - } - AND = { - $FIRST$.rite ?= var:schism_competitor_rite - $SECOND$.rite ?= var:schism_mainline_rite - } - } - } -} +# Great Schism: $FIRST$ and $SECOND$ follow opposite schism-pair rites. False if unset. Any scope +#pam_schism_characters_in_opposite_pair_rites_trigger = { +# situation:the_christian_church ?= { +# exists = var:schism_mainline_rite +# exists = var:schism_competitor_rite +# OR = { +# AND = { +# $FIRST$.rite ?= var:schism_mainline_rite +# $SECOND$.rite ?= var:schism_competitor_rite +# } +# AND = { +# $FIRST$.rite ?= var:schism_competitor_rite +# $SECOND$.rite ?= var:schism_mainline_rite +# } +# } +# } +#} - Great Schism: $HEAD$ heads one schism-pair rite; $OTHER$ follows the opposing. False if unset. Any scope -pam_schism_head_of_rite_and_opposing_character_trigger = { - situation:the_christian_church ?= { - exists = var:schism_mainline_rite - exists = var:schism_competitor_rite - OR = { - AND = { - var:schism_mainline_rite.head_of_rite ?= $HEAD$ - $OTHER$.rite ?= var:schism_competitor_rite - } - AND = { - var:schism_competitor_rite.head_of_rite ?= $HEAD$ - $OTHER$.rite ?= var:schism_mainline_rite - } - } - } -} +# Great Schism: $HEAD$ heads one schism-pair rite; $OTHER$ follows the opposing. False if unset. Any scope +#pam_schism_head_of_rite_and_opposing_character_trigger = { +# situation:the_christian_church ?= { +# exists = var:schism_mainline_rite +# exists = var:schism_competitor_rite +# OR = { +# AND = { +# var:schism_mainline_rite.head_of_rite ?= $HEAD$ +# $OTHER$.rite ?= var:schism_competitor_rite +# } +# AND = { +# var:schism_competitor_rite.head_of_rite ?= $HEAD$ +# $OTHER$.rite ?= var:schism_mainline_rite +# } +# } +# } +#} - $RITE$ must be absolute (scope:/root./rite:), and this works in any scope - A bare rite link silently resolves to nothing inside the situation -pam_schism_rite_in_pair_trigger = { - situation:the_christian_church ?= { - exists = var:schism_mainline_rite - exists = var:schism_competitor_rite - OR = { - $RITE$ ?= var:schism_mainline_rite - $RITE$ ?= var:schism_competitor_rite - } - } -} +# $RITE$ must be absolute (scope:/root./rite:), and this works in any scope +# A bare rite link silently resolves to nothing inside the situation +#pam_schism_rite_in_pair_trigger = { +# situation:the_christian_church ?= { +# exists = var:schism_mainline_rite +# exists = var:schism_competitor_rite +# OR = { +# $RITE$ ?= var:schism_mainline_rite +# $RITE$ ?= var:schism_competitor_rite +# } +# } +#} - Great Schism: $COUNTY$'s rite is one of the schism-pair rites. False if unset. Any scope -pam_schism_county_rite_in_pair_trigger = { - situation:the_christian_church ?= { - exists = var:schism_mainline_rite - exists = var:schism_competitor_rite - OR = { - $COUNTY$.rite ?= var:schism_mainline_rite - $COUNTY$.rite ?= var:schism_competitor_rite - } - } -} +# Great Schism: $COUNTY$'s rite is one of the schism-pair rites. False if unset. Any scope +#pam_schism_county_rite_in_pair_trigger = { +# situation:the_christian_church ?= { +# exists = var:schism_mainline_rite +# exists = var:schism_competitor_rite +# OR = { +# $COUNTY$.rite ?= var:schism_mainline_rite +# $COUNTY$.rite ?= var:schism_competitor_rite +# } +# } +#} - Root is the converting ruler, this is the one who stayed on $RITE$ -pam_schism_rite_dissenter_valid_trigger = { - this != root - is_alive = yes - is_adult = yes - is_imprisoned = no - rite ?= $RITE$ -} +# Root is the converting ruler, this is the one who stayed on $RITE$ +#pam_schism_rite_dissenter_valid_trigger = { +# this != root +# is_alive = yes +# is_adult = yes +# is_imprisoned = no +# rite ?= $RITE$ +#} is_clerical_appointment_valid_trigger = { $TITLE$ = { save_temporary_scope_as = title_temp } @@ -359,7 +359,7 @@ is_clerical_appointment_valid_trigger = { $TOP_LIEGE$ = { save_temporary_scope_as = top_liege_temp } trigger_if = { limit = { exists = scope:title_temp } - custom_tooltip = { Has relevant law + custom_tooltip = { # Has relevant law text = has_appointment_succession_tt $TITLE$ = { OR = { @@ -368,7 +368,7 @@ is_clerical_appointment_valid_trigger = { } } } - custom_tooltip = { Titles below the holder's primary tier are inherited alongside it, so they cannot be contested on their own + custom_tooltip = { # Titles below the holder's primary tier are inherited alongside it, so they cannot be contested on their own text = follows_other_title_appointment_tt scope:title_temp.holder ?= { primary_title.tier = scope:title_temp.tier } } @@ -379,7 +379,7 @@ is_clerical_appointment_valid_trigger = { } } - Secular crowns only reach sees in their realm, while ecclesiastical and Head of Rite are unrestricted +# Secular crowns only reach sees in their realm, while ecclesiastical and Head of Rite are unrestricted pam_clerical_candidacy_reach_limited_trigger = { scope:actor = { NOR = { @@ -438,7 +438,7 @@ influence_head_of_faith_candidacy_target_trigger = { text = influence_head_of_faith_candidacy_not_created_tt exists = scope:target.holder } - has_order_of_succession resolves the holder's realm laws, so both checks stay behind the holder check + # has_order_of_succession resolves the holder's realm laws, so both checks stay behind the holder check trigger_if = { limit = { exists = scope:target.holder } custom_tooltip = { @@ -457,11 +457,11 @@ is_clerical_appointment_valid_base_trigger = { $TOP_LIEGE$ = { save_temporary_scope_as = top_liege_temp } scope:candidate_temp = { is_adult = yes - faith = scope:top_liege_temp.faith Must be of the same faith + faith = scope:top_liege_temp.faith # Must be of the same faith custom_tooltip = { text = can_be_appointed_interaction_tt OR = { - can_be_granted_theocratic_titles_by = { RULER = scope:top_liege_temp } Gender checks + can_be_granted_theocratic_titles_by = { RULER = scope:top_liege_temp } # Gender checks AND = { is_diarch_of_target = scope:top_liege_temp scope:top_liege_temp = { has_diarchy_active_parameter = diarchy_is_co_rulership } @@ -470,24 +470,24 @@ is_clerical_appointment_valid_base_trigger = { } custom_tooltip = { text = can_be_appointed_interaction_clergy_tt - OR = { Clergy or Lay Clergy + OR = { # Clergy or Lay Clergy is_clergy = yes - rite = { rite_has_parameter = lay_clergy } HoF cannot be temporal if you have Theocratic clergy, so no need to check for that - this = scope:top_liege_temp.player_heir Designated Theocratic Heir + rite = { rite_has_parameter = lay_clergy } # HoF cannot be temporal if you have Theocratic clergy, so no need to check for that + this = scope:top_liege_temp.player_heir # Designated Theocratic Heir AND = { is_landless_adventurer = yes this = scope:top_liege_temp } } } - custom_tooltip = { Only theocracies + custom_tooltip = { # Only theocracies text = only_theocratic_tt OR = { government_has_flag = government_is_theocracy is_landed = no } } - custom_tooltip = { Barred from holding titles + custom_tooltip = { # Barred from holding titles text = can_be_appointed_interaction_can_inherit_tt NOR = { has_trait = order_member @@ -498,7 +498,7 @@ is_clerical_appointment_valid_base_trigger = { } } - Expects interaction scopes actor/target/secondary_recipient +# Expects interaction scopes actor/target/secondary_recipient pam_clerical_self_candidacy_restriction_trigger = { trigger_if = { limit = { @@ -535,7 +535,7 @@ pam_clerical_self_candidacy_restriction_trigger = { pam_investiture_supports_spiritual_revocable_trigger = { - Both flag values are read so neither is flagged "set but never used". + # Both flag values are read so neither is flagged "set but never used". trigger_if = { limit = { has_variable = investiture_stance @@ -551,7 +551,7 @@ pam_investiture_supports_spiritual_revocable_trigger = { always = no } trigger_else = { - is_clergy too: landless chaplains have no government, so the flag would count them as secular + # is_clergy too: landless chaplains have no government, so the flag would count them as secular OR = { government_is_religious_trigger = yes is_clergy = yes @@ -585,20 +585,20 @@ pam_investiture_council_voter_has_locked_stance_trigger = { } } -pam_can_use_investiture_conflict_cb_trigger = { - has_pam_dlc_trigger = yes - faith = { religion = religion:christianity_religion } - situation:the_christian_church ?= { - has_situation_top_phase_parameter = the_christian_church_investiture_controversy - } - We block new conflicts while the council is pending, as a war would pull the host away and cancel it - custom_tooltip = { - text = pam_investiture_cb_council_pending_tt - NOT = { faith = { has_variable = investiture_council_pending } } - } -} +#pam_can_use_investiture_conflict_cb_trigger = { +# has_pam_dlc_trigger = yes +# faith = { religion = religion:christianity_religion } +# situation:the_christian_church ?= { +# has_situation_top_phase_parameter = the_christian_church_investiture_controversy +# } +# # We block new conflicts while the council is pending, as a war would pull the host away and cancel it +# custom_tooltip = { +# text = pam_investiture_cb_council_pending_tt +# NOT = { faith = { has_variable = investiture_council_pending } } +# } +#} - scope:attacker is the aggressor, and the defender is root +# scope:attacker is the aggressor, and the defender is root pam_valid_investiture_conflict_target_trigger = { this != scope:attacker faith = scope:attacker.faith @@ -611,18 +611,18 @@ pam_valid_investiture_conflict_target_trigger = { } } -pam_main_power_faith_conditional_appointment_trigger = { - situation:the_christian_church.var:tcc_main_power_faith ?= { - has_doctrine = doctrine_clerical_succession_conditional - } -} +#pam_main_power_faith_conditional_appointment_trigger = { +# situation:the_christian_church.var:tcc_main_power_faith ?= { +# has_doctrine = doctrine_clerical_succession_conditional +# } +#} -pam_investiture_crisis_has_contested_faith_trigger = { - situation:the_christian_church.var:tcc_main_power_faith ?= { - has_doctrine = doctrine_clerical_succession_conditional - exists = religious_head - } -} +#pam_investiture_crisis_has_contested_faith_trigger = { +# situation:the_christian_church.var:tcc_main_power_faith ?= { +# has_doctrine = doctrine_clerical_succession_conditional +# exists = religious_head +# } +#} pam_available_investiture_hof_ai_trigger = { is_ai = yes @@ -638,19 +638,19 @@ pam_valid_investiture_council_host_trigger = { is_ai = yes is_available_adult = yes is_landed = yes - PAM archbishops often fail the is_clergy org match + # PAM archbishops often fail the is_clergy org match government_has_flag = government_is_ecclesiastical can_hold_ecumenical_council_trigger = yes NOT = { faith.religious_head = this } - any_held_title avoids the landless context-switch primary_title would cause + # any_held_title avoids the landless context-switch primary_title would cause any_held_title = { tier >= tier_duchy has_clerical_region = yes } } -Sell Claim - True if TARGET, a county title, lies within a clerical region the scoped character holds. +###Sell Claim### +# 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 = { @@ -659,7 +659,7 @@ pam_sell_claim_target_in_own_clerical_region_trigger = { } } - Shared with has_valid_target_showing_failures_only: can_be_picked_title is not rechecked on send +# Shared with has_valid_target_showing_failures_only: can_be_picked_title is not rechecked on send pam_can_sell_claim_on_target_trigger = { scope:target = { is_landless_type_title = no @@ -690,7 +690,7 @@ pam_can_sell_claim_on_target_trigger = { } } } - Realm scan, so it sits behind the cheap ownership and claim gates + # Realm scan, so it sits behind the cheap ownership and claim gates custom_tooltip = { text = sell_claim_recipient_must_border_target_tt scope:target ?= { @@ -699,7 +699,7 @@ pam_can_sell_claim_on_target_trigger = { } } -Gift Claim +###Gift Claim### pam_gift_claim_recipient_in_own_clerical_region_trigger = { exists = $TARGET$.capital_county.clerical_region_title any_held_title = { @@ -793,7 +793,7 @@ can_influence_clerical_appointment_trigger = { } } } - Capital see filled by appointment still matters even if the realm priest is landless + # Capital see filled by appointment still matters even if the realm priest is landless capital_county.clerical_region_title ?= { OR = { has_title_law = clerical_appointment_law @@ -809,7 +809,7 @@ pam_cathedral_project_requirements_trigger = { has_spiritual_fulfillment_type = christian_fulfillment } - Landless clerical titles: title_capital_county is the holder's current location, not the fixed see +# Landless clerical titles: title_capital_county is the holder's current location, not the fixed see is_valid_cathedral_clerical_region_capital_trigger = { trigger_if = { limit = { exists = county.clerical_region_title } @@ -1055,11 +1055,11 @@ pam_rite_values_martial_clergy_trigger = { } } - We skip is_landed because ecclesiastical government is landless_playable +# We skip is_landed because ecclesiastical government is landless_playable pam_court_wants_monk_courtiers_trigger = { has_pam_dlc_trigger = yes is_ruler = yes - highest_held_title_tier >= tier_county A village priest is not a bishop with a familia + highest_held_title_tier >= tier_county # A village priest is not a bishop with a familia OR = { religion = religion:catholic_religion religion = religion:protestant_religion @@ -1074,7 +1074,7 @@ pam_court_wants_monk_courtiers_trigger = { } } - Province holds a temple leased to a monastic order +# Province holds a temple leased to a monastic order pam_province_has_monastic_lease_trigger = { has_holding_type = church_holding barony = { @@ -1083,7 +1083,7 @@ pam_province_has_monastic_lease_trigger = { } } - The courtier is the scope so kin stay eligible for appointment standing +# The courtier is the scope so kin stay eligible for appointment standing pam_clerical_court_ordain_candidate_trigger = { is_adult = yes is_available = yes @@ -1099,7 +1099,7 @@ pam_clerical_court_ordain_candidate_trigger = { } } - Court cleric with room left to grow under the develop-clerical-court caps. Evaluated on the courtier. +# Court cleric with room left to grow under the develop-clerical-court caps. Evaluated on the courtier. pam_clerical_court_pupil_trigger = { is_adult = yes is_available = yes @@ -1141,8 +1141,8 @@ faith_has_sacraments_trigger = { } } -SCRIPTED TRIGGER FOR GENERAL HOLY ORDER INTERACTIONS, TO FIND ORDERS WITH LEASED HOLDINGS NEARBY -Find leased title within a believe range that you would reasonable have access to or care about +#SCRIPTED TRIGGER FOR GENERAL HOLY ORDER INTERACTIONS, TO FIND ORDERS WITH LEASED HOLDINGS NEARBY +#Find leased title within a believe range that you would reasonable have access to or care about holy_order_range_trigger = { custom_tooltip = { text = monastic_holdings_too_distant_tt @@ -1186,46 +1186,46 @@ government_is_religious_trigger = { } } -pam_better_siphon_treasury_trigger = { - top_participant_group:the_christian_church ?= { - has_participant_group_parameter = the_christian_church_better_siphon_treasury - } -} +#pam_better_siphon_treasury_trigger = { +# top_participant_group:the_christian_church ?= { +# has_participant_group_parameter = the_christian_church_better_siphon_treasury +# } +#} - No Annoinments during the Investiture Crisis -pam_the_christian_church_no_coronation_trigger = { - top_participant_group:the_christian_church ?= { - has_participant_group_parameter = the_christian_church_no_coronation - } -} +# No Annoinments during the Investiture Crisis +#pam_the_christian_church_no_coronation_trigger = { +# top_participant_group:the_christian_church ?= { +# has_participant_group_parameter = the_christian_church_no_coronation +# } +#} - Secular rulers who follow an Antipope can be anointed by them while the mainline hierarchy refuses -pam_the_christian_church_antipope_coronations_trigger = { - top_participant_group:the_christian_church ?= { - has_participant_group_parameter = the_christian_church_antipope_coronations - } -} +# Secular rulers who follow an Antipope can be anointed by them while the mainline hierarchy refuses +#pam_the_christian_church_antipope_coronations_trigger = { +# top_participant_group:the_christian_church ?= { +# has_participant_group_parameter = the_christian_church_antipope_coronations +# } +#} - Anointment is sought from this authority, and $RULER$ is the ruler seeking it - We still let an antipope anoint their followers, otherwise Investiture Crisis blocks the mainline -pam_the_christian_church_no_anointment_trigger = { - save_temporary_scope_as = pam_anointment_authority_check - trigger_if = { - limit = { - pam_is_antipope_trigger = yes - $RULER$ = { - pam_the_christian_church_antipope_coronations_trigger = yes - religious_head_or_challenger ?= scope:pam_anointment_authority_check - } - } - always = no - } - trigger_else = { - pam_the_christian_church_no_coronation_trigger = yes - } -} +# Anointment is sought from this authority, and $RULER$ is the ruler seeking it +# We still let an antipope anoint their followers, otherwise Investiture Crisis blocks the mainline +#pam_the_christian_church_no_anointment_trigger = { +# save_temporary_scope_as = pam_anointment_authority_check +# trigger_if = { +# limit = { +# pam_is_antipope_trigger = yes +# $RULER$ = { +# pam_the_christian_church_antipope_coronations_trigger = yes +# religious_head_or_challenger ?= scope:pam_anointment_authority_check +# } +# } +# always = no +# } +# trigger_else = { +# pam_the_christian_church_no_coronation_trigger = yes +# } +#} - Any living ruler of kingdom tier or above whose capital lies in Europe and follows a non-Christian religion +# Any living ruler of kingdom tier or above whose capital lies in Europe and follows a non-Christian religion pam_non_christian_kingdom_holder_in_europe_trigger = { any_ruler = { is_alive = yes @@ -1239,7 +1239,7 @@ pam_non_christian_kingdom_holder_in_europe_trigger = { capital_province = { geographical_region = world_europe } - NOT = { has_variable = pam_non_christian_kingdom_holder_in_europe_trigger_var } To avoid the same ruler counting every year + NOT = { has_variable = pam_non_christian_kingdom_holder_in_europe_trigger_var } # To avoid the same ruler counting every year } } @@ -1281,13 +1281,13 @@ can_have_realm_priest_puppet_trigger = { NOT = { government_has_flag = government_is_nomadic } } - Ecclesiastical government is landless_playable, so do not filter these on is_landed +# Ecclesiastical government is landless_playable, so do not filter these on is_landed pam_landless_playable_cleric_trigger = { has_pam_dlc_trigger = yes government_has_flag = government_is_ecclesiastical } - Archbishop (clerical region title holder) or above them in the hierarchy: Head of Rite or Head of Faith +# Archbishop (clerical region title holder) or above them in the hierarchy: Head of Rite or Head of Faith pam_is_archbishop_or_higher_trigger = { OR = { any_held_title = { has_clerical_region = yes } @@ -1295,7 +1295,7 @@ pam_is_archbishop_or_higher_trigger = { } } - A cardinal, Head of Rite, or archbishop of $CHARACTER$'s faith +# A cardinal, Head of Rite, or archbishop of $CHARACTER$'s faith pam_is_senior_cleric_of_character_trigger = { has_pam_dlc_trigger = yes OR = { @@ -1312,7 +1312,7 @@ pam_is_senior_cleric_of_character_trigger = { } } - A character is a theological puppet if they have a puppeteer who keeps them as a (external) theological puppet. +# A character is a theological puppet if they have a puppeteer who keeps them as a (external) theological puppet. is_theological_agent_puppet_trigger = { trigger_if = { limit = { @@ -1330,7 +1330,7 @@ is_theological_agent_puppet_trigger = { } } - A character has a theological puppet if they keep either an internal or external theological puppet. +# A character has a theological puppet if they keep either an internal or external theological puppet. has_theological_agent_puppet_trigger = { custom_tooltip = { text = no_clerical_puppet_tt @@ -1346,8 +1346,8 @@ puppet_action_puppet_is_secular_ruler_trigger = { puppet:external_ruler_puppet ?= scope:puppet } - The acting character is the scope, and on the puppet action path that is the puppet - A puppet standing in for a missing Head of Faith defers to its puppeteer +# The acting character is the scope, and on the puppet action path that is the puppet +# A puppet standing in for a missing Head of Faith defers to its puppeteer can_manage_faith_holy_sites_trigger = { trigger_if = { limit = { exists = faith.religious_head } @@ -1371,12 +1371,12 @@ 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 realm priest puppet plus piety standing. can_manage_faith_holy_sites_without_hof_trigger = { OR = { custom_tooltip = { text = manage_holy_sites_realm_priest_puppet_tt - puppet: errors on non-playable characters, so we only check playable ones and tooltips never run it + # 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 @@ -1427,7 +1427,7 @@ holy_site_free_action_show_usage_trigger = { } } - The attendee is the teacher, and root is the student receiving the activity event +# The attendee is the teacher, and root is the student receiving the activity event ecumenical_shareable_unknown_tenet_for_root_trigger = { save_temporary_scope_as = ecumenical_tenet_teacher any_character_tenet = { @@ -1511,7 +1511,7 @@ pam_not_antipope_when_recipient_is_hof_tt = { } } -Does the province have a domicile that whose owner is the same rite as the character in question and also has a cathedral school level 3 (has_domicile_parameter = domicile_building_is_university) +#Does the province have a domicile that whose owner is the same rite as the character in question and also has a cathedral school level 3 (has_domicile_parameter = domicile_building_is_university) has_domicile_building_cathedral_school = { $LOCATION$ = { any_province_domicile = { @@ -1524,7 +1524,7 @@ has_domicile_building_cathedral_school = { } } - Kingdom of Heaven — no other character of your faith has a higher Piety Level (ties at same level allowed) +# Kingdom of Heaven — no other character of your faith has a higher Piety Level (ties at same level allowed) pam_kingdom_of_heaven_has_highest_piety_level_in_faith_trigger = { NOT = { root.faith = { @@ -1536,7 +1536,7 @@ pam_kingdom_of_heaven_has_highest_piety_level_in_faith_trigger = { } } - Either there is no independent emperor-tier ruler of your faith, or you have a hook on each of them +# Either there is no independent emperor-tier ruler of your faith, or you have a hook on each of them pam_kingdom_of_heaven_hooks_on_all_faith_emperors_or_none_trigger = { NOT = { any_independent_ruler = { @@ -1552,12 +1552,12 @@ pam_kingdom_of_heaven_hooks_on_all_faith_emperors_or_none_trigger = { } } - At least half of the worldwide same faith counties are in your realm +# At least half of the worldwide same faith counties are in your realm pam_kingdom_of_heaven_half_faith_in_realm_trigger = { pam_koh_same_faith_realm_counties_value >= pam_koh_half_faith_counties_required_value } - For identifying religious player trigger (Theocratic ruler events) +# For identifying religious player trigger (Theocratic ruler events) pam_government_is_religious_playable_trigger = { OR = { government_has_flag = government_is_theocracy @@ -1595,7 +1595,7 @@ pam_recipient_is_clerical_title_authority_trigger = { } } - secondary_recipient if present (replace), else recipient (grant) +# secondary_recipient if present (replace), else recipient (grant) pam_grant_ecclesiastical_title_appointee_changes_rite_trigger = { trigger_if = { limit = { exists = scope:secondary_recipient } @@ -1606,7 +1606,7 @@ pam_grant_ecclesiastical_title_appointee_changes_rite_trigger = { } } - Non-military clergy ruler: generic theocracy, Christian ecclesiastical, or monastic holy order. +# Non-military clergy ruler: generic theocracy, Christian ecclesiastical, or monastic holy order. pam_is_clergy_ruler_trigger = { OR = { government_has_flag = government_is_theocracy @@ -1615,8 +1615,8 @@ pam_is_clergy_ruler_trigger = { } } - Dynastic approval is a separate authority and still applies - We require the DLC because government_is_theocracy already exists in the base game +# Dynastic approval is a separate authority and still applies +# We require the DLC because government_is_theocracy already exists in the base game pam_grants_own_divorce_trigger = { has_pam_dlc_trigger = yes pam_is_clergy_ruler_trigger = yes @@ -1631,7 +1631,7 @@ pam_clergy_continence_expected_trigger = { } } - Antipopes are filed as subordinates of the top superior +# Antipopes are filed as subordinates of the top superior pam_court_scene_resident_subordinate_trigger = { exists = location location = scope:ruler.capital_province @@ -1644,7 +1644,7 @@ pam_court_scene_resident_subordinate_trigger = { pam_clergy_interactions_faith_trigger = { faith = { NOT = { has_doctrine_parameter = unreformed } } OR = { - Has a theocratic head of faith + #Has a theocratic head of faith faith = { has_doctrine_parameter = spiritual_head_of_faith } rite = { rite_has_parameter = theocracy_temple_lease } } @@ -1655,7 +1655,7 @@ claim_valid_faith_subordinate_trigger = { is_at_war_with = scope:puppet_or_actor has_trait = excommunicated } - Also used to populate the recipient list, where no recipient exists yet + # Also used to populate the recipient list, where no recipient exists yet trigger_if = { limit = { exists = scope:recipient } NOR = { @@ -1672,16 +1672,16 @@ claim_valid_faith_subordinate_trigger = { } highest_held_title_tier >= tier_duchy OR = { - Is head of faith + #Is head of faith scope:puppet_or_actor.religious_head_or_challenger ?= scope:recipient clergy_claim_title_responsibility_trigger = yes - you gotta be able to use your puppet + #you gotta be able to use your puppet scope:puppeteer ?= scope:puppet_or_actor } } clergy_claim_title_responsibility_trigger = { OR = { - Clerical region overlaps + #Clerical region overlaps AND = { any_held_title = { has_clerical_region = yes @@ -1692,16 +1692,16 @@ clergy_claim_title_responsibility_trigger = { } } } - Landed title overlaps + #Landed title overlaps AND = { is_landed = yes any_held_title = { OR = { - they have a title beneath recipient's titles + #they have a title beneath recipient's titles any_this_title_or_de_jure_above = { holder ?= scope:recipient } - they have a title that presides over recipient's titles + #they have a title that presides over recipient's titles any_in_de_jure_hierarchy = { holder ?= scope:recipient } @@ -1726,7 +1726,7 @@ clergy_claims_hof_trigger = { } } -When AI should be bothering player clergy with requests +#When AI should be bothering player clergy with requests pam_should_bother_clergy_interaction_trigger = { $PRIEST$ = { trigger_if = { @@ -1754,7 +1754,7 @@ pam_should_bother_clergy_interaction_trigger = { } } - Show the Offer Pilgrimage send option at all - hidden for rites that cannot pilgrimage +# Show the Offer Pilgrimage send option at all - hidden for rites that cannot pilgrimage pam_offer_pilgrimage_option_shown_trigger = { NOT = { $ACTOR$.rite = { @@ -1783,7 +1783,7 @@ pam_offer_pilgrimage_option_valid_trigger = { } } - Clerical interactions are blocked while a promised pilgrimage is unfulfilled +# Clerical interactions are blocked while a promised pilgrimage is unfulfilled pam_not_promised_pilgrimage_trigger = { $ACTOR$ = { custom_tooltip = { @@ -1817,21 +1817,21 @@ pam_ai_deposable_cleric_trigger = { } } - We set this just under the default heresy threshold so rites convert before heresy fires - Phase first: outside Reform the global lookup ends this before the per-see checks -pam_ai_reform_rite_replacement_trigger = { - situation:the_christian_church ?= { situation_current_phase = reform_phase } - scope:actor.faith = { fervor < 50 } - scope:target.holder ?= { - rite != scope:actor.rite - is_ai = yes - rite = { - "divergence(faith.main_rite)" >= 45 - } - } - scope:recipient = { rite = scope:actor.rite } - years_from_game_start >= 25 -} +# We set this just under the default heresy threshold so rites convert before heresy fires +# Phase first: outside Reform the global lookup ends this before the per-see checks +#pam_ai_reform_rite_replacement_trigger = { +# situation:the_christian_church ?= { situation_current_phase = reform_phase } +# scope:actor.faith = { fervor < 50 } +# scope:target.holder ?= { +# rite != scope:actor.rite +# is_ai = yes +# rite = { +# "divergence(faith.main_rite)" >= 45 +# } +# } +# scope:recipient = { rite = scope:actor.rite } +# years_from_game_start >= 25 +#} pam_beseech_claims_access_trigger = { has_pam_dlc_trigger = yes @@ -1857,7 +1857,7 @@ pam_actor_has_simony_trigger = { } } - Head of Rite dies while still subject to short_reign on their primary title. +# Head of Rite dies while still subject to short_reign on their primary title. pam_head_of_rite_had_short_reign_trigger = { has_pam_dlc_trigger = yes OR = { @@ -1872,7 +1872,7 @@ pam_head_of_rite_had_short_reign_trigger = { } } - Recipient is the scope, and we check the pointers before scanning counties +# Recipient is the scope, and we check the pointers before scanning counties pam_rite_sway_connected_recipient_trigger = { OR = { is_courtier_of = $ACTOR$ @@ -1885,7 +1885,7 @@ pam_rite_sway_connected_recipient_trigger = { } } - We keep this in sync with sway_ruler_to_my_rite_interaction is_shown and is_valid +# We keep this in sync with sway_ruler_to_my_rite_interaction is_shown and is_valid pam_sway_to_rite_diocese_candidate_trigger = { this != $ARCHBISHOP$ is_ruler = yes @@ -1900,7 +1900,7 @@ pam_sway_to_rite_diocese_candidate_trigger = { capital_county.clerical_region_title.holder ?= $ARCHBISHOP$ } - These are prelates of other dioceses still on another rite, for the peer petition important actions +# These are prelates of other dioceses still on another rite, for the peer petition important actions pam_sway_to_rite_adjacent_prelate_candidate_trigger = { this != $ARCHBISHOP$ is_ruler = yes @@ -1915,7 +1915,7 @@ pam_sway_to_rite_adjacent_prelate_candidate_trigger = { any_held_title = { has_clerical_region = yes } } - A Head of Faith on the mainline rite may call other Heads of Rite back to it, which Sway to Rite otherwise forbids +# A Head of Faith on the mainline rite may call other Heads of Rite back to it, which Sway to Rite otherwise forbids pam_sway_to_rite_head_of_faith_reclaims_trigger = { $ACTOR$ = { faith.religious_head ?= this @@ -1923,7 +1923,7 @@ pam_sway_to_rite_head_of_faith_reclaims_trigger = { } } - Sway to Rite reach lane: petitioning a fellow prelate. +# Sway to Rite reach lane: petitioning a fellow prelate. pam_rite_sway_peer_prelate_lane_trigger = { $RECIPIENT$ = { any_held_title = { has_clerical_region = yes } @@ -1934,13 +1934,13 @@ pam_rite_sway_peer_prelate_lane_trigger = { } } - Sway to Rite reach lane: petitioning the liege chain. +# Sway to Rite reach lane: petitioning the liege chain. pam_rite_sway_liege_lane_trigger = { $RECIPIENT$ = { is_liege_or_above_of = $ACTOR$ } $ACTOR$ = { piety_level >= very_high_piety_level } } - $ACTOR$ and $RECIPIENT$ dioceses border or are nearby, and the scan is bounded by the actor's diocese +# $ACTOR$ and $RECIPIENT$ dioceses border or are nearby, and the scan is bounded by the actor's diocese pam_rite_sway_adjacent_diocese_trigger = { OR = { $ACTOR$.capital_county.clerical_region_title ?= { @@ -1951,7 +1951,7 @@ pam_rite_sway_adjacent_diocese_trigger = { } } AND = { - No diocese seat on the far end means there is no adjacent diocese to measure + # No diocese seat on the far end means there is no adjacent diocese to measure exists = $RECIPIENT$.capital_county.clerical_region_title.title_capital_county $ACTOR$.capital_county.clerical_region_title.title_capital_county ?= { squared_distance = { @@ -1963,7 +1963,7 @@ pam_rite_sway_adjacent_diocese_trigger = { } } - We put quick checks first and leave the bordering realm scan last, behind a capital distance check +# We put quick checks first and leave the bordering realm scan last, behind a capital distance check pam_rite_sway_clergy_reach_trigger = { OR = { custom_tooltip = { @@ -1997,7 +1997,7 @@ pam_rite_sway_clergy_reach_trigger = { } custom_tooltip = { text = sway_ruler_to_my_rite_interaction_border_reach_tt - A landless recipient has no capital county for the distance pre-gate to measure + # A landless recipient has no capital county for the distance pre-gate to measure exists = $RECIPIENT$.capital_county $ACTOR$.capital_county ?= { squared_distance = { @@ -2012,20 +2012,20 @@ pam_rite_sway_clergy_reach_trigger = { } } - Sway to Rite: landed house or bloc kin, as with Demand Conversion. Lives on the vassal variant. +# Sway to Rite: landed house or bloc kin, as with Demand Conversion. Lives on the vassal variant. pam_rite_sway_house_lane_trigger = { $RECIPIENT$ = { is_ruler = yes } $ACTOR$ = { is_house_head = yes } OR = { $RECIPIENT$.house ?= $ACTOR$.house - $RECIPIENT$.house.house_confederation ?= { House Bloc + $RECIPIENT$.house.house_confederation ?= { # House Bloc $ACTOR$.house.house_confederation ?= this has_cohesion_level_parameter = bloc_members_join_leaders_faith } } } - Iterates the faith's few holy sites instead of scanning the recipient's whole sub-realm +# Iterates the faith's few holy sites instead of scanning the recipient's whole sub-realm pam_sway_recipient_holds_holy_site_trigger = { scope:puppet_or_actor.faith ?= { any_holy_site = { @@ -2040,7 +2040,7 @@ pam_sway_recipient_holds_holy_site_trigger = { } } - We keep this in sync with how the three Sway to Rite variants split is_shown +# We keep this in sync with how the three Sway to Rite variants split is_shown pam_sway_to_rite_variant_can_send_trigger = { trigger_if = { limit = { $TARGET$ = { is_courtier_of = $ARCHBISHOP$ } } @@ -2081,7 +2081,7 @@ pam_sway_to_rite_variant_can_send_trigger = { } } - As above, but also demands the given ai_accept threshold from the matching variant. +# As above, but also demands the given ai_accept threshold from the matching variant. pam_sway_to_rite_variant_acceptance_trigger = { trigger_if = { limit = { $TARGET$ = { is_courtier_of = $ARCHBISHOP$ } } @@ -2125,7 +2125,7 @@ pam_sway_to_rite_variant_acceptance_trigger = { } } - Runs in the ruler's scope +# Runs in the ruler's scope pam_rite_locally_present_trigger = { any_sub_realm_county = { OR = { @@ -2277,7 +2277,7 @@ pam_the_christian_church_civil_war_in_christian_kingdom_trigger = { pam_the_christian_church_ruler_died_in_battle_against_non_christian_catalyst_trigger = { has_pam_dlc_trigger = yes is_ruler = yes - death_reason errors on living characters; in on_death the dier is still is_alive = yes, so use has_variable = battle_death_enemy there. + # death_reason errors on living characters; in on_death the dier is still is_alive = yes, so use has_variable = battle_death_enemy there. trigger_if = { limit = { is_alive = no } death_reason = death_battle @@ -2324,39 +2324,39 @@ pam_ecclesiastic_transfer_land_access_trigger = { government_has_flag = government_is_ecclesiastical } } -The recipient of the "Give me land" interaction will back down without any convincing required -The crit, the instant success +#The recipient of the "Give me land" interaction will back down without any convincing required +#The crit, the instant success pam_instant_negotiate_land_success_trigger = { scope:recipient = { is_ai = yes } OR = { - They don't have the legitimacy or piety + #They don't have the legitimacy or piety scope:recipient = { piety_level <= 0 legitimacy_level <= 0 } - You have the pope in your pocket + #You have the pope in your pocket trigger_if = { limit = { exists = scope:secondary_recipient } pam_negotiate_land_instant_pope_hook_trigger = yes } - You intimidate them militarily or through dread + #You intimidate them militarily or through dread OR = { - Mostly milstrength + #Mostly milstrength AND = { - Milstrength 4x as high + #Milstrength 4x as high half_current_military_strength >= scope:recipient.twice_current_military_strength has_dread_level_towards = { target = scope:recipient level >= 1 } } - Milstrength and intimidation + #Milstrength and intimidation AND = { - Milstrength twice as high + #Milstrength twice as high current_military_strength >= scope:recipient.twice_current_military_strength has_dread_level_towards = { target = scope:recipient @@ -2370,7 +2370,7 @@ pam_instant_negotiate_land_success_trigger = { pam_negotiate_land_instant_pope_hook_trigger = { has_strong_hook = scope:secondary_recipient highest_held_title_tier >= scope:recipient.highest_held_title_tier - Won't give away primary title or its aboves + #Won't give away primary title or its aboves scope:target = { NOR = { this = scope:recipient.primary_title @@ -2390,7 +2390,7 @@ pam_negotiate_land_instant_pope_hook_trigger = { } } -You DEFINITELY can force the recipient to give in, if you sacrifice +#You DEFINITELY can force the recipient to give in, if you sacrifice pam_forced_negotiate_land_success_trigger = { OR = { pam_negotiate_land_forced_hook_trigger = yes @@ -2401,7 +2401,7 @@ pam_forced_negotiate_land_success_trigger = { } } -There is a CHANCE you can convince the recipient to give +#There is a CHANCE you can convince the recipient to give pam_possible_negotiate_land_success_trigger = { OR = { pam_negotiate_land_possible_hook_trigger = yes @@ -2415,7 +2415,7 @@ pam_possible_negotiate_land_success_trigger = { pam_intimidate_clerical_transfer_recipient_trigger = { scope:recipient = { is_ai = yes - Needs non-combative personality + #Needs non-combative personality NOR = { has_trait = greatest_of_khans has_trait = conqueror @@ -2425,7 +2425,7 @@ pam_intimidate_clerical_transfer_recipient_trigger = { pam_negotiate_land_forced_hook_trigger = { has_usable_hook = scope:recipient has_strong_hook = scope:recipient - Isn't root's capital county/doesn't contain recipient's capital county + #Isn't root's capital county/doesn't contain recipient's capital county trigger_if = { limit = { exists = scope:target @@ -2493,7 +2493,7 @@ pam_negotiate_land_forced_gold_trigger = { OR = { debt_level >= 4 treasury_debt_level >= 4 - Losing a war and needs the money + #Losing a war and needs the money AND = { is_at_war = yes any_character_war = { @@ -2519,7 +2519,7 @@ pam_negotiate_land_forced_gold_trigger = { } } pam_negotiate_land_possible_hook_trigger = { - Hook + #Hook has_usable_hook = scope:recipient scope:recipient = { is_ai = yes @@ -2527,24 +2527,24 @@ pam_negotiate_land_possible_hook_trigger = { } pam_negotiate_land_possible_relation_trigger = { OR = { - Strong relations you can destroy + #Strong relations you can destroy has_relation_friend = scope:recipient has_relation_soulmate = scope:recipient has_relation_disciple = scope:recipient } } pam_negotiate_land_possible_piety_level_trigger = { - Superior devotion + #Superior devotion piety_level > scope:recipient.piety_level } pam_negotiate_land_possible_legitimacy_level_trigger = { has_legitimacy = yes scope:recipient = { has_legitimacy = yes } - Superior legitimacy + #Superior legitimacy legitimacy_level > scope:recipient.legitimacy_level } pam_negotiate_land_possible_gold_trigger = { - Gold to pay for land + #Gold to pay for land treasury_or_gold >= scope:recipient.pam_transfer_land_gold_value } @@ -2564,28 +2564,28 @@ pam_clergy_land_interaction_likely_acceptance_no_methods_trigger = { scope:recipient = { ai_greed <= medium_negative_ai_value } } } - You intimidate them militarily or through dread + #You intimidate them militarily or through dread OR = { - Mostly milstrength + #Mostly milstrength AND = { - Milstrength 2x as high + #Milstrength 2x as high current_military_strength >= scope:recipient.twice_current_military_strength has_dread_level_towards = { target = scope:recipient level >= 1 } } - Milstrength and intimidation + #Milstrength and intimidation AND = { - Milstrength higher + #Milstrength higher current_military_strength > scope:recipient.twice_current_military_strength has_dread_level_towards = { target = scope:recipient level >= 2 } } - Milstrength - Milstrength 4x as high + #Milstrength + #Milstrength 4x as high half_current_military_strength >= scope:recipient.twice_current_military_strength } } @@ -2644,7 +2644,7 @@ pam_tenet_can_be_prohibited_no_actor_trigger = { } } - Tenet scope. Practices a Christian church reads as corruption rather than doctrine. +# Tenet scope. Practices a Christian church reads as corruption rather than doctrine. pam_tenet_is_christian_vice_trigger = { OR = { this = tenet:tenet_simony @@ -2657,7 +2657,7 @@ pam_tenet_is_christian_vice_trigger = { } } - Tenet scope. Christologies settled against by Nicaea, Chalcedon and Antioch. +# Tenet scope. Christologies settled against by Nicaea, Chalcedon and Antioch. pam_tenet_is_christological_heresy_trigger = { OR = { this = tenet:tenet_monophysitism @@ -2666,8 +2666,8 @@ pam_tenet_is_christological_heresy_trigger = { } } - Decision-side counterpart of pam_ec_tenet_is_christian_abomination_trigger - We leave Ritual Cannibalism off because the Eucharist already invites the charge +# Decision-side counterpart of pam_ec_tenet_is_christian_abomination_trigger +# We leave Ritual Cannibalism off because the Eucharist already invites the charge pam_tenet_is_christian_abomination_trigger = { OR = { this = tenet:tenet_human_sacrifice @@ -2677,7 +2677,7 @@ pam_tenet_is_christian_abomination_trigger = { } } - We pool these in tenet scope, since prohibit and core checks already close the wrong paths per faith +# We pool these in tenet scope, since prohibit and core checks already close the wrong paths per faith pam_tenet_is_christian_dogma_trigger = { OR = { this = tenet:tenet_apostolic_succession @@ -2697,8 +2697,8 @@ pam_tenet_is_christian_dogma_trigger = { } } - $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 +# $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 = { trigger_if = { limit = { @@ -2735,7 +2735,7 @@ pam_tenet_ai_may_prohibit_trigger = { } } - Phase first: this runs per candidate tenet, so outside Reform the global lookup ends it at once +# Phase first: this runs per candidate tenet, so outside Reform the global lookup ends it at once pam_tenet_ai_should_purge_trigger = { situation:the_christian_church ?= { situation_current_phase = reform_phase } OR = { @@ -2808,7 +2808,7 @@ pam_faith_is_at_core_tenet_cap_trigger = { } } - $CHARACTER$'s faith supplies the popularity, from tenet scope +# $CHARACTER$'s faith supplies the popularity, from tenet scope pam_tenet_is_overwhelmingly_popular_trigger = { save_temporary_scope_as = pam_popularity_tenet $CHARACTER$.faith = { @@ -2817,7 +2817,7 @@ pam_tenet_is_overwhelmingly_popular_trigger = { } } - At or above the Popular display tier +# At or above the Popular display tier pam_tenet_is_at_least_popular_trigger = { save_temporary_scope_as = pam_popularity_tenet $CHARACTER$.faith = { @@ -2826,7 +2826,7 @@ pam_tenet_is_at_least_popular_trigger = { } } - As above, but for the Very Popular display tier. +# As above, but for the Very Popular display tier. pam_tenet_is_at_least_very_popular_trigger = { save_temporary_scope_as = pam_popularity_tenet $CHARACTER$.faith = { @@ -2835,7 +2835,7 @@ pam_tenet_is_at_least_very_popular_trigger = { } } - Below the Neutral display tier: the faithful have turned against it, not merely indifferent +# Below the Neutral display tier: the faithful have turned against it, not merely indifferent pam_tenet_is_unpopular_trigger = { save_temporary_scope_as = pam_popularity_tenet $CHARACTER$.faith = { @@ -3000,7 +3000,7 @@ pam_ai_pentarchy_christian_actor_trigger = { culture = culture:greek culture = { has_same_culture_language = culture:greek } rite ?= { pam_greek_as_liturgical_language_trigger = yes } - Alexandria and Antioch are Oriental Orthodox sees, so those churches count the five as their own. + # Alexandria and Antioch are Oriental Orthodox sees, so those churches count the five as their own. pam_ai_oriental_christian_actor_trigger = yes } } @@ -3025,7 +3025,7 @@ pam_ai_mountain_capital_actor_trigger = { } } - title_preferred_capital_county is the de jure capital even if k_papal_state is uncreated +# 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 title:k_papal_state = { @@ -3044,22 +3044,22 @@ pam_catholic_hof_weak_papal_state_control_trigger = { } } - Holder of the Byzantine Empire (or Eastern Roman hegemony) with a non-Christian religion -pam_byzantine_emperor_non_christian_trigger = { - OR = { - title:e_byzantium.holder ?= { - is_alive = yes - religion != religion:christianity_religion - } - title:h_eastern_roman_empire.holder ?= { - is_alive = yes - religion != religion:christianity_religion - } - } -} +# Holder of the Byzantine Empire (or Eastern Roman hegemony) with a non-Christian religion +#pam_byzantine_emperor_non_christian_trigger = { +# OR = { +# title:e_byzantium.holder ?= { +# is_alive = yes +# religion != religion:christianity_religion +# } +# title:h_eastern_roman_empire.holder ?= { +# is_alive = yes +# religion != religion:christianity_religion +# } +# } +#} - Used by demand_child_as_monk_interaction. - True if scope:recipient genuinely cares about losing scope:secondary_recipient, either their own direct child, or any child betrothed to one of their close family members. +# Used by demand_child_as_monk_interaction. +# True if scope:recipient genuinely cares about losing scope:secondary_recipient, either their own direct child, or any child betrothed to one of their close family members. pam_demand_child_recipient_cares_trigger = { OR = { scope:secondary_recipient = { is_child_of = scope:recipient } @@ -3099,8 +3099,8 @@ pam_ai_can_consider_forbidden_personal_tenet_trigger = { has_trait = humble has_trait = content } - Clergy: a prohibited personal tenet is a criminal secret, so the elected pontiff never considers one - This goes last because it iterates held titles, unlike the simple checks above + # Clergy: a prohibited personal tenet is a criminal secret, so the elected pontiff never considers one + # This goes last because it iterates held titles, unlike the simple checks above pam_holds_college_elected_church_seat_trigger = no } @@ -3135,7 +3135,7 @@ pam_is_western_christian_trigger = { } } - Character scope. The College is a faith-locked doctrine (Catholicism). +# Character scope. The College is a faith-locked doctrine (Catholicism). pam_can_hold_cardinalate_trigger = { faith ?= { has_doctrine_parameter = has_clerical_electors } trigger_if = { @@ -3144,7 +3144,7 @@ pam_can_hold_cardinalate_trigger = { } } - Character scope. Before the Great Schism, AI only chooses Western candidates. +# Character scope. Before the Great Schism, AI only chooses Western candidates. pam_ai_cardinal_candidate_is_immersive_trigger = { OR = { has_global_variable = pam_great_schism_decision_taken @@ -3154,7 +3154,7 @@ pam_ai_cardinal_candidate_is_immersive_trigger = { } } - Character scope. The seat carries no government of its own, so a lay ruler handed one stays lay. +# Character scope. The seat carries no government of its own, so a lay ruler handed one stays lay. pam_can_receive_cardinalate_trigger = { OR = { government_has_flag = government_is_theocracy @@ -3164,7 +3164,7 @@ pam_can_receive_cardinalate_trigger = { pam_is_antipope_trigger = no } - Held title scope. Any faith's cardinalate - faith.any_clerical_elector_title only lists its own. +# Held title scope. Any faith's cardinalate - faith.any_clerical_elector_title only lists its own. pam_title_is_clerical_elector_trigger = { holder.clerical_elector_title ?= this } @@ -3177,9 +3177,9 @@ pam_church_background_location_is_mediterranean_or_urban_trigger = { } } - Grand cathedral is the highest church background +# Grand cathedral is the highest church background pam_church_event_background_is_grand_western_trigger = { - Gothic movement starts in 12th century + #Gothic movement starts in 12th century current_year >= 1130 trigger_if = { limit = { @@ -3226,51 +3226,51 @@ pam_church_event_background_is_grand_western_trigger = { } } } -pam_church_event_background_is_grand_western_pre_gothic_trigger = { - #Gothic movement starts in 12th century - current_year < 1130 - trigger_if = { - limit = { - scope:activity.activity_location ?= { - faith.religion = religion:christianity_religion - } - } - scope:activity.activity_location.rite = { - rite_has_doctrine = special_doctrine_is_western_christian_faith - } - } - trigger_else_if = { - limit = { - exists = scope:activity.activity_host - } - scope:activity.activity_host.rite = { - rite_has_doctrine = special_doctrine_is_western_christian_faith - } - } - trigger_else = { - location.rite ?= { - rite_has_doctrine = special_doctrine_is_western_christian_faith - } - } - OR = { - AND = { - this = faith.religious_head - highest_held_title_tier >= tier_kingdom - capital_county.faith ?= faith - } - domicile ?= { has_domicile_building_or_higher = ecclesiastical_domicile_main_03 } - capital_county ?= { - any_county_province = { - has_building_with_flag = { flag = grand_cathedral_flag } - } - } - holy_order ?= { - num_leased_titles >= 12 - } - } -} +#pam_church_event_background_is_grand_western_pre_gothic_trigger = { +# #Gothic movement starts in 12th century +# current_year < 1130 +# trigger_if = { +# limit = { +# scope:activity.activity_location ?= { +# faith.religion = religion:christianity_religion +# } +# } +# scope:activity.activity_location.rite = { +# rite_has_doctrine = special_doctrine_is_western_christian_faith +# } +# } +# trigger_else_if = { +# limit = { +# exists = scope:activity.activity_host +# } +# scope:activity.activity_host.rite = { +# rite_has_doctrine = special_doctrine_is_western_christian_faith +# } +# } +# trigger_else = { +# location.rite ?= { +# rite_has_doctrine = special_doctrine_is_western_christian_faith +# } +# } +# OR = { +# AND = { +# this = faith.religious_head +# highest_held_title_tier >= tier_kingdom +# capital_county.faith ?= faith +# } +# domicile ?= { has_domicile_building_or_higher = ecclesiastical_domicile_main_03 } +# capital_county ?= { +# any_county_province = { +# has_building_with_flag = { flag = grand_cathedral_flag } +# } +# } +# holy_order ?= { +# num_leased_titles >= 12 +# } +# } +#} -For using the Hagia Sophia background +#For using the Hagia Sophia background pam_church_event_background_is_grand_eastern_trigger = { trigger_if = { limit = { @@ -3319,7 +3319,7 @@ pam_church_event_background_is_grand_eastern_trigger = { } - This grandeur check does not care about religion, so the call site checks religion +# This grandeur check does not care about religion, so the call site checks religion pam_church_event_background_is_developed_trigger = { OR = { domicile ?= { has_domicile_building_or_higher = ecclesiastical_domicile_main_02 } @@ -3331,7 +3331,7 @@ pam_church_event_background_is_developed_trigger = { OR = { has_building_or_higher = temple_02 has_building_with_flag = holy_building - A wooden church looks wrong here + #A wooden church looks wrong here geographical_region = world_middle_east geographical_region = world_africa geographical_region = world_steppe_tarim @@ -3353,7 +3353,7 @@ pam_church_event_background_is_developed_trigger = { } } - Khachkar is removed when a county leaves the commissioning dynasty (like runestones). +# Khachkar is removed when a county leaves the commissioning dynasty (like runestones). pam_remove_khachkar_new_holder_trigger = { $TITLE$ = { exists = var:pam_khachkar_ancestor @@ -3367,7 +3367,7 @@ pam_remove_khachkar_new_holder_trigger = { } } - Cheap pre-filter for HoF split secular ruler lists (since split_clerical_region_size might not be performant) +# Cheap pre-filter for HoF split secular ruler lists (since split_clerical_region_size might not be performant) pam_potential_secular_clerical_split_ruler_trigger = { $RULER$ = { is_alive = yes @@ -3385,11 +3385,11 @@ pam_potential_secular_clerical_split_ruler_trigger = { capital_county = { exists = clerical_region_title clerical_region_title.holder = scope:recipient - We always keep the region capital, because splitting it off would leave the new region with no capital + # We always keep the region capital, because splitting it off would leave the new region with no capital NOT = { this = clerical_region_title.title_preferred_capital_county } } } - any_sub_realm_county, not any_realm_county: for a vassal the latter is the liege's whole realm + # any_sub_realm_county, not any_realm_county: for a vassal the latter is the liege's whole realm trigger_if = { limit = { scope:recipient = scope:actor } $RULER$ = { @@ -3402,7 +3402,7 @@ pam_potential_secular_clerical_split_ruler_trigger = { } } - Full validation including code-side split size calc — use sparingly +# Full validation including code-side split size calc — use sparingly pam_valid_secular_clerical_split_ruler_trigger = { pam_potential_secular_clerical_split_ruler_trigger = { RULER = $RULER$ } $RULER$ = { @@ -3410,8 +3410,8 @@ pam_valid_secular_clerical_split_ruler_trigger = { } } - This has to be the region at their capital, which is what the clerical_region pickers list - Hides the interaction when a landed archbishop's capital sits in someone else's region +# This has to be the region at their capital, which is what the clerical_region pickers list +# Hides the interaction when a landed archbishop's capital sits in someone else's region pam_acting_clerical_region_trigger = { $ARCHBISHOP$ = { save_temporary_scope_as = acting_archbishop_temp @@ -3426,12 +3426,12 @@ pam_acting_clerical_region_trigger = { } } - Cheap pre-filter for HoF merge clerical region title list +# Cheap pre-filter for HoF merge clerical region title list pam_potential_merge_clerical_region_title_trigger = { $TITLE$ = { has_clerical_region = yes is_head_of_faith = no - Absorbed regions stay as empty picker shells until reload + # Absorbed regions stay as empty picker shells until reload clerical_region_size > 0 custom_tooltip = { text = pam_potential_merge_clerical_region_title_same_title_trigger @@ -3471,7 +3471,7 @@ pam_potential_merge_clerical_region_title_trigger = { } } - True when the scoped clerical region title covers at most three distinct de jure duchies (TIT-76192) +# True when the scoped clerical region title covers at most three distinct de jure duchies (TIT-76192) pam_clerical_region_at_most_three_duchies_trigger = { NAND = { any_county_in_clerical_region = { @@ -3518,7 +3518,7 @@ pam_has_adjacent_mergeable_clerical_region_trigger = { } } - Same-faith land in another de jure kingdom +# Same-faith land in another de jure kingdom pam_expand_target_is_same_faith_outside_home_kingdom_trigger = { exists = $TITLE$.kingdom exists = $ARCHBISHOP$.capital_county.kingdom @@ -3534,8 +3534,8 @@ pam_expand_target_is_same_faith_outside_home_kingdom_trigger = { } } - Picked title only chooses the see, then create_clerical_region fills from that county's de jure kingdom - The lowest tier decides who may petition, not how large the region ends up +# Picked title only chooses the see, then create_clerical_region fills from that county's de jure kingdom +# The lowest tier decides who may petition, not how large the region ends up pam_valid_new_clerical_region_anchor_trigger = { trigger_if = { limit = { $PETITIONER$ ?= { has_government = ecclesiastical_government } } @@ -3551,7 +3551,7 @@ pam_valid_new_clerical_region_anchor_trigger = { title_capital_county = { NOT = { exists = clerical_region_title } exists = holder - faith = $PETITIONER$.faith the region takes its faith from this county, and a mismatch destroys the new title + faith = $PETITIONER$.faith # the region takes its faith from this county, and a mismatch destroys the new title OR = { holder = $PETITIONER$ holder = { @@ -3563,7 +3563,7 @@ pam_valid_new_clerical_region_anchor_trigger = { } } - At least one eligible title exists +# At least one eligible title exists pam_valid_expand_ecclesiastical_title_target_trigger = { $ARCHBISHOP$ = { save_temporary_scope_as = archbishop_temp } $TITLE$ = { @@ -3593,7 +3593,7 @@ pam_valid_expand_ecclesiastical_title_target_trigger = { has_clerical_region = yes is_head_of_faith = no holder ?= scope:archbishop_temp - is_adjacent_to_clerical_region = $TITLE$ very unperformant + is_adjacent_to_clerical_region = $TITLE$ # very unperformant } } } @@ -3607,10 +3607,10 @@ pam_valid_expand_ecclesiastical_title_target_trigger = { } } - At least one selectable expand target exists +# At least one selectable expand target exists pam_has_eligible_expand_ecclesiastical_title_target_trigger = { save_temporary_scope_as = archbishop_temp - capital_county.clerical_region_title = { must work like this due to clerical_region_adjacent_duchies behaviour + capital_county.clerical_region_title = { # must work like this due to clerical_region_adjacent_duchies behaviour has_clerical_region = yes is_head_of_faith = no holder ?= scope:archbishop_temp @@ -3629,7 +3629,7 @@ pam_has_eligible_expand_ecclesiastical_title_target_trigger = { pam_can_expand_clerical_region_after_war_trigger = { exists = scope:target - You hold a clerical region that neighbors or is within target + #You hold a clerical region that neighbors or is within target save_temporary_scope_as = archbishop_temp any_held_title = { has_clerical_region = yes @@ -3645,11 +3645,11 @@ pam_can_expand_clerical_region_after_war_trigger = { this = scope:target NOT = { exists = clerical_region_title } } - The rest of the duchy needs to be ready + #The rest of the duchy needs to be ready scope:target = { duchy = { - All counties must have no clerical region - All counties must be within recipient's realm OR held by a same-faith ruler + #All counties must have no clerical region + #All counties must be within recipient's realm OR held by a same-faith ruler any_de_jure_county = { count >= all NOT = { exists = clerical_region_title } @@ -3676,8 +3676,8 @@ pam_can_expand_clerical_region_after_war_trigger = { NOT = { exists = scope:clerical_region_title } } scope:target = { - All counties must have no clerical region - All counties must be within recipient's realm OR held by a same-faith ruler + #All counties must have no clerical region + #All counties must be within recipient's realm OR held by a same-faith ruler any_de_jure_county = { count >= all NOT = { exists = clerical_region_title } @@ -3699,8 +3699,8 @@ pam_can_expand_clerical_region_after_war_trigger = { } scope:target = { any_direct_de_jure_vassal_title = { - All counties must have no clerical region - All counties must be within recipient's realm OR held by a same-faith ruler + #All counties must have no clerical region + #All counties must be within recipient's realm OR held by a same-faith ruler any_de_jure_county = { count >= all NOT = { @@ -3724,7 +3724,7 @@ pam_can_expand_clerical_region_after_war_trigger = { } } - Evaluated in county scope for the Convert Faith cardinal order. +# Evaluated in county scope for the Convert Faith cardinal order. pam_cardinal_order_convert_faith_in_region_county_trigger = { faith != $CARDINAL$.faith exists = holder @@ -3788,7 +3788,7 @@ pam_ai_can_proclaim_armed_pilgrimages_core_trigger = { pam_ai_can_proclaim_struggle_submission_core_trigger = { faith.religion = { this = religion:islam_religion - exists = var:variable_ghw_unlocked You've entered the Age of Crusades + exists = var:variable_ghw_unlocked # You've entered the Age of Crusades } faith = { main_rite = { @@ -3878,7 +3878,7 @@ amicable_infertile_divorce_trigger = { } } - Mendicant Preachers personal tenet: guests a preaching host can win over at an activity +# Mendicant Preachers personal tenet: guests a preaching host can win over at an activity pam_mendicant_preachers_apa_convert_trigger = { this != $PREACHER$ highest_held_title_tier < tier_duchy @@ -3891,8 +3891,8 @@ pam_mendicant_preachers_apa_convert_trigger = { } } - PAM Reincarnation personal tenet: a parent or grandparent that root could claim as a past life - Checked in the forebear's scope, with root as the character doing the remembering +# PAM Reincarnation personal tenet: a parent or grandparent that root could claim as a past life +# Checked in the forebear's scope, with root as the character doing the remembering pam_recallable_forebear_trigger = { save_temporary_scope_as = candidate_forebear is_alive = no @@ -3931,7 +3931,7 @@ divorce_can_cause_house_feud_trigger = { scope:secondary_recipient = { house ?= { any_house_relation = { - Not already feuding or quite fond of one another + #Not already feuding or quite fond of one another OR = { has_house_relation_level = quarrel has_house_relation_level = rivalry @@ -3962,7 +3962,7 @@ divorce_can_cause_holy_order_lease_trigger = { diplomacy >= decent_skill_rating } OR = { - Monastic lease + #Monastic lease scope:divorcer = { any_held_title = { title_tier = county @@ -3981,7 +3981,7 @@ divorce_can_cause_holy_order_lease_trigger = { } } } - Military lease + #Military lease scope:divorcer = { any_held_title = { title_tier = county @@ -4055,17 +4055,17 @@ divorce_can_put_spouse_in_monastery_trigger = { } } - Would a priest consider marriage in Saeculum Obscurum? +# Would a priest consider marriage in Saeculum Obscurum? saeculum_obscurum_clergy_would_marry_trigger = { - Older priests just don't bother + # Older priests just don't bother age < 50 - Must be somewhat inclined + # Must be somewhat inclined NOR = { has_trait = chaste has_trait = celibate } OR = { - Strict personality/actions + # Strict personality/actions has_trait = lustful has_trait = seducer has_trait = rakish @@ -4081,18 +4081,18 @@ saeculum_obscurum_clergy_would_marry_trigger = { this = tenet:tenet_be_fruitful_and_multiply } } - General vibes + # General vibes saeculum_obscurum_clergy_marry_ai_value_trigger = yes } } saeculum_obscurum_would_marry_clergy_trigger = { - General vibes + # General vibes saeculum_obscurum_clergy_marry_ai_value_trigger = yes } saeculum_obscurum_clergy_marry_ai_value_trigger = { - Higher tiers need less honor and zeal, and more boldness + # Higher tiers need less honor and zeal, and more boldness trigger_if = { limit = { highest_held_title_tier > tier_duchy } ai_honor < low_negative_ai_value @@ -4154,7 +4154,7 @@ can_request_priest_from_recipient_trigger = { superior.superior ?= $RECIPIENT$ } } - A realm under an antipope asks them instead + # A realm under an antipope asks them instead religious_head_or_challenger ?= $RECIPIENT$ trigger_if = { limit = { NOT = { exists = faith.religious_head } } @@ -4163,7 +4163,7 @@ can_request_priest_from_recipient_trigger = { } } - Gates the tenet popularity system, for PAM it's only for Christian faiths. Runs in a faith scope. +# Gates the tenet popularity system, for PAM it's only for Christian faiths. Runs in a faith scope. has_tenet_popularity_trigger = { OR = { religion = religion:catholic_religion @@ -4318,7 +4318,7 @@ pam_clergy_title_interaction_player_recipient_auto_accept_trigger = { clerical_hesitation_from_potential_defender_value <= -2 } situation:the_christian_church ?= { - any_participant_group = { Both characters are involved in the situation + any_participant_group = { # Both characters are involved in the situation any_situation_group_participant = { this = scope:puppet_or_actor } @@ -4445,7 +4445,7 @@ pam_clergy_title_interaction_player_recipient_auto_accept_trigger = { scope:secondary_recipient = { is_allied_to = scope:recipient } - Must be neighboring or overlapping + #Must be neighboring or overlapping scope:target ?= { NOR = { any_de_jure_county = { @@ -4469,7 +4469,7 @@ pam_clergy_title_interaction_player_recipient_auto_accept_trigger = { } } } - PAM Peace of God: is prosecuting an offensive war against a ruler of their own faith. +# PAM Peace of God: is prosecuting an offensive war against a ruler of their own faith. pam_peace_of_god_coreligionist_aggressor_trigger = { save_temporary_scope_as = pam_aggressor any_character_war = { @@ -4495,8 +4495,8 @@ pam_valid_excommunication_target_trigger = { } } } - always valid if Hof - This trigger is only relevant if excommunicator is not + #always valid if Hof + #This trigger is only relevant if excommunicator is not trigger_if = { limit = { scope:target_char = { need_hof_for_clergy_interaction_trigger = yes } @@ -4516,19 +4516,19 @@ pam_valid_excommunication_target_trigger = { } } trigger_else = { - If there is no HoF, a clergy HoR can take it + # If there is no HoF, a clergy HoR can take it trigger_if = { limit = { NOT = { exists = scope:target_char.faith.religious_head } scope:target_char.rite.head_of_rite ?= $EXCOMMUNICATOR$ } } - Wanderers and courtiers + #Wanderers and courtiers trigger_else_if = { limit = { is_ruler = no } - Courtiers + #Courtiers trigger_if = { limit = { exists = liege @@ -4559,7 +4559,7 @@ pam_valid_excommunication_target_trigger = { } } } - Wanderers + #Wanderers trigger_else = { custom_tooltip = { text = bishop_excommunication_target_wanderer_tt @@ -4587,7 +4587,7 @@ pam_valid_excommunication_target_trigger = { } } } - Theocrats/ecclesiasticals + #Theocrats/ecclesiasticals trigger_else_if = { limit = { government_has_flag = government_is_theocracy @@ -4620,7 +4620,7 @@ pam_valid_excommunication_target_trigger = { } } - Secular rulers + #Secular rulers trigger_else = { custom_tooltip = { text = bishop_excommunication_target_secular_tt @@ -4961,11 +4961,11 @@ incite_claim_war_title_can_be_picked_trigger = { } } incite_holy_war_ai_invalidation_trigger = { - One condition must be true, and none of the NOR true + #One condition must be true, and none of the NOR true OR = { $SECONDARY$ = { ai_zeal >= 80 } $SECONDARY$ = { ai_boldness >= 100 } - Being forced to (despite having precariously comparable mil strength) + #Being forced to (despite having precariously comparable mil strength) scope:use_hook ?= yes trigger_if = { limit = { @@ -4980,7 +4980,7 @@ incite_holy_war_ai_invalidation_trigger = { scope:join_war ?= yes scope:puppet_or_actor.current_military_strength >= $RECIPIENT$.half_current_military_strength } - Can probably win + #Can probably win trigger_if = { limit = { exists = $SECONDARY$ @@ -5153,7 +5153,7 @@ pam_request_white_peace_war_with_enemy_trigger = { } pam_request_victory_war_with_enemy_trigger = { has_valid_casus_belli = yes - A war the design will not let you negotiate to a white peace is not one the clergy may rule won either + #A war the design will not let you negotiate to a white peace is not one the clergy may rule won either is_white_peace_possible = yes NOR = { using_cb = undirected_great_holy_war @@ -5177,10 +5177,10 @@ pam_request_victory_war_with_enemy_trigger = { } } -A war that can already be won outright, so there is nothing for the clergy to do +#A war that can already be won outright, so there is nothing for the clergy to do pam_request_victory_war_already_won_trigger = { has_valid_casus_belli = yes - Kept in step with pam_request_victory_war_with_enemy_trigger so an ineligible war cannot block an eligible one + #Kept in step with pam_request_victory_war_with_enemy_trigger so an ineligible war cannot block an eligible one is_white_peace_possible = yes NOR = { using_cb = undirected_great_holy_war @@ -5489,8 +5489,8 @@ pam_evangelize_selected_tenet_prohibited_trigger = { } } - scope:pam_evangelize_tenet_check is the tenet being weighed on a character - Saved scope not $TENET$: a macro inside a quoted script value drops the opening parenthesis +# scope:pam_evangelize_tenet_check is the tenet being weighed on a character +# Saved scope not $TENET$: a macro inside a quoted script value drops the opening parenthesis pam_evangelize_tenet_below_very_popular_trigger = { "faith.tenet_popularity(scope:pam_evangelize_tenet_check)" < tenet_popularity_very_popular_threshold } @@ -5545,8 +5545,8 @@ pam_pope_is_head_of_faith_or_rite_trigger = { } } - Cardinal scope needs $POPE$ here - Both dynasty sides need exists or two lowborn prelates match each other +# Cardinal scope needs $POPE$ here +# Both dynasty sides need exists or two lowborn prelates match each other pam_cardinal_is_nepotistic_appointment_trigger = { OR = { AND = { @@ -5559,8 +5559,8 @@ pam_cardinal_is_nepotistic_appointment_trigger = { } } - $TITLE$ is the seat that heads this character's Church, and this runs on a character - Rome is named directly: headless Chalcedonianism has no religious_head_title to compare +# $TITLE$ is the seat that heads this character's Church, and this runs on a character +# Rome is named directly: headless Chalcedonianism has no religious_head_title to compare pam_title_is_church_seat_trigger = { OR = { $TITLE$ = title:k_papal_state @@ -5583,7 +5583,7 @@ pam_holds_christian_patriarch_title_trigger = { } } - While Chalcedonianism is headless the Pope heads it as head of rite +# While Chalcedonianism is headless the Pope heads it as head of rite pam_holds_church_seat_trigger = { OR = { any_held_title = { is_head_of_faith = yes } @@ -5594,7 +5594,7 @@ pam_holds_church_seat_trigger = { pam_college_election_title_has_electors_trigger = { trigger_if = { limit = { exists = faith.religious_head_title } - any_elector rather than a bare exists: is_candidate_from_set errors on a title with no election law. + # any_elector rather than a bare exists: is_candidate_from_set errors on a title with no election law. faith.religious_head_title = { any_elector = {} } } trigger_else = { @@ -5612,7 +5612,7 @@ pam_college_election_title_is_theocratic_elective_trigger = { } } - Character scope. Do they sit on the Church seat the College of Cardinals elects? +# Character scope. Do they sit on the Church seat the College of Cardinals elects? pam_holds_college_elected_church_seat_trigger = { pam_holds_church_seat_trigger = yes pam_college_election_title_has_electors_trigger = yes @@ -5636,12 +5636,12 @@ pam_is_college_election_candidate_trigger = { } } } - trigger_else = { Error log suppressing + trigger_else = { # Error log suppressing always = no } } - We check the clerical title, because the government flag and is_clergy miss many PAM prelates +# We check the clerical title, because the government flag and is_clergy miss many PAM prelates pam_is_investiture_clergy_trigger = { OR = { any_held_title = { has_clerical_region = yes } @@ -5650,7 +5650,7 @@ pam_is_investiture_clergy_trigger = { } } - Only landed county tier and above, because temple baronies match has_clerical_region and flood the guests +# Only landed county tier and above, because temple baronies match has_clerical_region and flood the guests pam_is_investiture_landed_prelate_trigger = { is_landed = yes highest_held_title_tier >= tier_county @@ -5666,7 +5666,7 @@ pam_valid_ecumenical_council_voter_trigger = { pam_is_investiture_clergy_trigger = yes rite.head_of_rite ?= this has_variable = investiture_stance - puppet:X errors on non-playable characters, and only landed county tier rulers own that puppet + # puppet:X errors on non-playable characters, and only landed county tier rulers own that puppet AND = { is_landed = yes highest_held_title_tier >= tier_county @@ -5735,7 +5735,7 @@ pam_ec_doctrine_is_change_trigger = { } } - The AI Conservative named to oppose the host in this debate; stands down while a player argues the Conservative side +# The AI Conservative named to oppose the host in this debate; stands down while a player argues the Conservative side pam_ec_is_active_counterplayer_trigger = { is_ai = yes is_in_guest_subset = { name = conservative } @@ -5751,7 +5751,7 @@ pam_ec_is_active_counterplayer_trigger = { } } - AI proposers who may skip the nearest-step rule at an Ecumenical Council +# AI proposers who may skip the nearest-step rule at an Ecumenical Council pam_ec_doctrine_extremist_proposer_trigger = { OR = { has_trait = herald @@ -5763,7 +5763,7 @@ pam_ec_doctrine_extremist_proposer_trigger = { } } - The proposed scope:ec_step_to is the closest step from the held scope:ec_step_from that the rite can choose +# The proposed scope:ec_step_to is the closest step from the held scope:ec_step_from that the rite can choose pam_ec_doctrine_is_nearest_step_trigger = { NOT = { root = { @@ -5865,7 +5865,7 @@ pam_custom_kingdom_can_claim_duchy_exclave_trigger = { kingdom.title_capital_county ?= this } } - Is not only duchy in kingdom + #Is not only duchy in kingdom kingdom = { any_direct_de_jure_vassal_title = { tier = tier_duchy @@ -5881,7 +5881,7 @@ pam_custom_kingdom_can_claim_duchy_exclave_trigger = { } } } - Is not controlled by de jure liege + #Is not controlled by de jure liege trigger_if = { limit = { exists = kingdom.holder @@ -5896,7 +5896,7 @@ pam_custom_kingdom_can_claim_duchy_exclave_trigger = { } } } - Not bordering any other county of de jure kingdom (not held by new king) + #Not bordering any other county of de jure kingdom (not held by new king) NOT = { any_de_jure_county = { save_temporary_scope_as = county_temp @@ -5949,7 +5949,7 @@ pam_custom_empire_can_claim_kingdom_exclave_trigger = { empire.title_capital_county ?= this } } - Is not only kingdom in empire + #Is not only kingdom in empire empire = { any_direct_de_jure_vassal_title = { tier = tier_kingdom @@ -5965,7 +5965,7 @@ pam_custom_empire_can_claim_kingdom_exclave_trigger = { } } } - Is not controlled by de jure liege + #Is not controlled by de jure liege trigger_if = { limit = { exists = empire.holder @@ -5980,7 +5980,7 @@ pam_custom_empire_can_claim_kingdom_exclave_trigger = { } } } - Not bordering any other county of de jure empire (not held by new empire) + #Not bordering any other county of de jure empire (not held by new empire) NOT = { any_de_jure_county = { save_temporary_scope_as = county_temp @@ -6023,7 +6023,7 @@ ai_religious_request_blocker_trigger = { is_ai = yes scope:recipient = { is_ai = no } } - Each religious request has its own cooldown against a player Head of Faith + # Each religious request has its own cooldown against a player Head of Faith NOT = { scope:recipient = { has_character_flag = $INTERACTION$_received_cooldown } } } } @@ -6066,7 +6066,7 @@ target_valid_ecclesiastical_de_jure_shifting_trigger = { } } } - AI should only do direct borders, not over water - ew gross + #AI should only do direct borders, not over water - ew gross trigger_if = { limit = { scope:puppet_or_actor = { @@ -6117,7 +6117,7 @@ clergy_interaction_generic_piety_level_or_puppet_req_trigger = { } } -Title scope. An uncreated title the petitioner already has a foothold in; scope:puppet_or_actor is the petitioning ruler. +#Title scope. An uncreated title the petitioner already has a foothold in; scope:puppet_or_actor is the petitioning ruler. target_valid_request_unformed_title_trigger = { is_landless_type_title = no is_head_of_faith = no @@ -6474,7 +6474,7 @@ pam_reaffirm_doctrine_consanguinity_accept_trigger = { } skill_support_trigger = { - AI precautions + #AI precautions trigger_if = { limit = { is_ai = yes @@ -6497,7 +6497,7 @@ skill_support_trigger = { } } piety_support_trigger = { - AI precautions + #AI precautions trigger_if = { limit = { is_ai = yes @@ -6556,7 +6556,7 @@ piety_support_trigger = { } } dread_support_trigger = { - AI precautions + #AI precautions trigger_if = { limit = { is_ai = yes @@ -6583,7 +6583,7 @@ dread_support_secular_trigger = { } } friendly_support_base_trigger = { - AI precautions + #AI precautions trigger_if = { limit = { is_ai = yes @@ -6634,7 +6634,7 @@ friendly_support_secular_trigger = { } } lunacy_support_trigger = { - AI precautions + #AI precautions trigger_if = { limit = { is_ai = yes @@ -6696,8 +6696,8 @@ lunacy_support_trigger = { } } - 5+ counties so small dukes do not found theocracies - When no theocratic vassal exists we skip the percent scan so this stays fast +# 5+ counties so small dukes do not found theocracies +# When no theocratic vassal exists we skip the percent scan so this stays fast realm_theocratic_county_share_ai_below_cap_trigger = { any_sub_realm_county = { count >= 5 @@ -6721,7 +6721,7 @@ realm_theocratic_county_share_player_below_cap_trigger = { } } - The granting ruler is root, and scope:title is the highest-tier title being granted +# The granting ruler is root, and scope:title is the highest-tier title being granted pam_nomad_grant_settled_government_trigger = { OR = { government_has_flag = government_is_nomadic @@ -6741,7 +6741,7 @@ pam_nomad_grant_settled_government_trigger = { } } - Follows settle_people_decision ai_potential so an AI nomad always or never grants settled holdings +# Follows settle_people_decision ai_potential so an AI nomad always or never grants settled holdings pam_nomad_inclined_to_settle_trigger = { NOR = { has_trait = greatest_of_khans @@ -6760,18 +6760,18 @@ pam_nomad_inclined_to_settle_trigger = { } } - Artifact scope +# Artifact scope pam_holy_weapon_trigger = { is_equipped = yes artifact_slot_type = primary_armament is_holy_relic_for = artifact_owner.faith } - - Harmonious Society - the Five Bonds - - A bond only counts while it is actually kept, so each one asks for a living partner who thinks - well of the scoped character. 50 opinion is the threshold throughout. +############################################### +# Harmonious Society - the Five Bonds +############################################### +# A bond only counts while it is actually kept, so each one asks for a living partner who thinks +# well of the scoped character. 50 opinion is the threshold throughout. pam_five_bonds_ruler_subject_trigger = { OR = { @@ -6841,7 +6841,7 @@ pam_five_bonds_friend_trigger = { } } - Same rules as release_from_prison_interaction and only valid inside that interaction +# Same rules as release_from_prison_interaction and only valid inside that interaction tenet_benevolent_governance_unconditional_release_trigger = { scope:demand_conversion = no scope:renounce_claims = no @@ -6864,11 +6864,11 @@ theocratic_lay_clergy_trigger = { rite = { rite_has_doctrine = doctrine_theocracy_lay_clergy } } OR = { - Cardinals + # Cardinals exists = clerical_elector_title - Archdioceses + # Archdioceses primary_title ?= { has_clerical_region = yes } - Other landless explicit clergy + # Other landless explicit clergy AND = { is_landed = no is_clergy = yes @@ -6879,13 +6879,13 @@ theocratic_lay_clergy_trigger = { pam_is_clerical_comprehensive_trigger = { OR = { - Cardinals + # Cardinals exists = clerical_elector_title - Archdioceses + # Archdioceses primary_title ?= { has_clerical_region = yes } - Landed and landless ecclesiastical rulers + # Landed and landless ecclesiastical rulers government_has_flag = government_is_ecclesiastical - Other landless explicit clergy + # Other landless explicit clergy AND = { is_landed = no is_clergy = yes @@ -6893,7 +6893,7 @@ pam_is_clerical_comprehensive_trigger = { } } - Current scope is a faith and root is the character choosing the personal tenet +# Current scope is a faith and root is the character choosing the personal tenet pam_personal_syncretism_faith_matches_trigger = { OR = { AND = { @@ -6935,12 +6935,12 @@ pam_personal_syncretism_faith_matches_trigger = { } } - Exile pool eligibility probe for the personal syncretism decision tooltip. +# Exile pool eligibility probe for the personal syncretism decision tooltip. pam_personal_syncretism_exile_rite_probe_trigger = { pam_personal_syncretism_exile_rite_trigger = yes } - Valid exile pool entry for the personal syncretism decision. +# Valid exile pool entry for the personal syncretism decision. pam_personal_syncretism_exile_rite_trigger = { exists = var:converted_development var:converted_development >= 1 @@ -6992,7 +6992,7 @@ pam_personal_syncretism_invite_exiles_available_trigger = { } pam_personal_syncretism_county_bonus_trigger = { - The yearly pulse evaluates this on a held county; root is its ruler. + # The yearly pulse evaluates this on a held county; root is its ruler. root = { has_personal_tenet_flag = tenet_syncretism_county_bonus } @@ -7001,11 +7001,11 @@ pam_personal_syncretism_county_bonus_trigger = { } } +############################################### +# Holy Myron - Holy Myron - - Until pam_holy_myron.0002 destroys it, an emptied vessel stays as an artifact - trigger_if keeps the variable fetch from evaluating on ordinary artifacts +# Until pam_holy_myron.0002 destroys it, an emptied vessel stays as an artifact +# trigger_if keeps the variable fetch from evaluating on ordinary artifacts pam_is_holy_myron_artifact_trigger = { trigger_if = { limit = { has_variable = pam_holy_myron_charges } @@ -7016,7 +7016,7 @@ pam_is_holy_myron_artifact_trigger = { } } - Character scope: owns an ampulla with oil left to spend. +# Character scope: owns an ampulla with oil left to spend. pam_has_usable_holy_myron_trigger = { any_character_artifact = { pam_is_holy_myron_artifact_trigger = yes @@ -7043,8 +7043,8 @@ eligible_for_pam_legacy_trigger = { } } - - Religious Study scheme +############################################### +# Religious Study scheme pam_study_scripture_pursuit_of_knowledge_trigger = { OR = { @@ -7067,7 +7067,7 @@ pam_study_scripture_confession_tenet_trigger = { } } - An eloquent cleric root could learn homiletics from +# An eloquent cleric root could learn homiletics from pam_study_scripture_preacher_trigger = { diplomacy >= 8 is_physically_able_ai_adult = yes @@ -7100,7 +7100,7 @@ pam_study_scripture_mysticism_trigger = { } } - A vow of chastity, or a marriage the Church has just dissolved, keeps a character off the marriage market. +# A vow of chastity, or a marriage the Church has just dissolved, keeps a character off the marriage market. pam_under_clerical_marriage_restraint_trigger = { OR = { has_character_modifier = clerical_chastity_vow_modifier @@ -7108,7 +7108,7 @@ pam_under_clerical_marriage_restraint_trigger = { } } - Only the AI is held to this: a player may still discard the vow's intent and arrange the match anyway. +# Only the AI is held to this: a player may still discard the vow's intent and arrange the match anyway. pam_ai_marriage_respects_clerical_restraint_trigger = { trigger_if = { limit = { @@ -7121,7 +7121,7 @@ pam_ai_marriage_respects_clerical_restraint_trigger = { } } - $SLOT$ is the papabile shortlist seat being claimed +# $SLOT$ is the papabile shortlist seat being claimed pam_papabile_slot_open_to_trigger = { exists = clerical_elector_title NOT = { has_variable = pam_refuses_papacy } @@ -7151,13 +7151,13 @@ pam_papabile_barred_by_clerical_gender_trigger = { } } - Divergent rites only: an Ecumenical Council can give the main rite Lay Clergy, and its College must still have candidates +# Divergent rites only: an Ecumenical Council can give the main rite Lay Clergy, and its College must still have candidates pam_papabile_barred_by_lay_clergy_trigger = { rite ?= { rite_has_doctrine = doctrine_theocracy_lay_clergy } rite != faith.main_rite } - Only the patron's own personal tenets may be imposed, and not one the order already advocates. +# Only the patron's own personal tenets may be imposed, and not one the order already advocates. pam_reform_order_tenet_option_shown_trigger = { scope:actor = { has_personal_tenet = $TENET$ @@ -7212,7 +7212,7 @@ monastic_movement_non_order_size_reqs_trigger = { } } - Core tenet or personal pick; shared by scheme success/prediction +# Core tenet or personal pick; shared by scheme success/prediction pam_study_rite_tenet_bonus_trigger = { OR = { rite ?= { rite_has_parameter = $PARAM$ }