a lot of stuff, pope stuff mostly

This commit is contained in:
Greekman 2026-11-06 19:48:14 +00:00
parent 495b6e2962
commit 6d1a37f866
12 changed files with 714 additions and 117 deletions

View file

@ -769,7 +769,7 @@ NEOW_eccelarch_restore_ecumenical_patriarchate_effect = {
}
if = {
limit = { title:e_athos = { is_title_created = no } }
limit = { title:h_athos = { is_title_created = no } }
faith:orthodox = { set_religious_head_title = title:k_orthodox }
}
}
@ -861,6 +861,9 @@ neow_tribunal_install_restored_pope_effect = {
}
add_piety = 1000
add_prestige = 500
# The Tribunal is restored only at this point, after the papal seat was chosen.
neow_tribunal_submit_catholic_world_effect = yes
}
# Symphonia: record the patriarchal office when an emperor replaces its holder in the
@ -919,3 +922,250 @@ NEOW_symphonia_finish_head_of_faith_investiture_effect = {
resolve_title_and_vassal_change = scope:neow_symphonia_investiture_hof_change
}
}
# Invite all other Catholic rulers to the newly restored papacy. An AI ruler
# converts immediately, while a human ruler receives an independent choice.
# The county pass deliberately excludes Catholic players who have not consented.
neow_tribunal_submit_catholic_world_effect = {
faith:catholic_tribunal_faith = { save_scope_as = neow_united_papacy_faith }
rite:catholic_tribunal_rite = { save_scope_as = neow_united_papacy_rite }
neow_restored_papacy_submit_catholics_effect = yes
}
neow_cadaverist_submit_catholic_world_effect = {
faith:cadaverist_faith = { save_scope_as = neow_united_papacy_faith }
rite:cadaverist_rite = { save_scope_as = neow_united_papacy_rite }
neow_restored_papacy_submit_catholics_effect = yes
}
# Character scope; the target faith and rite are saved by the appropriate wrapper.
neow_restored_papacy_convert_catholic_ruler_effect = {
if = {
limit = { faith != scope:neow_united_papacy_faith }
set_character_faith = scope:neow_united_papacy_faith
}
if = {
limit = { rite != scope:neow_united_papacy_rite }
set_character_rite = scope:neow_united_papacy_rite
}
}
# Character scope; convert counties directly held by this ruler, not the entire
# subrealm, so a rejecting human vassal's lands cannot be changed indirectly.
neow_restored_papacy_convert_held_catholic_counties_effect = {
every_held_title = {
limit = {
tier = tier_county
faith = { religion = religion:catholic_religion }
}
if = {
limit = { faith != scope:neow_united_papacy_faith }
set_county_faith = scope:neow_united_papacy_faith
}
if = {
limit = { rite != scope:neow_united_papacy_rite }
set_county_rite = scope:neow_united_papacy_rite
}
}
}
# Called on the successful Tribunal papacy installation or Cadaverist enthronement.
neow_restored_papacy_submit_catholics_effect = {
hidden_effect = {
every_ruler = {
# Catholic rulers, including followers of other Catholic faiths
# and Catholic rulers with non-mainline rites, are offered reunion.
if = {
limit = {
faith = { religion = religion:catholic_religion }
OR = {
faith != scope:neow_united_papacy_faith
rite != scope:neow_united_papacy_rite
}
}
if = {
limit = { is_ai = yes }
# Independent 60/40 decision for each Catholic AI ruler: 60% convert, 40% remain.
# Rejecting rulers keep both their existing faith and rite.
random = {
chance = 60
neow_restored_papacy_convert_catholic_ruler_effect = yes
}
}
else = {
if = {
limit = { scope:neow_united_papacy_faith = faith:catholic_tribunal_faith }
trigger_event = NEOW_religious_decision.0250
}
else = {
trigger_event = NEOW_religious_decision.0251
}
}
}
# Catholic counties follow rulers who accepted the new papacy.
# An AI ruler who declined its 60% conversion chance retains their
# existing Catholic counties, exactly like a refusing player.
if = {
limit = {
faith = scope:neow_united_papacy_faith
rite = scope:neow_united_papacy_rite
}
neow_restored_papacy_convert_held_catholic_counties_effect = yes
}
}
}
}
neow_establish_western_orthodox_rite_effect = {
# Preserve the decision-maker's rite before the rite-creation effect runs.
# Saved as a character variable so the later option event can still read it.
rite = { save_scope_as = neow_rome_founder_original_rite }
set_variable = {
name = neow_rome_founder_original_rite
value = scope:neow_rome_founder_original_rite
}
create_rite_from_type = {
type = western_orthodox_rite
save_scope_as = neow_western_orthodox_rite
convert = no
}
# Even if rite creation has an implicit founder-conversion side effect,
# keep the original rite until the founder actually selects the option.
if = {
limit = { rite != scope:neow_rome_founder_original_rite }
set_character_rite = scope:neow_rome_founder_original_rite
}
# Establish a Western Rite Orthodox episcopal see in Rome itself.
hidden_effect = {
create_character = {
template = religious_leader_character
random_traits = no
save_scope_as = neow_western_lazio_bishop
}
scope:neow_western_lazio_bishop = {
set_character_faith = faith:orthodox
set_character_rite = scope:neow_western_orthodox_rite
add_trait = education_learning_3
add_trait = zealous
add_trait = devoted
random_list = {
1 = { add_trait = humble }
1 = { add_trait = diligent }
1 = { add_trait = just }
1 = { add_trait = compassionate }
1 = { add_trait = stubborn }
}
}
# The same title-change pattern is used for the Patriarchates of
# Constantinople and Moscow. A vacant title is created on appointment.
create_title_and_vassal_change = {
type = created
save_scope_as = neow_western_lazio_title_change
add_claim_on_loss = no
}
title:d_et_lazio = {
change_title_holder = {
holder = scope:neow_western_lazio_bishop
change = scope:neow_western_lazio_title_change
}
}
# Duchy-tier clergy cannot be vassals of count/duke rulers. Keep the
# see in the restoring ruler's realm when a kingdom-tier liege exists.
if = {
limit = { highest_held_title_tier >= tier_kingdom }
scope:neow_western_lazio_bishop = {
change_liege = {
liege = root
change = scope:neow_western_lazio_title_change
}
}
}
else_if = {
limit = {
exists = root.liege
root.top_liege.highest_held_title_tier >= tier_kingdom
}
scope:neow_western_lazio_bishop = {
change_liege = {
liege = root.top_liege
change = scope:neow_western_lazio_title_change
}
}
}
resolve_title_and_vassal_change = scope:neow_western_lazio_title_change
# Use the mod's playable Christian ecclesiastical government, as with
# its other landed episcopal offices.
scope:neow_western_lazio_bishop = {
change_government = ecclesiastical_government
}
}
set_global_variable = {
name = neow_western_orthodox_rite_established
value = yes
}
add_piety = 750
add_prestige = 300
hidden_effect = {
# Catholic vassals within the founder's realm are the only rulers invited.
# Catholic heads of faith (especially the Pope) cannot be converted.
every_vassal_or_below = {
limit = {
faith = { religion = religion:catholic_religion }
NOT = { any_held_title = { is_head_of_faith = yes } }
}
if = {
limit = { is_ai = yes }
neow_western_orthodox_convert_catholic_ruler_effect = yes
}
else = {
trigger_event = NEOW_religious_decision.0261
}
}
# Only the founder's subrealm is touched. Catholic player rulers who
# have not yet chosen, and Catholic HoFs, retain their own counties.
every_sub_realm_county = {
limit = {
faith = { religion = religion:catholic_religion }
NOT = {
holder = {
is_ai = no
faith = { religion = religion:catholic_religion }
}
}
NOT = {
holder = { any_held_title = { is_head_of_faith = yes } }
}
}
set_county_faith = faith:orthodox
set_county_rite = scope:neow_western_orthodox_rite
}
}
}
# Used on an AI Catholic vassal or a player vassal who has accepted the offer.
neow_western_orthodox_convert_catholic_ruler_effect = {
set_character_faith = faith:orthodox
set_character_rite = rite:western_orthodox_rite
every_held_title = {
limit = {
tier = tier_county
faith = { religion = religion:catholic_religion }
}
set_county_faith = faith:orthodox
set_county_rite = rite:western_orthodox_rite
}
}