catholic heretises and pope court stuff

This commit is contained in:
Greekman 2026-11-03 14:14:38 +00:00
parent f09018e155
commit 2699d7ce94
16 changed files with 2601 additions and 71 deletions

View file

@ -388,4 +388,150 @@ NEOW_religious_decision.0211 = {
option = {
name = NEOW_religious_decision.0211.a
}
}
}
# 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
}
}