1027 lines
24 KiB
Text
1027 lines
24 KiB
Text
namespace = pam_clergy_events
|
|
|
|
##########################################
|
|
## 0001 - Choose Papal name ##
|
|
##########################################
|
|
|
|
# Choose Papal name
|
|
pam_clergy_events.0001 = {
|
|
theme = christian
|
|
type = character_event
|
|
title = pam_clergy_events.0001.t
|
|
window = big_event_window
|
|
desc = pam_clergy_events.0001.desc
|
|
|
|
override_background = pam_gothic_cathedral_interior
|
|
override_sound = { reference = "event:/DLC/CE3/SFX/Stingers/ce3_mx_sting_ElectPope" }
|
|
|
|
trigger = {
|
|
is_ai = no
|
|
primary_title = title:k_papal_state
|
|
exists = cp:councillor_court_chaplain
|
|
}
|
|
|
|
left_portrait = {
|
|
character = root
|
|
animation = acknowledging_crozier
|
|
camera = camera_event_left
|
|
}
|
|
|
|
right_portrait = {
|
|
character = scope:chaplain
|
|
animation = happy_teacher
|
|
camera = camera_event_very_right
|
|
}
|
|
|
|
immediate = {
|
|
cp:councillor_court_chaplain = {
|
|
save_scope_as = chaplain
|
|
}
|
|
}
|
|
|
|
# naming widget
|
|
widgets = {
|
|
widget = {
|
|
gui = event_window_widget_vfx_stained_glass
|
|
container = background_shader_vfx_container
|
|
}
|
|
widget = {
|
|
gui = "event_window_widget_name_pope"
|
|
container = "dynamic_birth_name"
|
|
controller = name_character
|
|
setup_scope = { root = { save_scope_as = name_character_target } }
|
|
}
|
|
}
|
|
|
|
option = {
|
|
name = pam_clergy_events.0001.a
|
|
}
|
|
}
|
|
|
|
pam_clergy_events.0002 = {
|
|
hidden = yes
|
|
immediate = {
|
|
# Just became pope? choose your papal name!
|
|
if = {
|
|
limit = {
|
|
is_ai = no
|
|
}
|
|
trigger_event = pam_clergy_events.0001
|
|
remove_variable = has_edited_a_rite
|
|
}
|
|
# Just became AI pope? choose your favorite tenet!
|
|
else = {
|
|
head_of_faith_change_core_tenet_effect = yes
|
|
}
|
|
}
|
|
}
|
|
|
|
##########################################
|
|
## 0003 - AI pope changed a core tenet ##
|
|
##########################################
|
|
|
|
pam_clergy_events.0003 = {
|
|
hidden = yes
|
|
|
|
trigger = {
|
|
is_ai = no
|
|
exists = scope:tenet_to_remove
|
|
exists = scope:tenet_to_add
|
|
}
|
|
|
|
immediate = {
|
|
send_interface_toast = {
|
|
title = pam_clergy_events.0003.t
|
|
desc = pam_clergy_events.0003.desc
|
|
left_icon = scope:pam_recast_pope
|
|
}
|
|
}
|
|
}
|
|
|
|
##########################################
|
|
## 0010 - Receive Cardinal Order ##
|
|
##########################################
|
|
|
|
# Player-only: AI cardinals resolve in give_cardinal_order_interaction on_accept without firing this event.
|
|
pam_clergy_events.0010 = {
|
|
theme = christian
|
|
type = character_event
|
|
title = pam_clergy_events.0010.t
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:puppet_recipient
|
|
}
|
|
desc = pam_clergy_events.0010.desc.puppet.intro
|
|
}
|
|
desc = pam_clergy_events.0010.desc.intro
|
|
}
|
|
desc = pam_clergy_events.0010.desc
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:cardinal_improve_development = yes
|
|
}
|
|
desc = pam_clergy_events.0010.desc.develop
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:cardinal_convert_faith = yes
|
|
}
|
|
desc = pam_clergy_events.0010.desc.convert_faith
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:cardinal_increase_control = yes
|
|
}
|
|
desc = pam_clergy_events.0010.desc.increase_control
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:cardinal_accelerate_cultural_fascination = yes
|
|
}
|
|
desc = pam_clergy_events.0010.desc.cultural_fascination
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:cardinal_improve_epidemic_resistance = yes
|
|
}
|
|
desc = pam_clergy_events.0010.desc.epidemic_resistance
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:cardinal_improve_legitimacy = yes
|
|
}
|
|
desc = pam_clergy_events.0010.desc.improve_legitimacy
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:cardinal_undermine_legitimacy = yes
|
|
}
|
|
desc = pam_clergy_events.0010.desc.undermine_legitimacy
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
#save Cardinal title
|
|
scope:recipient.clerical_elector_title ?= {
|
|
save_scope_as = cardinalate
|
|
}
|
|
#save Archdiocese title
|
|
scope:recipient = {
|
|
capital_county.clerical_region_title = {
|
|
save_scope_as = archdiocese
|
|
}
|
|
}
|
|
#If you are a puppet cardinal of your liege
|
|
if = {
|
|
limit = {
|
|
scope:recipient.liege.puppet:theological_agent_puppet ?= scope:recipient
|
|
}
|
|
save_scope_as = puppet_recipient
|
|
}
|
|
}
|
|
|
|
|
|
left_portrait = {
|
|
character = scope:recipient
|
|
animation = prayer_standing
|
|
}
|
|
|
|
right_portrait = {
|
|
character = scope:puppet_or_actor
|
|
animation = personality_zealous
|
|
}
|
|
|
|
option = {
|
|
name = pam_clergy_events.0010.a
|
|
scope:recipient = {
|
|
pam_choose_cardinal_order_switch_scripted_effect = yes
|
|
add_character_modifier = {
|
|
modifier = pam_cardinal_diverted_benefices_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
hidden_effect = {
|
|
pam_cardinal_order_accept_notify_players_effect = {
|
|
HOF = scope:puppet_or_actor
|
|
}
|
|
}
|
|
stress_and_fulfillment_impact = {
|
|
greedy = medium_stress_impact_gain
|
|
cynical = medium_stress_impact_gain
|
|
humble = minor_stress_impact_loss
|
|
loyal = minor_stress_impact_loss
|
|
zealous = medium_stress_impact_loss
|
|
}
|
|
}
|
|
|
|
option = {
|
|
name = pam_clergy_events.0010.b
|
|
add_internal_flag = dangerous
|
|
hidden_effect = {
|
|
scope:puppet_or_actor = {
|
|
if = {
|
|
limit = { is_ai = no }
|
|
send_interface_toast = {
|
|
type = event_toast_effect_bad
|
|
title = give_cardinal_order_interaction_decline_toast
|
|
left_icon = scope:puppet_or_actor
|
|
right_icon = scope:recipient
|
|
scope:recipient = {
|
|
show_as_tooltip = {
|
|
pam_cardinal_order_decline_effect = {
|
|
HOF = scope:puppet_or_actor
|
|
CARDINAL = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
pam_cardinal_order_decline_effect = {
|
|
HOF = scope:puppet_or_actor
|
|
CARDINAL = scope:recipient
|
|
}
|
|
stress_and_fulfillment_impact = {
|
|
craven = minor_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
loyal = minor_stress_impact_gain
|
|
just = medium_stress_impact_gain
|
|
temperate = medium_stress_impact_gain
|
|
zealous = medium_stress_impact_gain
|
|
callous = medium_stress_impact_loss
|
|
greedy = medium_stress_impact_loss
|
|
cynical = medium_stress_impact_loss
|
|
}
|
|
}
|
|
}
|
|
|
|
##########################################
|
|
## 0030 - React to new pope ##
|
|
##########################################
|
|
|
|
pam_clergy_events.0030 = {
|
|
theme = christian
|
|
type = character_event
|
|
title = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = { scope:new_pope = { is_female = yes } }
|
|
desc = pam_clergy_events.0030.t.female
|
|
}
|
|
desc = pam_clergy_events.0030.t
|
|
}
|
|
}
|
|
desc = pam_clergy_events.0030.desc
|
|
|
|
override_background = { reference = pam_gothic_cathedral_interior }
|
|
window = big_event_window
|
|
widgets = {
|
|
widget = {
|
|
gui = event_window_widget_vfx_stained_glass_foreground
|
|
container = foreground_shader_vfx_container
|
|
}
|
|
widget = {
|
|
gui = "event_window_widget_rite_new_pope"
|
|
container = "custom_widgets_container"
|
|
}
|
|
}
|
|
|
|
left_portrait = {
|
|
character = scope:new_pope
|
|
animation = acknowledging_crozier
|
|
camera = camera_body
|
|
}
|
|
|
|
# Send future events as feed messages
|
|
option = {
|
|
name = pam_clergy_events.0030.aa
|
|
trigger = { is_ai = no }
|
|
custom_tooltip = pam_clergy_events.0030.aa.tt
|
|
set_variable = pam_new_pope_events_as_feed_message
|
|
ai_chance = { base = 0 }
|
|
}
|
|
|
|
# Support him
|
|
option = {
|
|
name = pam_clergy_events.0030.a
|
|
trigger = {
|
|
NOR = {
|
|
pam_is_antipope_trigger = yes
|
|
pam_is_antipope_sponsor_trigger = yes
|
|
}
|
|
}
|
|
add_piety = minor_piety_gain
|
|
scope:new_pope = {
|
|
add_opinion = {
|
|
modifier = loyalty_opinion
|
|
target = root
|
|
opinion = 15
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
add = 50
|
|
OR = {
|
|
has_trait = loyal
|
|
has_trait = zealous
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
opinion = {
|
|
target = scope:new_pope
|
|
value >= 25
|
|
}
|
|
}
|
|
modifier = {
|
|
add = -50
|
|
opinion = {
|
|
target = scope:new_pope
|
|
value <= -25
|
|
}
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_relation_rival = scope:new_pope
|
|
has_trait = deceitful
|
|
has_trait = paranoid
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
# Deny him
|
|
option = {
|
|
name = pam_clergy_events.0030.b
|
|
add_internal_flag = dangerous
|
|
custom_tooltip = pam_clergy_events.0030.b.tt
|
|
scope:new_pope = {
|
|
add_opinion = {
|
|
modifier = opposition_opinion
|
|
target = root
|
|
opinion = -25
|
|
}
|
|
}
|
|
add_character_modifier = {
|
|
modifier = pam_denied_new_pope_modifier
|
|
years = 20
|
|
}
|
|
ai_chance = {
|
|
base = 25
|
|
modifier = {
|
|
add = 50
|
|
OR = {
|
|
has_trait = cynical
|
|
has_trait = ambitious
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 50
|
|
has_relation_rival = scope:new_pope
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
opinion = {
|
|
target = scope:new_pope
|
|
value <= -25
|
|
}
|
|
}
|
|
modifier = {
|
|
add = -25
|
|
scope:new_pope.var:challenger_sponsor ?= root
|
|
}
|
|
modifier = {
|
|
add = -10
|
|
scope:new_pope.rite = root.rite
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_trait = loyal
|
|
has_trait = humble
|
|
has_trait = zealous
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
##########################################
|
|
## 0040 - AI HoF fills cardinal vacancy ##
|
|
##########################################
|
|
|
|
# Letter to the appointed archbishop
|
|
pam_clergy_events.0040 = {
|
|
type = letter_event
|
|
opening = pam_clergy_events.0040.opening
|
|
desc = pam_clergy_events.0040.desc
|
|
sender = scope:head_of_faith
|
|
|
|
immediate = {
|
|
custom_tooltip = {
|
|
text = pam_clergy_events.0040.appoint_tt
|
|
grant_cardinal_title_effect = {
|
|
CARDINAL_COUNTY = capital_county
|
|
}
|
|
}
|
|
pam_the_christian_church_appointed_cardinal_catalyst_effect = {
|
|
POPE = scope:head_of_faith
|
|
CARDINAL = root
|
|
OTHERWISE = catalyst_the_christian_church_appointed_cardinal
|
|
}
|
|
}
|
|
|
|
option = {
|
|
name = pam_clergy_events.0040.a
|
|
}
|
|
}
|
|
|
|
#################################################
|
|
## 0041 - Archbishop appoints himself cardinal ##
|
|
#################################################
|
|
|
|
# Letter to a player head of faith when an AI archbishop appoints himself as cardinal
|
|
pam_clergy_events.0041 = {
|
|
type = letter_event
|
|
opening = pam_clergy_events.0041.opening
|
|
desc = pam_clergy_events.0041.desc
|
|
sender = scope:cardinal_candidate
|
|
|
|
immediate = {
|
|
scope:cardinal_candidate = {
|
|
custom_tooltip = {
|
|
text = pam_clergy_events.0041.appoint_tt
|
|
grant_cardinal_title_effect = {
|
|
CARDINAL_COUNTY = capital_county
|
|
}
|
|
}
|
|
add_piety = major_piety_loss
|
|
}
|
|
situation:the_christian_church ?= {
|
|
if = {
|
|
limit = {
|
|
situation_top_has_catalyst = catalyst_clergy_self_proclaimed_cardinal
|
|
}
|
|
trigger_situation_catalyst = catalyst_clergy_self_proclaimed_cardinal
|
|
}
|
|
}
|
|
}
|
|
|
|
option = {
|
|
name = pam_clergy_events.0041.a
|
|
}
|
|
}
|
|
|
|
################################################
|
|
## 0042 - The College fills its own vacancies ##
|
|
################################################
|
|
|
|
pam_clergy_events.0042 = {
|
|
type = letter_event
|
|
opening = pam_clergy_events.0042.opening
|
|
desc = pam_clergy_events.0042.desc
|
|
sender = scope:cardinal_candidate
|
|
|
|
option = {
|
|
name = pam_clergy_events.0042.a
|
|
}
|
|
}
|
|
|
|
##################################################
|
|
## 0043 - Notify-only letter for a new cardinal ##
|
|
##################################################
|
|
|
|
pam_clergy_events.0043 = {
|
|
type = letter_event
|
|
opening = pam_clergy_events.0040.opening
|
|
desc = pam_clergy_events.0040.desc
|
|
sender = scope:head_of_faith
|
|
|
|
option = {
|
|
name = pam_clergy_events.0040.a
|
|
}
|
|
}
|
|
|
|
###################################################################
|
|
## 0051 - Clerical region capital converts (player holder) ## ##
|
|
###################################################################
|
|
|
|
# Give away personal counties so only a Clerical Region (if any) remains playable.
|
|
scripted_effect pam_strip_personal_landed_titles_effect = {
|
|
if = {
|
|
limit = {
|
|
any_held_title = {
|
|
tier >= tier_county
|
|
trigger_if = {
|
|
limit = {
|
|
scope:reason != flag:character_converted
|
|
}
|
|
has_clerical_region = no
|
|
}
|
|
}
|
|
}
|
|
create_title_and_vassal_change = {
|
|
type = revoked
|
|
save_scope_as = pam_strip_land_change
|
|
add_claim_on_loss = no
|
|
}
|
|
|
|
if = {
|
|
limit = { exists = root.var:old_rite }
|
|
root.var:old_rite = { save_scope_as = pam_strip_see_rite }
|
|
}
|
|
else_if = {
|
|
limit = { exists = scope:county.rite }
|
|
scope:county.rite = { save_scope_as = pam_strip_see_rite }
|
|
}
|
|
|
|
if = {
|
|
limit = {
|
|
scope:reason ?= flag:character_converted
|
|
exists = scope:pam_strip_see_rite
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = primary_heir
|
|
primary_heir = {
|
|
rite ?= scope:pam_strip_see_rite
|
|
OR = {
|
|
is_ruler = no
|
|
government_has_flag = government_is_theocracy
|
|
}
|
|
}
|
|
}
|
|
primary_heir ?= { save_scope_as = heir }
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = player_heir
|
|
player_heir = {
|
|
rite ?= scope:pam_strip_see_rite
|
|
OR = {
|
|
is_ruler = no
|
|
government_has_flag = government_is_theocracy
|
|
}
|
|
}
|
|
}
|
|
player_heir ?= { save_scope_as = heir }
|
|
}
|
|
# final fallback, I don't think we need this...
|
|
else = {
|
|
create_character = {
|
|
template = monk_character_template
|
|
employer = root
|
|
save_scope_as = heir
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
if = {
|
|
limit = { liege != this }
|
|
liege ?= { save_scope_as = heir }
|
|
}
|
|
else_if = {
|
|
limit = { exists = primary_heir }
|
|
primary_heir ?= { save_scope_as = heir }
|
|
}
|
|
else_if = {
|
|
limit = { exists = player_heir }
|
|
player_heir ?= { save_scope_as = heir }
|
|
}
|
|
# final fallback, I don't think we need this...
|
|
else = {
|
|
create_character = {
|
|
template = monk_character_template
|
|
employer = root
|
|
save_scope_as = heir
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:reason ?= flag:character_converted
|
|
exists = scope:pam_strip_see_rite
|
|
}
|
|
scope:heir = {
|
|
set_character_rite = scope:pam_strip_see_rite
|
|
}
|
|
}
|
|
every_held_title = {
|
|
limit = {
|
|
tier >= tier_county
|
|
trigger_if = {
|
|
limit = {
|
|
scope:reason != flag:character_converted
|
|
}
|
|
has_clerical_region = no
|
|
}
|
|
}
|
|
change_title_holder_include_vassals = {
|
|
holder = scope:heir
|
|
change = scope:pam_strip_land_change
|
|
}
|
|
}
|
|
resolve_title_and_vassal_change = scope:pam_strip_land_change
|
|
if = {
|
|
limit = {
|
|
scope:reason = flag:character_converted
|
|
exists = scope:pam_strip_see_rite
|
|
}
|
|
scope:heir = {
|
|
change_government = faith.faith_theocratic_goverment_type
|
|
rite = { force_refresh_head_of_rite = yes }
|
|
if = {
|
|
limit = { should_use_theocratic_elective_succession_law_trigger = yes }
|
|
add_realm_law_skip_effects = theocratic_elective_succession_law
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
pam_clergy_events.0051 = {
|
|
theme = faith
|
|
type = character_event
|
|
title = pam_clergy_events.0051.t
|
|
desc = pam_clergy_events.0051.desc
|
|
|
|
override_background = {
|
|
trigger = {
|
|
OR = {
|
|
religion = religion:catholic_religion
|
|
religion = religion:protestant_religion
|
|
religion = religion:eastern_orthodox_religion
|
|
religion = religion:oriental_orthodox_religion
|
|
}
|
|
}
|
|
reference = pam_gothic_cathedral_interior
|
|
}
|
|
override_background = {
|
|
reference = temple
|
|
}
|
|
|
|
trigger = {
|
|
is_ai = no
|
|
faith = { has_doctrine_parameter = has_clerical_regions }
|
|
scope:county.faith = { has_doctrine_parameter = has_clerical_regions }
|
|
faith != scope:county.faith
|
|
scope:reason = flag:county_converted
|
|
}
|
|
|
|
immediate = {
|
|
faith = { save_scope_as = old_faith }
|
|
scope:county.faith = { save_scope_as = new_faith }
|
|
scope:county.rite = { save_scope_as = new_rite }
|
|
scope:new_faith.religion = { save_scope_as = new_religion }
|
|
pam_find_translation_clerical_region_effect = {
|
|
EXCLUDE_RULER_REALM = no
|
|
EXCLUDED_RULER = root
|
|
}
|
|
# Pope / Head of Faith, else Head of Rite — your current religious superior
|
|
if = {
|
|
limit = {
|
|
exists = faith.religious_head
|
|
faith.religious_head != root
|
|
}
|
|
faith.religious_head = { save_scope_as = religious_superior }
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = rite.head_of_rite
|
|
rite.head_of_rite != root
|
|
}
|
|
rite.head_of_rite = { save_scope_as = religious_superior }
|
|
}
|
|
}
|
|
|
|
left_portrait = {
|
|
character = root
|
|
triggered_animation = {
|
|
trigger = {
|
|
OR = {
|
|
religion = religion:catholic_religion
|
|
religion = religion:protestant_religion
|
|
religion = religion:eastern_orthodox_religion
|
|
religion = religion:oriental_orthodox_religion
|
|
}
|
|
}
|
|
animation = acknowledging_crozier
|
|
}
|
|
animation = personality_rational
|
|
camera = camera_event_left
|
|
}
|
|
|
|
right_portrait = {
|
|
trigger = { exists = scope:religious_superior }
|
|
character = scope:religious_superior
|
|
animation = worry
|
|
camera = camera_event_right
|
|
}
|
|
|
|
# A — Stay: convert and keep this Clerical Region
|
|
option = {
|
|
name = pam_clergy_events.0051.a
|
|
custom_tooltip = pam_clergy_events.0051.a.keep_see_tt
|
|
|
|
# Fulfillment cost before convert (still on old Faith's fulfillment type)
|
|
if = {
|
|
limit = { has_spiritual_fulfillment_type = christian_fulfillment }
|
|
if = {
|
|
limit = { scope:old_faith.religion = scope:new_faith.religion }
|
|
change_spiritual_fulfillment = major_spiritual_fulfillment_loss
|
|
}
|
|
else = {
|
|
change_spiritual_fulfillment = massive_spiritual_fulfillment_loss
|
|
}
|
|
}
|
|
|
|
# Devotion / piety / stress / convert modifiers — tooltips come from this effect
|
|
convert_to_rite_with_consequences_effect = { RITE = scope:new_rite }
|
|
|
|
# Liege of the capital's new Faith is glad you followed
|
|
if = {
|
|
limit = {
|
|
liege ?= {
|
|
faith = scope:new_faith
|
|
this != root
|
|
}
|
|
}
|
|
liege = {
|
|
add_opinion = {
|
|
target = root
|
|
modifier = pious_opinion
|
|
opinion = 30
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
# B — Take nearest same-Faith Clerical Region
|
|
option = {
|
|
name = pam_clergy_events.0051.b
|
|
trigger = { exists = scope:translation_see }
|
|
custom_tooltip = pam_clergy_events.0051.b.tt
|
|
|
|
create_title_and_vassal_change = {
|
|
type = granted
|
|
save_scope_as = pam_translation_change
|
|
add_claim_on_loss = no
|
|
}
|
|
scope:translation_see = {
|
|
change_title_holder = {
|
|
holder = root
|
|
change = scope:pam_translation_change
|
|
}
|
|
}
|
|
resolve_title_and_vassal_change = scope:pam_translation_change
|
|
|
|
destroy_title = scope:title
|
|
pam_strip_personal_landed_titles_effect = yes
|
|
}
|
|
|
|
# C — Accept game over (landless offer comes from normal systems if available)
|
|
option = {
|
|
name = pam_clergy_events.0051.c
|
|
add_internal_flag = dangerous
|
|
custom_tooltip = pam_clergy_events.0051.c.tt
|
|
|
|
pam_strip_personal_landed_titles_effect = yes
|
|
destroy_title = scope:title
|
|
hidden_effect = {
|
|
if = {
|
|
limit = { has_dlc_feature = roads_to_power }
|
|
create_landless_adventurer_title_effect = {
|
|
REASON = flag:wanderer
|
|
FLAVOR_CHAR = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
###################################################################
|
|
## 0052 - Clerical region capital converts (AI, or no clerical regions) ##
|
|
###################################################################
|
|
pam_clergy_events.0052 = {
|
|
theme = christian
|
|
type = character_event
|
|
title = pam_clergy_events.0052.t
|
|
desc = pam_clergy_events.0052.desc
|
|
|
|
trigger = {
|
|
OR = {
|
|
is_ai = yes
|
|
scope:reason != flag:county_converted
|
|
}
|
|
}
|
|
|
|
left_portrait = {
|
|
character = root
|
|
animation = acknowledging_crozier
|
|
camera = camera_event_left
|
|
}
|
|
|
|
option = {
|
|
name = pam_clergy_events.0052.a
|
|
add_internal_flag = dangerous
|
|
custom_tooltip = pam_clergy_events.0051.c.tt
|
|
|
|
pam_strip_personal_landed_titles_effect = yes
|
|
if = {
|
|
limit = { scope:reason != flag:character_converted }
|
|
destroy_title = scope:title
|
|
}
|
|
hidden_effect = {
|
|
if = {
|
|
limit = { has_dlc_feature = roads_to_power }
|
|
create_landless_adventurer_title_effect = {
|
|
REASON = flag:wanderer
|
|
FLAVOR_CHAR = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
###################################################################
|
|
## 0060 - A kinsman takes a great office of the Church ##
|
|
###################################################################
|
|
|
|
# Sent by pam_family_becomes_prelate_effect to player family or house of the new prelate
|
|
# scope:new_prelate = kinsman, scope:prelate_title = the title, scope:prelate_office = which office
|
|
pam_clergy_events.0060 = {
|
|
theme = christian
|
|
type = character_event
|
|
window = big_event_window
|
|
title = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = { scope:prelate_office = flag:antipope }
|
|
desc = pam_clergy_events.0060.t.antipope
|
|
}
|
|
triggered_desc = {
|
|
trigger = { scope:prelate_title = title:k_papal_state }
|
|
desc = pam_clergy_events.0060.t.pope
|
|
}
|
|
triggered_desc = {
|
|
trigger = { scope:prelate_office = flag:head_of_faith }
|
|
desc = pam_clergy_events.0060.t.head_of_faith
|
|
}
|
|
desc = pam_clergy_events.0060.t.archbishop
|
|
}
|
|
}
|
|
desc = {
|
|
desc = pam_clergy_events.0060.desc.intro
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = { scope:prelate_office = flag:antipope }
|
|
desc = pam_clergy_events.0060.desc.antipope
|
|
}
|
|
triggered_desc = {
|
|
trigger = { scope:prelate_title = title:k_papal_state }
|
|
desc = pam_clergy_events.0060.desc.pope
|
|
}
|
|
triggered_desc = {
|
|
trigger = { scope:prelate_office = flag:head_of_faith }
|
|
desc = pam_clergy_events.0060.desc.head_of_faith
|
|
}
|
|
desc = pam_clergy_events.0060.desc.archbishop
|
|
}
|
|
triggered_desc = {
|
|
trigger = { scope:prelate_office = flag:head_of_faith }
|
|
desc = pam_clergy_events.0060.desc.hof_outro
|
|
}
|
|
triggered_desc = {
|
|
trigger = { faith != scope:new_prelate.faith }
|
|
desc = pam_clergy_events.0060.desc.different_faith
|
|
}
|
|
}
|
|
|
|
override_background = {
|
|
reference = temple
|
|
}
|
|
override_sound = {
|
|
trigger = { scope:prelate_office = flag:antipope }
|
|
reference = "event:/DLC/CE3/SFX/Stingers/ce3_mx_sting_becomeHeretic"
|
|
}
|
|
override_sound = {
|
|
trigger = { scope:prelate_office = flag:head_of_faith }
|
|
reference = "event:/DLC/CE3/SFX/Stingers/ce3_mx_sting_ElectPope"
|
|
}
|
|
|
|
widgets = {
|
|
widget = {
|
|
is_shown = {
|
|
scope:new_prelate = { pam_is_western_christian_trigger = yes }
|
|
}
|
|
gui = event_window_widget_vfx_stained_glass_foreground
|
|
container = foreground_shader_vfx_container
|
|
}
|
|
}
|
|
|
|
trigger = {
|
|
is_ai = no
|
|
exists = scope:new_prelate
|
|
exists = scope:prelate_title
|
|
scope:new_prelate = {
|
|
this != root
|
|
is_alive = yes
|
|
}
|
|
# The office can change hands again before the news reaches us
|
|
scope:prelate_title.holder ?= scope:new_prelate
|
|
# Office and see resolve unordered in one batch, so the double announce is settled here
|
|
trigger_if = {
|
|
limit = { scope:prelate_office = flag:archbishop }
|
|
scope:new_prelate = { pam_holds_church_seat_trigger = no }
|
|
}
|
|
}
|
|
|
|
immediate = {
|
|
# The scene belongs to the prelate's church, not ours; we may not even share their faith
|
|
scope:new_prelate = { save_scope_as = bg_override_char }
|
|
|
|
# An antipope only reads as an antipope next to the incumbent being defied.
|
|
# Skipped when that incumbent is us, since root already holds the right-hand portrait
|
|
if = {
|
|
limit = {
|
|
scope:prelate_office = flag:antipope
|
|
exists = scope:new_prelate.faith.religious_head
|
|
scope:new_prelate.faith.religious_head != scope:new_prelate
|
|
scope:new_prelate.faith.religious_head != root
|
|
}
|
|
scope:new_prelate.faith.religious_head = { save_scope_as = seated_prelate }
|
|
}
|
|
}
|
|
|
|
left_portrait = {
|
|
character = scope:new_prelate
|
|
animation = acknowledging_crozier
|
|
camera = camera_body
|
|
}
|
|
|
|
right_portrait = {
|
|
character = root
|
|
animation = personality_zealous
|
|
camera = camera_event_right
|
|
}
|
|
|
|
lower_center_portrait = {
|
|
trigger = { exists = scope:seated_prelate }
|
|
character = scope:seated_prelate
|
|
animation = anger
|
|
}
|
|
|
|
# Stay as myself
|
|
option = {
|
|
name = {
|
|
trigger = { scope:prelate_office = flag:antipope }
|
|
text = pam_clergy_events.0060.a.antipope
|
|
}
|
|
name = pam_clergy_events.0060.a
|
|
|
|
add_piety = minor_piety_gain
|
|
dynasty ?= { add_dynasty_prestige = minor_dynasty_prestige_gain }
|
|
scope:new_prelate = {
|
|
add_opinion = {
|
|
modifier = pleased_opinion
|
|
target = root
|
|
opinion = 20
|
|
}
|
|
}
|
|
}
|
|
|
|
# Continue as the new prelate
|
|
option = {
|
|
name = {
|
|
trigger = { scope:prelate_office = flag:antipope }
|
|
text = pam_clergy_events.0060.b.antipope
|
|
}
|
|
name = pam_clergy_events.0060.b
|
|
|
|
# A second player must not be able to take over a character someone else is already playing
|
|
trigger = {
|
|
scope:new_prelate = {
|
|
is_ai = yes
|
|
is_playable_character = yes
|
|
}
|
|
}
|
|
add_internal_flag = dangerous
|
|
|
|
custom_tooltip = pam_clergy_events.0060.b.tt
|
|
if = {
|
|
limit = { faith != scope:new_prelate.faith }
|
|
custom_tooltip = pam_clergy_events.0060.b.faith_tt
|
|
}
|
|
if = {
|
|
limit = { scope:prelate_office = flag:antipope }
|
|
custom_tooltip = pam_clergy_events.0060.b.antipope_tt
|
|
}
|
|
set_player_character = scope:new_prelate
|
|
}
|
|
}
|