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

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

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