5575 lines
121 KiB
Text
5575 lines
121 KiB
Text
namespace = pam_interactions_events
|
|
|
|
#Request Legitimacy response events
|
|
#Yes to legitimacy
|
|
pam_interactions_events.0001 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0001.opening
|
|
}
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:education_hook = yes
|
|
}
|
|
desc = pam_interactions_events.0001.hook_intro
|
|
}
|
|
desc = pam_interactions_events.0001.intro
|
|
}
|
|
desc = pam_interactions_events.0001
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:offer_hook = yes
|
|
}
|
|
desc = pam_interactions_events.0001.hook
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:tithe = yes
|
|
}
|
|
desc = pam_interactions_events.0001.tithe
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:donate_faith = yes
|
|
}
|
|
desc = pam_interactions_events.0001.donate
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:monastic_support = yes
|
|
}
|
|
desc = pam_interactions_events.0001.monks
|
|
}
|
|
desc = pam_interactions_events.0001.normal
|
|
}
|
|
desc = pam_interactions_events.0001.mid
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
character_considered_wicked_trigger = { RITE = scope:recipient.rite }
|
|
scope:recipient = {
|
|
has_relation_rival = scope:puppet_or_actor
|
|
}
|
|
tyranny > medium_tyranny
|
|
has_trait = excommunicated
|
|
}
|
|
scope:recipient = {
|
|
opinion = {
|
|
target = scope:puppet_or_actor
|
|
value < 50
|
|
}
|
|
NOT = {
|
|
has_dread_level_towards = {
|
|
target = scope:puppet_or_actor
|
|
level >= 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0001_disgust
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
character_considered_morally_dubious_trigger = { RITE = scope:recipient.rite }
|
|
scope:recipient = {
|
|
is_ai = yes
|
|
opinion = {
|
|
target = scope:puppet_or_actor
|
|
value <= -50
|
|
}
|
|
}
|
|
tyranny >= low_tyranny
|
|
}
|
|
scope:recipient = {
|
|
opinion = {
|
|
target = scope:puppet_or_actor
|
|
value < 50
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0001_disapprove
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
piety_level >= 4
|
|
has_trait = saint
|
|
has_trait = herald
|
|
has_trait = saoshyant_descendant
|
|
has_trait = order_member
|
|
has_trait = faith_warrior
|
|
has_trait = saoshyant
|
|
has_trait = paragon
|
|
has_trait = savior
|
|
has_trait = crusader_king
|
|
has_trait = zealous
|
|
has_trait = theologian
|
|
has_trait = divine_blood
|
|
has_trait = consecrated_blood
|
|
has_trait = sayyid
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0001_approve
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:offer_hook = yes
|
|
}
|
|
desc = pam_interactions_events.0001_offer_hook_end
|
|
}
|
|
}
|
|
}
|
|
sender = scope:recipient
|
|
|
|
immediate = {
|
|
request_legitimacy_interaction_effect = yes
|
|
notify_puppeteer_of_outcome_effect = {
|
|
TYPE = event_toast_effect_good
|
|
TITLE = pam_interactions_events.0001.toast_puppeteer
|
|
}
|
|
}
|
|
option = {
|
|
name = {
|
|
text = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
ai_zeal < low_negative_ai_value
|
|
}
|
|
desc = pam_interactions_events.0001.a.low_zeal
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
ai_zeal > low_positive_ai_value
|
|
}
|
|
desc = pam_interactions_events.0001.a.high_zeal
|
|
}
|
|
desc = pam_interactions_events.0001.a
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#No to legitimacy (multiplayer only)
|
|
pam_interactions_events.0002 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0002.opening
|
|
}
|
|
desc = {
|
|
desc = pam_interactions_events.0002
|
|
}
|
|
sender = scope:recipient
|
|
|
|
immediate = {
|
|
add_legitimacy = medium_legitimacy_loss
|
|
notify_puppeteer_of_outcome_effect = {
|
|
TYPE = event_toast_effect_bad
|
|
TITLE = pam_interactions_events.0002.toast_puppeteer
|
|
}
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0002.a
|
|
}
|
|
}
|
|
#Strengthen claim response events
|
|
pam_interactions_events.0010 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0010.opening
|
|
}
|
|
desc = pam_interactions_events.0010
|
|
sender = scope:recipient
|
|
|
|
immediate = {
|
|
strengthen_claim_interaction_effect = yes
|
|
notify_puppeteer_of_outcome_effect = {
|
|
TYPE = event_toast_effect_good
|
|
TITLE = pam_interactions_events.0010.toast_puppeteer
|
|
}
|
|
}
|
|
option = {
|
|
name = {
|
|
text = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
ai_zeal < low_negative_ai_value
|
|
}
|
|
desc = pam_interactions_events.0010.a.low_zeal
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
ai_zeal > low_positive_ai_value
|
|
}
|
|
desc = pam_interactions_events.0010.a.high_zeal
|
|
}
|
|
desc = pam_interactions_events.0010.a
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#No to claim pressing (multiplayer only)
|
|
pam_interactions_events.0011 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0011.opening
|
|
}
|
|
desc = {
|
|
desc = pam_interactions_events.0011
|
|
}
|
|
sender = scope:recipient
|
|
|
|
immediate = {
|
|
notify_puppeteer_of_outcome_effect = {
|
|
TYPE = event_toast_effect_bad
|
|
TITLE = pam_interactions_events.0011.toast_puppeteer
|
|
}
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0011.a
|
|
}
|
|
}
|
|
|
|
#Beseech claim response events
|
|
pam_interactions_events.0020 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0020.opening
|
|
}
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:threaten_priest = yes
|
|
}
|
|
desc = pam_interactions_events.0020_threatened
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:offer_hook = yes
|
|
}
|
|
desc = pam_interactions_events.0020_offer_hook
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
scope:use_hook = yes
|
|
scope:donate_faith = yes
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0020_indebted
|
|
}
|
|
desc = pam_interactions_events.0020
|
|
}
|
|
desc = pam_interactions_events.0020_end
|
|
}
|
|
|
|
sender = scope:secondary_recipient
|
|
|
|
immediate = {
|
|
ecclesiastic_grant_claim_interaction_effect = yes
|
|
notify_puppeteer_of_outcome_effect = {
|
|
TYPE = event_toast_effect_good
|
|
TITLE = pam_interactions_events.0020.toast_puppeteer
|
|
}
|
|
}
|
|
option = {
|
|
name = {
|
|
text = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
ai_zeal < low_negative_ai_value
|
|
}
|
|
desc = pam_interactions_events.0020.a.low_zeal
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
ai_zeal > low_positive_ai_value
|
|
}
|
|
desc = pam_interactions_events.0020.a.high_zeal
|
|
}
|
|
desc = pam_interactions_events.0020.a
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#No to claim pressing (multiplayer only)
|
|
pam_interactions_events.0021 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0021.opening
|
|
}
|
|
desc = {
|
|
desc = pam_interactions_events.0021
|
|
}
|
|
sender = scope:secondary_recipient
|
|
|
|
immediate = {
|
|
notify_puppeteer_of_outcome_effect = {
|
|
TYPE = event_toast_effect_bad
|
|
TITLE = pam_interactions_events.0021.toast_puppeteer
|
|
}
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0021.a
|
|
}
|
|
}
|
|
#Letter event for claim's holder
|
|
pam_interactions_events.0022 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0022.opening
|
|
}
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:puppet_or_actor.highest_held_title_tier < scope:target.tier
|
|
|
|
}
|
|
desc = pam_interactions_events.0022_shrimp
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:puppet_or_actor.highest_held_title_tier_minus_one > scope:target.tier
|
|
}
|
|
desc = pam_interactions_events.0022_shark
|
|
}
|
|
desc = pam_interactions_events.0022
|
|
}
|
|
desc = pam_interactions_events.0022_end
|
|
}
|
|
sender = scope:puppet_or_actor
|
|
|
|
immediate = {
|
|
show_as_tooltip = {
|
|
scope:puppet_or_actor = {
|
|
add_pressed_claim = scope:target
|
|
}
|
|
}
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0022.a
|
|
}
|
|
}
|
|
#Letter event for player clergy to grant claim
|
|
pam_interactions_events.0023 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0023.opening
|
|
}
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:puppet_or_actor.highest_held_title_tier < scope:target.tier
|
|
|
|
}
|
|
desc = pam_interactions_events.0023_shrimp
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:puppet_or_actor.highest_held_title_tier_minus_one > scope:target.tier
|
|
}
|
|
desc = pam_interactions_events.0023_shark
|
|
}
|
|
desc = pam_interactions_events.0023
|
|
}
|
|
desc = pam_interactions_events.0023_end
|
|
}
|
|
sender = scope:puppet_or_actor
|
|
|
|
immediate = {
|
|
}
|
|
#Yes
|
|
option = {
|
|
name = pam_interactions_events.0023.a
|
|
scope:puppet_or_actor = {
|
|
ecclesiastic_grant_claim_interaction_effect = yes
|
|
trigger_event = pam_interactions_events.0020
|
|
scope:recipient = {
|
|
#Event where they're informed
|
|
trigger_event = pam_interactions_events.0022
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:puppet_or_actor = { clerical_hesitation_claim_interaction_value >= -2 }
|
|
}
|
|
stress_impact = {
|
|
zealous = medium_stress_impact_gain
|
|
just = medium_stress_impact_gain
|
|
honest = medium_stress_impact_gain
|
|
}
|
|
}
|
|
else = {
|
|
stress_impact = {
|
|
just = medium_stress_impact_gain
|
|
honest = medium_stress_impact_gain
|
|
}
|
|
}
|
|
}
|
|
#No
|
|
option = {
|
|
name = pam_interactions_events.0023.b
|
|
scope:puppet_or_actor = {
|
|
trigger_event = pam_interactions_events.0021
|
|
#Ex. a king trying to claim a county
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier_minus_one > scope:target.tier
|
|
}
|
|
add_opinion = {
|
|
modifier = refusal_opinion
|
|
target = scope:secondary_recipient
|
|
opinion = -15
|
|
}
|
|
}
|
|
#Ex. a king trying to claim a duchy
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier > scope:target.tier
|
|
}
|
|
add_opinion = {
|
|
modifier = refusal_opinion
|
|
target = scope:secondary_recipient
|
|
opinion = -25
|
|
}
|
|
}
|
|
#Ex. a king trying to claim a kingdom
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier = scope:target.tier
|
|
}
|
|
add_opinion = {
|
|
modifier = refusal_opinion
|
|
target = scope:secondary_recipient
|
|
opinion = -30
|
|
}
|
|
}
|
|
#Ex. a king trying to claim an empire
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier < scope:target.tier
|
|
}
|
|
add_opinion = {
|
|
modifier = refusal_opinion
|
|
target = scope:secondary_recipient
|
|
opinion = -35
|
|
}
|
|
}
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
scope:target.tier > root.highest_held_title_tier
|
|
}
|
|
add_piety = medium_piety_gain
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:target.tier < root.highest_held_title_tier_minus_one
|
|
}
|
|
add_piety = miniscule_piety_gain
|
|
}
|
|
else = {
|
|
add_piety = minor_piety_gain
|
|
}
|
|
}
|
|
}
|
|
scope:recipient = {
|
|
add_opinion = {
|
|
opinion = {
|
|
value = 5
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier = scope:target.tier
|
|
}
|
|
multiply = 6
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
highest_held_title_tier_minus_one = scope:target.tier
|
|
}
|
|
multiply = 4
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
highest_held_title_tier_minus_two = scope:target.tier
|
|
}
|
|
multiply = 3
|
|
}
|
|
}
|
|
modifier = grateful_opinion
|
|
target = scope:secondary_recipient
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
OR = {
|
|
scope:puppet_or_actor.highest_held_title_tier_minus_one > scope:target.tier
|
|
scope:threaten_priest = yes
|
|
}
|
|
}
|
|
stress_impact = {
|
|
craven = minor_stress_impact_gain
|
|
}
|
|
}
|
|
else = {
|
|
stress_impact = {
|
|
generous = minor_stress_impact_gain
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Events around transferring land from interaction
|
|
#Actor chooses negotiation method to use after recipient doesn't instantly accept
|
|
pam_interactions_events.0030 = {
|
|
type = character_event
|
|
title = pam_interactions_events.0030.t
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
NOT = {
|
|
scope:representative = root
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0030.desc_intro_envoy
|
|
}
|
|
desc = pam_interactions_events.0030.desc_intro
|
|
}
|
|
desc = pam_interactions_events.0030.desc
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
NOT = {
|
|
scope:recipient = scope:target.holder
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0030.desc_vassal
|
|
}
|
|
desc = pam_interactions_events.0030.desc_target
|
|
}
|
|
}
|
|
theme = vassal
|
|
override_background = {
|
|
reference = holy_site_generic
|
|
}
|
|
left_portrait = {
|
|
character = scope:representative
|
|
triggered_animation = {
|
|
trigger = {
|
|
ai_compassion <= 0
|
|
}
|
|
animation = villain
|
|
}
|
|
animation = zealous_superior
|
|
camera = camera_event_very_left
|
|
}
|
|
right_portrait = {
|
|
character = scope:recipient
|
|
triggered_animation = {
|
|
trigger = {
|
|
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:actor }
|
|
ai_compassion >= low_positive_ai_value
|
|
}
|
|
animation = sadness
|
|
}
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
opinion = {
|
|
target = scope:actor
|
|
value >= 60
|
|
}
|
|
}
|
|
}
|
|
animation = contemplating
|
|
}
|
|
animation = war_defender
|
|
camera = camera_event_very_right
|
|
}
|
|
lower_center_portrait = scope:actor_non_present
|
|
lower_right_portrait = scope:vassal
|
|
trigger = {
|
|
is_alive = yes
|
|
is_imprisoned = no
|
|
is_ruler = yes
|
|
scope:recipient = {
|
|
is_ruler = yes
|
|
is_alive = yes
|
|
trigger_if = {
|
|
limit = {
|
|
is_imprisoned = yes
|
|
}
|
|
imprisoner = {
|
|
OR = {
|
|
this = root
|
|
any_liege_or_above = {
|
|
this = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:target.holder ?= {
|
|
OR = {
|
|
this = scope:recipient
|
|
is_vassal_or_below_of = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
if = {
|
|
limit = {
|
|
scope:target.holder = {
|
|
NOT = {
|
|
this = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
scope:target.holder = { save_scope_as = vassal }
|
|
}
|
|
#when root is high tier negotiating with low tier, flavor feels better with priest serving as envoy
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier >= tier_kingdom
|
|
scope:recipient.highest_held_title_tier <= tier_duchy
|
|
scope:secondary_recipient = {
|
|
is_available_quick = {
|
|
alive = yes
|
|
incapable = no
|
|
}
|
|
trigger_if = {
|
|
limit = {
|
|
is_imprisoned = yes
|
|
}
|
|
imprisoner = {
|
|
OR = {
|
|
this = root
|
|
any_liege_or_above = {
|
|
this = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
has_contagious_deadly_disease_trigger = no
|
|
}
|
|
}
|
|
scope:secondary_recipient = {
|
|
save_scope_as = representative
|
|
}
|
|
}
|
|
else = {
|
|
save_scope_as = representative
|
|
#We want to show clergy at bottom only in this circumstance
|
|
scope:secondary_recipient = {
|
|
save_scope_as = actor_non_present
|
|
}
|
|
}
|
|
#save forceable relation scope so that changing relations doesn't mess with outcome later
|
|
if = {
|
|
limit = {
|
|
pam_negotiate_land_forced_relation_trigger = yes
|
|
}
|
|
save_scope_as = forceable_relation
|
|
}
|
|
}
|
|
#use hook
|
|
option = {
|
|
trigger = {
|
|
OR = {
|
|
pam_negotiate_land_forced_hook_trigger = yes
|
|
pam_negotiate_land_possible_hook_trigger = yes
|
|
}
|
|
}
|
|
name = pam_interactions_events.0030.a
|
|
flavor = pam_interactions_events.0030.a.flavor
|
|
save_scope_as = method_hook
|
|
show_as_tooltip = {
|
|
if = {
|
|
limit = {
|
|
pam_negotiate_land_forced_hook_trigger = yes
|
|
}
|
|
add_internal_flag = special
|
|
custom_tooltip = pam_forced_negotiate_land_hook_tt
|
|
custom_tooltip = clergy_land_interaction_recipient_forced_tt
|
|
}
|
|
else = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = {
|
|
is_ai = yes
|
|
ai_honor > medium_positive_ai_value
|
|
}
|
|
}
|
|
custom_tooltip = clergy_land_increased_possibility_hook_tt
|
|
}
|
|
custom_tooltip = clergy_land_interaction_recipient_possible_tt
|
|
pam_negotiate_land_hook_effect = yes
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
custom_tooltip = clergy_land_interaction_recipient_refuse_tt
|
|
clergy_land_refusal_legitimacy_piety_effect = yes
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
pam_negotiate_land_forced_hook_trigger = yes
|
|
}
|
|
save_scope_as = forced_acceptance
|
|
}
|
|
ai_chance = {
|
|
base = 25
|
|
ai_value_modifier = {
|
|
ai_energy = 0.5
|
|
ai_rationality = -0.5
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
NOT = { is_vassal_of = scope:recipient }
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
scope:recipient = {
|
|
ai_honor > medium_positive_ai_value
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
scope:recipient = {
|
|
ai_honor > 0
|
|
}
|
|
}
|
|
modifier = {
|
|
factor = 10
|
|
pam_negotiate_land_forced_hook_trigger = yes
|
|
}
|
|
}
|
|
}
|
|
#Destroy relations
|
|
option = {
|
|
trigger = {
|
|
OR = {
|
|
pam_negotiate_land_forced_relation_trigger = yes
|
|
pam_negotiate_land_possible_relation_trigger = yes
|
|
}
|
|
}
|
|
name = pam_interactions_events.0030.b
|
|
flavor = pam_interactions_events.0030.b.flavor
|
|
save_scope_as = method_relation
|
|
show_as_tooltip = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = { is_ai = yes }
|
|
pam_negotiate_land_forced_relation_trigger = yes
|
|
}
|
|
add_internal_flag = special
|
|
custom_tooltip = clergy_land_interaction_recipient_forced_tt
|
|
show_as_tooltip = {
|
|
pam_negotiate_land_relation_effect = yes
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
}
|
|
}
|
|
else = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = {
|
|
is_ai = yes
|
|
ai_compassion > medium_positive_ai_value
|
|
}
|
|
}
|
|
custom_tooltip = clergy_land_increased_possibility_relation_tt
|
|
}
|
|
custom_tooltip = clergy_land_interaction_recipient_possible_tt
|
|
pam_negotiate_land_relation_accept_effect = yes
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
custom_tooltip = clergy_land_interaction_recipient_refuse_tt
|
|
pam_negotiate_land_relation_effect = yes
|
|
clergy_land_refusal_legitimacy_piety_effect = yes
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
pam_negotiate_land_forced_relation_trigger = yes
|
|
}
|
|
save_scope_as = forced_acceptance
|
|
}
|
|
stress_impact = {
|
|
deceitful = minor_stress_impact_loss
|
|
fickle = minor_stress_impact_loss
|
|
compassionate = medium_stress_impact_gain
|
|
trusting = medium_stress_impact_gain
|
|
generous = minor_stress_impact_gain
|
|
forgiving = medium_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 25
|
|
ai_value_modifier = {
|
|
ai_compassion = -1
|
|
ai_honor = -0.5
|
|
}
|
|
modifier = {
|
|
add = 50
|
|
NOT = { is_allied_to = scope:recipient }
|
|
half_current_military_strength >= scope:recipient.twice_current_military_strength
|
|
spiritual_fulfillment >= 0
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
scope:recipient = {
|
|
ai_compassion > medium_positive_ai_value
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
scope:recipient = {
|
|
ai_compassion > 0
|
|
}
|
|
}
|
|
modifier = {
|
|
factor = 10
|
|
pam_negotiate_land_forced_relation_trigger = yes
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_trait = compassionate
|
|
has_trait = trusting
|
|
has_trait = generous
|
|
has_trait = forgiving
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#Sabotage piety levels
|
|
option = {
|
|
trigger = {
|
|
OR = {
|
|
pam_negotiate_land_forced_piety_level_trigger = yes
|
|
pam_negotiate_land_possible_piety_level_trigger = yes
|
|
}
|
|
}
|
|
name = pam_interactions_events.0030.c
|
|
flavor = pam_interactions_events.0030.c.tt
|
|
save_scope_as = method_piety
|
|
show_as_tooltip = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = { is_ai = yes }
|
|
pam_negotiate_land_forced_piety_level_trigger = yes
|
|
}
|
|
add_internal_flag = special
|
|
custom_tooltip = clergy_land_interaction_recipient_forced_tt
|
|
pam_negotiate_land_piety_effect = yes
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
}
|
|
else = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = {
|
|
is_ai = yes
|
|
ai_zeal > medium_positive_ai_value
|
|
}
|
|
}
|
|
custom_tooltip = clergy_land_increased_possibility_piety_tt
|
|
}
|
|
custom_tooltip = clergy_land_interaction_recipient_possible_tt
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
custom_tooltip = clergy_land_interaction_recipient_refuse_tt
|
|
pam_negotiate_land_piety_effect = yes
|
|
clergy_land_refusal_legitimacy_piety_effect = yes
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
pam_negotiate_land_forced_piety_level_trigger = yes
|
|
}
|
|
save_scope_as = forced_acceptance
|
|
}
|
|
stress_impact = {
|
|
zealous = medium_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 10
|
|
ai_value_modifier = {
|
|
ai_zeal = -0.5
|
|
ai_sociability = -0.5
|
|
}
|
|
modifier = {
|
|
add = 50
|
|
piety_level >= 5
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
scope:recipient = {
|
|
ai_zeal > medium_positive_ai_value
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 25
|
|
scope:recipient = {
|
|
ai_zeal > 0
|
|
}
|
|
}
|
|
modifier = {
|
|
factor = 10
|
|
pam_negotiate_land_forced_piety_level_trigger = yes
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
has_trait = zealous
|
|
}
|
|
}
|
|
}
|
|
#Sabotage legitimacy levels
|
|
option = {
|
|
trigger = {
|
|
OR = {
|
|
pam_negotiate_land_forced_legitimacy_level_trigger = yes
|
|
pam_negotiate_land_possible_legitimacy_level_trigger = yes
|
|
}
|
|
}
|
|
name = pam_interactions_events.0030.d
|
|
flavor = pam_interactions_events.0030.d.flavor
|
|
save_scope_as = method_legitimacy
|
|
show_as_tooltip = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = { is_ai = yes }
|
|
pam_negotiate_land_forced_legitimacy_level_trigger = yes
|
|
}
|
|
add_internal_flag = special
|
|
custom_tooltip = clergy_land_interaction_recipient_forced_tt
|
|
pam_negotiate_land_legitimacy_effect = yes
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
}
|
|
else = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = {
|
|
is_ai = yes
|
|
ai_boldness < medium_negative_ai_value
|
|
}
|
|
}
|
|
custom_tooltip = clergy_land_increased_possibility_legitimacy_tt
|
|
}
|
|
custom_tooltip = clergy_land_interaction_recipient_possible_tt
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
custom_tooltip = clergy_land_interaction_recipient_refuse_tt
|
|
pam_negotiate_land_legitimacy_effect = yes
|
|
clergy_land_refusal_legitimacy_piety_effect = yes
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
pam_negotiate_land_forced_legitimacy_level_trigger = yes
|
|
}
|
|
save_scope_as = forced_acceptance
|
|
}
|
|
stress_impact = {
|
|
vengeful = miniscule_stress_impact_loss
|
|
craven = minor_stress_impact_gain
|
|
just = minor_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 5
|
|
ai_value_modifier = {
|
|
ai_honor = -0.5
|
|
ai_boldness = 0.5
|
|
}
|
|
modifier = {
|
|
add = 50
|
|
legitimacy_level >= 5
|
|
NOT = {
|
|
any_targeting_faction = {
|
|
exists = this
|
|
}
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 20
|
|
scope:recipient = {
|
|
ai_boldness < medium_negative_ai_value
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 20
|
|
scope:recipient = {
|
|
ai_boldness > 0
|
|
}
|
|
}
|
|
modifier = {
|
|
factor = 10
|
|
pam_negotiate_land_forced_legitimacy_level_trigger = yes
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_trait = craven
|
|
has_trait = just
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#offer gold
|
|
option = {
|
|
trigger = {
|
|
OR = {
|
|
pam_negotiate_land_forced_gold_trigger = yes
|
|
pam_negotiate_land_possible_gold_trigger = yes
|
|
}
|
|
}
|
|
name = pam_interactions_events.0030.e
|
|
save_scope_as = method_gold
|
|
show_as_tooltip = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = { is_ai = yes }
|
|
pam_negotiate_land_forced_gold_trigger = yes
|
|
}
|
|
add_internal_flag = special
|
|
custom_tooltip = clergy_land_interaction_recipient_forced_tt
|
|
pam_negotiate_land_gold_effect = yes
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
}
|
|
else = {
|
|
if = {
|
|
limit = {
|
|
scope:recipient = {
|
|
is_ai = yes
|
|
ai_greed > medium_positive_ai_value
|
|
}
|
|
}
|
|
custom_tooltip = clergy_land_increased_possibility_gold_tt
|
|
}
|
|
custom_tooltip = clergy_land_interaction_recipient_possible_tt
|
|
pam_negotiate_land_gold_effect = yes
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
custom_tooltip = clergy_land_interaction_recipient_refuse_tt
|
|
clergy_land_refusal_legitimacy_piety_effect = yes
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
pam_negotiate_land_forced_gold_trigger = yes
|
|
}
|
|
save_scope_as = forced_acceptance
|
|
}
|
|
stress_impact = {
|
|
generous = miniscule_stress_impact_loss
|
|
arrogant = minor_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 5
|
|
ai_value_modifier = {
|
|
ai_greed = -0.5
|
|
}
|
|
modifier = {
|
|
add = 50
|
|
treasury_or_gold >= pam_transfer_land_times_10_gold_value
|
|
}
|
|
modifier = {
|
|
add = 20
|
|
scope:recipient = {
|
|
ai_greed > medium_positive_ai_value
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 20
|
|
scope:recipient = {
|
|
ai_greed > 0
|
|
}
|
|
}
|
|
modifier = {
|
|
factor = 10
|
|
pam_negotiate_land_forced_gold_trigger = yes
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
has_trait = arrogant
|
|
}
|
|
}
|
|
}
|
|
#Don't try anything... maybe they will still accept
|
|
option = {
|
|
name = pam_interactions_events.0030.f
|
|
save_scope_as = method_none
|
|
if = {
|
|
limit = {
|
|
NOT = {
|
|
pam_clergy_land_interaction_likely_acceptance_no_methods_trigger = yes
|
|
}
|
|
}
|
|
custom_tooltip = clergy_land_no_method_warning_tt
|
|
}
|
|
else = {
|
|
custom_tooltip = clergy_land_no_method_warning_soft_tt
|
|
}
|
|
show_as_tooltip = {
|
|
custom_tooltip = clergy_land_interaction_recipient_possible_tt
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
custom_tooltip = clergy_land_interaction_recipient_refuse_tt
|
|
clergy_land_refusal_legitimacy_piety_effect = yes
|
|
}
|
|
|
|
ai_chance = {
|
|
base = 15
|
|
ai_value_modifier = {
|
|
ai_energy = -0.5
|
|
ai_boldness = -0.5
|
|
}
|
|
modifier = {
|
|
add = 30
|
|
scope:actor = { pam_clergy_land_interaction_likely_acceptance_no_methods_trigger = yes }
|
|
}
|
|
}
|
|
}
|
|
after = {
|
|
#Recipient receives chosen negotiation method
|
|
scope:recipient = {
|
|
trigger_event = {
|
|
id = pam_interactions_events.0034
|
|
days = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#player cleric refuses
|
|
pam_interactions_events.0031 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0031.opening
|
|
}
|
|
desc = pam_interactions_events.0031.desc
|
|
|
|
sender = scope:secondary_recipient
|
|
|
|
immediate = {
|
|
}
|
|
#Yes
|
|
option = {
|
|
name = pam_interactions_events.0031.a
|
|
show_as_tooltip = {
|
|
scope:secondary_recipient = {
|
|
if = {
|
|
limit = {
|
|
scope:target.tier > root.highest_held_title_tier
|
|
}
|
|
add_piety = major_piety_gain
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:target.tier < root.highest_held_title_tier_minus_one
|
|
}
|
|
add_piety = minor_piety_gain
|
|
}
|
|
else = {
|
|
add_piety = medium_piety_gain
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#Recipient receives request and either immediately accepts, goes to negotiate or refuses (if player)
|
|
pam_interactions_events.0032 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0032.opening
|
|
}
|
|
desc = {
|
|
|
|
desc = pam_interactions_events.0032_intro
|
|
#What is claim based on?
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:actor = {
|
|
any_held_title = {
|
|
any_in_de_jure_hierarchy = {
|
|
this = scope:target
|
|
}
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0032_de_jure
|
|
}
|
|
desc = pam_interactions_events.0032_claim
|
|
}
|
|
}
|
|
sender = scope:secondary_recipient
|
|
|
|
immediate = {
|
|
if = {
|
|
limit = {
|
|
exists = scope:clergy_forced_acceptance
|
|
}
|
|
custom_tooltip = clergy_forced_transfer_acceptance_tt
|
|
if = {
|
|
limit = {
|
|
scope:target = {
|
|
this = scope:recipient.primary_title
|
|
}
|
|
}
|
|
set_relation_rival = {
|
|
target = scope:recipient
|
|
reason = rival_quarreled_over_land
|
|
}
|
|
}
|
|
else = {
|
|
set_relation_potential_rival = {
|
|
target = scope:recipient
|
|
reason = rival_quarreled_over_land
|
|
}
|
|
}
|
|
}
|
|
#Pope is trying to take your lands? You can now declare an antipope
|
|
if = {
|
|
limit = {
|
|
scope:target.tier >= tier_kingdom
|
|
is_landed = yes
|
|
pam_is_antipope_sponsor_trigger = no
|
|
pam_is_antipope_trigger = no
|
|
faith.religious_head ?= scope:secondary_recipient
|
|
faith = { has_doctrine_parameter = spiritual_head_of_faith }
|
|
NOT = {
|
|
rite = { rite_has_parameter = no_head_of_faith }
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
government_has_flag = government_is_theocracy
|
|
}
|
|
custom_tooltip = land_threatened_self_antipope_requirement_tt
|
|
}
|
|
else = {
|
|
custom_tooltip = land_threatened_antipope_requirement_tt
|
|
}
|
|
set_variable = antipope_squabble_unlock
|
|
}
|
|
}
|
|
#I, a scholar, will both refuse and big-brain you into leaving it alone
|
|
option = {
|
|
trigger = {
|
|
#Should only be possible against AI bc players are extra special
|
|
scope:actor = { is_ai = yes }
|
|
has_trait = lifestyle_scholar
|
|
has_trait_xp = {
|
|
trait = lifestyle_scholar
|
|
value >= 60
|
|
}
|
|
NOT = { exists = scope:clergy_forced_acceptance }
|
|
}
|
|
name = pam_interactions_events.0032.aa
|
|
flavor = pam_interactions_events.0032.aa.flavor
|
|
add_internal_flag = special
|
|
custom_tooltip = clergy_interaction_scholar_block_tt
|
|
pam_negotiate_land_tracking_variable_effect = yes
|
|
add_piety = {
|
|
value = minor_piety_gain
|
|
multiply = scope:target.tier
|
|
}
|
|
add_stress = {
|
|
value = miniscule_stress_loss
|
|
multiply = scope:target.tier
|
|
}
|
|
scope:actor = {
|
|
add_stress = medium_stress_impact_gain
|
|
add_piety_experience = {
|
|
value = medium_piety_loss
|
|
multiply = scope:target.tier
|
|
}
|
|
}
|
|
scope:secondary_recipient = {
|
|
add_stress = medium_stress_impact_gain
|
|
add_piety_experience = {
|
|
value = medium_piety_loss
|
|
multiply = scope:target.tier
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 1000
|
|
}
|
|
}
|
|
#Yes, I will just agree point blank to give up the title
|
|
option = {
|
|
name = pam_interactions_events.0032.a
|
|
add_piety = {
|
|
value = medium_piety_value
|
|
if = {
|
|
limit = {
|
|
scope:target = scope:recipient.primary_title
|
|
}
|
|
add = massive_piety_value
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:target.tier = scope:recipient.highest_held_title_tier
|
|
}
|
|
add = {
|
|
value = medium_piety_value
|
|
multiply = 3
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:target.tier = scope:recipient.highest_held_title_tier_minus_one
|
|
}
|
|
add = {
|
|
value = medium_piety_value
|
|
multiply = 2
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:target.tier = scope:recipient.highest_held_title_tier_minus_two
|
|
}
|
|
add = medium_piety_value
|
|
}
|
|
}
|
|
#Mark as dangerous option if it is your primary title
|
|
if = {
|
|
limit = {
|
|
scope:target = {
|
|
OR = {
|
|
this = root.primary_title
|
|
any_de_jure_county = {
|
|
this = root.capital_county
|
|
}
|
|
any_in_de_jure_hierarchy = {
|
|
this = root.primary_title
|
|
}
|
|
AND = {
|
|
this = root.capital_county
|
|
root.domain_size = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
add_internal_flag = dangerous
|
|
}
|
|
show_as_tooltip = {
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
}
|
|
pam_negotiate_land_tracking_variable_effect = yes
|
|
scope:actor = {
|
|
trigger_event = pam_interactions_events.0035
|
|
}
|
|
stress_impact = {
|
|
zealous = medium_stress_impact_loss
|
|
humble = minor_stress_impact_loss
|
|
trusting = minor_stress_impact_loss
|
|
|
|
cynical = medium_stress_impact_gain
|
|
arrogant = medium_stress_impact_gain
|
|
stubborn = medium_stress_impact_gain
|
|
ambitious = medium_stress_impact_gain
|
|
greedy = medium_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 0
|
|
|
|
#Major personality reason
|
|
modifier = {
|
|
add = 10
|
|
OR = {
|
|
ai_zeal > high_positive_ai_value
|
|
ai_greed < high_negative_ai_value
|
|
ai_boldness < high_negative_ai_value
|
|
ai_energy < high_negative_ai_value
|
|
}
|
|
}
|
|
|
|
#Minor personality reason
|
|
modifier = {
|
|
add = 5
|
|
OR = {
|
|
ai_zeal >= low_positive_ai_value
|
|
ai_greed <= low_negative_ai_value
|
|
ai_boldness <= low_negative_ai_value
|
|
ai_energy <= low_negative_ai_value
|
|
}
|
|
}
|
|
|
|
#Major military strength reason
|
|
modifier = {
|
|
add = 10
|
|
twice_current_military_strength <= scope:actor.half_current_military_strength
|
|
}
|
|
|
|
#High church authority
|
|
modifier = {
|
|
add = 5
|
|
scope:secondary_recipient = {
|
|
has_realm_law = church_authority_3
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 2
|
|
scope:secondary_recipient = {
|
|
has_realm_law = church_authority_2
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 1
|
|
scope:secondary_recipient = {
|
|
has_realm_law = church_authority_1
|
|
}
|
|
}
|
|
|
|
#Minor military strength reason
|
|
modifier = {
|
|
add = 5
|
|
current_military_strength <= scope:actor.half_current_military_strength
|
|
}
|
|
|
|
#reduce for inappropriate personality
|
|
modifier = {
|
|
factor = 0.5
|
|
OR = {
|
|
ai_zeal <= low_negative_ai_value
|
|
ai_greed >= low_positive_ai_value
|
|
ai_boldness >= low_positive_ai_value
|
|
ai_honor >= low_positive_ai_value
|
|
}
|
|
}
|
|
#reduce for weak military
|
|
modifier = {
|
|
factor = 0.5
|
|
current_military_strength > scope:actor.current_military_strength
|
|
}
|
|
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_trait = cynical
|
|
has_trait = arrogant
|
|
has_trait = stubborn
|
|
has_trait = ambitious
|
|
has_trait = greedy
|
|
ai_zeal <= high_negative_ai_value
|
|
ai_greed >= high_positive_ai_value
|
|
ai_boldness >= high_positive_ai_value
|
|
ai_honor >= high_positive_ai_value
|
|
ai_energy >= high_positive_ai_value
|
|
half_current_military_strength >= scope:actor.current_military_strength
|
|
}
|
|
}
|
|
|
|
#Instant acceptance is meant to make this option always happen
|
|
modifier = {
|
|
add = 1000
|
|
pam_instant_negotiate_land_success_trigger = yes
|
|
}
|
|
}
|
|
}
|
|
#I refuse. Because they will not follow through on their threats... or I don't care that they will
|
|
option = {
|
|
trigger = {
|
|
#Instance acceptance blocks AI saying no
|
|
pam_instant_negotiate_land_success_trigger = no
|
|
NOT = { exists = scope:clergy_forced_acceptance }
|
|
}
|
|
name = pam_interactions_events.0032.b
|
|
flavor = pam_interactions_events.0032.b.tt
|
|
scope:actor = {
|
|
trigger_event = pam_interactions_events.0030
|
|
}
|
|
save_scope_as = recipient_event
|
|
show_as_tooltip = {
|
|
scope:actor = {
|
|
custom_tooltip = clerical_land_transfer_actor_attempt_tt
|
|
pam_available_negotiation_methods_tooltip_effect = yes
|
|
}
|
|
}
|
|
|
|
stress_impact = {
|
|
zealous = medium_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
trusting = medium_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
}
|
|
}
|
|
}
|
|
#player cleric decides whether to approve
|
|
pam_interactions_events.0033 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0033.opening
|
|
}
|
|
desc = {
|
|
#What is claim based on?
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:actor = {
|
|
any_held_title = {
|
|
any_in_de_jure_hierarchy = {
|
|
this = scope:target
|
|
}
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0033_de_jure
|
|
}
|
|
desc = pam_interactions_events.0033_claim
|
|
}
|
|
#What's the biggest offer made to clergy?
|
|
first_valid = {
|
|
#threaten priest
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:threaten_priest = yes
|
|
}
|
|
desc = pam_interactions_events.0033_threaten
|
|
}
|
|
#Promise succession
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:promise_church_succession = yes
|
|
}
|
|
desc = pam_interactions_events.0033_succession
|
|
}
|
|
#Offer pilgrimage
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:offer_pilgrimage = yes
|
|
}
|
|
desc = pam_interactions_events.0033_pilgrimage
|
|
}
|
|
#Use hook
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:use_hook = yes
|
|
}
|
|
desc = pam_interactions_events.0033_use_hook
|
|
}
|
|
#Offer hook
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:offer_hook = yes
|
|
}
|
|
desc = pam_interactions_events.0033_offer_hook
|
|
}
|
|
#Offer gold
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:donate_faith = yes
|
|
}
|
|
desc = pam_interactions_events.0033_donate
|
|
}
|
|
desc = pam_interactions_events.0033_fallback
|
|
}
|
|
}
|
|
sender = scope:actor
|
|
|
|
immediate = {
|
|
save_scope_as = cleric
|
|
}
|
|
#Yes and I will use my powers to make this happen
|
|
option = {
|
|
trigger = {
|
|
#Has highest church authority level
|
|
has_realm_law_flag = clergy_force_land_transfers
|
|
piety_level >= 3
|
|
}
|
|
show_as_unavailable = {
|
|
has_realm_law_flag = clergy_force_land_transfers
|
|
piety_level < 3
|
|
}
|
|
name = pam_interactions_events.0033.aa
|
|
custom_tooltip = high_church_authority_unlock_land_transfer_tt
|
|
add_internal_flag = special
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier < scope:target.tier
|
|
}
|
|
add_prestige = massive_prestige_gain
|
|
}
|
|
else = {
|
|
add_prestige = medium_prestige_gain
|
|
}
|
|
show_as_tooltip = {
|
|
if = {
|
|
limit = {
|
|
scope:target = {
|
|
this = scope:recipient.primary_title
|
|
}
|
|
}
|
|
set_relation_rival = {
|
|
target = scope:recipient
|
|
reason = rival_quarreled_over_land
|
|
}
|
|
}
|
|
else = {
|
|
set_relation_potential_rival = {
|
|
target = scope:recipient
|
|
reason = rival_quarreled_over_land
|
|
}
|
|
}
|
|
}
|
|
save_scope_as = clergy_forced_acceptance
|
|
scope:target.holder = {
|
|
add_opinion = {
|
|
target = scope:secondary_recipient
|
|
modifier = demanded_my_title_opinion
|
|
opinion = -30
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:target.holder = {
|
|
NOT = {
|
|
this = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
scope:recipient = {
|
|
add_opinion = {
|
|
target = scope:secondary_recipient
|
|
modifier = demanded_my_title_opinion
|
|
opinion = -20
|
|
}
|
|
}
|
|
}
|
|
scope:recipient = {
|
|
trigger_event = pam_interactions_events.0032
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:actor = { clerical_hesitation_claim_interaction_value >= -2 }
|
|
}
|
|
stress_impact = {
|
|
zealous = medium_stress_impact_gain
|
|
just = medium_stress_impact_gain
|
|
honest = medium_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
}
|
|
}
|
|
}
|
|
#Yes
|
|
option = {
|
|
name = pam_interactions_events.0033.a
|
|
flavor = pam_interactions_events.0033.a.tt
|
|
scope:actor = {
|
|
if = {
|
|
limit = {
|
|
pam_forced_negotiate_land_success_trigger = no
|
|
pam_instant_negotiate_land_success_trigger = no
|
|
}
|
|
root = {
|
|
custom_tooltip = clergy_land_inform_priest_might_fail_tt
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
pam_instant_negotiate_land_success_trigger = no
|
|
}
|
|
root = {
|
|
custom_tooltip = clergy_land_inform_priest_can_force_tt
|
|
}
|
|
}
|
|
else = {
|
|
root = {
|
|
custom_tooltip = clergy_land_inform_priest_will_happen_tt
|
|
}
|
|
}
|
|
ecclesiastic_transfer_land_interaction_immediate_effect = yes
|
|
}
|
|
scope:target.holder = {
|
|
add_opinion = {
|
|
target = scope:secondary_recipient
|
|
modifier = demanded_my_title_opinion
|
|
opinion = -30
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:target.holder = {
|
|
NOT = {
|
|
this = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
scope:recipient = {
|
|
add_opinion = {
|
|
target = scope:secondary_recipient
|
|
modifier = demanded_my_title_opinion
|
|
opinion = -20
|
|
}
|
|
}
|
|
}
|
|
scope:recipient = {
|
|
trigger_event = pam_interactions_events.0032
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:actor = { clerical_hesitation_claim_interaction_value >= -2 }
|
|
}
|
|
stress_impact = {
|
|
zealous = medium_stress_impact_gain
|
|
just = medium_stress_impact_gain
|
|
honest = medium_stress_impact_gain
|
|
}
|
|
}
|
|
}
|
|
#No
|
|
option = {
|
|
name = pam_interactions_events.0033.b
|
|
flavor = pam_interactions_events.0033.b.tt
|
|
scope:actor = {
|
|
trigger_event = pam_interactions_events.0031
|
|
#Ex. a king trying to claim a county
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier_minus_one > scope:target.tier
|
|
}
|
|
add_opinion = {
|
|
modifier = refusal_opinion
|
|
target = scope:secondary_recipient
|
|
opinion = -20
|
|
}
|
|
}
|
|
#Ex. a king trying to claim a duchy
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier > scope:target.tier
|
|
}
|
|
add_opinion = {
|
|
modifier = refusal_opinion
|
|
target = scope:secondary_recipient
|
|
opinion = -30
|
|
}
|
|
}
|
|
#Ex. a king trying to claim a kingdom
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier = scope:target.tier
|
|
}
|
|
add_opinion = {
|
|
modifier = refusal_opinion
|
|
target = scope:secondary_recipient
|
|
opinion = -40
|
|
}
|
|
}
|
|
#Ex. a king trying to claim an empire
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier < scope:target.tier
|
|
}
|
|
add_opinion = {
|
|
modifier = refusal_opinion
|
|
target = scope:secondary_recipient
|
|
opinion = -50
|
|
}
|
|
}
|
|
}
|
|
#Gain opinion with recipient you favored
|
|
scope:recipient = {
|
|
add_opinion = {
|
|
opinion = {
|
|
value = 10
|
|
if = {
|
|
limit = {
|
|
highest_held_title_tier = scope:target.tier
|
|
}
|
|
multiply = 5
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
highest_held_title_tier_minus_one = scope:target.tier
|
|
}
|
|
multiply = 3
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
highest_held_title_tier_minus_two = scope:target.tier
|
|
}
|
|
multiply = 2
|
|
}
|
|
}
|
|
modifier = grateful_opinion
|
|
target = scope:secondary_recipient
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
OR = {
|
|
scope:actor.highest_held_title_tier_minus_one > scope:target.tier
|
|
scope:threaten_priest = yes
|
|
}
|
|
}
|
|
stress_impact = {
|
|
craven = minor_stress_impact_gain
|
|
}
|
|
}
|
|
else = {
|
|
stress_impact = {
|
|
generous = minor_stress_impact_gain
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#Recipient receives actor's chosen negotiation method
|
|
pam_interactions_events.0034 = {
|
|
type = character_event
|
|
title = pam_interactions_events.0034.t
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
NOT = {
|
|
scope:representative = scope:actor
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0034.desc_intro_envoy
|
|
}
|
|
desc = pam_interactions_events.0034.desc_intro
|
|
}
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
NOT = {
|
|
scope:recipient = scope:target.holder
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0034.desc_vassal
|
|
}
|
|
desc = pam_interactions_events.0034.desc_target
|
|
}
|
|
desc = pam_interactions_events.0034.desc
|
|
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_hook
|
|
}
|
|
desc = pam_interactions_events.0034.desc_method_hook
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_relation
|
|
}
|
|
desc = pam_interactions_events.0034.desc_method_relation
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_piety
|
|
}
|
|
desc = pam_interactions_events.0034.desc_method_piety
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
desc = pam_interactions_events.0034.desc_method_legitimacy
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_gold
|
|
}
|
|
desc = pam_interactions_events.0034.desc_method_gold
|
|
}
|
|
desc = pam_interactions_events.0034.desc_no_method
|
|
}
|
|
}
|
|
theme = vassal
|
|
override_background = {
|
|
reference = holy_site_generic
|
|
}
|
|
left_portrait = {
|
|
character = scope:recipient
|
|
triggered_animation = {
|
|
trigger = {
|
|
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:actor }
|
|
ai_compassion >= low_positive_ai_value
|
|
}
|
|
animation = sadness
|
|
}
|
|
animation = war_defender
|
|
camera = camera_event_very_left
|
|
}
|
|
right_portrait = {
|
|
character = scope:representative
|
|
triggered_animation = {
|
|
trigger = {
|
|
ai_compassion <= 0
|
|
}
|
|
animation = villain
|
|
}
|
|
animation = zealous_superior
|
|
camera = camera_event_very_right
|
|
}
|
|
lower_right_portrait = scope:recipient_non_present
|
|
lower_left_portrait = scope:vassal
|
|
trigger = {
|
|
is_alive = yes
|
|
is_ruler = yes
|
|
trigger_if = {
|
|
limit = {
|
|
is_imprisoned = yes
|
|
}
|
|
imprisoner = {
|
|
OR = {
|
|
this = root
|
|
any_liege_or_above = {
|
|
this = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:actor = {
|
|
is_alive = yes
|
|
is_imprisoned = no
|
|
is_ruler = yes
|
|
}
|
|
scope:representative = {
|
|
is_alive = yes
|
|
is_imprisoned = no
|
|
}
|
|
scope:target.holder ?= {
|
|
OR = {
|
|
this = scope:recipient
|
|
is_vassal_or_below_of = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
#Save the non-rep to show at the bottom
|
|
if = {
|
|
limit = {
|
|
scope:representative = scope:actor
|
|
}
|
|
scope:secondary_recipient = {
|
|
save_scope_as = recipient_non_present
|
|
}
|
|
}
|
|
else = {
|
|
scope:actor = {
|
|
save_scope_as = recipient_non_present
|
|
}
|
|
}
|
|
}
|
|
#Accept
|
|
option = {
|
|
name = pam_interactions_events.0034.a
|
|
#Mark as dangerous option if it is your primary title
|
|
if = {
|
|
limit = {
|
|
scope:target = {
|
|
OR = {
|
|
this = root.primary_title
|
|
any_de_jure_county = {
|
|
this = root.capital_county
|
|
}
|
|
any_in_de_jure_hierarchy = {
|
|
this = root.primary_title
|
|
}
|
|
AND = {
|
|
this = root.capital_county
|
|
root.domain_size = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
add_internal_flag = dangerous
|
|
}
|
|
show_as_tooltip = {
|
|
scope:actor = {
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_hook
|
|
}
|
|
pam_negotiate_land_hook_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_relation
|
|
}
|
|
pam_negotiate_land_relation_accept_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_gold
|
|
}
|
|
pam_negotiate_land_gold_effect = yes
|
|
}
|
|
}
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
}
|
|
pam_negotiate_land_tracking_variable_effect = yes
|
|
#success event for actor
|
|
scope:actor = { trigger_event = pam_interactions_events.0035 }
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_hook
|
|
}
|
|
stress_impact = {
|
|
arrogant = medium_stress_impact_gain
|
|
ambitious = medium_stress_impact_gain
|
|
greedy = minor_stress_impact_gain
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = scope:method_relation
|
|
}
|
|
stress_impact = {
|
|
stubborn = minor_stress_impact_gain
|
|
arrogant = minor_stress_impact_gain
|
|
ambitious = medium_stress_impact_gain
|
|
greedy = medium_stress_impact_gain
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = scope:method_piety
|
|
}
|
|
stress_impact = {
|
|
stubborn = minor_stress_impact_gain
|
|
arrogant = medium_stress_impact_gain
|
|
ambitious = medium_stress_impact_gain
|
|
greedy = minor_stress_impact_gain
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
stress_impact = {
|
|
stubborn = medium_stress_impact_gain
|
|
arrogant = minor_stress_impact_gain
|
|
greedy = medium_stress_impact_gain
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = scope:method_gold
|
|
}
|
|
stress_impact = {
|
|
stubborn = medium_stress_impact_gain
|
|
arrogant = medium_stress_impact_gain
|
|
ambitious = minor_stress_impact_gain
|
|
}
|
|
}
|
|
else = {
|
|
stress_impact = {
|
|
stubborn = medium_stress_impact_gain
|
|
arrogant = medium_stress_impact_gain
|
|
ambitious = medium_stress_impact_gain
|
|
greedy = medium_stress_impact_gain
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 20
|
|
ai_value_modifier = {
|
|
ai_zeal = 1
|
|
ai_boldness = -1
|
|
}
|
|
#Peace of God: yielding to the Church's arbitration is preferable to the war that would follow
|
|
modifier = {
|
|
add = 40
|
|
rite ?= {
|
|
rite_has_parameter = tenet_peace_of_god_clergy_peacemaking
|
|
}
|
|
}
|
|
#High church authority
|
|
modifier = {
|
|
add = 25
|
|
scope:secondary_recipient = {
|
|
has_realm_law = church_authority_3
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 10
|
|
scope:secondary_recipient = {
|
|
has_realm_law = church_authority_2
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 5
|
|
scope:secondary_recipient = {
|
|
has_realm_law = church_authority_1
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 40
|
|
OR = {
|
|
exists = scope:method_hook
|
|
exists = scope:method_relation
|
|
exists = scope:method_piety
|
|
exists = scope:method_legitimacy
|
|
exists = scope:method_gold
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 40
|
|
OR = {
|
|
AND = {
|
|
exists = scope:method_hook
|
|
ai_honor > low_negative_ai_value
|
|
}
|
|
AND = {
|
|
exists = scope:method_relation
|
|
ai_compassion > low_negative_ai_value
|
|
}
|
|
AND = {
|
|
exists = scope:method_piety
|
|
ai_zeal > low_negative_ai_value
|
|
}
|
|
AND = {
|
|
exists = scope:method_legitimacy
|
|
ai_boldness < low_positive_ai_value
|
|
}
|
|
AND = {
|
|
exists = scope:method_gold
|
|
ai_greed > low_negative_ai_value
|
|
}
|
|
}
|
|
}
|
|
modifier = {
|
|
add = 40
|
|
OR = {
|
|
AND = {
|
|
exists = scope:method_hook
|
|
scope:actor = { has_strong_hook = scope:recipient }
|
|
}
|
|
AND = {
|
|
exists = scope:method_relation
|
|
#can't take the punishment
|
|
spiritual_fulfillment < spiritual_fulfillment_minus_2
|
|
}
|
|
AND = {
|
|
exists = scope:method_piety
|
|
piety_level <= 2
|
|
}
|
|
AND = {
|
|
exists = scope:method_legitimacy
|
|
legitimacy_level <= 2
|
|
}
|
|
AND = {
|
|
exists = scope:method_gold
|
|
treasury_or_gold < medium_gold_value
|
|
}
|
|
}
|
|
}
|
|
modifier = {
|
|
factor = 0.5
|
|
primary_title = scope:target
|
|
NOT = {
|
|
scope:target.holder.highest_held_title_tier < scope:actor.highest_held_title_tier
|
|
}
|
|
}
|
|
modifier = {
|
|
factor = 0.75
|
|
capital_county = scope:target
|
|
#Not just getting vassalized
|
|
NOT = {
|
|
scope:target.holder.primary_title ?= scope:target
|
|
scope:target.holder.highest_held_title_tier < scope:actor.highest_held_title_tier
|
|
}
|
|
}
|
|
#Acceptance should be more likely when it's a matter of vassalage, not title loss
|
|
modifier = {
|
|
scope:target.holder.primary_title ?= scope:target
|
|
scope:target.holder.highest_held_title_tier < scope:actor.highest_held_title_tier
|
|
factor = 2
|
|
}
|
|
modifier = {
|
|
factor = 0.25
|
|
highest_held_title_tier = scope:target.tier
|
|
}
|
|
modifier = {
|
|
factor = 0.5
|
|
highest_held_title_tier_minus_one = scope:target.tier
|
|
}
|
|
modifier = {
|
|
factor = 0.75
|
|
highest_held_title_tier_minus_two = scope:target.tier
|
|
}
|
|
modifier = {
|
|
factor = 0.5
|
|
trigger_if = {
|
|
limit = {
|
|
exists = scope:method_hook
|
|
}
|
|
OR = {
|
|
has_trait = arrogant
|
|
has_trait = ambitious
|
|
}
|
|
}
|
|
trigger_else_if = {
|
|
limit = {
|
|
exists = scope:method_relation
|
|
}
|
|
OR = {
|
|
has_trait = ambitious
|
|
has_trait = greedy
|
|
}
|
|
}
|
|
trigger_else_if = {
|
|
limit = {
|
|
exists = scope:method_piety
|
|
}
|
|
OR = {
|
|
has_trait = arrogant
|
|
has_trait = ambitious
|
|
}
|
|
}
|
|
trigger_else_if = {
|
|
limit = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
OR = {
|
|
has_trait = stubborn
|
|
has_trait = greedy
|
|
}
|
|
}
|
|
trigger_else_if = {
|
|
limit = {
|
|
exists = scope:method_gold
|
|
}
|
|
OR = {
|
|
has_trait = stubborn
|
|
has_trait = arrogant
|
|
}
|
|
}
|
|
trigger_else = {
|
|
OR = {
|
|
has_trait = stubborn
|
|
has_trait = arrogant
|
|
has_trait = ambitious
|
|
has_trait = greedy
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#Refuse
|
|
option = {
|
|
trigger = {
|
|
#Sorry AI... they can force you out of using this option
|
|
NAND = {
|
|
scope:recipient = { is_ai = yes }
|
|
exists = scope:forced_acceptance
|
|
}
|
|
}
|
|
name = pam_interactions_events.0034.b
|
|
show_as_tooltip = {
|
|
scope:actor = {
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_relation
|
|
}
|
|
pam_negotiate_land_relation_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_piety
|
|
}
|
|
pam_negotiate_land_piety_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
pam_negotiate_land_legitimacy_effect = yes
|
|
}
|
|
}
|
|
clergy_land_refusal_legitimacy_piety_effect = yes
|
|
}
|
|
#failure event for actor
|
|
if = {
|
|
limit = {
|
|
NOT = {
|
|
exists = scope:method_none
|
|
}
|
|
}
|
|
scope:actor = {
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = refusal_opinion
|
|
opinion = {
|
|
value = -10
|
|
if = {
|
|
limit = {
|
|
scope:actor.highest_held_title_tier <= scope:target.tier
|
|
}
|
|
multiply = 4
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:actor.highest_held_title_tier_minus_one = scope:target.tier
|
|
}
|
|
multiply = 3
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:actor.highest_held_title_tier_minus_two = scope:target.tier
|
|
}
|
|
multiply = 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:actor = { trigger_event = pam_interactions_events.0036 }
|
|
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_hook
|
|
}
|
|
stress_impact = {
|
|
craven = minor_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
trusting = major_stress_impact_gain
|
|
generous = minor_stress_impact_gain
|
|
|
|
just = major_stress_impact_gain
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = scope:method_relation
|
|
}
|
|
stress_impact = {
|
|
craven = minor_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
trusting = medium_stress_impact_gain
|
|
generous = major_stress_impact_gain
|
|
forgiving = medium_stress_impact_gain
|
|
|
|
compassionate = major_stress_impact_gain
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = scope:method_piety
|
|
}
|
|
stress_impact = {
|
|
craven = minor_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
trusting = minor_stress_impact_gain
|
|
generous = minor_stress_impact_gain
|
|
|
|
zealous = major_stress_impact_gain
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
stress_impact = {
|
|
craven = major_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
trusting = minor_stress_impact_gain
|
|
generous = minor_stress_impact_gain
|
|
|
|
shy = minor_stress_impact_gain
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
exists = scope:method_gold
|
|
}
|
|
stress_impact = {
|
|
craven = minor_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
trusting = minor_stress_impact_gain
|
|
|
|
greedy = medium_stress_impact_gain
|
|
}
|
|
}
|
|
else = {
|
|
stress_impact = {
|
|
craven = minor_stress_impact_gain
|
|
humble = minor_stress_impact_gain
|
|
trusting = minor_stress_impact_gain
|
|
generous = minor_stress_impact_gain
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 80
|
|
|
|
modifier = {
|
|
ai_boldness < medium_positive_ai_value
|
|
current_military_strength < scope:actor.current_military_strength
|
|
factor = 0.5
|
|
}
|
|
modifier = {
|
|
OR = {
|
|
AND = {
|
|
ai_boldness < medium_positive_ai_value
|
|
twice_current_military_strength < scope:actor.current_military_strength
|
|
}
|
|
AND = {
|
|
ai_boldness < medium_negative_ai_value
|
|
current_military_strength < scope:actor.current_military_strength
|
|
}
|
|
}
|
|
factor = 0.5
|
|
}
|
|
modifier = {
|
|
OR = {
|
|
AND = {
|
|
ai_boldness < medium_positive_ai_value
|
|
twice_current_military_strength < scope:actor.half_current_military_strength
|
|
}
|
|
AND = {
|
|
ai_boldness < medium_negative_ai_value
|
|
twice_current_military_strength < scope:actor.current_military_strength
|
|
}
|
|
}
|
|
factor = 0.5
|
|
}
|
|
|
|
#Reduce based on personality (forecasted in prior event)
|
|
modifier = {
|
|
factor = 0.1
|
|
trigger_if = {
|
|
limit = {
|
|
exists = scope:method_hook
|
|
}
|
|
OR = {
|
|
has_trait = trusting
|
|
has_trait = just
|
|
ai_honor > medium_positive_ai_value
|
|
}
|
|
}
|
|
trigger_else_if = {
|
|
limit = {
|
|
exists = scope:method_relation
|
|
}
|
|
OR = {
|
|
has_trait = trusting
|
|
has_trait = generous
|
|
has_trait = forgiving
|
|
has_trait = compassionate
|
|
ai_compassion > medium_positive_ai_value
|
|
}
|
|
}
|
|
trigger_else_if = {
|
|
limit = {
|
|
exists = scope:method_piety
|
|
}
|
|
OR = {
|
|
has_trait = zealous
|
|
ai_zeal > medium_positive_ai_value
|
|
}
|
|
}
|
|
trigger_else_if = {
|
|
limit = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
OR = {
|
|
has_trait = craven
|
|
ai_zeal < medium_negative_ai_value
|
|
}
|
|
}
|
|
trigger_else_if = {
|
|
limit = {
|
|
exists = scope:method_gold
|
|
}
|
|
OR = {
|
|
has_trait = greedy
|
|
ai_greed > medium_positive_ai_value
|
|
}
|
|
}
|
|
trigger_else = {
|
|
always = no
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#SUCCESS EVENT! For actor
|
|
pam_interactions_events.0035 = {
|
|
type = character_event
|
|
title = pam_interactions_events.0035.t
|
|
|
|
desc = {
|
|
desc = pam_interactions_events.0035.desc_intro
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_hook
|
|
}
|
|
desc = pam_interactions_events.0035.desc_hook
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_relation
|
|
}
|
|
desc = pam_interactions_events.0035.desc_relation
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_piety
|
|
}
|
|
desc = pam_interactions_events.0035.desc_piety
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
desc = pam_interactions_events.0035.desc_legitimacy
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_gold
|
|
}
|
|
desc = pam_interactions_events.0035.desc_gold
|
|
}
|
|
desc = pam_interactions_events.0035.desc_fallback
|
|
}
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:vassal ?= scope:target.holder
|
|
}
|
|
desc = pam_interactions_events.0035.desc_vassal
|
|
}
|
|
desc = pam_interactions_events.0035.desc
|
|
}
|
|
|
|
}
|
|
theme = vassal
|
|
override_background = {
|
|
reference = holy_site_generic
|
|
}
|
|
left_portrait = {
|
|
character = scope:representative
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:secondary_recipient = scope:representative
|
|
OR = {
|
|
scope:representative.faith.religion = religion:catholic_religion
|
|
scope:representative.faith.religion = religion:eastern_orthodox_religion
|
|
scope:representative.faith.religion = religion:protestant_religion
|
|
scope:representative.faith.religion = religion:oriental_orthodox_religion
|
|
}
|
|
}
|
|
animation = divine_gesture_1
|
|
}
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:actor = {
|
|
is_liege_or_above_of = scope:recipient
|
|
}
|
|
OR = {
|
|
scope:representative.faith.religion = religion:catholic_religion
|
|
scope:representative.faith.religion = religion:eastern_orthodox_religion
|
|
scope:representative.faith.religion = religion:protestant_religion
|
|
scope:representative.faith.religion = religion:oriental_orthodox_religion
|
|
}
|
|
}
|
|
animation = divine_gesture_2
|
|
}
|
|
animation = reception_groom_left
|
|
camera = camera_event_very_left
|
|
}
|
|
right_portrait = {
|
|
character = scope:recipient
|
|
triggered_animation = {
|
|
trigger = {
|
|
OR = {
|
|
scope:recipient = {
|
|
is_vassal_or_below_of = scope:actor
|
|
}
|
|
scope:recipient.highest_held_title_tier <= scope:actor.highest_held_title_tier_minus_two
|
|
}
|
|
}
|
|
animation = obsequious_bow
|
|
}
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:recipient.faith.religion = religion:islam_religion
|
|
}
|
|
animation = prayer_muslim
|
|
}
|
|
animation = prayer_standing
|
|
}
|
|
lower_center_portrait = scope:actor_non_present
|
|
lower_right_portrait = scope:vassal
|
|
trigger = {
|
|
is_alive = yes
|
|
is_imprisoned = no
|
|
is_ruler = yes
|
|
scope:recipient = {
|
|
is_ruler = yes
|
|
is_alive = yes
|
|
trigger_if = {
|
|
limit = {
|
|
is_imprisoned = yes
|
|
}
|
|
imprisoner = {
|
|
OR = {
|
|
this = root
|
|
any_liege_or_above = {
|
|
this = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:target.holder ?= {
|
|
OR = {
|
|
this = scope:recipient
|
|
is_vassal_or_below_of = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
|
|
immediate = {
|
|
#Notify involved vassals before the transfer so the message tooltip still matches
|
|
hidden_effect = {
|
|
scope:actor = {
|
|
every_vassal_or_below = {
|
|
limit = {
|
|
is_ai = no
|
|
NOT = {
|
|
this = scope:vassal
|
|
}
|
|
}
|
|
send_interface_message = {
|
|
type = msg_liege_gained_title
|
|
title = clergy_transfer_land_third_person_tt
|
|
left_icon = scope:actor
|
|
right_icon = scope:target
|
|
scope:actor = {
|
|
show_as_tooltip = { ecclesiastic_transfer_land_interaction_transfer_effect = yes }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:recipient = {
|
|
every_vassal_or_below = {
|
|
limit = {
|
|
is_ai = no
|
|
NOT = {
|
|
this = scope:vassal
|
|
}
|
|
}
|
|
send_interface_message = {
|
|
type = msg_liege_ceded_title
|
|
title = clergy_transfer_land_third_person_tt
|
|
left_icon = scope:actor
|
|
right_icon = scope:target
|
|
scope:actor = {
|
|
show_as_tooltip = { ecclesiastic_transfer_land_interaction_transfer_effect = yes }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:secondary_recipient = {
|
|
send_interface_message = {
|
|
type = msg_accomplice_gained_title
|
|
title = clergy_transfer_land_third_person_tt
|
|
left_icon = scope:actor
|
|
right_icon = scope:target
|
|
scope:actor = {
|
|
show_as_tooltip = { ecclesiastic_transfer_land_interaction_transfer_effect = yes }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_hook
|
|
}
|
|
pam_negotiate_land_hook_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_relation
|
|
}
|
|
pam_negotiate_land_relation_accept_effect = yes
|
|
}
|
|
#Forcing success has a cost
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_piety
|
|
pam_negotiate_land_forced_piety_level_trigger = yes
|
|
}
|
|
pam_negotiate_land_piety_effect = yes
|
|
}
|
|
#Forcing success has a cost
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_legitimacy
|
|
pam_negotiate_land_forced_legitimacy_level_trigger = yes
|
|
}
|
|
pam_negotiate_land_legitimacy_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_gold
|
|
}
|
|
pam_negotiate_land_gold_effect = yes
|
|
}
|
|
ecclesiastic_transfer_land_interaction_transfer_effect = yes
|
|
if = {
|
|
limit = {
|
|
exists = scope:clergy_forced_acceptance
|
|
}
|
|
custom_tooltip = clergy_forced_transfer_acceptance_actor_tt
|
|
}
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0035.a
|
|
}
|
|
}
|
|
#FAIL EVENT! For actor
|
|
pam_interactions_events.0036 = {
|
|
type = character_event
|
|
title = pam_interactions_events.0036.t
|
|
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
OR = {
|
|
ai_boldness <= medium_negative_ai_value
|
|
AND = {
|
|
ai_boldness <= medium_positive_ai_value
|
|
current_military_strength < scope:actor.half_current_military_strength
|
|
}
|
|
}
|
|
OR = {
|
|
government_has_flag = government_is_republic
|
|
government_has_mechanic = administrative
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0036.desc_intro_admin
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
OR = {
|
|
ai_boldness <= medium_negative_ai_value
|
|
AND = {
|
|
ai_boldness <= medium_positive_ai_value
|
|
current_military_strength < scope:actor.half_current_military_strength
|
|
}
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0036.desc_intro_afraid
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
ai_zeal >= medium_positive_ai_value
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0036.desc_intro_pious
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
OR = {
|
|
government_has_flag = government_is_republic
|
|
government_has_mechanic = administrative
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0036.desc_intro_admin
|
|
}
|
|
desc = pam_interactions_events.0036.desc_intro
|
|
}
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_hook
|
|
}
|
|
desc = pam_interactions_events.0036.desc_hook
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_relation
|
|
}
|
|
desc = pam_interactions_events.0036.desc_relation
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_piety
|
|
}
|
|
desc = pam_interactions_events.0036.desc_piety
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
desc = pam_interactions_events.0036.desc_legitimacy
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
exists = scope:method_gold
|
|
}
|
|
desc = pam_interactions_events.0036.desc_gold
|
|
}
|
|
desc = pam_interactions_events.0036.desc_fallback
|
|
}
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
OR = {
|
|
ai_boldness <= medium_negative_ai_value
|
|
AND = {
|
|
ai_boldness <= medium_positive_ai_value
|
|
current_military_strength < scope:actor.half_current_military_strength
|
|
}
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0036.desc_afraid
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
ai_zeal >= medium_positive_ai_value
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0036.desc_pious
|
|
}
|
|
desc = pam_interactions_events.0036.desc
|
|
}
|
|
}
|
|
theme = war
|
|
override_background = {
|
|
reference = holy_site_generic
|
|
}
|
|
left_portrait = {
|
|
character = scope:representative
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:actor = {
|
|
OR = {
|
|
current_military_strength >= scope:representative.twice_current_military_strength
|
|
ai_boldness >= medium_positive_ai_value
|
|
}
|
|
NOT = {
|
|
ai_compassion >= medium_positive_ai_value
|
|
}
|
|
}
|
|
}
|
|
animation = rage
|
|
}
|
|
animation = disappointed
|
|
camera = camera_event_very_left
|
|
}
|
|
right_portrait = {
|
|
character = scope:recipient
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
OR = {
|
|
faith.religion = religion:catholic_religion
|
|
faith.religion = religion:protestant_religion
|
|
faith.religion = religion:eastern_orthodox_religion
|
|
faith.religion = religion:oriental_orthodox_religion
|
|
}
|
|
OR = {
|
|
ai_zeal > medium_positive_ai_value
|
|
ai_compassion > medium_positive_ai_value
|
|
ai_boldness < low_negative_ai_value
|
|
}
|
|
current_military_strength < scope:actor.current_military_strength
|
|
}
|
|
}
|
|
animation = prayer_crossing
|
|
}
|
|
animation = dismissal
|
|
}
|
|
lower_center_portrait = scope:actor_non_present
|
|
lower_right_portrait = scope:vassal
|
|
trigger = {
|
|
is_alive = yes
|
|
is_imprisoned = no
|
|
is_ruler = yes
|
|
scope:recipient = {
|
|
is_ruler = yes
|
|
is_alive = yes
|
|
trigger_if = {
|
|
limit = {
|
|
is_imprisoned = yes
|
|
}
|
|
imprisoner = {
|
|
OR = {
|
|
this = root
|
|
any_liege_or_above = {
|
|
this = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:target.holder ?= {
|
|
OR = {
|
|
this = scope:recipient
|
|
is_vassal_or_below_of = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
hidden_effect = {
|
|
scope:secondary_recipient = {
|
|
send_interface_message = {
|
|
type = msg_accomplice_gained_title
|
|
title = clergy_transfer_land_refused_tt
|
|
left_icon = scope:recipient
|
|
right_icon = scope:target
|
|
custom_tooltip = msg_accomplice_denied_title
|
|
}
|
|
}
|
|
}
|
|
#save most important county in target held by recipient
|
|
if = {
|
|
limit = {
|
|
scope:target = {
|
|
tier = tier_county
|
|
}
|
|
}
|
|
scope:target = {
|
|
random_county_province = {
|
|
limit = {
|
|
is_county_capital = yes
|
|
}
|
|
save_scope_as = target_capital
|
|
}
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:target = {
|
|
any_de_jure_county = {
|
|
this = scope:recipient.capital_county
|
|
}
|
|
}
|
|
}
|
|
scope:recipient.capital_county = {
|
|
random_county_province = {
|
|
limit = {
|
|
is_county_capital = yes
|
|
}
|
|
save_scope_as = target_capital
|
|
}
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:target = {
|
|
title_capital_county = {
|
|
holder = {
|
|
OR = {
|
|
this = scope:recipient
|
|
any_liege_or_above = {
|
|
this = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:target = {
|
|
title_capital_county = {
|
|
random_county_province = {
|
|
limit = {
|
|
is_county_capital = yes
|
|
}
|
|
save_scope_as = target_capital
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
scope:target = {
|
|
ordered_de_jure_county = {
|
|
order_by = development_level
|
|
limit = {
|
|
OR = {
|
|
holder = scope:recipient
|
|
holder = {
|
|
any_liege_or_above = {
|
|
this = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
}
|
|
random_county_province = {
|
|
limit = {
|
|
is_county_capital = yes
|
|
}
|
|
save_scope_as = target_capital
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:recipient = { custom_tooltip = clergy_land_transfer_refusal_tt }
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_relation
|
|
}
|
|
pam_negotiate_land_relation_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_piety
|
|
}
|
|
pam_negotiate_land_piety_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:method_legitimacy
|
|
}
|
|
pam_negotiate_land_legitimacy_effect = yes
|
|
}
|
|
clergy_land_refusal_legitimacy_piety_effect = yes
|
|
}
|
|
option = {
|
|
name = {
|
|
trigger = {
|
|
exists = scope:method_relation
|
|
}
|
|
text = pam_interactions_events.0036.a_relation
|
|
}
|
|
name = {
|
|
trigger = {
|
|
NOT = { exists = scope:method_relation }
|
|
}
|
|
text = pam_interactions_events.0036.a
|
|
}
|
|
}
|
|
}
|
|
#Non-recipient holder of target title is informed they're being transferred
|
|
pam_interactions_events.0037 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0037.opening
|
|
}
|
|
sender = scope:recipient
|
|
desc = pam_interactions_events.0037.desc
|
|
|
|
immediate = {
|
|
custom_tooltip = pam_interactions_events.0037_new_liege_tt
|
|
}
|
|
#I can refuse! (player only)
|
|
option = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
NOT = { has_realm_law = crown_authority_3 }
|
|
}
|
|
NOT = {
|
|
government_has_mechanic = administrative
|
|
}
|
|
}
|
|
show_as_unavailable = {
|
|
always = yes
|
|
}
|
|
name = pam_interactions_events.0037.a
|
|
flavor = pam_interactions_events.0037.a.tt
|
|
|
|
create_title_and_vassal_change = {
|
|
type = independency
|
|
save_scope_as = change
|
|
add_claim_on_loss = yes
|
|
}
|
|
becomes_independent = {
|
|
change = scope:change
|
|
}
|
|
resolve_title_and_vassal_change = scope:change
|
|
|
|
add_piety = clergy_land_refusal_small_piety_value
|
|
add_piety_experience = clergy_land_refusal_small_piety_value
|
|
if = {
|
|
limit = {
|
|
has_legitimacy = yes
|
|
}
|
|
add_legitimacy = clergy_land_refusal_small_legitimacy_vassal_value
|
|
}
|
|
else = {
|
|
add_prestige = clergy_land_refusal_small_prestige_vassal_value
|
|
}
|
|
reverse_add_opinion = {
|
|
modifier = refused_vassal_transfer
|
|
target = scope:secondary_recipient
|
|
opinion = -50
|
|
}
|
|
reverse_add_opinion = {
|
|
modifier = refused_vassal_transfer
|
|
target = scope:actor
|
|
opinion = -80
|
|
}
|
|
reverse_add_opinion = {
|
|
modifier = refused_vassal_transfer
|
|
target = scope:recipient
|
|
opinion = -20
|
|
}
|
|
scope:actor = {
|
|
progress_towards_rival_effect = {
|
|
REASON = rival_refused_vassal_transfer
|
|
CHARACTER = root
|
|
OPINION = 0
|
|
}
|
|
}
|
|
set_variable = {
|
|
name = refused_transfer_target
|
|
value = scope:actor
|
|
years = 10
|
|
}
|
|
set_variable = {
|
|
name = refused_transfer_liege
|
|
value = scope:recipient
|
|
years = 10
|
|
}
|
|
|
|
|
|
stress_impact = {
|
|
arrogant = medium_stress_impact_loss
|
|
fickle = medium_stress_impact_loss
|
|
stubborn = minor_stress_impact_loss
|
|
|
|
zealous = major_stress_impact_gain
|
|
trusting = major_stress_impact_gain
|
|
humble = major_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 0
|
|
}
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0037.b
|
|
flavor = pam_interactions_events.0037.b.tt
|
|
}
|
|
}
|
|
#fire toast from clergy land interaction for actor
|
|
pam_interactions_events.0038 = {
|
|
hidden = yes
|
|
immediate = {
|
|
send_interface_toast = {
|
|
type = event_toast_effect_neutral
|
|
title = clergy_land_transfer_acceptance_tt
|
|
left_icon = scope:secondary_recipient
|
|
show_as_tooltip = {
|
|
#You promised the church could inherit this title if it is ever without heirs
|
|
if = {
|
|
limit = {
|
|
scope:promise_church_succession = yes
|
|
}
|
|
scope:actor = {
|
|
set_fallback_succession_title = scope:secondary_recipient.primary_title
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:donate_faith = yes
|
|
}
|
|
pay_short_term_gold = {
|
|
target = scope:secondary_recipient
|
|
gold = scope:actor.medium_gold_value
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:use_hook = yes
|
|
has_usable_hook = scope:secondary_recipient
|
|
}
|
|
use_hook = scope:secondary_recipient
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:offer_hook = yes
|
|
}
|
|
scope:secondary_recipient = {
|
|
add_hook = {
|
|
type = strong_obligation_hook
|
|
target = scope:actor
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:offer_pilgrimage = yes
|
|
}
|
|
scope:actor = {
|
|
add_character_modifier = {
|
|
modifier = promised_pilgrimage_to_clergy_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:threaten_priest = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:secondary_recipient = {
|
|
this = scope:actor.faith.religious_head
|
|
}
|
|
}
|
|
change_spiritual_fulfillment = massive_spiritual_fulfillment_loss
|
|
add_piety_experience = massive_piety_loss
|
|
custom_tooltip = hof_increase_piety_sp_fulfillment_loss_secondary_tt
|
|
}
|
|
else = {
|
|
change_spiritual_fulfillment = major_spiritual_fulfillment_loss
|
|
add_piety_experience = major_piety_loss
|
|
}
|
|
scope:secondary_recipient = {
|
|
add_opinion = {
|
|
modifier = threatened_church_opinion
|
|
target = scope:actor
|
|
opinion = -50
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#Non-recipient holder of target title is informed their admin governorship is revoked and transferred
|
|
pam_interactions_events.0039 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0039.opening
|
|
}
|
|
sender = scope:recipient
|
|
desc = pam_interactions_events.0039.desc
|
|
|
|
immediate = {
|
|
custom_tooltip = pam_interactions_events.0039_revoked_governorship_tt
|
|
custom_tooltip = pam_interactions_events.0039_governorship_transfer_tt
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0039.a
|
|
}
|
|
}
|
|
#Delayed rivalry gain from title granting controversy
|
|
pam_interactions_events.0040 = {
|
|
hidden = yes
|
|
trigger = {
|
|
is_alive = yes
|
|
OR = {
|
|
AND = {
|
|
has_variable_list = denied_hegemony
|
|
any_in_list = {
|
|
variable = denied_hegemony
|
|
this = scope:puppet_or_actor
|
|
}
|
|
}
|
|
AND = {
|
|
has_variable_list = denied_empire
|
|
any_in_list = {
|
|
variable = denied_empire
|
|
this = scope:puppet_or_actor
|
|
}
|
|
}
|
|
AND = {
|
|
has_variable_list = denied_kingdom
|
|
any_in_list = {
|
|
variable = denied_kingdom
|
|
this = scope:puppet_or_actor
|
|
}
|
|
}
|
|
AND = {
|
|
has_variable_list = denied_duchy
|
|
any_in_list = {
|
|
variable = denied_duchy
|
|
this = scope:puppet_or_actor
|
|
}
|
|
}
|
|
AND = {
|
|
has_variable_list = denied_county
|
|
any_in_list = {
|
|
variable = denied_county
|
|
this = scope:puppet_or_actor
|
|
}
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
save_scope_as = rival_claimant
|
|
|
|
if = {
|
|
limit = {
|
|
has_relation_potential_rival = scope:puppet_or_actor
|
|
}
|
|
scope:puppet_or_actor = {
|
|
send_interface_toast = {
|
|
type = event_toast_effect_bad
|
|
title = claim_granting_rivalry.t
|
|
left_icon = root
|
|
|
|
root = {
|
|
progress_towards_rival_effect = {
|
|
REASON = rival_gave_away_my_claim
|
|
CHARACTER = scope:puppet_or_actor
|
|
OPINION = 0
|
|
}
|
|
}
|
|
custom_tooltip = ignored_claimant_tt
|
|
}
|
|
}
|
|
|
|
}
|
|
else = {
|
|
progress_towards_rival_effect = {
|
|
REASON = rival_gave_away_my_claim
|
|
CHARACTER = scope:puppet_or_actor
|
|
OPINION = 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Post divorce refusal event
|
|
pam_interactions_events.0050 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0050.opening
|
|
}
|
|
sender = scope:puppet_or_actor
|
|
desc = pam_interactions_events.0050.desc
|
|
|
|
#Become celibate, obviously
|
|
option = {
|
|
trigger = {
|
|
learning > extremely_high_skill_rating
|
|
scope:puppet_or_actor = { is_ai = yes }
|
|
NOR = {
|
|
rite = {
|
|
trait_is_virtue_rite = lustful
|
|
}
|
|
rite = {
|
|
trait_is_sin_rite = chaste
|
|
}
|
|
scope:puppet_or_actor = {
|
|
has_trait = lustful
|
|
}
|
|
}
|
|
}
|
|
name = pam_interactions_events.0050.aa
|
|
flavor = pam_interactions_events.0050.aa.tt
|
|
add_learning_lifestyle_xp = minor_lifestyle_xp
|
|
|
|
scope:puppet_or_actor = {
|
|
add_trait = celibate
|
|
if = {
|
|
limit = {
|
|
NOR = {
|
|
has_trait = gregarious
|
|
has_trait = reclusive
|
|
}
|
|
}
|
|
random = {
|
|
chance = {
|
|
value = 10
|
|
if = {
|
|
limit = {
|
|
ai_sociability <= high_negative_ai_value
|
|
}
|
|
add = 20
|
|
}
|
|
if = {
|
|
limit = {
|
|
ai_sociability < 0
|
|
}
|
|
add = 20
|
|
}
|
|
}
|
|
add_trait = reclusive
|
|
}
|
|
}
|
|
|
|
}
|
|
stress_impact = {
|
|
lustful = major_stress_impact_gain
|
|
gregarious = minor_stress_impact_gain
|
|
}
|
|
}
|
|
|
|
#God wants you to give your love another chance (good)
|
|
option = {
|
|
trigger = {
|
|
OR = {
|
|
diplomacy >= very_high_skill_rating
|
|
has_trait = family_first
|
|
piety_level >= 5
|
|
}
|
|
scope:puppet_or_actor = {
|
|
is_imprisoned = no
|
|
is_incapable = no
|
|
}
|
|
scope:secondary_recipient = {
|
|
is_imprisoned = no
|
|
is_incapable = no
|
|
}
|
|
}
|
|
name = pam_interactions_events.0050.a
|
|
flavor = pam_interactions_events.0050.a.tt
|
|
|
|
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
|
|
|
|
scope:puppet_or_actor = {
|
|
if = {
|
|
limit = {
|
|
is_ai = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
NOT = { has_relation_lover = scope:secondary_recipient }
|
|
scope:secondary_recipient = {
|
|
is_ai = yes
|
|
}
|
|
}
|
|
set_relation_lover = {
|
|
target = scope:secondary_recipient
|
|
reason = lover_rekindled_marriage
|
|
}
|
|
}
|
|
else = {
|
|
add_opinion = {
|
|
target = scope:secondary_recipient
|
|
modifier = loyalty_opinion
|
|
opinion = 50
|
|
}
|
|
reverse_add_opinion = {
|
|
target = scope:secondary_recipient
|
|
modifier = loyalty_opinion
|
|
opinion = 50
|
|
}
|
|
}
|
|
|
|
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = grateful_opinion
|
|
opinion = 40
|
|
}
|
|
add_character_modifier = {
|
|
modifier = rekindled_marriage_modifier
|
|
years = 10
|
|
desc = rekindled_marriage_compassion_tt
|
|
}
|
|
custom_tooltip = rekindled_marriage_compassion_tt
|
|
}
|
|
else = {
|
|
add_character_modifier = {
|
|
modifier = rekindled_marriage_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
scope:secondary_recipient = {
|
|
if = {
|
|
limit = {
|
|
is_ai = yes
|
|
}
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = grateful_opinion
|
|
opinion = 40
|
|
}
|
|
add_character_modifier = {
|
|
modifier = rekindled_marriage_modifier
|
|
years = 10
|
|
desc = rekindled_marriage_compassion_tt
|
|
}
|
|
custom_tooltip = rekindled_marriage_compassion_tt
|
|
}
|
|
else = {
|
|
add_character_modifier = {
|
|
modifier = rekindled_marriage_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
stress_impact = {
|
|
compassionate = minor_stress_impact_loss
|
|
forgiving = minor_stress_impact_loss
|
|
callous = major_stress_impact_gain
|
|
sadistic = major_stress_impact_gain
|
|
fickle = medium_stress_impact_gain
|
|
}
|
|
}
|
|
#God wants you to give your love another chance (normal)
|
|
option = {
|
|
trigger = {
|
|
NOR = {
|
|
diplomacy >= very_high_skill_rating
|
|
has_trait = family_first
|
|
piety_level >= 5
|
|
}
|
|
scope:puppet_or_actor = {
|
|
is_imprisoned = no
|
|
is_incapable = no
|
|
}
|
|
scope:secondary_recipient = {
|
|
is_imprisoned = no
|
|
is_incapable = no
|
|
}
|
|
}
|
|
name = pam_interactions_events.0050.b
|
|
|
|
change_spiritual_fulfillment = miniscule_spiritual_fulfillment_value
|
|
|
|
scope:puppet_or_actor = {
|
|
if = {
|
|
limit = {
|
|
is_ai = yes
|
|
}
|
|
add_opinion = {
|
|
target = scope:secondary_recipient
|
|
modifier = loyalty_opinion
|
|
opinion = 30
|
|
}
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = grateful_opinion
|
|
opinion = 15
|
|
}
|
|
add_character_modifier = {
|
|
modifier = rekindled_marriage_modifier_small
|
|
years = 10
|
|
desc = rekindled_marriage_compassion_small_tt
|
|
}
|
|
custom_tooltip = rekindled_marriage_compassion_small_tt
|
|
}
|
|
else = {
|
|
add_character_modifier = {
|
|
modifier = rekindled_marriage_modifier_small
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
scope:secondary_recipient = {
|
|
if = {
|
|
limit = {
|
|
is_ai = yes
|
|
}
|
|
add_opinion = {
|
|
target = scope:puppet_or_actor
|
|
modifier = loyalty_opinion
|
|
opinion = 30
|
|
}
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = grateful_opinion
|
|
opinion = 15
|
|
}
|
|
add_character_modifier = {
|
|
modifier = rekindled_marriage_modifier_small
|
|
years = 5
|
|
desc = rekindled_marriage_compassion_small_tt
|
|
}
|
|
custom_tooltip = rekindled_marriage_compassion_small_tt
|
|
}
|
|
else = {
|
|
add_character_modifier = {
|
|
modifier = rekindled_marriage_modifier_small
|
|
years = 5
|
|
}
|
|
}
|
|
}
|
|
stress_impact = {
|
|
compassionate = miniscule_stress_impact_loss
|
|
forgiving = miniscule_stress_impact_loss
|
|
callous = major_stress_impact_gain
|
|
sadistic = major_stress_impact_gain
|
|
fickle = medium_stress_impact_gain
|
|
}
|
|
}
|
|
#you are a sinful liar and deserve your misery
|
|
option = {
|
|
name = pam_interactions_events.0050.c
|
|
|
|
if = {
|
|
limit = {
|
|
OR = {
|
|
scope:divorce_justified ?= yes
|
|
exists = scope:ai_divorce_justified
|
|
}
|
|
}
|
|
add_piety = {
|
|
value = major_piety_gain
|
|
}
|
|
scope:puppet_or_actor = {
|
|
add_piety_level = -1
|
|
}
|
|
}
|
|
else = {
|
|
add_piety = {
|
|
value = minor_piety_gain
|
|
}
|
|
scope:puppet_or_actor = {
|
|
add_piety_experience = medium_piety_loss
|
|
}
|
|
}
|
|
progress_towards_rival_effect = {
|
|
REASON = rival_called_out_sin
|
|
CHARACTER = scope:puppet_or_actor
|
|
OPINION = 0
|
|
}
|
|
scope:puppet_or_actor = {
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = angry_opinion
|
|
opinion = -20
|
|
}
|
|
}
|
|
scope:secondary_recipient = {
|
|
add_opinion = {
|
|
target = scope:puppet_or_actor
|
|
modifier = hate_opinion
|
|
opinion = -50
|
|
}
|
|
}
|
|
stress_impact = {
|
|
zealous = minor_stress_impact_loss
|
|
just = minor_stress_impact_loss
|
|
forgiving = major_stress_impact_gain
|
|
compassionate = medium_stress_impact_gain
|
|
}
|
|
}
|
|
#Just sort your life out
|
|
option = {
|
|
name = pam_interactions_events.0050.d
|
|
}
|
|
}
|
|
|
|
#Cleric is granting divorce, but can pick side effects
|
|
pam_interactions_events.0060 = {
|
|
type = character_event
|
|
title = pam_interactions_events.0060.t
|
|
|
|
desc = pam_interactions_events.0060.desc
|
|
theme = marriage
|
|
override_background = {
|
|
reference = relaxing_room
|
|
}
|
|
left_portrait = {
|
|
character = scope:puppet_or_actor
|
|
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:puppet_or_actor = {
|
|
opinion = {
|
|
target = scope:secondary_recipient
|
|
value >= 50
|
|
}
|
|
}
|
|
}
|
|
animation = sadness
|
|
}
|
|
animation = dismissal
|
|
camera = camera_event_center_pointing_left
|
|
}
|
|
right_portrait = {
|
|
character = scope:secondary_recipient
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:secondary_recipient = {
|
|
opinion = {
|
|
target = scope:puppet_or_actor
|
|
value >= 100
|
|
}
|
|
}
|
|
}
|
|
animation = mental_anguish
|
|
}
|
|
triggered_animation = {
|
|
trigger = {
|
|
scope:secondary_recipient = {
|
|
opinion = {
|
|
target = scope:puppet_or_actor
|
|
value >= 50
|
|
}
|
|
}
|
|
}
|
|
animation = grief
|
|
}
|
|
animation = stress
|
|
camera = camera_event_right_pointing_left
|
|
}
|
|
lower_center_portrait = scope:forcing_divorce
|
|
lower_left_portrait = scope:lease_order.leader
|
|
immediate = {
|
|
scope:divorcer = {
|
|
save_scope_as = puppet_or_actor
|
|
}
|
|
scope:puppet_or_actor = {
|
|
save_scope_as = bg_override_char
|
|
}
|
|
#set up order to lease land to
|
|
if = {
|
|
limit = {
|
|
scope:puppet_or_actor = {
|
|
divorce_can_cause_holy_order_lease_trigger = yes
|
|
}
|
|
}
|
|
#military order
|
|
if = {
|
|
limit = {
|
|
scope:puppet_or_actor = {
|
|
any_held_title = {
|
|
title_tier = county
|
|
any_county_province = {
|
|
barony = {
|
|
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
}
|
|
}
|
|
faith = {
|
|
any_faith_holy_order = {
|
|
leader ?= {
|
|
government_has_flag = government_is_military_holy_order
|
|
}
|
|
holy_order_range_trigger = { CHARACTER = scope:recipient }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:puppet_or_actor.faith = {
|
|
random_faith_holy_order = {
|
|
limit = {
|
|
holy_order_patron ?= scope:recipient
|
|
leader ?= {
|
|
government_has_flag = government_is_military_holy_order
|
|
}
|
|
holy_order_range_trigger = { CHARACTER = scope:recipient }
|
|
}
|
|
alternative_limit = {
|
|
leader ?= {
|
|
government_has_flag = government_is_military_holy_order
|
|
}
|
|
holy_order_range_trigger = { CHARACTER = scope:recipient }
|
|
}
|
|
save_scope_as = lease_order
|
|
}
|
|
}
|
|
scope:puppet_or_actor = {
|
|
random_held_title = {
|
|
title_tier = county
|
|
limit = {
|
|
any_county_province = {
|
|
barony = {
|
|
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
}
|
|
NOT = {
|
|
this = scope:puppet_or_actor.capital_county
|
|
}
|
|
}
|
|
alternative_limit = {
|
|
any_county_province = {
|
|
barony = {
|
|
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
}
|
|
}
|
|
random_county_province = {
|
|
limit = {
|
|
barony = {
|
|
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
}
|
|
barony = {
|
|
save_scope_as = barony_to_lease
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#monastic order
|
|
if = {
|
|
limit = {
|
|
NOT = {
|
|
exists = scope:lease_order
|
|
}
|
|
}
|
|
scope:puppet_or_actor.faith = {
|
|
random_faith_holy_order = {
|
|
limit = {
|
|
holy_order_patron ?= scope:recipient
|
|
holy_order_range_trigger = { CHARACTER = scope:recipient }
|
|
}
|
|
alternative_limit = {
|
|
holy_order_range_trigger = { CHARACTER = scope:recipient }
|
|
}
|
|
save_scope_as = lease_order
|
|
}
|
|
}
|
|
scope:puppet_or_actor = {
|
|
random_held_title = {
|
|
title_tier = county
|
|
limit = {
|
|
any_county_province = {
|
|
barony = {
|
|
barony_is_valid_for_monastic_order_lease_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
}
|
|
NOT = {
|
|
this = scope:puppet_or_actor.capital_county
|
|
}
|
|
}
|
|
alternative_limit = {
|
|
any_county_province = {
|
|
barony = {
|
|
barony_is_valid_for_monastic_order_lease_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
}
|
|
}
|
|
random_county_province = {
|
|
limit = {
|
|
barony = {
|
|
barony_is_valid_for_monastic_order_lease_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
}
|
|
barony = {
|
|
save_scope_as = barony_to_lease
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#Set up order to accept divorcee (but you get them as courtier)
|
|
if = {
|
|
limit = {
|
|
scope:puppet_or_actor = { divorce_can_put_spouse_in_monastery_trigger = yes }
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:lease_order ?= {
|
|
leader = {
|
|
government_has_flag = government_is_monastic_holy_order
|
|
trigger_if = {
|
|
limit = {
|
|
scope:secondary_recipient = {
|
|
is_male = yes
|
|
}
|
|
}
|
|
NOT = {
|
|
has_realm_law = female_monastic_holy_order_succession_law
|
|
}
|
|
}
|
|
trigger_else = {
|
|
NOT = {
|
|
has_realm_law = male_monastic_holy_order_succession_law
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:lease_order = {
|
|
save_scope_as = divorcee_joining_order
|
|
leader.primary_title = {
|
|
save_scope_as = joining_order_title
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
scope:puppet_or_actor.faith = {
|
|
random_faith_holy_order = {
|
|
limit = {
|
|
holy_order_patron ?= scope:recipient
|
|
holy_order_range_trigger = { CHARACTER = scope:recipient }
|
|
leader ?= {
|
|
government_has_flag = government_is_monastic_holy_order
|
|
}
|
|
}
|
|
alternative_limit = {
|
|
holy_order_range_trigger = { CHARACTER = scope:recipient }
|
|
leader ?= {
|
|
government_has_flag = government_is_monastic_holy_order
|
|
trigger_if = {
|
|
limit = {
|
|
scope:secondary_recipient = {
|
|
is_male = yes
|
|
}
|
|
}
|
|
NOT = {
|
|
has_realm_law = female_monastic_holy_order_succession_law
|
|
}
|
|
}
|
|
trigger_else = {
|
|
NOT = {
|
|
has_realm_law = male_monastic_holy_order_succession_law
|
|
}
|
|
}
|
|
}
|
|
}
|
|
save_scope_as = divorcee_joining_order
|
|
leader.primary_title = {
|
|
save_scope_as = joining_order_title
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#house feud
|
|
option = {
|
|
trigger = {
|
|
scope:puppet_or_actor = {
|
|
divorce_can_cause_house_feud_trigger = yes
|
|
}
|
|
}
|
|
name = pam_interactions_events.0060.a
|
|
flavor = pam_interactions_events.0060.a.tt
|
|
show_as_tooltip = {
|
|
divorce_house_feud_effect = yes
|
|
}
|
|
scope:puppet_or_actor = {
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = outraged_opinion
|
|
opinion = -50
|
|
}
|
|
}
|
|
scope:secondary_recipient = {
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = outraged_opinion
|
|
opinion = -50
|
|
}
|
|
}
|
|
scope:puppet_or_actor.house.house_head = {
|
|
if = {
|
|
limit = {
|
|
NOR = {
|
|
this = scope:puppet_or_actor
|
|
this = scope:recipient
|
|
}
|
|
}
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = outraged_opinion
|
|
opinion = -50
|
|
}
|
|
}
|
|
}
|
|
scope:secondary_recipient.house.house_head = {
|
|
if = {
|
|
limit = {
|
|
NOR = {
|
|
this = scope:secondary_recipient
|
|
this = scope:recipient
|
|
}
|
|
}
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = outraged_opinion
|
|
opinion = -50
|
|
}
|
|
}
|
|
}
|
|
custom_tooltip = divorce_cleric_perspective_tt
|
|
save_scope_as = price_feud
|
|
stress_impact = {
|
|
zealous = miniscule_stress_impact_loss
|
|
content = minor_stress_impact_gain
|
|
craven = major_stress_impact_gain
|
|
compassionate = major_stress_impact_gain
|
|
forgiving = major_stress_impact_gain
|
|
humble = medium_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 50000
|
|
ai_value_modifier = {
|
|
ai_vengefulness = 1
|
|
ai_compassion = -1
|
|
ai_boldness = 0.5
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:puppet_or_actor
|
|
multiplier = -2
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:secondary_recipient
|
|
multiplier = -2
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_trait = content
|
|
has_trait = compassionate
|
|
has_trait = forgiving
|
|
has_trait = craven
|
|
has_trait = humble
|
|
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:secondary_recipient }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#holy order lease
|
|
option = {
|
|
trigger = {
|
|
exists = scope:lease_order
|
|
scope:puppet_or_actor = {
|
|
divorce_can_cause_holy_order_lease_trigger = yes
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:lease_order.leader = {
|
|
government_has_flag = government_is_monastic_holy_order
|
|
}
|
|
}
|
|
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
|
|
}
|
|
add_piety = medium_piety_gain
|
|
name = pam_interactions_events.0060.b
|
|
flavor = pam_interactions_events.0060.b.tt
|
|
show_as_tooltip = {
|
|
divorce_holy_order_lease_effect = yes
|
|
}
|
|
scope:puppet_or_actor = {
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = audacity_opinion
|
|
opinion = -25
|
|
}
|
|
}
|
|
custom_tooltip = divorce_cleric_perspective_tt
|
|
save_scope_as = price_lease
|
|
stress_impact = {
|
|
zealous = miniscule_stress_impact_loss
|
|
content = minor_stress_impact_gain
|
|
forgiving = minor_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
ai_value_modifier = {
|
|
ai_vengefulness = 0.5
|
|
ai_zeal = 1
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:puppet_or_actor
|
|
multiplier = -1.5
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:secondary_recipient
|
|
multiplier = 0.5
|
|
}
|
|
modifier = {
|
|
add = -50
|
|
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_trait = content
|
|
has_trait = forgiving
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#hook
|
|
option = {
|
|
trigger = {
|
|
scope:puppet_or_actor = {
|
|
divorce_can_cause_hook_trigger = yes
|
|
}
|
|
}
|
|
name = pam_interactions_events.0060.c
|
|
show_as_tooltip = {
|
|
divorce_get_hook_effect = yes
|
|
}
|
|
if = {
|
|
limit = {
|
|
exists = scope:forcing_divorce
|
|
}
|
|
scope:forcing_divorce = {
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = audacity_opinion
|
|
opinion = -25
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
scope:puppet_or_actor = {
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = audacity_opinion
|
|
opinion = -25
|
|
}
|
|
}
|
|
}
|
|
|
|
custom_tooltip = divorce_cleric_perspective_tt
|
|
save_scope_as = price_hook
|
|
stress_impact = {
|
|
ambitious = miniscule_stress_impact_loss
|
|
content = medium_stress_impact_gain
|
|
generous = medium_stress_impact_gain
|
|
humble = medium_stress_impact_gain
|
|
forgiving = medium_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 125
|
|
ai_value_modifier = {
|
|
ai_vengefulness = 0.5
|
|
ai_greed = 1
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:puppet_or_actor
|
|
multiplier = -0.5
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:secondary_recipient
|
|
multiplier = 0.5
|
|
}
|
|
modifier = {
|
|
add = 40
|
|
exists = scope:forcing_divorce
|
|
scope:forcing_divorce.highest_held_title_tier_minus_two > scope:puppet_or_actor.highest_held_title_tier
|
|
}
|
|
modifier = {
|
|
add = 20
|
|
exists = scope:forcing_divorce
|
|
scope:forcing_divorce.highest_held_title_tier_minus_one > scope:puppet_or_actor.highest_held_title_tier
|
|
}
|
|
modifier = {
|
|
add = 10
|
|
exists = scope:forcing_divorce
|
|
scope:forcing_divorce.highest_held_title_tier > scope:puppet_or_actor.highest_held_title_tier
|
|
}
|
|
modifier = {
|
|
add = 50
|
|
exists = scope:forcing_divorce
|
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:forcing_divorce }
|
|
}
|
|
modifier = {
|
|
add = -50
|
|
exists = scope:forcing_divorce
|
|
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:forcing_divorce }
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_trait = greedy
|
|
has_trait = content
|
|
has_trait = humble
|
|
has_trait = forgiving
|
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:secondary_recipient }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#monk/nun
|
|
option = {
|
|
trigger = {
|
|
exists = scope:divorcee_joining_order
|
|
scope:puppet_or_actor = {
|
|
divorce_can_put_spouse_in_monastery_trigger = yes
|
|
}
|
|
}
|
|
name = pam_interactions_events.0060.d
|
|
flavor = pam_interactions_events.0060.d.tt
|
|
if = {
|
|
limit = {
|
|
scope:secondary_recipient.house.house_head ?= {
|
|
highest_held_title_tier >= tier_barony
|
|
}
|
|
}
|
|
add_piety = {
|
|
value = minor_piety_gain
|
|
multiply = {
|
|
value = scope:secondary_recipient.house.house_head.highest_held_title_tier
|
|
subtract = 1
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
add_piety = miniscule_piety_gain
|
|
}
|
|
show_as_tooltip = {
|
|
divorce_put_spouse_in_monastery_effect = yes
|
|
}
|
|
scope:secondary_recipient = {
|
|
add_opinion = {
|
|
target = scope:recipient
|
|
modifier = confusion_opinion
|
|
opinion = -25
|
|
}
|
|
}
|
|
custom_tooltip = divorce_cleric_perspective_tt
|
|
save_scope_as = price_vows
|
|
stress_impact = {
|
|
chaste = minor_stress_impact_loss
|
|
forgiving = medium_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
ai_value_modifier = {
|
|
ai_vengefulness = 0.5
|
|
ai_greed = -1
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:puppet_or_actor
|
|
multiplier = 0.5
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:secondary_recipient
|
|
multiplier = -2
|
|
}
|
|
modifier = {
|
|
add = -50
|
|
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:secondary_recipient }
|
|
}
|
|
modifier = {
|
|
factor = 0
|
|
OR = {
|
|
has_trait = forgiving
|
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:puppet_or_actor }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#no extra effects
|
|
option = {
|
|
name = pam_interactions_events.0060.e
|
|
custom_tooltip = divorce_cleric_perspective_tt
|
|
if = {
|
|
limit = {
|
|
exists = scope:forcing_divorce
|
|
}
|
|
scope:forcing_divorce = {
|
|
add_opinion = {
|
|
target = root
|
|
modifier = grateful_opinion
|
|
opinion = 20
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
scope:puppet_or_actor = {
|
|
add_opinion = {
|
|
target = root
|
|
modifier = grateful_opinion
|
|
opinion = 20
|
|
}
|
|
}
|
|
}
|
|
|
|
save_scope_as = price_none
|
|
ai_chance = {
|
|
base = 50
|
|
ai_value_modifier = {
|
|
ai_vengefulness = -1
|
|
ai_boldness = -1
|
|
ai_zeal = -1
|
|
ai_greed = -1
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:puppet_or_actor
|
|
multiplier = 1.5
|
|
}
|
|
opinion_modifier = {
|
|
who = root
|
|
opinion_target = scope:secondary_recipient
|
|
multiplier = 1.5
|
|
}
|
|
}
|
|
}
|
|
after = {
|
|
#Divorce might have been caused by House Head, who is bearing the brunt of it
|
|
if = {
|
|
limit = {
|
|
exists = scope:forcing_divorce
|
|
}
|
|
scope:forcing_divorce = {
|
|
trigger_event = religious_interaction.6
|
|
}
|
|
}
|
|
else = {
|
|
scope:puppet_or_actor = {
|
|
trigger_event = religious_interaction.1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Incite holy war event for character being incited
|
|
pam_interactions_events.0070 = {
|
|
type = character_event
|
|
title = pam_interactions_events.0070.t
|
|
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
NOT = {
|
|
scope:puppet_or_actor.religion = { is_in_family = rf_pagan }
|
|
}
|
|
scope:recipient.religion = { is_in_family = rf_pagan }
|
|
}
|
|
desc = pam_interactions_events.0070.desc_intro_pagan
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient.religion = scope:puppet_or_actor.religion
|
|
}
|
|
desc = pam_interactions_events.0070.desc_intro_heretic
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:puppet_or_actor.religion = religion:islam_religion
|
|
}
|
|
desc = pam_interactions_events.0070.desc_intro_infidel
|
|
}
|
|
desc = pam_interactions_events.0070.desc_intro_heathen
|
|
}
|
|
desc = pam_interactions_events.0070.desc
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:join_war ?= yes
|
|
}
|
|
desc = pam_interactions_events.0070.desc_outro_joining_war
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:fund_war ?= yes
|
|
}
|
|
desc = pam_interactions_events.0070.desc_outro_funding_war
|
|
}
|
|
}
|
|
}
|
|
theme = war
|
|
override_background = {
|
|
reference = temple
|
|
}
|
|
left_portrait = {
|
|
character = scope:puppet_or_actor
|
|
animation = condemnation
|
|
camera = camera_torso_scheme_player
|
|
}
|
|
widgets = {
|
|
widget = {
|
|
is_shown = {
|
|
OR = {
|
|
root.faith.religion = religion:catholic_religion
|
|
root.faith.religion = religion:protestant_religion
|
|
root.faith.religion = religion:eastern_orthodox_religion
|
|
root.faith.religion = religion:oriental_orthodox_religion
|
|
}
|
|
}
|
|
gui = event_window_widget_vfx_stained_glass
|
|
container = background_shader_vfx_container
|
|
}
|
|
widget = {
|
|
is_shown = {
|
|
OR = {
|
|
root.faith.religion = religion:catholic_religion
|
|
root.faith.religion = religion:protestant_religion
|
|
root.faith.religion = religion:eastern_orthodox_religion
|
|
root.faith.religion = religion:oriental_orthodox_religion
|
|
}
|
|
}
|
|
gui = "event_window_widget_vfx_conclusion_smoke"
|
|
container = "background_shader_vfx_container"
|
|
}
|
|
}
|
|
lower_right_portrait = scope:recipient
|
|
immediate = {
|
|
play_music_cue = "mx_cue_anathema"
|
|
scope:puppet_or_actor = {
|
|
save_scope_as = bg_override_char
|
|
}
|
|
}
|
|
#Accept
|
|
option = {
|
|
name = pam_interactions_events.0070.a
|
|
show_as_tooltip = {
|
|
pam_incite_holy_war_effect = yes
|
|
}
|
|
scope:actor = { trigger_event = pam_interactions_events.0071 }
|
|
}
|
|
#refuse
|
|
option = {
|
|
name = pam_interactions_events.0070.b
|
|
scope:recipient = {
|
|
add_opinion = {
|
|
target = root
|
|
modifier = paid_me_respect
|
|
opinion = {
|
|
value = 20
|
|
multiply = {
|
|
value = scope:target.tier
|
|
subtract = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
NOT = {
|
|
culture = scope:recipient.culture
|
|
}
|
|
any_sub_realm_county = {
|
|
culture = root.culture
|
|
faith = root.faith
|
|
}
|
|
scope:recipient = {
|
|
any_sub_realm_county = {
|
|
culture = scope:recipient.culture
|
|
faith = scope:recipient.faith
|
|
}
|
|
}
|
|
}
|
|
culture = {
|
|
if = {
|
|
limit = {
|
|
scope:target.tier >= tier_kingdom
|
|
}
|
|
change_cultural_acceptance = {
|
|
target = scope:recipient.culture
|
|
value = medium_positive_culture_acceptance
|
|
desc = cultural_acceptance_gain_refused_incited_holy_war
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
scope:target.tier >= tier_duchy
|
|
}
|
|
change_cultural_acceptance = {
|
|
target = scope:recipient.culture
|
|
value = low_positive_culture_acceptance
|
|
desc = cultural_acceptance_gain_refused_incited_holy_war
|
|
}
|
|
}
|
|
else = {
|
|
change_cultural_acceptance = {
|
|
target = scope:recipient.culture
|
|
value = miniscule_positive_culture_acceptance
|
|
desc = cultural_acceptance_gain_refused_incited_holy_war
|
|
}
|
|
}
|
|
}
|
|
}
|
|
scope:actor = {
|
|
send_interface_toast = {
|
|
type = event_toast_effect_bad
|
|
title = refused_incite_war.t
|
|
left_icon = root
|
|
root = { pam_incite_war_refusal_effect = yes }
|
|
}
|
|
}
|
|
scope:puppet_or_actor = {
|
|
add_opinion = {
|
|
target = scope:secondary_recipient
|
|
modifier = refusal_opinion
|
|
opinion = {
|
|
value = -25
|
|
multiply = {
|
|
value = scope:target.tier
|
|
subtract = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:target.tier >= tier_duchy
|
|
}
|
|
progress_towards_rival_effect = {
|
|
REASON = rival_refused_call_to_holy_war
|
|
CHARACTER = scope:puppet_or_actor
|
|
OPINION = 0
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 0
|
|
}
|
|
}
|
|
}
|
|
#Incite holy war event for actor
|
|
pam_interactions_events.0071 = {
|
|
type = character_event
|
|
title = pam_interactions_events.0071.t
|
|
desc = {
|
|
|
|
desc = pam_interactions_events.0071.desc_intro
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
NOT = {
|
|
scope:puppet_or_actor.religion = { is_in_family = rf_pagan }
|
|
}
|
|
scope:recipient.religion = { is_in_family = rf_pagan }
|
|
}
|
|
desc = pam_interactions_events.0071.desc_intro_pagan
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient.religion = scope:puppet_or_actor.religion
|
|
}
|
|
desc = pam_interactions_events.0071.desc_intro_heretic
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:puppet_or_actor.religion = religion:islam_religion
|
|
}
|
|
desc = pam_interactions_events.0071.desc_intro_infidel
|
|
}
|
|
desc = pam_interactions_events.0071.desc_intro_heathen
|
|
}
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:join_war ?= yes
|
|
}
|
|
desc = pam_interactions_events.0071.desc_outro_joining_war
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:rally_crusaders ?= yes
|
|
}
|
|
desc = pam_interactions_events.0071.desc_outro_rally_crusaders
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:fund_war ?= yes
|
|
}
|
|
desc = pam_interactions_events.0071.desc_outro_funding_war
|
|
}
|
|
}
|
|
}
|
|
theme = war
|
|
override_background = {
|
|
reference = temple
|
|
}
|
|
left_portrait = {
|
|
character = scope:secondary_recipient
|
|
animation = prayer_standing_eyes
|
|
camera = camera_event_center_moved_left
|
|
}
|
|
right_portrait = {
|
|
character = scope:knight
|
|
animation = throne_room_two_handed_passive_1
|
|
camera = camera_event_very_right_far
|
|
hide_info = yes
|
|
}
|
|
widgets = {
|
|
widget = {
|
|
is_shown = {
|
|
OR = {
|
|
root.faith.religion = religion:catholic_religion
|
|
root.faith.religion = religion:protestant_religion
|
|
root.faith.religion = religion:eastern_orthodox_religion
|
|
root.faith.religion = religion:oriental_orthodox_religion
|
|
}
|
|
}
|
|
gui = event_window_widget_vfx_stained_glass
|
|
container = background_shader_vfx_container
|
|
}
|
|
}
|
|
lower_right_portrait = scope:recipient
|
|
immediate = {
|
|
play_music_cue = "mx_cue_deus_hoc_vult"
|
|
scope:secondary_recipient = {
|
|
save_scope_as = bg_override_char
|
|
if = {
|
|
limit = {
|
|
age >= 12
|
|
is_incapable = no
|
|
}
|
|
add_character_flag = need_military_outfit
|
|
}
|
|
}
|
|
pam_incite_holy_war_effect = yes
|
|
scope:secondary_recipient = {
|
|
random_knight = {
|
|
limit = {
|
|
culture = scope:secondary_recipient.culture
|
|
is_available_quick = {
|
|
alive = yes
|
|
imprisoned = no
|
|
incapable = no
|
|
}
|
|
}
|
|
alternative_limit = {
|
|
is_available_quick = {
|
|
alive = yes
|
|
imprisoned = no
|
|
incapable = no
|
|
}
|
|
}
|
|
save_scope_as = knight
|
|
add_character_flag = need_military_outfit
|
|
}
|
|
}
|
|
}
|
|
#neat, I made this happen
|
|
option = {
|
|
name = pam_interactions_events.0071.a
|
|
}
|
|
after = {
|
|
scope:knight ?= {
|
|
remove_character_flag = need_military_outfit
|
|
}
|
|
}
|
|
}
|
|
#Incite holy war letter event for heathen
|
|
pam_interactions_events.0072 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0072.opening
|
|
}
|
|
sender = scope:puppet_or_actor
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:puppet_or_actor = {
|
|
any_character_war = {
|
|
primary_attacker = scope:secondary_recipient
|
|
primary_defender = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0072.desc_joined_war
|
|
}
|
|
desc = pam_interactions_events.0072.desc
|
|
}
|
|
}
|
|
|
|
trigger = {
|
|
scope:puppet_or_actor = {
|
|
is_alive = yes
|
|
is_imprisoned = no
|
|
}
|
|
}
|
|
immediate = {
|
|
custom_tooltip = incite_holy_war_past_tense_tt
|
|
if = {
|
|
limit = {
|
|
scope:puppet_or_actor = {
|
|
any_character_war = {
|
|
primary_attacker = scope:secondary_recipient
|
|
primary_defender = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
custom_tooltip = incite_holy_war_joined_tt
|
|
}
|
|
}
|
|
|
|
#damn fanatics
|
|
option = {
|
|
name = pam_interactions_events.0072.a
|
|
}
|
|
}
|
|
|
|
# Request White Peace interaction
|
|
pam_interactions_events.0080 = {
|
|
type = letter_event
|
|
opening = pam_interactions_events.0080.opening
|
|
desc = pam_interactions_events.0080
|
|
sender = scope:recipient
|
|
|
|
option = {
|
|
name = pam_interactions_events.0080.a
|
|
}
|
|
}
|
|
|
|
# Request Enforce Succession — letter to actor
|
|
pam_interactions_events.0081 = {
|
|
type = letter_event
|
|
opening = pam_interactions_events.0081.opening
|
|
desc = pam_interactions_events.0081.desc
|
|
sender = scope:recipient
|
|
|
|
option = {
|
|
name = pam_interactions_events.0081.a
|
|
custom_tooltip = request_enforced_succession_effect_tt
|
|
show_as_tooltip = {
|
|
scope:succession_holder = {
|
|
add_opinion = {
|
|
target = scope:actor
|
|
modifier = meddling_church_opinion
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
# Request Enforce Succession — letter to the title holder
|
|
pam_interactions_events.0082 = {
|
|
type = letter_event
|
|
opening = pam_interactions_events.0082.opening
|
|
desc = pam_interactions_events.0082.desc
|
|
sender = scope:recipient
|
|
|
|
option = {
|
|
name = pam_interactions_events.0082.a
|
|
custom_tooltip = request_enforced_succession_effect_tt
|
|
}
|
|
}
|
|
|
|
# Request Victory — letter to the defeated opponent
|
|
pam_interactions_events.0083 = {
|
|
type = letter_event
|
|
opening = pam_interactions_events.0083.opening
|
|
desc = pam_interactions_events.0083.desc
|
|
sender = scope:recipient
|
|
|
|
option = {
|
|
name = pam_interactions_events.0083.a
|
|
show_as_tooltip = {
|
|
add_character_modifier = {
|
|
modifier = pam_church_compensation_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
# Request White Peace: letter to a player opponent, who may comply or defy
|
|
pam_interactions_events.0084 = {
|
|
type = letter_event
|
|
opening = pam_interactions_events.0080.opening
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:white_peace_war = {
|
|
casus_belli = { primary_defender = root }
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0084.defender
|
|
}
|
|
desc = pam_interactions_events.0084
|
|
}
|
|
}
|
|
sender = scope:recipient
|
|
|
|
trigger = {
|
|
exists = scope:white_peace_war
|
|
scope:puppet_or_actor = { is_at_war_with = root }
|
|
}
|
|
|
|
option = {
|
|
name = pam_interactions_events.0084.a
|
|
# The war can end before the letter is answered
|
|
if = {
|
|
limit = {
|
|
exists = scope:white_peace_war
|
|
scope:puppet_or_actor = { is_at_war_with = root }
|
|
}
|
|
custom_tooltip = pam_interactions_events.0084.a.tt
|
|
hidden_effect = { pam_enforce_requested_white_peace_effect = yes }
|
|
add_piety = minor_piety_gain
|
|
}
|
|
ai_chance = { base = 100 }
|
|
}
|
|
|
|
option = {
|
|
name = pam_interactions_events.0084.b
|
|
trigger = {
|
|
exists = scope:white_peace_war
|
|
scope:puppet_or_actor = { is_at_war_with = root }
|
|
}
|
|
add_piety = medium_piety_loss
|
|
add_character_modifier = {
|
|
modifier = pam_defied_church_peace_modifier
|
|
years = 10
|
|
}
|
|
scope:recipient = {
|
|
add_opinion = {
|
|
target = root
|
|
modifier = pam_defied_church_peace_opinion
|
|
}
|
|
}
|
|
hidden_effect = {
|
|
set_variable = {
|
|
name = pam_defied_church_peace_cleric
|
|
value = scope:recipient
|
|
years = 10
|
|
}
|
|
save_scope_as = defier
|
|
scope:recipient = {
|
|
trigger_event = {
|
|
id = pam_interactions_events.0085
|
|
days = { 30 90 }
|
|
}
|
|
}
|
|
scope:puppet_or_actor = {
|
|
send_interface_toast = {
|
|
type = event_toast_effect_bad
|
|
title = pam_white_peace_defied_toast
|
|
custom_tooltip = pam_white_peace_defied_toast_desc
|
|
left_icon = root
|
|
right_icon = scope:recipient
|
|
}
|
|
}
|
|
scope:recipient = {
|
|
send_interface_toast = {
|
|
type = event_toast_effect_neutral
|
|
title = pam_white_peace_defied_toast
|
|
custom_tooltip = pam_white_peace_defied_toast_desc
|
|
left_icon = root
|
|
right_icon = scope:puppet_or_actor
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
scope:is_puppet_action ?= yes
|
|
scope:actor != scope:recipient
|
|
}
|
|
scope:actor = {
|
|
send_interface_toast = {
|
|
type = event_toast_effect_neutral
|
|
title = pam_white_peace_defied_toast
|
|
custom_tooltip = pam_white_peace_defied_toast_desc
|
|
left_icon = root
|
|
right_icon = scope:recipient
|
|
}
|
|
}
|
|
}
|
|
}
|
|
ai_chance = { base = 0 }
|
|
}
|
|
}
|
|
|
|
# Request White Peace: the defied cleric may excommunicate the defier
|
|
pam_interactions_events.0085 = {
|
|
hidden = yes
|
|
|
|
trigger = {
|
|
is_ai = yes
|
|
scope:defier ?= {
|
|
is_alive = yes
|
|
var:pam_defied_church_peace_cleric ?= root
|
|
}
|
|
is_character_interaction_valid = {
|
|
recipient = scope:defier
|
|
interaction = excommunicate_interaction
|
|
}
|
|
}
|
|
|
|
immediate = {
|
|
random = {
|
|
chance = {
|
|
value = 25
|
|
add = {
|
|
value = ai_vengefulness
|
|
multiply = 0.25
|
|
}
|
|
min = 5
|
|
}
|
|
run_interaction = {
|
|
interaction = excommunicate_interaction
|
|
actor = root
|
|
recipient = scope:defier
|
|
execute_threshold = accept
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Consecrate kingdom letter event
|
|
pam_interactions_events.0090 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0090.opening
|
|
}
|
|
sender = scope:recipient
|
|
desc = pam_interactions_events.0090.desc
|
|
|
|
immediate = {
|
|
scope:recipient = {
|
|
consecrate_kingdom_player_cleric_effect = yes
|
|
consecrate_kingdom_effect = yes
|
|
}
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0090.a
|
|
flavor = pam_interactions_events.0090.a.flavor
|
|
}
|
|
}
|
|
#Bestow title confirmation event for actor
|
|
pam_interactions_events.0091 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0091.opening
|
|
}
|
|
sender = scope:recipient
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
scope:gain_weak_hook ?= yes
|
|
scope:gain_strong_hook ?= yes
|
|
}
|
|
scope:recipient = {
|
|
government_has_flag = government_is_theocracy
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0091.desc_hook_theocrat
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
scope:gain_weak_hook ?= yes
|
|
scope:gain_strong_hook ?= yes
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0091.desc_hook
|
|
}
|
|
desc = pam_interactions_events.0091.desc
|
|
}
|
|
}
|
|
|
|
immediate = {
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0091.a
|
|
show_as_tooltip = {
|
|
scope:recipient = { bestow_title_effect = yes }
|
|
}
|
|
}
|
|
after = {
|
|
scope:recipient = {
|
|
trigger_event = pam_interactions_events.0092
|
|
}
|
|
}
|
|
}
|
|
#Bestow title letter for recipient
|
|
pam_interactions_events.0092 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
government_has_flag = government_is_theocracy
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0092.opening_theocratic
|
|
}
|
|
desc = pam_interactions_events.0092.opening
|
|
}
|
|
}
|
|
}
|
|
sender = scope:puppet_or_actor
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
scope:gain_weak_hook ?= yes
|
|
scope:gain_strong_hook ?= yes
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0092.desc_hook
|
|
}
|
|
desc = pam_interactions_events.0092.desc
|
|
}
|
|
}
|
|
immediate = {
|
|
scope:recipient = {
|
|
bestow_title_effect = yes
|
|
}
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0092.a
|
|
}
|
|
}
|
|
|
|
#Clergy Legitimize Bastard — I was declared true-born!
|
|
pam_interactions_events.0100 = {
|
|
type = character_event
|
|
title = pam_interactions_events.0100.t
|
|
desc = pam_interactions_events.0100.desc
|
|
theme = bastardy
|
|
left_portrait = scope:actor
|
|
|
|
immediate = {
|
|
show_as_tooltip = {
|
|
add_trait_force_tooltip = legitimized_bastard
|
|
add_opinion = {
|
|
target = scope:actor
|
|
modifier = legitimized_me_opinion
|
|
}
|
|
scope:actor = {
|
|
add_hook = {
|
|
type = legitimized_by_clergy_hook
|
|
target = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
option = {
|
|
name = pam_interactions_events.0100.a
|
|
}
|
|
}
|
|
|
|
#Clergy Legitimize Bastard — letter to each parent
|
|
pam_interactions_events.0101 = {
|
|
type = letter_event
|
|
opening = pam_interactions_events.0101.opening
|
|
desc = pam_interactions_events.0101.desc
|
|
sender = scope:actor
|
|
|
|
option = {
|
|
name = pam_interactions_events.0101.a
|
|
show_as_tooltip = {
|
|
scope:recipient = {
|
|
add_trait_force_tooltip = legitimized_bastard
|
|
}
|
|
}
|
|
}
|
|
}
|
|
pam_interactions_events.0093 = {
|
|
hidden = yes
|
|
trigger = {
|
|
is_alive = yes
|
|
is_ruler = yes
|
|
faith = scope:de_jure_faith
|
|
scope:target = {
|
|
any_de_jure_county = {
|
|
holder ?= {
|
|
OR = {
|
|
faith = {
|
|
NOT = {
|
|
this = scope:de_jure_faith
|
|
}
|
|
}
|
|
any_liege_or_above = {
|
|
faith = {
|
|
NOT = {
|
|
this = scope:de_jure_faith
|
|
}
|
|
}
|
|
NOT = {
|
|
is_liege_or_above_of = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
scope:target = {
|
|
every_de_jure_county = {
|
|
limit = {
|
|
holder ?= {
|
|
OR = {
|
|
faith = {
|
|
NOT = {
|
|
this = scope:de_jure_faith
|
|
}
|
|
}
|
|
any_liege_or_above = {
|
|
faith = {
|
|
NOT = {
|
|
this = scope:de_jure_faith
|
|
}
|
|
}
|
|
NOT = {
|
|
is_liege_or_above_of = root
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
holder = {
|
|
add_to_list = other_faith_rulers
|
|
}
|
|
}
|
|
}
|
|
ordered_in_list = {
|
|
order_by = sub_realm_size
|
|
list = other_faith_rulers
|
|
save_scope_as = other_faith_guy
|
|
}
|
|
ordered_in_list = {
|
|
order_by = sub_realm_size
|
|
list = other_faith_rulers
|
|
limit = {
|
|
NOT = {
|
|
this = scope:other_faith_guy
|
|
}
|
|
}
|
|
save_scope_as = other_faith_guy_2
|
|
}
|
|
send_interface_toast = {
|
|
type = event_toast_effect_bad
|
|
title = failed_eradication_faith_promise.t
|
|
left_icon = scope:other_faith_guy
|
|
right_icon = scope:other_faith_guy_2
|
|
custom_tooltip = failed_eradication_faith_promise_tt
|
|
if = {
|
|
limit = {
|
|
has_legitimacy = yes
|
|
}
|
|
add_legitimacy = massive_legitimacy_loss
|
|
}
|
|
else = {
|
|
add_prestige = massive_prestige_loss
|
|
}
|
|
add_piety_level = -1
|
|
}
|
|
}
|
|
}
|
|
#de jure confirmation event for land gainer
|
|
pam_interactions_events.0094 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0094.opening
|
|
}
|
|
sender = scope:cleric
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
scope:promise_domination ?= yes
|
|
scope:promise_conversion ?= yes
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0094.desc_conversion
|
|
}
|
|
desc = pam_interactions_events.0094.desc
|
|
}
|
|
}
|
|
|
|
option = {
|
|
name = pam_interactions_events.0094.a
|
|
ecclesiastical_de_jure_shifting_effect = {
|
|
DE_JURE_MASTER = scope:de_jure_master
|
|
CLERIC = scope:cleric
|
|
}
|
|
}
|
|
after = {
|
|
#Send notification to affected rulers
|
|
every_player = {
|
|
limit = {
|
|
any_sub_realm_county = {
|
|
any_this_title_or_de_jure_above = {
|
|
this = scope:target
|
|
}
|
|
}
|
|
NOR = {
|
|
this = scope:de_jure_master
|
|
this = scope:cleric
|
|
}
|
|
}
|
|
trigger_event = pam_interactions_events.0095
|
|
}
|
|
}
|
|
}
|
|
#de jure change letter for players in area
|
|
pam_interactions_events.0095 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0095.opening
|
|
}
|
|
sender = scope:cleric
|
|
desc = pam_interactions_events.0095.desc
|
|
|
|
immediate = {
|
|
custom_tooltip = de_jure_clergy_past_tense_effect_tt
|
|
ordered_sub_realm_county = {
|
|
order_by = development_level
|
|
limit = {
|
|
any_this_title_or_de_jure_above = {
|
|
this = scope:target
|
|
}
|
|
}
|
|
save_scope_as = target_county
|
|
}
|
|
}
|
|
option = {
|
|
name = {
|
|
trigger = {
|
|
NOT = {
|
|
faith = scope:cleric.faith
|
|
}
|
|
}
|
|
text = pam_interactions_events.0095.a
|
|
}
|
|
name = {
|
|
trigger = {
|
|
faith = scope:cleric.faith
|
|
}
|
|
text = pam_interactions_events.0095.a_same_faith
|
|
}
|
|
}
|
|
}
|
|
#de jure confirmation event for cleric
|
|
pam_interactions_events.0096 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0096.opening
|
|
}
|
|
sender = scope:de_jure_master
|
|
desc = pam_interactions_events.0096.desc
|
|
|
|
immediate = {
|
|
}
|
|
option = {
|
|
name = pam_interactions_events.0096.a
|
|
show_as_tooltip = {
|
|
scope:de_jure_master = {
|
|
ecclesiastical_de_jure_shifting_effect = {
|
|
DE_JURE_MASTER = scope:de_jure_master
|
|
CLERIC = scope:cleric
|
|
}
|
|
}
|
|
}
|
|
}
|
|
after = {
|
|
scope:de_jure_master = {
|
|
trigger_event = {
|
|
id = pam_interactions_events.0094
|
|
days = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#The clergy grant a petition for an unheld de jure title and crown the petitioner with it
|
|
pam_interactions_events.0097 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0097.opening
|
|
}
|
|
sender = scope:cleric
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:promise_holy_war ?= yes
|
|
}
|
|
desc = pam_interactions_events.0097.desc_holy_war
|
|
}
|
|
desc = pam_interactions_events.0097.desc
|
|
}
|
|
}
|
|
|
|
option = {
|
|
name = pam_interactions_events.0097.a
|
|
request_unformed_title_effect = yes
|
|
}
|
|
}
|
|
|
|
#The vow to take an unformed kingdom from the heathens comes due five years on
|
|
pam_interactions_events.0098 = {
|
|
hidden = yes
|
|
trigger = {
|
|
is_alive = yes
|
|
is_ruler = yes
|
|
faith = scope:promised_holy_war_faith
|
|
scope:target ?= {
|
|
any_de_jure_county = {
|
|
percent >= 0.25
|
|
holder ?= {
|
|
rite = {
|
|
is_hostile_enough_for_holy_war_trigger = { RITE = scope:promised_holy_war_faith.main_rite }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
scope:target = {
|
|
every_de_jure_county = {
|
|
limit = {
|
|
holder ?= {
|
|
rite = {
|
|
is_hostile_enough_for_holy_war_trigger = { RITE = scope:promised_holy_war_faith.main_rite }
|
|
}
|
|
}
|
|
}
|
|
holder = {
|
|
add_to_list = unbroken_heathens
|
|
}
|
|
}
|
|
}
|
|
ordered_in_list = {
|
|
order_by = sub_realm_size
|
|
list = unbroken_heathens
|
|
save_scope_as = unbroken_heathen
|
|
}
|
|
send_interface_toast = {
|
|
type = event_toast_effect_bad
|
|
title = failed_holy_war_promise.t
|
|
left_icon = scope:unbroken_heathen
|
|
custom_tooltip = failed_eradication_faith_promise_tt
|
|
if = {
|
|
limit = {
|
|
has_legitimacy = yes
|
|
}
|
|
add_legitimacy = massive_legitimacy_loss
|
|
}
|
|
else = {
|
|
add_prestige = massive_prestige_loss
|
|
}
|
|
add_piety_level = -1
|
|
}
|
|
}
|
|
}
|
|
|
|
#Demand Divorce — the defied theocrat reads the refusal.
|
|
pam_interactions_events.0111 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0111.opening
|
|
}
|
|
desc = pam_interactions_events.0111.desc
|
|
|
|
sender = {
|
|
character = scope:recipient
|
|
animation = personality_callous
|
|
}
|
|
|
|
option = {
|
|
name = pam_interactions_events.0111.a
|
|
show_as_tooltip = {
|
|
scope:recipient = {
|
|
add_piety = medium_piety_loss
|
|
change_spiritual_fulfillment = medium_spiritual_fulfillment_loss
|
|
add_opinion = {
|
|
target = scope:actor
|
|
modifier = demanded_divorce_opinion
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#Clerical Ruler Puppet Event
|
|
pam_interactions_events.0120 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0120.opening
|
|
}
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
OR = {
|
|
scope:recipient.faith.religious_head ?= root
|
|
scope:recipient.rite.head_of_rite ?= root
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0120.desc_religious_head_actor
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient.faith.religious_head ?= scope:recipient
|
|
}
|
|
desc = pam_interactions_events.0120.desc_religious_head_recipient
|
|
}
|
|
desc = pam_interactions_events.0120.desc
|
|
}
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:lunacy_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0120.desc_lunacy
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:dread_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0120.desc_dread
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:piety_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0120.desc_piety
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:friendly_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0120.desc_friendly
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:skill_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0120.desc_skill
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0120.outro
|
|
}
|
|
|
|
sender = {
|
|
character = scope:recipient
|
|
triggered_animation = {
|
|
trigger = {
|
|
OR = {
|
|
scope:recipient.faith.religion = religion:catholic_religion
|
|
scope:recipient.faith.religion = religion:eastern_orthodox_religion
|
|
scope:recipient.faith.religion = religion:protestant_religion
|
|
scope:recipient.faith.religion = religion:oriental_orthodox_religion
|
|
}
|
|
}
|
|
animation = prayer_standing_eyes
|
|
}
|
|
animation = court_chaplain
|
|
}
|
|
|
|
immediate = {
|
|
play_sound_effect = "event:/DLC/CE3/SFX/UIX/ce3_make_character_puppet"
|
|
set_puppet = {
|
|
target = scope:recipient
|
|
type = external_theological_agent_puppet
|
|
}
|
|
pam_generic_set_puppet_interaction_side_effects = yes
|
|
}
|
|
|
|
option = {
|
|
name = pam_interactions_events.0120.a
|
|
}
|
|
}
|
|
|
|
#External Ruler Puppet Event
|
|
pam_interactions_events.0121 = {
|
|
type = letter_event
|
|
opening = {
|
|
desc = pam_interactions_events.0121.opening
|
|
}
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:recipient = {
|
|
is_adult = yes
|
|
ai_honor >= 0
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0121.desc_honor
|
|
}
|
|
desc = pam_interactions_events.0121.desc
|
|
}
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:lunacy_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0121.desc_lunacy
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:dread_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0121.desc_dread
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:piety_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0121.desc_piety
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:friendly_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0121.desc_friendly
|
|
}
|
|
triggered_desc = {
|
|
trigger = {
|
|
scope:skill_support ?= yes
|
|
}
|
|
desc = pam_interactions_events.0121.desc_skill
|
|
}
|
|
}
|
|
desc = pam_interactions_events.0121.outro
|
|
}
|
|
|
|
sender = {
|
|
character = scope:recipient
|
|
animation = throne_room_bow_1
|
|
}
|
|
|
|
immediate = {
|
|
play_sound_effect = "event:/DLC/CE3/SFX/UIX/ce3_make_character_puppet"
|
|
set_puppet = {
|
|
target = scope:recipient
|
|
type = external_ruler_puppet
|
|
}
|
|
pam_generic_set_puppet_interaction_side_effects = yes
|
|
}
|
|
|
|
option = {
|
|
name = pam_interactions_events.0121.a
|
|
}
|
|
}
|
|
|
|
#Seek Communion accepted
|
|
pam_interactions_events.0130 = {
|
|
type = letter_event
|
|
opening = pam_interactions_events.0130.opening
|
|
desc = {
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = { this = scope:actor }
|
|
desc = pam_interactions_events.0130.desc_seeker
|
|
}
|
|
desc = pam_interactions_events.0130.desc
|
|
}
|
|
}
|
|
|
|
sender = scope:recipient
|
|
|
|
option = {
|
|
name = pam_interactions_events.0130.a
|
|
if = {
|
|
limit = { this = scope:actor }
|
|
pam_seek_communion_reconcile_faith_effect = yes
|
|
}
|
|
else = { show_as_tooltip = { pam_seek_communion_reconcile_faith_effect = yes } }
|
|
}
|
|
}
|
|
|
|
#Seek Communion refused
|
|
pam_interactions_events.0131 = {
|
|
type = letter_event
|
|
opening = pam_interactions_events.0131.opening
|
|
desc = pam_interactions_events.0131.desc
|
|
|
|
sender = scope:recipient
|
|
|
|
option = {
|
|
name = pam_interactions_events.0131.a
|
|
}
|
|
}
|