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

@ -64,10 +64,10 @@
}
}
scope:coronation_anointment_authority ?= {
custom_tooltip = {
text = activity_coronation_hof_no_anointment_situation
NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
}
#custom_tooltip = {
# text = activity_coronation_hof_no_anointment_situation
# NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
#}
}
}
# In realms with Ceremonial Lieges, only independent Ceremonial Lieges may hold a Coronation
@ -88,10 +88,10 @@
}
scope:coronation_anointment_authority = {
is_available_allow_travelling = yes
custom_tooltip = {
text = activity_coronation_hof_no_anointment_situation
NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
}
#custom_tooltip = {
# text = activity_coronation_hof_no_anointment_situation
# NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
#}
}
NOT = { has_trait = excommunicated }
}
@ -591,10 +591,10 @@
limit = { exists = scope:coronation_anointment_authority }
scope:coronation_anointment_authority = {
is_available_allow_travelling = yes
custom_tooltip = {
text = activity_coronation_hof_no_anointment_situation
NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
}
#custom_tooltip = {
# text = activity_coronation_hof_no_anointment_situation
# NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
#}
}
}
highest_held_title_tier >= tier_empire

View file

@ -659,6 +659,34 @@ GetAfterLifeDestination = {
GetActualBishopTitle = {
type = character
# Same direct Rome checks as the Cyprus / Moscow office exceptions.
text = {
trigger = {
religion = religion:eastern_orthodox_religion
OR = {
AND = {
any_held_title = { has_clerical_region = yes }
OR = {
capital_county = title:c_roma
any_held_title = {
has_clerical_region = yes
title_capital_county = { this = title:c_roma }
}
}
}
AND = {
is_landed = yes
capital_county = title:c_roma
OR = {
has_government = ecclesiastical_government
has_government = theocracy_government
}
}
}
}
localization_key = neow_orthodox_rome_pope_patriarch
}
# 'Early Out' keys for Head of Faith/Landed Rulers.
text = {
trigger = {
@ -2384,6 +2412,34 @@ GetActualDukeTheocracyTitle = {
GetActualBishopTitlePossessive = {
type = character
# Same direct Rome checks as the Cyprus / Moscow office exceptions.
text = {
trigger = {
religion = religion:eastern_orthodox_religion
OR = {
AND = {
any_held_title = { has_clerical_region = yes }
OR = {
capital_county = title:c_roma
any_held_title = {
has_clerical_region = yes
title_capital_county = { this = title:c_roma }
}
}
}
AND = {
is_landed = yes
capital_county = title:c_roma
OR = {
has_government = ecclesiastical_government
has_government = theocracy_government
}
}
}
}
localization_key = neow_orthodox_rome_pope_patriarch_possessive
}
text = {
trigger = {
pam_is_antipope_trigger = yes

View file

@ -847,3 +847,53 @@ NEOW_cadaverist_enthrone_preserved_pope_decision = {
}
ai_will_do = { base = 100 }
}
### Establish an Orthodox Western Rite in Rome. ###
NEOW_establish_western_orthodox_rite_decision = {
picture = { reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" }
desc = NEOW_establish_western_orthodox_rite_decision_desc
selection_tooltip = NEOW_establish_western_orthodox_rite_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:orthodox
NOT = { has_global_variable = neow_western_orthodox_rite_established }
}
is_valid = {
completely_controls = title:c_roma
piety_level >= high_piety_level
}
is_valid_showing_failures_only = {
is_landed = yes
is_capable_adult = yes
is_imprisoned = no
}
effect = {
custom_tooltip = NEOW_establish_western_orthodox_rite_decision_effect_tooltip
hidden_effect = {
neow_establish_western_orthodox_rite_effect = yes
trigger_event = NEOW_religious_decision.0260
}
}
ai_potential = {
is_ruler = yes
faith = faith:orthodox
NOT = { has_global_variable = neow_western_orthodox_rite_established }
}
ai_will_do = { base = 100 }
}

View file

@ -11740,4 +11740,32 @@ emperor_monastic_order_abbot_type_female = {
}
governments = { monastic_holy_order_government }
religions = { buddhism_religion eastern_orthodox_religion oriental_orthodox_religion catholic_religion protestant_religion }
}
}
neow_orthodox_rome_pope_patriarch_region = {
type = character
special = clerical_region_holder
priority = 20001
titles = { d_et_lazio }
governments = { theocracy_government ecclesiastical_government }
religions = { eastern_orthodox_religion }
flavourization_rules = {
top_liege = no
only_holder = yes
spouse_takes_title = no
}
}
neow_orthodox_rome_pope_patriarch = {
type = character
special = holder
priority = 20000
titles = { c_roma }
governments = { theocracy_government ecclesiastical_government }
religions = { eastern_orthodox_religion }
flavourization_rules = {
top_liege = no
only_holder = yes
spouse_takes_title = no
}
}

View file

@ -298,3 +298,32 @@ montenegrin_rite = {
doctrine_clerical_marriage_allowed
}
}
# The Western Rite is only established by the Orthodox ruler of Rome.
# Its liturgy follows Western custom but remains under the Orthodox faith and HoF.
western_orthodox_rite = {
name = western_orthodox_rite
desc = western_orthodox_rite_desc
faith = orthodox
create = no
convert = yes
color = { 156 93 117 }
icon = christianity_canterbury_cross_01
tenets = {
tenet_pentarchy
tenet_communion
}
tenet_selection_pair = {
requires_dlc_flag = by_god_alone
tenet = tenet_apostolic_succession
fallback_tenet = tenet_asceticism
}
doctrines = {
special_doctrine_is_western_christian_faith
doctrine_clerical_marriage_allowed
}
}

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
}
}