diff --git a/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt b/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt index 85bab59a5..cc5bac4c7 100644 --- a/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt +++ b/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt @@ -24075,3 +24075,39 @@ k_theoadamist_hof = { } } +k_catholic_tribunal={ + pattern="pattern_solid.dds" + color1=white + color2=yellow + color3=blue + colored_emblem={ + color1=yellow + texture="ce_cross_patriarchal_hungary.dds" + instance={ + position={ 0.500000 0.380000 } + depth=1.010000 + } + + } + + colored_emblem={ + color1=yellow + texture="ce_scales.dds" + instance={ + position={ 0.500000 0.710000 } + depth=2.010000 + } + + } + + colored_emblem={ + color1=yellow + texture="ce_cross_07.dds" + instance={ + position={ 0.500000 1.000000 } + scale={ 1.000000 -1.000000 } + } + + } + +} diff --git a/common/decisions/religious_decisions_NEOW.txt b/common/decisions/religious_decisions_NEOW.txt index f57496f88..584e4d8d5 100644 --- a/common/decisions/religious_decisions_NEOW.txt +++ b/common/decisions/religious_decisions_NEOW.txt @@ -740,3 +740,60 @@ mend_orthodox_schism_decision = { } } } + +NEOW_catholic_tribunal_restore_papacy_decision = { + picture = { reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" } + desc = NEOW_catholic_tribunal_restore_papacy_decision_desc + selection_tooltip = NEOW_catholic_tribunal_restore_papacy_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 24 + duchy = 24 + kingdom = 12 + empire = 12 + hegemony = 12 + } + + is_shown = { + is_ruler = yes + faith = faith:catholic_tribunal_faith + NOT = { has_character_flag = neow_tribunal_trial_pending } + NOT = { has_character_flag = neow_tribunal_verdict_reached } + title:k_catholic_tribunal = { is_title_created = no } + } + + is_valid = { + completely_controls = title:c_roma + completely_controls = title:c_coruna + piety_level >= high_piety_level + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + } + + effect = { + custom_tooltip = NEOW_catholic_tribunal_restore_papacy_decision_effect_tooltip + # Reserve the only Tribunal hearing before opening its two-stage event. + add_character_flag = neow_tribunal_trial_pending + trigger_event = { + id = NEOW_religious_decision.0230 + days = 1 + } + } + + # AI rulers of the Tribunal faith will attempt restoration as soon as the + # normal decision requirements are fulfilled. + ai_potential = { + is_ruler = yes + faith = faith:catholic_tribunal_faith + title:k_catholic_tribunal = { is_title_created = no } + NOT = { has_character_flag = neow_tribunal_trial_pending } + NOT = { has_character_flag = neow_tribunal_verdict_reached } + } + ai_will_do = { base = 100 } +} diff --git a/common/landed_titles/religious_titles.txt b/common/landed_titles/religious_titles.txt index 1d95b5435..6387e1333 100644 --- a/common/landed_titles/religious_titles.txt +++ b/common/landed_titles/religious_titles.txt @@ -749,4 +749,22 @@ h_athos = { always_follows_primary_heir = yes disable_regnal_numbers = never ai_primary_priority = { add = 500 } -} \ No newline at end of file +} + +k_catholic_tribunal = { + color = { 229 223 195 } + definite_form = yes + landless = yes + capital = c_roma + disable_regnal_numbers = never + ai_primary_priority = { add = @always_primary_score } + destroy_if_invalid_heir = yes + no_automatic_claims = yes + always_follows_primary_heir = yes + de_jure_drift_disabled = yes + holding_regnal_male_names = { + Alexander Albertus Andreas Benedictus Clemens Franciscus + Gregorius Innocentius Ioannes Ioannes_spc_Paulus Josephus + Leo Michael Paulus Pius Raphael Remigius Urbanus + } +} diff --git a/common/religion/faith_types/NEOW_faiths_catholic.txt b/common/religion/faith_types/NEOW_faiths_catholic.txt index b673c57e5..4f5ca508d 100644 --- a/common/religion/faith_types/NEOW_faiths_catholic.txt +++ b/common/religion/faith_types/NEOW_faiths_catholic.txt @@ -259,6 +259,8 @@ catholic_tribunal_faith = { color = { 229 223 195 } icon = catholic_tribunal graphical_faith = "catholic_gfx" + religious_head = k_catholic_tribunal + } eminent_holy_sites = { @@ -281,6 +283,7 @@ catholic_tribunal_faith = { historical = no doctrines = { + special_doctrine_not_allowed_to_hof doctrine_spiritual_head doctrine_gender_equal doctrine_pluralism_fundamentalist @@ -302,6 +305,7 @@ catholic_tribunal_faith = { doctrine_pilgrimage_encouraged doctrine_funeral_stoic doctrine_imperial_anointment + special_doctrine_is_western_christian_faith special_doctrine_incorruptible_dogma special_doctrine_banner_default } diff --git a/common/religion/faith_types/NEOW_faiths_orthodox.txt b/common/religion/faith_types/NEOW_faiths_orthodox.txt index f38a32649..fd955494f 100644 --- a/common/religion/faith_types/NEOW_faiths_orthodox.txt +++ b/common/religion/faith_types/NEOW_faiths_orthodox.txt @@ -366,7 +366,7 @@ theoadamist_faith = { doctrine_theocracy_lay_clergy doctrine_clerical_marriage_allowed doctrine_clerical_gender_either - doctrine_clerical_succession_temporal_fixed_appointment special_doctrine_true_orthodox + doctrine_clerical_succession_temporal_fixed_appointment special_doctrine_religion_fallback doctrine_consanguinity_unrestricted doctrine_clerical_function_alms_and_pacification doctrine_no_anointment diff --git a/common/scripted_effects/NEOW_religion_effects.txt b/common/scripted_effects/NEOW_religion_effects.txt index 5e4c84e0c..c4ee2f621 100644 --- a/common/scripted_effects/NEOW_religion_effects.txt +++ b/common/scripted_effects/NEOW_religion_effects.txt @@ -803,3 +803,45 @@ NEOW_form_empire_of_athos_effect = { faith:orthodox = { set_religious_head_title = title:h_athos } set_primary_title_to = title:h_athos } + +neow_tribunal_abolish_rival_papacies_effect = { + if = { + limit = { title:k_papal_state = { is_title_created = yes } } + destroy_title = title:k_papal_state + } + if = { + limit = { title:k_compostelan_papacy = { is_title_created = yes } } + destroy_title = title:k_compostelan_papacy + } + faith:roman_catholic_faith = { remove_religious_head_title = yes } + faith:compostelan_catholic_faith = { remove_religious_head_title = yes } +} + +neow_tribunal_install_restored_pope_effect = { + create_title_and_vassal_change = { + type = created + save_scope_as = neow_tribunal_papal_change + add_claim_on_loss = no + } + title:k_catholic_tribunal = { + change_title_holder = { + holder = scope:neow_tribunal_new_pope + change = scope:neow_tribunal_papal_change + } + } + resolve_title_and_vassal_change = scope:neow_tribunal_papal_change + + faith:catholic_tribunal_faith = { + if = { + limit = { has_doctrine = special_doctrine_not_allowed_to_hof } + remove_doctrine = special_doctrine_not_allowed_to_hof + } + set_religious_head_title = title:k_catholic_tribunal + change_fervor = { + value = 25 + desc = NEOW_catholic_tribunal_papacy_fervor_gain + } + } + add_piety = 1000 + add_prestige = 500 +} diff --git a/common/scripted_effects/pam_heresy_shared_effects.txt b/common/scripted_effects/pam_heresy_shared_effects.txt new file mode 100644 index 000000000..b28e27207 --- /dev/null +++ b/common/scripted_effects/pam_heresy_shared_effects.txt @@ -0,0 +1,812 @@ +#################################### +# Heresy system - shared effects # +#################################### +# Reusable building blocks for heresy_pulse.0001 router and the three component event chains (light, dangerous-rite, historical). + +# Faith scope. Sets the cooldown variable that gates faith_heresy_events_pulse. +pam_heresy_set_pulse_cooldown_effect = { + set_variable = { + name = current_heresy + value = yes + days = pam_heresy_pulse_cooldown_days + } +} + +# Faith scope. Resets fervor to the tiered component target. +# COMPONENT = 1, 2, or 3. +pam_heresy_fervor_reset_effect = { + if = { + limit = { $COMPONENT$ = 1 } + change_fervor = { + value = pam_heresy_fervor_reset_component_1_value + desc = pam_heresy_fervor_reset_component_1_desc + } + } + else_if = { + limit = { $COMPONENT$ = 2 } + change_fervor = { + value = pam_heresy_fervor_reset_component_2_value + desc = pam_heresy_fervor_reset_component_2_desc + } + } + else = { + change_fervor = { + value = pam_heresy_fervor_reset_component_3_value + desc = pam_heresy_fervor_reset_component_3_desc + } + } +} + +# Christian Situation catalyst +pam_heresy_push_catalyst_effect = { + if = { + limit = { religion = religion:christianity_religion } + situation:the_christian_church ?= { + trigger_situation_catalyst = $CATALYST$ + } + } +} + +# Faith scope. +# Snapshots the rite's current tenets and the HoR's known rite doctrines. +# The pam_heresy_c1_resolve_differences_effect can later identify what the divergence swapped in. +pam_heresy_c1_snapshot_pre_divergence_state_effect = { + scope:diverging_rite = { + every_rite_tenet = { + add_to_list = c1_pre_divergence_tenets + } + } + if = { + limit = { exists = scope:hor } + scope:hor = { + every_character_doctrine = { + rite_filter = scope:diverging_rite + add_to_list = c1_pre_divergence_doctrines + } + } + } +} + +# Faith scope (called after change_rite_divergence has been applied). +# Saves scope:differing_tenet / scope:differing_doctrine for the C1 flavour text. +# C1 narrates a within-rite shift, so the comparison must be against the pre-divergence snapshot of scope:diverging_rite - not against the parent faith's main rite (which would surface pre-existing differences like Mozarabic's Communion). +# C2/C3 keep using rite_growth_resolve_differences_effect because there the mainline-vs-new-rite delta is the relevant story. +pam_heresy_c1_resolve_differences_effect = { + clear_saved_scope = differing_tenet + clear_saved_scope = differing_doctrine + + scope:diverging_rite = { + random_rite_tenet = { + limit = { + NOT = { is_in_list = c1_pre_divergence_tenets } + } + save_scope_as = differing_tenet + } + } + + if = { + limit = { + NOT = { exists = scope:differing_tenet } + exists = scope:hor + } + scope:hor = { + random_character_doctrine = { + rite_filter = scope:diverging_rite + limit = { + NOT = { is_in_list = c1_pre_divergence_doctrines } + } + save_scope_as = differing_doctrine + } + } + } +} + +# Faith scope. Picks the rite to diverge in Component 1. +# Saves scope:diverging_rite. +# Filters: exclude mainline, damper insular_celtic / mozarabic_church to factor 0.1. +# Weighted by current divergence so already-divergent rites are more likely. +pam_heresy_c1_pick_diverging_rite_effect = { + clear_saved_scope = diverging_rite + + random_faith_rite = { + limit = { + this != faith.main_rite + rite_counties >= 1 + head_of_rite ?= { is_ai = yes } + } + + weight = { + base = 5 + # More divergent rites are more likely to deepen further. + modifier = { + add = 10 + "divergence(faith.main_rite)" >= 25 + } + modifier = { + add = 20 + "divergence(faith.main_rite)" >= 50 + } + modifier = { + add = 20 + "divergence(faith.main_rite)" >= 75 + } + # Pluralism-resistant rites are less prone to lurching toward heresy. + modifier = { + factor = 0.5 + rite_has_parameter = pluralism_pluralistic_resistant_to_heresy + } + # Insular Celtic and Mozarabic are doctrinally weird but historically not the seedbed for heresy outbreaks; dampen without excluding outright. + modifier = { + factor = 0.1 + OR = { + this = rite:insular_celtic + this = rite:mozarabic_church + } + } + } + + save_scope_as = diverging_rite + } +} + +# Character scope (an AI ruler being swept into a new rite by Component 2 / 3 spread). +# Mirrors rite_growth_convert_ruler_to_new_rite_effect, but uses a heresy flag. +pam_heresy_convert_ruler_to_new_rite_effect = { + if = { + limit = { rite != scope:new_rite } + set_character_rite_with_conversion = scope:new_rite + } + every_held_title = { + limit = { + tier = tier_county + rite = scope:source_rite + } + set_county_rite = scope:new_rite + } + add_character_flag = { + flag = recently_converted_by_heresy + years = 10 + } + # Mirror rite_growth_convert_ruler_to_new_rite_effect + rite_growth_convert_court_to_new_rite_effect = yes + + # Archbishop clerical-region cascade. + if = { + limit = { any_held_title = { has_clerical_region = yes } } + every_held_title = { + limit = { has_clerical_region = yes } + save_temporary_scope_as = title_check + every_county_in_clerical_region = { + limit = { + rite = scope:source_rite + OR = { + this = scope:title_check.title_capital_county + any_neighboring_county = { + this = scope:title_check.title_capital_county + } + } + } + set_county_rite = scope:new_rite + holder = { + if = { + limit = { is_eligible_rite_growth_target_trigger = yes } + pam_heresy_convert_ruler_to_new_rite_effect = yes + } + } + } + } + } +} + +# Character scope, an AI ruler pulled into the declared heresy faith by the third component's spread +# Faith-conversion equivalent of pam_heresy_convert_ruler_to_new_rite_effect +pam_heresy_convert_ruler_to_heresy_faith_effect = { + if = { + limit = { faith != scope:heresy_faith } + # For Catholic historical heresies, conversion is handled here county by + # county. Do not call the broad with_conversion effect, which can bypass + # the geographical filter and convert territory outside the allowed area. + if = { + limit = { scope:heresy_faith = { religion = religion:catholic_religion } } + set_character_faith = scope:heresy_faith + } + else = { + set_character_faith_with_conversion = scope:heresy_faith + if = { + limit = { faith != scope:heresy_faith } + set_character_faith = scope:heresy_faith + } + } + } + every_held_title = { + limit = { + tier = tier_county + faith = scope:origin_faith + pam_heresy_neow_permitted_county_trigger = yes + } + set_county_faith = scope:heresy_faith + } + add_character_flag = { + flag = recently_converted_by_heresy + years = 10 + } + # Faith-side mirror of rite_growth_convert_court_to_new_rite_effect. + every_courtier_or_guest = { + limit = { + is_physically_able_ai = yes + faith = scope:origin_faith + NOT = { has_character_flag = ai_will_not_convert } + } + set_character_faith = scope:heresy_faith + } + every_courtier_away = { + limit = { + is_physically_able_ai = yes + faith = scope:origin_faith + NOT = { has_character_flag = ai_will_not_convert } + } + set_character_faith = scope:heresy_faith + } + every_pool_character = { + province = capital_province + limit = { + is_physically_able_ai = yes + faith = scope:origin_faith + NOT = { has_character_flag = ai_will_not_convert } + } + set_character_faith = scope:heresy_faith + } + # Faith-side mirror of the rite cascade in pam_heresy_convert_ruler_to_new_rite_effect. + if = { + limit = { any_held_title = { has_clerical_region = yes } } + every_held_title = { + limit = { has_clerical_region = yes } + save_temporary_scope_as = title_check + every_county_in_clerical_region = { + limit = { + pam_heresy_neow_permitted_county_trigger = yes + faith = scope:origin_faith + OR = { + this = scope:title_check.title_capital_county + any_neighboring_county = { + this = scope:title_check.title_capital_county + } + } + } + set_county_faith = scope:heresy_faith + holder = { + if = { + # Faith version of is_eligible_rite_growth_target_trigger, since scope:source_rite is not set after declaration + limit = { + is_physically_able_ai_adult = yes + faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + NOR = { + scope:founder ?= this + has_trait = heresiarch + has_trait = herald + recently_converted_faith_trigger = yes + has_character_flag = recently_converted_by_rite_growth + has_character_flag = ai_will_not_convert + faith.religious_head ?= this + highest_held_title_tier >= tier_empire + } + } + pam_heresy_convert_ruler_to_heresy_faith_effect = yes + } + } + } + } + } +} + +# Any scope. Spread message for all three components, sent after scope:convert_ruler converts +# Reaches same-faith players near the convert and the convert's liege +# Shows a rite change when scope:new_rite exists, otherwise a faith change to scope:heresy_faith +# TITLE = message title loc key +pam_heresy_send_spread_message_effect = { + every_player = { + limit = { + faith = scope:origin_faith + NOR = { + this = scope:convert_ruler + scope:founder ?= this + } + OR = { + scope:convert_ruler.liege ?= this + capital_county ?= { + squared_distance = { + target = scope:convert_ruler.capital_county + value <= squared_distance_medium + } + } + } + } + if = { + limit = { exists = scope:new_rite } + send_interface_message = { + type = msg_pam_heresy_spread + title = $TITLE$ + left_icon = scope:convert_ruler + right_icon = scope:new_rite + show_as_tooltip = { + scope:convert_ruler = { + set_character_rite = scope:new_rite + } + } + } + } + else_if = { + limit = { exists = scope:heresy_faith } + send_interface_message = { + type = msg_pam_heresy_spread + title = $TITLE$ + left_icon = scope:convert_ruler + right_icon = scope:founder + show_as_tooltip = { + scope:convert_ruler = { + set_character_faith = scope:heresy_faith + } + } + } + } + } +} + +# Character scope. Unlocks every perk in all three Learning lifestyle trees. +pam_heresy_unlock_all_learning_perks_effect = { + add_perk = faithful_perk + add_perk = zealous_proselytizer_perk + add_perk = religious_icon_perk + add_perk = prophet_perk + add_perk = clerical_justifications_perk + add_perk = church_and_state_perk + add_perk = radiant_perk + add_perk = defender_of_the_faith_perk + add_perk = theologian_perk + add_perk = pedagogy_perk + add_perk = open_minded_perk + add_perk = apostate_perk + add_perk = scientific_perk + add_perk = planned_cultivation_perk + add_perk = scholarly_circles_perk + add_perk = learn_on_the_job_perk + add_perk = sanctioned_loopholes_perk + add_perk = erudite_perk + add_perk = anatomical_studies_perk + add_perk = carefree_perk + add_perk = mental_resilience_perk + add_perk = restraint_perk + add_perk = know_thyself_perk + add_perk = wash_your_hands_perk + add_perk = iron_constitution_perk + add_perk = healthy_perk + add_perk = whole_of_body_perk +} + +# Character scope, and this expects scope:new_rite, or omit it for the historical split path +pam_heresy_finalise_founder_effect = { + add_character_flag = ai_will_not_convert + if = { + limit = { NOT = { has_trait = heresiarch } } + add_trait = heresiarch + } + # Brief flag mirroring add_heresiarch_trait_effect to prevent removal on conversion. + add_character_flag = { + flag = new_heresiarch + days = 3 + } + if = { + limit = { NOT = { exists = inspiration } } + create_inspiration = religious_inspiration + } + pam_heresy_unlock_all_learning_perks_effect = yes + if = { + limit = { exists = scope:new_rite } + every_courtier_or_guest = { + limit = { + is_physically_able = yes + faith = scope:new_rite.faith + rite != scope:new_rite + NOT = { has_character_flag = ai_will_not_convert } + } + set_character_rite = scope:new_rite + } + } +} + +###################################################### +# Heresy system - Component 3 setup effects # +###################################################### +# Faith / character scope helpers used only by heresy_historical.0001 and 0011. + +# --- Epicenter ruler picker (faith scope) --- +# Picks scope:epicenter_ruler. Game rule controls geography: +# strict_regional_heresy: prefers the holder of scope:heresy_strict_capital; +# falls back to a default-region pick if that holder is unsuitable. +# relaxed_regional_heresy: any same-faith duke+ AI ruler in the world. +# default_regional_heresy / fallback: a same-faith duke+ AI ruler whose +# capital sits inside the heresy's regional trigger. +pam_heresy_pick_epicenter_ruler_effect = { + clear_saved_scope = epicenter_ruler + + # Strict: try the historical capital's holder first. + if = { + limit = { + pam_heresy_strict_rule_trigger = yes + exists = scope:heresy_strict_capital + scope:heresy_strict_capital.holder ?= { + faith = root + is_landed = yes + is_ai = yes + highest_held_title_tier >= tier_duchy + NOR = { + this = root.religious_head + has_trait = heresiarch + has_trait = herald + recently_converted_faith_trigger = yes + } + } + } + scope:heresy_strict_capital.holder = { save_scope_as = epicenter_ruler } + } + + # Default / fallback: regional duke+ holder. + if = { + limit = { NOT = { exists = scope:epicenter_ruler } } + random_faith_ruler = { + limit = { + is_eligible_heresy_epicenter_ruler_trigger = yes + OR = { + pam_heresy_relaxed_rule_trigger = yes + AND = { + # Default: must be in heresy region. + pam_heresy_default_rule_trigger = yes + exists = capital_county + capital_county.title_province = { + pam_heresy_capital_in_heresy_region_trigger = yes + } + } + AND = { + # Strict but historical capital not held by an eligible ruler: + # fall back to default-region behaviour rather than skipping. + pam_heresy_strict_rule_trigger = yes + exists = capital_county + capital_county.title_province = { + pam_heresy_capital_in_heresy_region_trigger = yes + } + } + } + } + weight = { + base = 100 + modifier = { + factor = 2 + highest_held_title_tier >= tier_kingdom + } + modifier = { + factor = 1.5 + OR = { + has_trait = zealous + has_trait = lifestyle_mystic + has_trait = lifestyle_scholar + has_trait = theologian + } + } + modifier = { + factor = 0.5 + opinion = { + target = root.religious_head + value >= 75 + } + } + } + save_scope_as = epicenter_ruler + } + } +} + +# --- Founder spawn dispatcher (any scope) --- +# Calls the matching per-heresy founder template based on scope:heresy_faith +# and the resurgence stage. Saves scope:founder at scope:birth_location. +# +# Stage logic (named historical heresies): +# first outbreak: spawn the primary historical figure +# second outbreak (resurgence): spawn the named secondary historical figure +# third+ outbreak: spawn the per-heresy anonymous resurgence +# +# Always-anonymous heresies (Paulician, Iconoclast, Adoptionist, Messalian) always use their single anonymous template. +pam_heresy_dispatch_founder_spawn_effect = { + if = { + limit = { scope:heresy_faith = faith:lollard } + if = { + limit = { exists = scope:is_resurgence } + if = { + limit = { NOT = { exists = global_var:pam_heresy_lollard_secondary_fired } } + pam_heresy_spawn_lollard_secondary_founder_effect = yes + set_global_variable = { name = pam_heresy_lollard_secondary_fired value = yes } + } + else = { + pam_heresy_spawn_lollard_resurgence_founder_effect = yes + } + } + else = { + pam_heresy_spawn_lollard_founder_effect = yes + } + } + else_if = { + limit = { scope:heresy_faith = faith:hussite } + if = { + limit = { exists = scope:is_resurgence } + if = { + limit = { NOT = { exists = global_var:pam_heresy_hussite_secondary_fired } } + pam_heresy_spawn_hussite_secondary_founder_effect = yes + set_global_variable = { name = pam_heresy_hussite_secondary_fired value = yes } + } + else = { + pam_heresy_spawn_hussite_resurgence_founder_effect = yes + } + } + else = { + pam_heresy_spawn_hussite_founder_effect = yes + } + } + else_if = { + limit = { scope:heresy_faith = faith:joachimite } + if = { + limit = { exists = scope:is_resurgence } + if = { + limit = { NOT = { exists = global_var:pam_heresy_joachimite_secondary_fired } } + pam_heresy_spawn_joachimite_secondary_founder_effect = yes + set_global_variable = { name = pam_heresy_joachimite_secondary_fired value = yes } + } + else = { + pam_heresy_spawn_joachimite_resurgence_founder_effect = yes + } + } + else = { + pam_heresy_spawn_joachimite_founder_effect = yes + } + } + else_if = { + limit = { scope:heresy_faith = faith:cathar } + if = { + limit = { exists = scope:is_resurgence } + if = { + limit = { NOT = { exists = global_var:pam_heresy_cathar_secondary_fired } } + pam_heresy_spawn_cathar_secondary_founder_effect = yes + set_global_variable = { name = pam_heresy_cathar_secondary_fired value = yes } + } + else = { + pam_heresy_spawn_cathar_resurgence_founder_effect = yes + } + } + else = { + pam_heresy_spawn_cathar_founder_effect = yes + } + } + else_if = { + limit = { scope:heresy_faith = faith:waldensian } + if = { + limit = { exists = scope:is_resurgence } + if = { + limit = { NOT = { exists = global_var:pam_heresy_waldensian_secondary_fired } } + pam_heresy_spawn_waldensian_secondary_founder_effect = yes + set_global_variable = { name = pam_heresy_waldensian_secondary_fired value = yes } + } + else = { + pam_heresy_spawn_waldensian_resurgence_founder_effect = yes + } + } + else = { + pam_heresy_spawn_waldensian_founder_effect = yes + } + } + else_if = { + limit = { scope:heresy_faith = faith:bogomilist } + if = { + limit = { exists = scope:is_resurgence } + if = { + limit = { NOT = { exists = global_var:pam_heresy_bogomilist_secondary_fired } } + pam_heresy_spawn_bogomilist_secondary_founder_effect = yes + set_global_variable = { name = pam_heresy_bogomilist_secondary_fired value = yes } + } + else = { + pam_heresy_spawn_bogomilist_resurgence_founder_effect = yes + } + } + else = { + pam_heresy_spawn_bogomilist_founder_effect = yes + } + } + else_if = { + limit = { scope:heresy_faith = faith:paulician } + pam_heresy_spawn_paulician_founder_effect = yes + } + else_if = { + limit = { scope:heresy_faith = faith:iconoclast } + pam_heresy_spawn_iconoclast_founder_effect = yes + } + else_if = { + limit = { scope:heresy_faith = faith:adoptionist } + pam_heresy_spawn_adoptionist_founder_effect = yes + } + else_if = { + limit = { scope:heresy_faith = faith:messalian } + pam_heresy_spawn_messalian_founder_effect = yes + } +} + +# --- Per-heresy 50-year cooldown setter (faith scope on origin_faith) --- +pam_heresy_set_per_heresy_cooldown_effect = { + if = { + limit = { scope:heresy_faith = faith:lollard } + set_global_variable = { name = pam_heresy_lollard_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:hussite } + set_global_variable = { name = pam_heresy_hussite_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:joachimite } + set_global_variable = { name = pam_heresy_joachimite_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:cathar } + set_global_variable = { name = pam_heresy_cathar_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:waldensian } + set_global_variable = { name = pam_heresy_waldensian_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:bogomilist } + set_global_variable = { name = pam_heresy_bogomilist_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:paulician } + set_global_variable = { name = pam_heresy_paulician_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:iconoclast } + set_global_variable = { name = pam_heresy_iconoclast_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:adoptionist } + set_global_variable = { name = pam_heresy_adoptionist_cooldown value = yes years = 50 } + } + else_if = { + limit = { scope:heresy_faith = faith:messalian } + set_global_variable = { name = pam_heresy_messalian_cooldown value = yes years = 50 } + } +} + +# --- Pre-declaration setup (faith scope) --- +pam_heresy_c3_pre_declaration_setup_effect = { + scope:founder = { + pam_heresy_dispatch_create_pre_declaration_rite_effect = yes + } + + # Save scope:source_rite so downstream spread helpers filter by the parent-faith mainline rite + scope:origin_faith.main_rite = { save_scope_as = source_rite } + + # Only the rite splits off + if = { + limit = { + exists = scope:new_rite + exists = scope:epicenter_ruler.capital_county + } + scope:epicenter_ruler.capital_county = { + set_county_rite = scope:new_rite + } + scope:epicenter_ruler.capital_county = { + every_neighboring_county = { + limit = { + faith = scope:origin_faith + holder.faith ?= scope:origin_faith + } + set_county_rite = scope:new_rite + } + } + } +} + +# create_rite_from_type takes a literal rite type key, so dispatch on heresy_faith. +pam_heresy_dispatch_create_pre_declaration_rite_effect = { + if = { + limit = { scope:heresy_faith = faith:lollard } + create_rite_from_type = { type = lollard_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:hussite } + create_rite_from_type = { type = hussite_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:joachimite } + create_rite_from_type = { type = joachimite_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:cathar } + create_rite_from_type = { type = cathar_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:waldensian } + create_rite_from_type = { type = waldensian_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:bogomilist } + create_rite_from_type = { type = bogomilist_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:paulician } + create_rite_from_type = { type = paulician_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:iconoclast } + create_rite_from_type = { type = iconoclast_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:adoptionist } + create_rite_from_type = { type = adoptionist_rite save_scope_as = new_rite convert = yes } + } + else_if = { + limit = { scope:heresy_faith = faith:messalian } + create_rite_from_type = { type = messalian_rite save_scope_as = new_rite convert = yes } + } +} + +# --- Already-declared setup (faith scope) --- +pam_heresy_c3_already_declared_setup_effect = { + # A heresy already declared at game start never passed through the bull that flips its rite type's convert = no. + scope:heresy_faith.main_rite = { + set_can_convert_to_rite = yes + } + scope:founder = { + set_character_faith_with_conversion = scope:heresy_faith + } + + if = { + limit = { exists = scope:epicenter_ruler.capital_county } + scope:epicenter_ruler.capital_county = { + set_county_faith = scope:heresy_faith + } + scope:epicenter_ruler.capital_county = { + every_neighboring_county = { + limit = { + faith = scope:origin_faith + } + set_county_faith = scope:heresy_faith + } + } + } +} + +pam_seek_communion_reconcile_faith_effect = { + custom_tooltip = pam_seek_communion_reconcile_faith_effect_tt + faith = { + if = { + limit = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } } + add_doctrine = special_doctrine_ecumenical_christian + } + } + custom_tooltip = { + text = pam_seek_communion_absolve_faith_tt + faith = { + every_faith_character = { + limit = { + OR = { + has_trait = heresiarch + has_trait = excommunicated + } + } + if = { + limit = { has_trait = heresiarch } + remove_trait = heresiarch + } + else = { + remove_trait = excommunicated + } + } + } + } +} diff --git a/common/scripted_triggers/pam_heresy_triggers.txt b/common/scripted_triggers/pam_heresy_triggers.txt index 44bf27964..5ed028ae2 100644 --- a/common/scripted_triggers/pam_heresy_triggers.txt +++ b/common/scripted_triggers/pam_heresy_triggers.txt @@ -29,6 +29,11 @@ pam_heresy_c3_eligible_trigger = { pam_heresy_theoadamist_eligible_trigger = yes pam_heresy_marblist_eligible_trigger = yes pam_heresy_elysian_eligible_trigger = yes + pam_heresy_illuminated_eligible_trigger = yes + pam_heresy_neo_fraticelli_eligible_trigger = yes + pam_heresy_catholic_tribunal_eligible_trigger = yes + pam_heresy_cadaverist_eligible_trigger = yes + pam_heresy_penitente_eligible_trigger = yes } } @@ -445,3 +450,124 @@ pam_heresy_default_rule_trigger = { # } # } #} + +# --- NEOW Catholic historical heresies --- +# These triggers run in PROVINCE scope (the CK3 geographical_region system). +# Check a ruler's capital_province or a county's title_province explicitly; +# never check a province region directly on a county TITLE. + +pam_heresy_illuminated_region_trigger = { + geographical_region = neow_catholic_heresy_illuminated +} +pam_heresy_neo_fraticelli_region_trigger = { + geographical_region = neow_catholic_heresy_neo_fraticelli +} +pam_heresy_catholic_tribunal_region_trigger = { + geographical_region = neow_catholic_heresy_catholic_tribunal +} +pam_heresy_cadaverist_region_trigger = { + geographical_region = neow_catholic_heresy_cadaverist +} +pam_heresy_penitente_region_trigger = { + geographical_region = neow_catholic_heresy_penitente +} + +# Faith scope: the outbreak must have at least one eligible AI founder with a +# capital province inside the faith's permitted geographic area. + +pam_heresy_illuminated_eligible_trigger = { + religion = religion:catholic_religion + this != faith:illuminated_faith + num_county_followers > 0 + NOT = { exists = global_var:pam_heresy_illuminated_cooldown } + any_faith_ruler = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_illuminated_region_trigger = yes } + } +} + +pam_heresy_neo_fraticelli_eligible_trigger = { + religion = religion:catholic_religion + this != faith:neo_fraticelli_faith + num_county_followers > 0 + NOT = { exists = global_var:pam_heresy_neo_fraticelli_cooldown } + any_faith_ruler = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_neo_fraticelli_region_trigger = yes } + } +} + +pam_heresy_catholic_tribunal_eligible_trigger = { + religion = religion:catholic_religion + this != faith:catholic_tribunal_faith + num_county_followers > 0 + NOT = { exists = global_var:pam_heresy_catholic_tribunal_cooldown } + any_faith_ruler = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_catholic_tribunal_region_trigger = yes } + } +} + +pam_heresy_cadaverist_eligible_trigger = { + religion = religion:catholic_religion + this != faith:cadaverist_faith + num_county_followers > 0 + NOT = { exists = global_var:pam_heresy_cadaverist_cooldown } + any_faith_ruler = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_cadaverist_region_trigger = yes } + } +} + +pam_heresy_penitente_eligible_trigger = { + religion = religion:catholic_religion + this != faith:penitente_faith + num_county_followers > 0 + NOT = { exists = global_var:pam_heresy_penitente_cooldown } + any_faith_ruler = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_penitente_region_trigger = yes } + } +} + +# Province scope: check all possible Catholic destinations against the selected +# heresy faith; preserve the previously unrestricted Orthodox outbreak rules. +pam_heresy_neow_permitted_province_trigger = { + OR = { + AND = { + scope:heresy_faith = faith:illuminated_faith + pam_heresy_illuminated_region_trigger = yes + } + AND = { + scope:heresy_faith = faith:neo_fraticelli_faith + pam_heresy_neo_fraticelli_region_trigger = yes + } + AND = { + scope:heresy_faith = faith:catholic_tribunal_faith + pam_heresy_catholic_tribunal_region_trigger = yes + } + AND = { + scope:heresy_faith = faith:cadaverist_faith + pam_heresy_cadaverist_region_trigger = yes + } + AND = { + scope:heresy_faith = faith:penitente_faith + pam_heresy_penitente_region_trigger = yes + } + NOT = { + OR = { + scope:heresy_faith = faith:illuminated_faith + scope:heresy_faith = faith:neo_fraticelli_faith + scope:heresy_faith = faith:catholic_tribunal_faith + scope:heresy_faith = faith:cadaverist_faith + scope:heresy_faith = faith:penitente_faith + } + } + } +} + +# County TITLE scope: safe for held county titles, capital_county, +# every_neighboring_county and every_county_in_clerical_region. +pam_heresy_neow_permitted_county_trigger = { + title_province = { pam_heresy_neow_permitted_province_trigger = yes } +} diff --git a/events/dlc/pam/heresy/pam_heresy_historical_events.txt b/events/dlc/pam/heresy/pam_heresy_historical_events.txt index 705530280..273c4f393 100644 --- a/events/dlc/pam/heresy/pam_heresy_historical_events.txt +++ b/events/dlc/pam/heresy/pam_heresy_historical_events.txt @@ -7,71 +7,48 @@ heresy_historical.0001 = { immediate = { save_scope_as = origin_faith - if = { - limit = { - pam_heresy_theoadamist_eligible_trigger = yes - pam_heresy_marblist_eligible_trigger = yes - pam_heresy_elysian_eligible_trigger = yes + clear_saved_scope = heresy_faith + # Each choice is gated independently. This avoids one eligible faith + # starving all alternatives, and Catholic/Orthodox pools remain separate. + random_list = { + 100 = { + trigger = { pam_heresy_theoadamist_eligible_trigger = yes } + faith:theoadamist_faith = { save_scope_as = heresy_faith } } - random_list = { - 100 = { faith:theoadamist_faith = { save_scope_as = heresy_faith } } - 100 = { faith:marblist = { save_scope_as = heresy_faith } } - 100 = { faith:elysian = { save_scope_as = heresy_faith } } + 100 = { + trigger = { pam_heresy_marblist_eligible_trigger = yes } + faith:marblist = { save_scope_as = heresy_faith } } - } - else_if = { - limit = { - pam_heresy_theoadamist_eligible_trigger = yes - pam_heresy_marblist_eligible_trigger = yes + 100 = { + trigger = { pam_heresy_elysian_eligible_trigger = yes } + faith:elysian = { save_scope_as = heresy_faith } } - random_list = { - 100 = { faith:theoadamist_faith = { save_scope_as = heresy_faith } } - 100 = { faith:marblist = { save_scope_as = heresy_faith } } + 100 = { + trigger = { pam_heresy_illuminated_eligible_trigger = yes } + faith:illuminated_faith = { save_scope_as = heresy_faith } } - } - else_if = { - limit = { - pam_heresy_theoadamist_eligible_trigger = yes - pam_heresy_elysian_eligible_trigger = yes + 100 = { + trigger = { pam_heresy_neo_fraticelli_eligible_trigger = yes } + faith:neo_fraticelli_faith = { save_scope_as = heresy_faith } } - random_list = { - 100 = { faith:theoadamist_faith = { save_scope_as = heresy_faith } } - 100 = { faith:elysian = { save_scope_as = heresy_faith } } + 100 = { + trigger = { pam_heresy_catholic_tribunal_eligible_trigger = yes } + faith:catholic_tribunal_faith = { save_scope_as = heresy_faith } } - } - else_if = { - limit = { - pam_heresy_marblist_eligible_trigger = yes - pam_heresy_elysian_eligible_trigger = yes + 100 = { + trigger = { pam_heresy_cadaverist_eligible_trigger = yes } + faith:cadaverist_faith = { save_scope_as = heresy_faith } } - random_list = { - 100 = { faith:marblist = { save_scope_as = heresy_faith } } - 100 = { faith:elysian = { save_scope_as = heresy_faith } } + 100 = { + trigger = { pam_heresy_penitente_eligible_trigger = yes } + faith:penitente_faith = { save_scope_as = heresy_faith } } } - else_if = { - limit = { - pam_heresy_theoadamist_eligible_trigger = yes - } - faith:theoadamist_faith = { save_scope_as = heresy_faith } - } - else_if = { - limit = { - pam_heresy_marblist_eligible_trigger = yes - } - faith:marblist = { save_scope_as = heresy_faith } - } - else_if = { - limit = { - pam_heresy_elysian_eligible_trigger = yes - } - faith:elysian = { save_scope_as = heresy_faith } - } if = { limit = { exists = scope:heresy_faith } if = { - limit = { scope:heresy_faith = { this = faith:marblist } } + limit = { scope:heresy_faith = faith:marblist } random_faith_ruler = { limit = { pam_heresy_marblist_epicenter_trigger = yes } weight = { @@ -84,7 +61,111 @@ heresy_historical.0001 = { capital_county = { save_scope_as = heresy_origin_county } } } - else = { + else_if = { + limit = { scope:heresy_faith = faith:illuminated_faith } + random_faith_ruler = { + limit = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_illuminated_region_trigger = yes } + } + weight = { + base = 100 + modifier = { factor = 1.5 has_trait = zealous } + modifier = { factor = 1.5 has_trait = theologian } + } + save_scope_as = epicenter_ruler + save_scope_as = founder + capital_county = { save_scope_as = heresy_origin_county } + } + } + else_if = { + limit = { scope:heresy_faith = faith:neo_fraticelli_faith } + random_faith_ruler = { + limit = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_neo_fraticelli_region_trigger = yes } + } + weight = { + base = 100 + modifier = { factor = 1.5 has_trait = zealous } + modifier = { factor = 1.5 has_trait = theologian } + } + save_scope_as = epicenter_ruler + save_scope_as = founder + capital_county = { save_scope_as = heresy_origin_county } + } + } + else_if = { + limit = { scope:heresy_faith = faith:catholic_tribunal_faith } + random_faith_ruler = { + limit = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_catholic_tribunal_region_trigger = yes } + } + weight = { + base = 100 + modifier = { factor = 1.5 has_trait = zealous } + modifier = { factor = 1.5 has_trait = theologian } + } + save_scope_as = epicenter_ruler + save_scope_as = founder + capital_county = { save_scope_as = heresy_origin_county } + } + } + else_if = { + limit = { scope:heresy_faith = faith:cadaverist_faith } + random_faith_ruler = { + limit = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_cadaverist_region_trigger = yes } + } + weight = { + base = 100 + modifier = { factor = 1.5 has_trait = zealous } + modifier = { factor = 1.5 has_trait = theologian } + } + save_scope_as = epicenter_ruler + save_scope_as = founder + capital_county = { save_scope_as = heresy_origin_county } + } + } + else_if = { + limit = { scope:heresy_faith = faith:penitente_faith } + random_faith_ruler = { + limit = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_penitente_region_trigger = yes } + } + weight = { + base = 100 + modifier = { factor = 1.5 has_trait = zealous } + modifier = { factor = 1.5 has_trait = theologian } + } + save_scope_as = epicenter_ruler + save_scope_as = founder + capital_county = { save_scope_as = heresy_origin_county } + } + } + else_if = { + limit = { scope:heresy_faith = faith:elysian } + random_faith_ruler = { + limit = { + pam_heresy_neow_epicenter_trigger = yes + capital_province = { pam_heresy_elysian_region_trigger = yes } + } + weight = { + base = 100 + modifier = { factor = 1.5 has_trait = zealous } + modifier = { factor = 1.5 has_trait = theologian } + modifier = { factor = 0.75 highest_held_title_tier >= tier_empire } + } + save_scope_as = epicenter_ruler + save_scope_as = founder + capital_county = { save_scope_as = heresy_origin_county } + } + } + else_if = { + limit = { scope:heresy_faith = faith:theoadamist_faith } random_faith_ruler = { limit = { pam_heresy_neow_epicenter_trigger = yes } weight = { @@ -123,13 +204,39 @@ heresy_historical.0001 = { } } + if = { + limit = { scope:heresy_faith = faith:catholic_tribunal_faith } + scope:epicenter_ruler = { + create_character = { + template = priest_character_template + name = "neow_catholic_tribunal_jozef_ratzinger_name" + gender = male + age = 50 + dynasty = none + employer = scope:epicenter_ruler + culture = culture:bavarian + faith = scope:heresy_faith + rite = scope:heresy_faith.main_rite + save_scope_as = founder + } + } + scope:founder = { add_trait = heresiarch } + set_global_variable = { + name = neow_catholic_tribunal_jozef + value = scope:founder + } + } + scope:heresy_faith.main_rite = { set_can_convert_to_rite = yes } if = { limit = { scope:epicenter_ruler = { is_ai = yes } } scope:epicenter_ruler = { pam_heresy_convert_ruler_to_heresy_faith_effect = yes if = { - limit = { NOT = { has_trait = heresiarch } } + limit = { + NOT = { has_trait = heresiarch } + NOT = { scope:heresy_faith = faith:catholic_tribunal_faith } + } add_trait = heresiarch } } @@ -154,10 +261,18 @@ heresy_historical.0001 = { resolve_title_and_vassal_change = scope:theoadamist_title_change } + # Use the same geographical check on the initially converted + # county AND each neighbour. No unrestricted Catholic ring. scope:heresy_origin_county = { - set_county_faith = scope:heresy_faith + if = { + limit = { pam_heresy_neow_permitted_county_trigger = yes } + set_county_faith = scope:heresy_faith + } every_neighboring_county = { - limit = { faith = scope:origin_faith } + limit = { + faith = scope:origin_faith + pam_heresy_neow_permitted_county_trigger = yes + } set_county_faith = scope:heresy_faith } } @@ -174,6 +289,7 @@ heresy_historical.0001 = { every_player = { limit = { faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } } if = { limit = { scope:heresy_faith = { this = faith:theoadamist_faith } } @@ -187,6 +303,26 @@ heresy_historical.0001 = { limit = { scope:heresy_faith = { this = faith:elysian } } trigger_event = heresy_historical.0052 } + else_if = { + limit = { scope:heresy_faith = faith:illuminated_faith } + trigger_event = heresy_historical.0053 + } + else_if = { + limit = { scope:heresy_faith = faith:neo_fraticelli_faith } + trigger_event = heresy_historical.0054 + } + else_if = { + limit = { scope:heresy_faith = faith:catholic_tribunal_faith } + trigger_event = heresy_historical.0055 + } + else_if = { + limit = { scope:heresy_faith = faith:cadaverist_faith } + trigger_event = heresy_historical.0056 + } + else_if = { + limit = { scope:heresy_faith = faith:penitente_faith } + trigger_event = heresy_historical.0057 + } } if = { @@ -213,6 +349,46 @@ heresy_historical.0001 = { years = 50 } } + else_if = { + limit = { scope:heresy_faith = faith:illuminated_faith } + set_global_variable = { + name = pam_heresy_illuminated_cooldown + value = yes + years = 50 + } + } + else_if = { + limit = { scope:heresy_faith = faith:neo_fraticelli_faith } + set_global_variable = { + name = pam_heresy_neo_fraticelli_cooldown + value = yes + years = 50 + } + } + else_if = { + limit = { scope:heresy_faith = faith:catholic_tribunal_faith } + set_global_variable = { + name = pam_heresy_catholic_tribunal_cooldown + value = yes + years = 50 + } + } + else_if = { + limit = { scope:heresy_faith = faith:cadaverist_faith } + set_global_variable = { + name = pam_heresy_cadaverist_cooldown + value = yes + years = 50 + } + } + else_if = { + limit = { scope:heresy_faith = faith:penitente_faith } + set_global_variable = { + name = pam_heresy_penitente_cooldown + value = yes + years = 50 + } + } pam_heresy_fervor_reset_effect = { COMPONENT = 3 } } } @@ -260,7 +436,10 @@ heresy_historical.0051 = { desc = neow_marblist_heresy.0051.desc major = yes theme = christian - major_trigger = { faith = scope:origin_faith } + major_trigger = { + faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + } left_portrait = { character = scope:founder animation = preaching @@ -270,13 +449,13 @@ heresy_historical.0051 = { name = neow_marblist_heresy.0051.a add_internal_flag = dangerous trigger = { + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } NOR = { faith.religious_head ?= this rite.head_of_rite ?= this } } - set_character_faith_with_conversion = scope:heresy_faith - add_character_flag = { flag = recently_converted_by_heresy years = 10 } + pam_heresy_convert_ruler_to_heresy_faith_effect = yes change_spiritual_fulfillment = 20 ai_chance = { base = 0 } } @@ -294,7 +473,10 @@ heresy_historical.0052 = { desc = neow_elysian_heresy.0052.desc major = yes theme = christian - major_trigger = { faith = scope:origin_faith } + major_trigger = { + faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + } left_portrait = { character = scope:founder animation = preaching @@ -304,13 +486,13 @@ heresy_historical.0052 = { name = neow_elysian_heresy.0052.a add_internal_flag = dangerous trigger = { + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } NOR = { faith.religious_head ?= this rite.head_of_rite ?= this } } - set_character_faith_with_conversion = scope:heresy_faith - add_character_flag = { flag = recently_converted_by_heresy years = 10 } + pam_heresy_convert_ruler_to_heresy_faith_effect = yes change_spiritual_fulfillment = 20 ai_chance = { base = 0 } } @@ -321,6 +503,191 @@ heresy_historical.0052 = { } } +heresy_historical.0053 = { + type = character_event + window = big_event_window + title = neow_illuminated_heresy.0053.t + desc = neow_illuminated_heresy.0053.desc + major = yes + theme = christian + major_trigger = { + faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + } + left_portrait = { + character = scope:founder + animation = preaching + camera = camera_event_right_forward + } + option = { + name = neow_illuminated_heresy.0053.a + add_internal_flag = dangerous + trigger = { + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + NOR = { + faith.religious_head ?= this + rite.head_of_rite ?= this + } + } + pam_heresy_convert_ruler_to_heresy_faith_effect = yes + change_spiritual_fulfillment = 20 + ai_chance = { base = 0 } + } + option = { + name = neow_illuminated_heresy.0053.b + add_piety = medium_piety_gain + ai_chance = { base = 100 } + } +} + +heresy_historical.0054 = { + type = character_event + window = big_event_window + title = neow_neo_fraticelli_heresy.0054.t + desc = neow_neo_fraticelli_heresy.0054.desc + major = yes + theme = christian + major_trigger = { + faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + } + left_portrait = { + character = scope:founder + animation = preaching + camera = camera_event_right_forward + } + option = { + name = neow_neo_fraticelli_heresy.0054.a + add_internal_flag = dangerous + trigger = { + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + NOR = { + faith.religious_head ?= this + rite.head_of_rite ?= this + } + } + pam_heresy_convert_ruler_to_heresy_faith_effect = yes + change_spiritual_fulfillment = 20 + ai_chance = { base = 0 } + } + option = { + name = neow_neo_fraticelli_heresy.0054.b + add_piety = medium_piety_gain + ai_chance = { base = 100 } + } +} + +heresy_historical.0055 = { + type = character_event + window = big_event_window + title = neow_catholic_tribunal_heresy.0055.t + desc = neow_catholic_tribunal_heresy.0055.desc + major = yes + theme = christian + major_trigger = { + faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + } + left_portrait = { + character = scope:founder + animation = preaching + camera = camera_event_right_forward + } + option = { + name = neow_catholic_tribunal_heresy.0055.a + add_internal_flag = dangerous + trigger = { + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + NOR = { + faith.religious_head ?= this + rite.head_of_rite ?= this + } + } + pam_heresy_convert_ruler_to_heresy_faith_effect = yes + change_spiritual_fulfillment = 20 + ai_chance = { base = 0 } + } + option = { + name = neow_catholic_tribunal_heresy.0055.b + add_piety = medium_piety_gain + ai_chance = { base = 100 } + } +} + +heresy_historical.0056 = { + type = character_event + window = big_event_window + title = neow_cadaverist_heresy.0056.t + desc = neow_cadaverist_heresy.0056.desc + major = yes + theme = christian + major_trigger = { + faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + } + left_portrait = { + character = scope:founder + animation = preaching + camera = camera_event_right_forward + } + option = { + name = neow_cadaverist_heresy.0056.a + add_internal_flag = dangerous + trigger = { + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + NOR = { + faith.religious_head ?= this + rite.head_of_rite ?= this + } + } + pam_heresy_convert_ruler_to_heresy_faith_effect = yes + change_spiritual_fulfillment = 20 + ai_chance = { base = 0 } + } + option = { + name = neow_cadaverist_heresy.0056.b + add_piety = medium_piety_gain + ai_chance = { base = 100 } + } +} + +heresy_historical.0057 = { + type = character_event + window = big_event_window + title = neow_penitente_heresy.0057.t + desc = neow_penitente_heresy.0057.desc + major = yes + theme = christian + major_trigger = { + faith = scope:origin_faith + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + } + left_portrait = { + character = scope:founder + animation = preaching + camera = camera_event_right_forward + } + option = { + name = neow_penitente_heresy.0057.a + add_internal_flag = dangerous + trigger = { + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } + NOR = { + faith.religious_head ?= this + rite.head_of_rite ?= this + } + } + pam_heresy_convert_ruler_to_heresy_faith_effect = yes + change_spiritual_fulfillment = 20 + ai_chance = { base = 0 } + } + option = { + name = neow_penitente_heresy.0057.b + add_piety = medium_piety_gain + ai_chance = { base = 100 } + } +} + heresy_historical.0011 = { hidden = yes scope = faith @@ -364,6 +731,7 @@ heresy_historical.0011 = { recently_converted_faith_trigger = yes } exists = capital_county + capital_county = { pam_heresy_neow_permitted_county_trigger = yes } OR = { AND = { faith = { has_doctrine_parameter = has_clerical_regions } diff --git a/events/religion_events/NEOW_religious_decision_events.txt b/events/religion_events/NEOW_religious_decision_events.txt index f4c63ca64..9a4c141f8 100644 --- a/events/religion_events/NEOW_religious_decision_events.txt +++ b/events/religion_events/NEOW_religious_decision_events.txt @@ -388,4 +388,150 @@ NEOW_religious_decision.0211 = { option = { name = NEOW_religious_decision.0211.a } -} \ No newline at end of file +} + +# The Tribunal's two stages are private big-window events. Major events broadcast +# to multiple characters and must not be used for choices that alter world state. +NEOW_religious_decision.0230 = { + type = character_event + window = big_event_window + title = NEOW_religious_decision.0230.t + desc = NEOW_religious_decision.0230.desc + theme = christian + override_background = { reference = council_chamber } + override_effect_2d = { reference = legend_glow } + left_portrait = { character = root animation = personality_rational } + + trigger = { + has_character_flag = neow_tribunal_trial_pending + NOT = { has_character_flag = neow_tribunal_verdict_reached } + } + + option = { + name = NEOW_religious_decision.0230.a + ai_chance = { base = 50 } + # Apply the sentence to the CURRENT holders before their titles are + # destroyed. Do not rely on saved portrait/event scopes here. + if = { + limit = { + exists = title:k_papal_state.holder + title:k_papal_state.holder = { is_alive = yes } + } + title:k_papal_state.holder = { + death = { death_reason = death_execution killer = root } + } + } + if = { + limit = { + exists = title:k_compostelan_papacy.holder + title:k_compostelan_papacy.holder = { is_alive = yes } + } + title:k_compostelan_papacy.holder = { + death = { death_reason = death_execution killer = root } + } + } + neow_tribunal_abolish_rival_papacies_effect = yes + add_character_flag = neow_tribunal_executed_false_popes + add_character_flag = neow_tribunal_verdict_reached + trigger_event = { id = NEOW_religious_decision.0231 days = 1 } + } + + option = { + name = NEOW_religious_decision.0230.b + ai_chance = { base = 50 } + neow_tribunal_abolish_rival_papacies_effect = yes + add_character_flag = neow_tribunal_deposed_false_popes + add_character_flag = neow_tribunal_verdict_reached + trigger_event = { id = NEOW_religious_decision.0231 days = 1 } + } +} + +# Only the ruler who convened the Tribunal chooses the new papal seat. A flag +# set on delivery prevents multiple queued copies in existing saved games. +NEOW_religious_decision.0231 = { + type = character_event + window = big_event_window + title = NEOW_religious_decision.0231.t + desc = NEOW_religious_decision.0231.desc + theme = christian + override_background = { reference = temple_church } + override_effect_2d = { reference = legend_glow } + left_portrait = { character = root animation = prayer } + right_portrait = { + character = scope:neow_tribunal_new_pope + animation = wedding_priest + } + + trigger = { + has_character_flag = neow_tribunal_verdict_reached + NOT = { has_character_flag = neow_tribunal_papal_seat_event_opened } + NOT = { has_character_flag = neow_tribunal_papacy_restored } + title:k_catholic_tribunal = { is_title_created = no } + } + + immediate = { + add_character_flag = neow_tribunal_papal_seat_event_opened + if = { + limit = { + exists = global_var:neow_catholic_tribunal_jozef + global_var:neow_catholic_tribunal_jozef = { + is_alive = yes + faith = faith:catholic_tribunal_faith + } + } + global_var:neow_catholic_tribunal_jozef = { + save_scope_as = neow_tribunal_new_pope + } + } + else = { + create_character = { + template = religious_leader_character + random_traits = no + faith = faith:catholic_tribunal_faith + culture = culture:bavarian + save_scope_as = neow_tribunal_new_pope + } + scope:neow_tribunal_new_pope = { + add_trait = education_learning_3 + add_trait = zealous + } + } + } + + option = { + name = NEOW_religious_decision.0231.a + ai_chance = { base = 60 } + neow_tribunal_install_restored_pope_effect = yes + title:k_catholic_tribunal = { + set_capital_county = title:c_roma + set_title_name = neow_tribunal_papacy_rome + set_variable = { name = neow_tribunal_papal_seat_rome value = yes } + } + add_character_flag = neow_tribunal_papacy_restored + remove_character_flag = neow_tribunal_trial_pending + } + option = { + name = NEOW_religious_decision.0231.b + ai_chance = { base = 38 } + neow_tribunal_install_restored_pope_effect = yes + # San Diego is absent from the supplied county map; use a named see. + title:k_catholic_tribunal = { + set_title_name = neow_tribunal_papacy_san_diego + set_variable = { name = neow_tribunal_papal_seat_san_diego value = yes } + } + add_character_flag = neow_tribunal_papacy_restored + remove_character_flag = neow_tribunal_trial_pending + } + option = { + name = NEOW_religious_decision.0231.c + ai_chance = { base = 2 } + neow_tribunal_install_restored_pope_effect = yes + title:k_catholic_tribunal = { + set_capital_county = title:c_vaucluse + set_title_name = neow_tribunal_papacy_avignon + set_variable = { name = neow_tribunal_papal_seat_avignon value = yes } + } + add_character_flag = neow_tribunal_papacy_restored + remove_character_flag = neow_tribunal_trial_pending + } +} diff --git a/history/titles/k_relgious_heads.txt b/history/titles/k_relgious_heads.txt index 7df214fa7..9d870f65f 100644 --- a/history/titles/k_relgious_heads.txt +++ b/history/titles/k_relgious_heads.txt @@ -1492,3 +1492,821 @@ d_stratocratic_hof = { holder = yugoslavia0003 } } + +# The Tribunal recognises the papal succession only through John Paul II. +# Its new papacy remains uncreated until the Tribunal decision in 2555+. +k_catholic_tribunal = { + 30.1.1={ + holder = neow_roman_pope0001 + } + 64.10.13={ + holder = neow_roman_pope0002 + } + 79.1.1={ + holder = neow_roman_pope0003 + } + 92.1.1={ + holder = neow_roman_pope0004 + } + 99.1.1={ + holder = neow_roman_pope0005 + } + 107.1.1={ + holder = neow_roman_pope0006 + } + 115.1.1={ + holder = neow_roman_pope0007 + } + 125.1.1={ + holder = neow_roman_pope0008 + } + 137.1.1={ + holder = neow_roman_pope0009 + } + 140.1.1={ + holder = neow_roman_pope0010 + } + 154.1.1={ + holder = neow_roman_pope0011 + } + 167.4.20={ + holder = neow_roman_pope0012 + } + 174.1.1={ + holder = neow_roman_pope0013 + } + 189.1.1={ + holder = neow_roman_pope0014 + } + 199.1.1={ + holder = neow_roman_pope0015 + } + 217.12.20={ + holder = neow_roman_pope0016 + } + 222.10.14={ + holder = neow_roman_pope0017 + } + 230.1.1={ + holder = neow_roman_pope0018 + } + 235.9.29={ + holder = neow_roman_pope0019 + } + 236.1.3={ + holder = neow_roman_pope0020 + } + 250.1.20={ + holder = neow_roman_pope0021 + } + 253.6.1={ + holder = neow_roman_pope0022 + } + 254.3.5={ + holder = neow_roman_pope0023 + } + 257.8.2={ + holder = neow_roman_pope0024 + } + 258.8.6={ + holder = neow_roman_pope0025 + } + 268.12.26={ + holder = neow_roman_pope0026 + } + 274.12.30={ + holder = neow_roman_pope0027 + } + 283.7.12={ + holder = neow_roman_pope0028 + } + 296.4.22={ + holder = neow_roman_pope0029 + } + 304.4.1={ + holder = neow_roman_pope0030 + } + 309.1.16={ + holder = neow_roman_pope0031 + } + 310.8.17={ + holder = neow_roman_pope0032 + } + 335.12.31={ + holder = neow_roman_pope0033 + } + 336.10.7={ + holder = neow_roman_pope0034 + } + 352.4.12={ + holder = neow_roman_pope0035 + } + 366.9.24={ + holder = neow_roman_pope0036 # Antipope Felix II, was counted when numbering Felix III and IV + } + 366.9.25={ + holder = neow_roman_pope0037 + } + 384.12.11={ + holder = neow_roman_pope0038 + } + 399.11.26={ + holder = neow_roman_pope0039 + } + 401.11.27={ + holder = neow_roman_pope0040 + } + 417.3.12={ + holder = neow_roman_pope0041 + } + 418.12.26={ + holder = neow_roman_pope0042 + } + 422.9.4={ + holder = neow_roman_pope0043 + } + 432.4.6={ + holder = neow_roman_pope0044 + } + 440.8.18={ + holder = neow_roman_pope0045 + } + 461.11.10={ + holder = neow_roman_pope0046 + } + 468.2.28={ + holder = neow_roman_pope0047 + } + 483.3.10={ + holder = neow_roman_pope0048 + } + 492.1.1={ + holder = neow_roman_pope0049 + } + 496.11.21={ + holder = neow_roman_pope0050 + } + 498.11.19={ + holder = neow_roman_pope0051 + } + 514.7.19={ + holder = neow_roman_pope0052 + } + 523.8.6={ + holder = neow_roman_pope0053 + } + 526.5.18={ + holder = neow_roman_pope0054 + } + 530.1.1={ + holder = neow_roman_pope0055 + } + 532.8.17={ + holder = neow_roman_pope0056 + } + 535.5.8={ + holder = neow_roman_pope0057 + } + 536.4.22={ + holder = neow_roman_pope0058 + } + 536.6.8={ + holder = neow_roman_pope0059 + } + 555.6.7={ + holder = neow_roman_pope0060 + } + 561.3.4={ + holder = neow_roman_pope0061 + } + 574.7.13={ + holder = neow_roman_pope0062 + } + 579.7.2={ + holder = neow_roman_pope0063 + } + 590.1.1={ + holder = neow_roman_pope0064 + } + 604.3.15={ + holder = neow_roman_pope0065 + } + 606.2.22={ + holder = neow_roman_pope0066 + } + 607.11.12={ + holder = neow_roman_pope0067 + } + 615.5.25={ + holder = neow_roman_pope0068 + } + 618.11.8={ + holder = neow_roman_pope0069 + } + 625.10.25={ + holder = neow_roman_pope0070 + } + 638.10.12={ + holder = neow_roman_pope0071 + } + 640.8.2={ + holder = neow_roman_pope0072 + } + 642.10.12={ + holder = neow_roman_pope0073 + } + 649.5.14={ + holder = neow_roman_pope0074 + } + 654.8.10={ + holder = neow_roman_pope0075 + } + 657.6.1={ + holder = neow_roman_pope0076 + } + 672.1.27={ + holder = neow_roman_pope0077 + } + 676.6.17={ + holder = neow_roman_pope0078 + } + 678.4.11={ + holder = neow_roman_pope0079 + } + 681.1.10={ + holder = neow_roman_pope0080 + } + 683.7.3={ + holder = neow_roman_pope0081 + } + 685.5.8={ + holder = neow_roman_pope0082 + } + 686.8.2={ + holder = neow_roman_pope0083 + } + 687.9.21={ + holder = neow_roman_pope0084 + } + 701.9.8={ + holder = neow_roman_pope0085 + } + 705.1.11={ + holder = neow_roman_pope0086 + } + 707.10.18={ + holder = neow_roman_pope0087 + } + 708.2.4={ + holder = neow_roman_pope0088 + } + 715.4.9={ + holder = neow_roman_pope0089 + } + 731.2.11={ + holder = neow_roman_pope0090 + } + 741.11.28={ + holder = neow_roman_pope0091 + } + 752.3.14={ + holder = neow_roman_pope0092 + } + 757.4.29={ + holder = neow_roman_pope0093 + } + 767.6.28={ + holder = neow_roman_pope0094 + } + 772.1.24={ + holder = neow_roman_pope0095 + } + 795.12.25={ + holder = neow_roman_pope0096 + } + 816.6.12={ + holder = neow_roman_pope0097 + } + 817.1.24={ + holder = neow_roman_pope0098 + } + 824.2.11={ + holder = neow_roman_pope0099 + } + 827.8.27={ + holder = neow_roman_pope0100 + } + 827.9.16={ + holder = neow_roman_pope0101 + } + 844.1.11={ + holder = neow_roman_pope0102 + } + 847.1.24={ + holder = neow_roman_pope0103 + } + 855.7.17={ + holder = neow_roman_pope0104 + } + 858.4.17={ + holder = neow_roman_pope0105 + } + 867.11.13={ + holder = neow_roman_pope0106 + } + 872.12.14={ + holder = neow_roman_pope0107 + } + 882.12.16={ + holder = neow_roman_pope0108 + } + 884.5.15={ + holder = neow_roman_pope0109 + } + 885.9.1={ + holder = neow_roman_pope0110 + } + 891.9.14={ + holder = neow_roman_pope0111 + } + 896.4.4={ + holder = neow_roman_pope0112 + } + 896.5.1={ + holder = neow_roman_pope0113 + } + 897.8.1={ + holder = neow_roman_pope0114 + } + 897.11.1={ + holder = neow_roman_pope0115 + } + 897.12.1={ + holder = neow_roman_pope0116 + } + 900.1.1={ + holder = neow_roman_pope0117 + } + 903.7.1={ + holder = neow_roman_pope0118 + } + 903.9.1={ + holder = neow_roman_pope0119 + } + 911.4.14={ + holder = neow_roman_pope0120 + } + 913.7.1={ + holder = neow_roman_pope0121 + } + 914.3.1={ + holder = neow_roman_pope0122 + } + 928.5.1={ + holder = neow_roman_pope0123 + } + 929.1.1={ + holder = neow_roman_pope0124 + } + 931.3.15={ + holder = neow_roman_pope0125 + } + 935.12.1={ + holder = neow_roman_pope0126 + } + 939.7.13={ + holder = neow_roman_pope0127 + } + 942.10.1={ + holder = neow_roman_pope0128 + } + 946.5.1={ + holder = neow_roman_pope0129 + } + 955.12.16={ + holder = neow_roman_pope0130 + } + 964.5.17={ + holder = neow_roman_pope0131 + } + 964.6.23={ + holder = neow_roman_pope0132 + } + 965.3.1={ + holder = neow_roman_pope0133 + } + 972.9.6={ + holder = neow_roman_pope0134 + } + 974.7.1={ + holder = neow_roman_pope0134_2 # Antipope but he was counted as a Pope Bonifatius so here he is + } + 974.8.1={ + holder = neow_roman_pope0135 + } + 983.7.10={ + holder = neow_roman_pope0136 + } + 984.8.20={ + holder = neow_roman_pope0137 + } + 996.5.3={ + holder = neow_roman_pope0138 + } + 999.2.18={ + holder = neow_roman_pope0138_2 # Actually an Antipope, but mistakenly counted by Jhon XVII, so added to make the count work + } + 999.4.2={ + holder = neow_roman_pope0139 + } + 1003.5.12={ + holder = neow_roman_pope0140 + } + 1003.12.6={ + holder = neow_roman_pope0141 + } + 1009.7.1={ + holder = neow_roman_pope0142 + } + 1012.5.12={ + holder = neow_roman_pope0143 + } + 1024.8.9={ + holder = neow_roman_pope0144 + } + 1032.10.1={ + holder = neow_roman_pope0145 + } + 1045.1.20={ + holder = neow_roman_pope0146 + } + 1045.2.10={ + holder = neow_roman_pope0145 + } + 1045.5.1={ + holder = neow_roman_pope0147 + } + 1046.12.20={ + holder = neow_roman_pope0148 + } + 1047.10.9 = { + holder = neow_roman_pope0145 + } + 1048.7.17 = { + holder = neow_roman_pope0149 + } + 1048.8.9 = { + holder = neow_roman_pope0150 + } + 1054.4.19 = { + holder = neow_roman_pope0151 + faith:roman_catholic_faith = { + set_religious_head_title = title:k_papal_state + } + } + 1057.7.28 = { + holder = neow_roman_pope0152 + } + 1058.3.29 = { + holder = neow_roman_pope0152_2 #Antipope + } + 1059.1.24 = { + holder = neow_roman_pope0153 + } + 1061.7.27 = { + holder = neow_roman_pope0154 + } + 1073.4.21 = { + holder = neow_roman_pope0155 + } + 1085.5.25 = { + holder = neow_roman_pope0156 + } + 1087.9.16 = { + holder = neow_roman_pope0157 + } + 1099.7.29 = { + holder = neow_roman_pope0158 + } + 1118.1.21 = { + holder = neow_roman_pope0159 + } + 1119.1.29 = { + holder = neow_roman_pope0160 + } + 1124.12.13 = { + holder = neow_roman_pope0161 + } + 1130.2.13 = { + holder = neow_roman_pope0162 + } + 1143.9.24 = { + holder = neow_roman_pope0163 + } + 1144.3.8 = { + holder = neow_roman_pope0164 + } + 1145.2.15 = { + holder = neow_roman_pope0165 + } + 1153.7.8 = { + holder = neow_roman_pope0166 + } + 1154.12.3 = { + holder = neow_roman_pope0167 + } + 1159.9.1 = { + holder = neow_roman_pope0168 + } + 1181.8.30 = { + holder = neow_roman_pope0169 + } + 1185.5.25 = { + holder = neow_roman_pope0170 + } + 1187.10.20 = { + holder = neow_roman_pope0171 + } + 1187.12.17 = { + holder = neow_roman_pope0172 + } + 1191.3.20 = { + holder = neow_roman_pope0173 + } + 1198.1.8 = { + holder = neow_roman_pope0174 + } + 1216.7.16 = { + holder = neow_roman_pope0175 + } + 1227.3.18 = { + holder = neow_roman_pope0176 + } + 1241.8.22 = { + holder = neow_roman_pope0177 + } + 1241.11.10 = { + holder = neow_roman_pope0178 + } + 1254.12.7 = { + holder = neow_roman_pope0179 + } + 1261.5.25 = { + holder = neow_roman_pope0180 + } + 1264.10.2 = { + holder = neow_roman_pope0181 + } + 1268.11.29 = { + holder = neow_roman_pope0182 + } + 1276.1.10 = { + holder = neow_roman_pope0183 + } + 1276.6.22 = { + holder = neow_roman_pope0184 + } + 1276.8.18 = { + holder = neow_roman_pope0184_2 + } + 1276.8.19 = { + holder = neow_roman_pope0185 + } + 1277.5.20 = { + holder = neow_roman_pope0186 + } + 1280.8.22 = { + holder = neow_roman_pope0187 + } + 1285.3.28 = { + holder = neow_roman_pope0188 + } + 1287.4.3 = { + holder = neow_roman_pope0189 + } + 1292.4.4 = { + holder = neow_roman_pope0190 + } + 1296.5.19 = { + holder = neow_roman_pope0191 + } + 1303.10.11 = { + holder = neow_roman_pope0192 + } + 1304.7.7 = { + holder = neow_roman_pope0193 + } + 1314.4.20 = { + holder = neow_roman_pope0194 + } + 1334.12.20 = { + holder = neow_roman_pope0195 + } + 1342.4.25 = { + holder = neow_roman_pope0196 + } + 1352.12.12 = { + holder = neow_roman_pope0197 + } + 1362.9.20 = { + holder = neow_roman_pope0198 + } + 1370.12.24 = { + holder = neow_roman_pope0199 + } + 1378.4.2 = { + holder = neow_roman_pope0200 + } + 1389.10.24 = { + holder = neow_roman_pope0201 + } + 1404.10.9 = { + holder = neow_roman_pope0202 + } + 1406.11.18 = { + holder = neow_roman_pope0203 + } + 1417.11.1 = { + holder = neow_roman_pope0203_2 #Antipope + } + 1417.11.2 = { + holder = neow_roman_pope0204 + } + 1431.2.25 = { + holder = neow_roman_pope0205 + } + 1447.2.28 = { + holder = neow_roman_pope0206 + } + 1455.3.31 = { + holder = neow_roman_pope0207 + } + 1458.8.12 = { + holder = neow_roman_pope0208 + } + 1464.8.22 = { + holder = neow_roman_pope0209 + } + 1471.8.2 = { + holder = neow_roman_pope0210 + } + 1484.8.20 = { + holder = neow_roman_pope0211 + } + 1492.8.2 = { + holder = neow_roman_pope0212 + } + 1503.9.4 = { + holder = neow_roman_pope0213 + } + 1503.10.25 = { + holder = neow_roman_pope0214 + } + 1513.3.1 = { + holder = neow_roman_pope0215 + } + 1521.12.20 = { + holder = neow_roman_pope0216 + } + 1523.10.17 = { + holder = neow_roman_pope0217 + } + 1534.10.4 = { + holder = neow_roman_pope0218 + } + 1549.12.24 = { + holder = neow_roman_pope0219 + } + 1555.3.31 = { + holder = neow_roman_pope0220 + } + 1555.5.12 = { + holder = neow_roman_pope0221 + } + 1559.10.21 = { + holder = neow_roman_pope0222 + } + 1565.12.24 = { + holder = neow_roman_pope0223 + } + 1572.5.7 = { + holder = neow_roman_pope0224 + } + 1585.4.19 = { + holder = neow_roman_pope0225 + } + 1590.9.15 = { + holder = neow_roman_pope0226 + } + 1590.9.27 = { + holder = neow_roman_pope0227 + } + 1591.10.22 = { + holder = neow_roman_pope0228 + } + 1592.1.16 = { + holder = neow_roman_pope0229 + } + 1605.3.17 = { + holder = neow_roman_pope0230 + } + 1605.5.6 = { + holder = neow_roman_pope0231 + } + 1621.2.3 = { + holder = neow_roman_pope0232 + } + 1623.7.23 = { + holder = neow_roman_pope0233 + } + 1644.8.22 = { + holder = neow_roman_pope0234 + } + 1655.2.11 = { + holder = neow_roman_pope0235 + } + 1667.6.5 = { + holder = neow_roman_pope0236 + } + 1670.1.30 = { + holder = neow_roman_pope0237 + } + 1676.8.21 = { + holder = neow_roman_pope0238 + } + 1689.9.8 = { + holder = neow_roman_pope0239 + } + 1691.4.18 = { + holder = neow_roman_pope0240 + } + 1700.10.25 = { + holder = neow_roman_pope0241 + } + 1721.4.14 = { + holder = neow_roman_pope0242 + } + 1724.4.18 = { + holder = neow_roman_pope0243 + } + 1730.5.2 = { + holder = neow_roman_pope0244 + } + 1740.5.8 = { + holder = neow_roman_pope0245 + } + 1758.6.4 = { + holder = neow_roman_pope0246 + } + 1769.3.27 = { + holder = neow_roman_pope0247 + } + 1774.11.27 = { + holder = neow_roman_pope0248 + } + 1799.12.13 = { + holder = neow_roman_pope0249 + } + 1823.9.8 = { + holder = neow_roman_pope0250 + } + 1829.3.6 = { + holder = neow_roman_pope0251 + } + 1831.1.1 = { + holder = neow_roman_pope0252 + } + 1846.6.8 = { + holder = neow_roman_pope0253 + } + 1878.2.13 = { + holder = neow_roman_pope0254 + } + 1903.7.27 = { + holder = neow_roman_pope0255 + } + 1914.8.27 = { + holder = neow_roman_pope0256 + } + 1922.1.29 = { + holder = neow_roman_pope0257 + } + 1939.2.20 = { + holder = neow_roman_pope0258 + } + 1958.10.19 = { + holder = neow_roman_pope0259 + } + 1963.6.12 = { + holder = neow_roman_pope0260 + } + 1978.8.16 = { + holder = neow_roman_pope0261 + } + 1978.10.7 = { + holder = neow_roman_pope0262 #John Paul II, last Pre-Event + } + 2000.1.1 = { + holder = 0 + } +} diff --git a/localization/english/replace/religion/zz_NEOW_heresy_events_l_english.yml b/localization/english/replace/religion/zz_NEOW_heresy_events_l_english.yml index 1fd95fc3a..d70f29c02 100644 --- a/localization/english/replace/religion/zz_NEOW_heresy_events_l_english.yml +++ b/localization/english/replace/religion/zz_NEOW_heresy_events_l_english.yml @@ -13,3 +13,29 @@ neow_elysian_heresy.0052.desc:0 "Word spreads of a movement teaching that the souls of the dead are held captive in Hades, where the Devil turns their restless shades against the living. Its preachers warn that only solemn funeral rites and prayers can appease the departed until the Heavenly Host descends to deliver them in the last days. A ruler has gathered followers around these teachings, promising that the faithful shall one day share in the paradise of the Elysian Fields. The movement is gaining adherents throughout our lands." neow_elysian_heresy.0052.a:0 "We must bring peace to the departed. I shall join them!" neow_elysian_heresy.0052.b:0 "I reject these teachings of Hades." + + neow_illuminated_heresy.0053.t:0 "The Veil of Darkness" + neow_illuminated_heresy.0053.desc:0 "Word reaches us of Catholic lodges which claim that demons have ruled the world since the [Glossary( 'Deluge', 'DELUGE_GLOSS')]. Their initiates seek to unseat the false pontiff in Rome and restore the light of Christendom, even employing forbidden arts against the powers of Hell. A preacher has won the favour of a ruler, and the Illuminated Lodges are gathering followers throughout the land." + neow_illuminated_heresy.0053.a:0 "Their secret knowledge shall serve the light. I shall join them!" + neow_illuminated_heresy.0053.b:0 "No good can come from bargaining with demons." + + neow_neo_fraticelli_heresy.0054.t:0 "The Little Brethren" + neow_neo_fraticelli_heresy.0054.desc:0 "A brotherhood preaching holy poverty has arisen among the Catholics of Italy. Calling themselves the Neo-Fraticelli, they denounce the riches of the clergy and teach that Mammon, strengthened by the greed of the Old World, brought about the [Glossary( 'Deluge', 'DELUGE_GLOSS')]. A local ruler has embraced their austere rule, and the brethren are urging the faithful to renounce worldly splendour." + neow_neo_fraticelli_heresy.0054.a:0 "The Church must cast off its riches. I shall join them!" + neow_neo_fraticelli_heresy.0054.b:0 "I will not abandon the Church for these preachers." + + neow_catholic_tribunal_heresy.0055.t:0 "The Tribunal Convenes" + neow_catholic_tribunal_heresy.0055.desc:0 "Across southern Europe, disaffected clergymen rally behind Jozef Ratzinger, a Bavarian preacher who proclaims the founding of a Catholic Tribunal. He denies the legitimacy of every pope elected after Ioannes Paulus II and condemns the reforms of both the Roman and Compostelan churches. With a ruler now pledged to his cause, Ratzinger demands that the rival curiae answer for their alleged usurpations before a new conclave may be assembled." + neow_catholic_tribunal_heresy.0055.a:0 "The pretenders must answer for their crimes. I shall join them!" + neow_catholic_tribunal_heresy.0055.b:0 "Their judgment has no authority over the Church." + + neow_cadaverist_heresy.0056.t:0 "The Preserved Pontiff" + neow_cadaverist_heresy.0056.desc:0 "From the Catholic lands of Poland and Italy comes word of a sect proclaiming that the last antediluvian pope was preserved by the Archangel Gabriel during the [Glossary( 'Deluge', 'DELUGE_GLOSS')]. They insist that the pontiff yet lives, awaiting his restoration to the flesh, while a secret synod governs in his name. A local ruler has joined the Cadaverists, and their strange communion is spreading among the faithful." + neow_cadaverist_heresy.0056.a:0 "The Preserved shall return. I shall join them!" + neow_cadaverist_heresy.0056.b:0 "The dead do not govern the See of Peter." + + neow_penitente_heresy.0057.t:0 "The Endless Penance" + neow_penitente_heresy.0057.desc:0 "Throughout Iberia, bands of flagellants call the faithful to repent for the sins of the Old World. These Penitentes preach that the [Glossary( 'Deluge', 'DELUGE_GLOSS')] was divine punishment and that neither Rome nor Compostela can speak for a God who has withdrawn from mankind. A ruler has taken up their discipline, and new penitential orders are gathering to suffer for the sins of their ancestors." + neow_penitente_heresy.0057.a:0 "Only penance can cleanse our sins. I shall join them!" + neow_penitente_heresy.0057.b:0 "Penance does not require the rejection of the Church." + neow_catholic_tribunal_jozef_ratzinger_name:0 "Jozef Ratzinger" diff --git a/localization/english/replace/religion/zz_NEOW_religion_catholic_l_english.yml b/localization/english/replace/religion/zz_NEOW_religion_catholic_l_english.yml index 89833ec9f..69644a734 100644 --- a/localization/english/replace/religion/zz_NEOW_religion_catholic_l_english.yml +++ b/localization/english/replace/religion/zz_NEOW_religion_catholic_l_english.yml @@ -143,8 +143,6 @@ penitente_rite_adherent_plural:0 "Penitents" penitente_rite_desc:0 "Penitent Orders are an ancient Spanish tradition, though many of them have since grown disillusioned with the Catholic Church. Rejecting both the Compostelan and Roman papacies as corrupt and misguided, the Penitentes preach that all of humanity is full of guilt and undeserving of salvation. To punish the antediluvian world for blindly following the generals of the Antichrist to war, the Lord sent unto them [Glossary( 'the Deluge', 'DELUGE_GLOSS')], and the streets of Europe ran with the blood of the suffering. Greatly disappointed by his children, God's only order was that the remaining humans must repent their sins and the sins of their ancestors, sentencing them to unending penance. As the Lord is no longer willing to speak through any single holy man, the Penitents are organised into orders of flagellants, each member given the holy duty of suffering until absolution." - penitente_rite:0 "Order of Penitents" - penitente_rite_desc:0 "$penitente_desc$" # Cadaverist @@ -171,8 +169,16 @@ fraticelli_faith_adherent:0 "Neo-Fraticelli" fraticelli_faith_adherent_plural:0 "Neo-Fraticelli" fraticelli_faith_desc:0 "The Fraticelli, or the 'Little Brethren', are a movement within Catholicism seeking to increase the devotion of the Church towards asceticism and poverty. Inspired by their medieval namesake, the Fraticelli are violently opposed to hoarding and displays of wealth by the Church, as well as excessive opulence among the populace. They believe that Mammon, the King of Greed, grew so powerful within the Old World that he usurped Lucifer as the ruler of Hell, fueled by the infinite greed of antediluvian plutocracies. As Mammon intentionally and brutally brought forth the fall of the Old World, the Fraticelli view greed as the gravest of sins." + neo_fraticelli_faith:0 "Fraticelli Catholic Church" + neo_fraticelli_faith_adj:0 "Neo-Fraticelli" + neo_fraticelli_faith_adherent:0 "Neo-Fraticelli" + neo_fraticelli_faith_adherent_plural:0 "Neo-Fraticelli" + neo_fraticelli_faith_desc:0 "The Fraticelli, or the 'Little Brethren', are a movement within Catholicism seeking to increase the devotion of the Church towards asceticism and poverty. Inspired by their medieval namesake, the Fraticelli are violently opposed to hoarding and displays of wealth by the Church, as well as excessive opulence among the populace. They believe that Mammon, the King of Greed, grew so powerful within the Old World that he usurped Lucifer as the ruler of Hell, fueled by the infinite greed of antediluvian plutocracies. As Mammon intentionally and brutally brought forth the fall of the Old World, the Fraticelli view greed as the gravest of sins." + neo_fraticelli_rite_adj:0 "$neo_fraticelli_faith_adj$" + neo_fraticelli_rite_adherent:0 "$neo_fraticelli_faith_adherent$" + neo_fraticelli_rite_adherent_plural:0 "$neo_fraticelli_faith_adherent_plural$" neo_fraticelli_rite:0 "Fraticelli Catholic Church" - neo_fraticelli_rite_desc:0 "$fraticelli_desc$" + neo_fraticelli_rite_desc:0 "$neo_fraticelli_faith_desc$" # Compostelan @@ -196,13 +202,13 @@ catholic_tribunal_faith_adj:0 "Tribunal" catholic_tribunal_faith_adherent:0 "Tribunalist" catholic_tribunal_faith_adherent_plural:0 "Tribunalists" - catholic_tribunal_faith_desc:0 "Following the Compostelan Schism and reforms like Vatican III, many hardliner clergymen would leave the Roman Church disillusioned with the Holy See. Eventually, hundreds of them would convene to found what they dubbed the Catholic Tribunal, in which their stance became written in ink: all popes elected after Ioannes Paulus II—the last pre-Event pope—were illegitimate pretenders, and their papacies were retroactively declared null. Upon seizing the offices of both the Roman and the Compostelan Curia, the Catholic Tribunal intends to renew the Church by repealing their illegal reforms, and putting each and every post-Event pope on trial, before assembling a new papal conclave through all the proper pre-Event channels and documentation." + catholic_tribunal_faith_desc:0 "After the Compostelan Schism and the reforms of Vatican III, a faction of intransigent clerics abandoned both papal curiae and organised the Catholic Tribunal. They preserve the Roman succession through Ioannes Paulus II, but proclaim every disputed pontificate since the [Glossary( 'Deluge', 'DELUGE_GLOSS' )] illegitimate. According to the Tribunal, no lawful conclave can be convened while Rome and Compostela each assert the right to appoint electors and deny the authority of the other. Its priests therefore claim the power to try the rival pontiffs, depose or execute the pretenders, and annul their judgments. Only after these rival claims are extinguished may a new conclave restore the chair of Peter, whether at Rome, Avignon, or across the sea in San Diego." catholic_tribunal_rite:0 "Catholic Tribunal" catholic_tribunal_rite_adj:0 "Tribunal" catholic_tribunal_rite_adherent:0 "Tribunalist" catholic_tribunal_rite_adherent_plural:0 "Tribunalists" - catholic_tribunal_rite_desc:0 "Following the Compostelan Schism and reforms like Vatican III, many hardliner clergymen would leave the Roman Church disillusioned with the Holy See. Eventually, hundreds of them would convene to found what they dubbed the Catholic Tribunal, in which their stance became written in ink: all popes elected after Ioannes Paulus II—the last pre-Event pope—were illegitimate pretenders, and their papacies were retroactively declared null. Upon seizing the offices of both the Roman and the Compostelan Curia, the Catholic Tribunal intends to renew the Church by repealing their illegal reforms, and putting each and every post-Event pope on trial, before assembling a new papal conclave through all the proper pre-Event channels and documentation." + catholic_tribunal_rite_desc:0 "After the Compostelan Schism and the reforms of Vatican III, a faction of intransigent clerics abandoned both papal curiae and organised the Catholic Tribunal. They preserve the Roman succession through Ioannes Paulus II, but proclaim every disputed pontificate since the [Glossary( 'Deluge', 'DELUGE_GLOSS' )] illegitimate. According to the Tribunal, no lawful conclave can be convened while Rome and Compostela each assert the right to appoint electors and deny the authority of the other. Its priests therefore claim the power to try the rival pontiffs, depose or execute the pretenders, and annul their judgments. Only after these rival claims are extinguished may a new conclave restore the chair of Peter, whether at Rome, Avignon, or across the sea in San Diego." # Roman Catholic @@ -260,4 +266,4 @@ chaldean_adherent_plural:0 "Chaldean Catholic" chaldean_desc:0 "The Chaldean Catholic Church is the heir of the ancient Church of the East. Before the [Concept('neow_the_event','Event')|E], Assyrian Christians were divided among many differing groups. When the old world fell into chaos, the schismatic Catholicos-Patriarch was far across the sea, while the surviving bishops and monasteries of Mesopotamia were cut off from their former hierarchies. In time, the local East-Syriac communities gathered around the Chaldean patriarchal line in Baghdad, and the old divisions faded into a single Church. Although the restored Church preserves the Catholic inheritance of the Chaldeans, centuries of isolation have made its Catholicos-Patriarch effectively independent of distant disputes over the Roman See, while still preserving the Christian inheritance of Assyria." chaldean_religious_head_title:0 "Catholicos-Patriarch" - chaldean_religious_head_title_name:0 "Chaldean Patriarchate" \ No newline at end of file + chaldean_religious_head_title_name:0 "Chaldean Patriarchate" diff --git a/localization/english/replace/zz_NEOW_religious_decisions_l_english.yml b/localization/english/replace/zz_NEOW_religious_decisions_l_english.yml index 4e5990d90..d3ff99773 100644 --- a/localization/english/replace/zz_NEOW_religious_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_religious_decisions_l_english.yml @@ -162,3 +162,18 @@ neow_encyclical.desc.intro:0 "I, [ROOT.GetCharacter.GetTitledFirstName], entrusted with the pastoral care of the Orthodox faithful, to the bishops, clergy, monastics, and all our beloved children in Christ:" neow_encyclical.desc.outro:0 "#italic Given at [ROOT.Char.GetCapitalLocation.GetTitle.GetNameNoTierNoTooltip], on [GetCurrentDate.GetStringLong].#!" neow_encyclical.option.flavor:0 "Let this encyclical be proclaimed throughout the Church." + NEOW_catholic_tribunal_restore_papacy_decision:0 "Convene the Tribunal of the Papacy" + NEOW_catholic_tribunal_restore_papacy_decision_desc:0 "The Tribunal's priests recognise the succession of the Roman Pontiffs only as far as Ioannes Paulus II. Since the [Glossary( 'Deluge', 'DELUGE_GLOSS' )], rival claimants have occupied the Sees of Rome and Compostela, each denying the other's authority. So long as two pretenders claim the Keys of Peter, the Tribunal insists, no lawful conclave can be held.\n\nNow that both papal courts lie within our power, we may summon the clergy to pronounce judgment upon their occupants. The pretenders must first be condemned, and the disputed elections annulled. Only then can a new pontiff be chosen and the Apostolic See restored." + NEOW_catholic_tribunal_restore_papacy_decision_tooltip:0 "Condemn the rival pontiffs and establish a new Papacy" + NEOW_catholic_tribunal_restore_papacy_decision_effect_tooltip:0 "The Tribunal will sentence the living rival popes, abolish their papacies and choose a new seat for the restored See." + NEOW_catholic_tribunal_papacy_fervor_gain:0 "The Papacy Restored" + NEOW_religious_decision.0230.t:0 "The Trial of the False Pontiffs" + NEOW_religious_decision.0230.desc:0 "The priests of the Tribunal have gathered the papal registers and examined the rival successions of Rome and Compostela. They acknowledge Ioannes Paulus II as the last undisputed pontiff, and declare every election held since the [Glossary( 'Deluge', 'DELUGE_GLOSS' )] unlawful. No conclave, they insist, could have been legitimate while another claimant still bore the tiara.\n\nThe verdict was scarcely in doubt. The rival pontiffs have been judged usurpers and their claims set aside. Yet the fathers dispute the punishment. Some demand their blood, while others would be content to cast them out of office." + NEOW_religious_decision.0230.a:0 "Let the false pontiffs be put to death." + NEOW_religious_decision.0230.b:0 "Strip them of their office, but spare their lives." + NEOW_religious_decision.0231.t:0 "The Restoration of the Apostolic See" + NEOW_religious_decision.0231.desc:0 "The rival papal courts have been dissolved, and the Tribunal has declared their elections void. With the succession traced once more to Ioannes Paulus II, the assembled clergy have chosen a pontiff to take up the Keys of Peter.\n\nOne question remains: where shall the restored See be established? Rome is sanctified by the tombs of the Apostles; Avignon once sheltered the papal court; and distant San Diego promises refuge from the rivalries of Europe. The fathers await our judgment." + NEOW_religious_decision.0231.a:0 "The See belongs in Rome." + NEOW_religious_decision.0231.b:0 "Let the new pontiff reside in San Diego." + NEOW_religious_decision.0231.c:0 "Let Avignon receive the pontiff once more." + NEOW_catholic_tribunal_restore_papacy_decision_confirm:0 "Convene the Tribunal" \ No newline at end of file diff --git a/localization/english/replace/zz_NEOW_titles_l_english.yml b/localization/english/replace/zz_NEOW_titles_l_english.yml index 1c97f03f2..0f0805fb9 100644 --- a/localization/english/replace/zz_NEOW_titles_l_english.yml +++ b/localization/english/replace/zz_NEOW_titles_l_english.yml @@ -27637,3 +27637,10 @@ h_athos:0 "Garden of the Theotokos" h_athos_adj:0 "Athonite" h_athos_article:0 "the " + + k_catholic_tribunal_article:0 "the " + k_catholic_tribunal:0 "Papal Tribunal" + k_catholic_tribunal_adj:0 "Papal" + neow_tribunal_papacy_rome:0 "Roman Papacy" + neow_tribunal_papacy_san_diego:0 "Papacy of San Diego" + neow_tribunal_papacy_avignon:0 "Avignon Papacy" diff --git a/map_data/geographical_regions/NEOW_heresy_regions.txt b/map_data/geographical_regions/NEOW_heresy_regions.txt new file mode 100644 index 000000000..938b40339 --- /dev/null +++ b/map_data/geographical_regions/NEOW_heresy_regions.txt @@ -0,0 +1,49 @@ +# Catholic historical heresy areas, built from the same immutable geographical +# region system used by the base game. De-jure drift cannot move these borders. +# These areas govern outbreak epicentres AND secondary conversions. + +neow_catholic_heresy_illuminated = { + regions = { + world_europe_west_britannia + world_europe_west_francia + world_europe_west_germania + world_europe_south_italy + world_europe_west_iberia + } +} + +neow_catholic_heresy_neo_fraticelli = { + regions = { + world_europe_west_francia + world_europe_west_germania + world_europe_south_italy + } +} + +neow_catholic_heresy_penitente = { + regions = { world_europe_west_iberia } +} + +neow_catholic_heresy_cadaverist = { + regions = { + world_europe_south_italy + world_europe_east + } +} + + +neow_catholic_heresy_southern_france = { + duchies = { + d_aquitaine d_toulouse d_languedoc d_armagnac d_gascogne + d_poitou d_auvergne d_provence d_savoie d_dauphine d_bourbon + } +} + +neow_catholic_heresy_catholic_tribunal = { + regions = { + world_europe_west_iberia + world_europe_south_italy + world_europe_south_east + neow_catholic_heresy_southern_france + } +}