character interactions updating (again)

This commit is contained in:
Thakia 2026-11-21 17:46:42 -03:00
parent 068d323484
commit 568b018fc5
29 changed files with 4043 additions and 1867 deletions

View file

@ -5,6 +5,7 @@ ask_for_conversion_interaction = {
popup_on_receive = yes
desc = compel_conversion_interaction_desc
notification_text = demand_conversion_minister_rites_interaction_notice
hidden = yes
@ -2619,7 +2620,7 @@ seek_indulgences_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:actor
TARGET = scope:recipient
VALUE = medium_unity_gain
@ -2640,7 +2641,7 @@ seek_indulgences_interaction = {
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:actor
TARGET = scope:recipient
VALUE = minor_unity_loss
@ -2667,6 +2668,15 @@ seek_indulgences_interaction = {
empire = 36
hegemony = 36
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 108
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = {
base = -25
@ -3091,6 +3101,16 @@ declaration_of_repentance_interaction = {
evaluate_action_decreasing_house_unity = {
VALUE = -100
}
modifier = {
add = 40
scope:actor = { has_character_modifier = favored_by_pope_modifier }
desc = FAVORED_BY_POPE
}
modifier = {
add = -40
scope:actor = { has_character_modifier = scorned_pope_modifier }
desc = HAS_SCORNED_POPE
}
}
ai_min_reply_days = 1
@ -3114,7 +3134,7 @@ declaration_of_repentance_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = medium_unity_gain
@ -3133,7 +3153,7 @@ declaration_of_repentance_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_loss
@ -3310,7 +3330,10 @@ excommunicate_interaction = {
}
situation:the_christian_church = { trigger_situation_catalyst = catalyst_excommunicate }
}
else = {
else_if = {
limit = {
situation:the_christian_church = { situation_top_has_catalyst = catalyst_excommunicate_minor }
}
situation:the_christian_church = { trigger_situation_catalyst = catalyst_excommunicate_minor }
}
}
@ -3320,7 +3343,6 @@ excommunicate_interaction = {
REQUESTING_CHARACTER = scope:puppet_or_actor
TARGET_CHARACTER = scope:recipient
}
scope:recipient = {
# Letter arrives a few days later; gives time for the trait to land before the player reads it.
trigger_event = {
@ -3328,9 +3350,8 @@ excommunicate_interaction = {
days = 5
}
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = medium_unity_loss
@ -3372,7 +3393,6 @@ excommunicate_interaction = {
scope:recipient = {
NOR = {
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
is_at_war_with = scope:puppet_or_actor
has_character_flag = executed_own_hof_unlawfully
has_character_flag = executed_senior_cleric_unlawfully
@ -3465,11 +3485,11 @@ lift_excommunication_interaction = {
NOT = {
religious_head_or_challenger ?= scope:recipient
}
}
scope:puppet_or_actor.faith ?= {
has_doctrine = doctrine_spiritual_head
faith_has_sacraments_central_trigger = yes
this = scope:recipient.faith
faith ?= {
has_doctrine = doctrine_spiritual_head
faith_has_sacraments_central_trigger = yes
this = scope:recipient.faith
}
}
scope:recipient = {
has_trait = excommunicated
@ -3488,17 +3508,13 @@ lift_excommunication_interaction = {
}
is_valid_showing_failures_only = {
trigger_if = {
limit = { scope:is_puppet_action ?= yes }
scope:puppet_or_actor = {
scope:puppet_or_actor = {
trigger_if = {
limit = { scope:is_puppet_action ?= yes }
piety >= lift_excommunication_interaction_cost_value
}
}
scope:puppet_or_actor = {
highest_held_title_tier >= tier_duchy
NOT = {
is_at_war_with = scope:recipient
}
NOT = { is_at_war_with = scope:recipient }
custom_tooltip = {
text = HOF_INTERACTION_UNREFORMED_FAITH
NOT = {
@ -3536,21 +3552,13 @@ lift_excommunication_interaction = {
scope:puppet_or_actor = {
if = {
limit = {
NOT = {
this = scope:recipient
}
any_character_situation = {
situation_type = the_christian_church
}
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_lift_excommunication
}
NOT = { this = scope:recipient }
any_character_situation = { situation_type = the_christian_church }
situation:the_christian_church ?= { situation_top_has_catalyst = catalyst_lift_excommunication }
}
if = {
limit = {
scope:recipient = {
highest_held_title_tier >= tier_kingdom
}
scope:recipient = { highest_held_title_tier >= tier_kingdom }
}
situation:the_christian_church = { trigger_situation_catalyst = catalyst_lift_excommunication }
}
@ -3561,7 +3569,7 @@ lift_excommunication_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = medium_unity_gain
@ -3637,7 +3645,6 @@ lift_excommunication_interaction = {
scope:recipient = {
NOR = { # Only do this for friends
has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
is_allied_to = scope:puppet_or_actor
has_variable = pam_turned_the_other_cheek_var
scope:puppet_or_actor = { # Unless you are in the Concord phase
@ -4042,6 +4049,16 @@ request_excommunication_interaction = {
has_trait = consecrated_blood
}
}
modifier = {
add = 40
scope:actor = { has_character_modifier = favored_by_pope_modifier }
desc = FAVORED_BY_POPE
}
modifier = {
add = -40
scope:actor = { has_character_modifier = scorned_pope_modifier }
desc = HAS_SCORNED_POPE
}
modifier = {
add = 20
scope:puppet_or_actor = { # PAM - Reform phase
@ -4162,7 +4179,7 @@ request_excommunication_interaction = {
}
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = medium_unity_loss
@ -4185,7 +4202,7 @@ request_excommunication_interaction = {
HOOK = excommunication_hook
PIETY_VALUE = massive_piety_value
}
}
}
}
on_decline = {
@ -4201,7 +4218,7 @@ request_excommunication_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = miniscule_unity_gain
@ -4229,6 +4246,15 @@ request_excommunication_interaction = {
empire = 12
hegemony = 12
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 144
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = {
base = 25
@ -4243,7 +4269,6 @@ request_excommunication_interaction = {
scope:secondary_recipient = {
NOR = {
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
is_at_war_with = scope:puppet_or_actor
has_character_flag = executed_own_hof_unlawfully
has_character_flag = executed_senior_cleric_unlawfully
@ -4374,6 +4399,7 @@ send_to_holy_order_interaction = {
limit = { scope:is_puppet_action ?= yes }
scope:puppet_or_actor = {
dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value }
prestige >= take_vows_prestige_cost_value
}
}
scope:recipient = {
@ -4480,6 +4506,13 @@ send_to_holy_order_interaction = {
multiply = 0
}
}
prestige = {
value = take_vows_prestige_cost_value
if = {
limit = { scope:is_puppet_action ?= yes }
multiply = 0
}
}
}
on_send = {
@ -4514,6 +4547,15 @@ send_to_holy_order_interaction = {
}
}
}
if = {
limit = { take_vows_prestige_cost_value > 0 }
add_prestige = {
value = {
value = take_vows_prestige_cost_value
multiply = -1
}
}
}
}
}
scope:puppet_or_actor = {
@ -4568,12 +4610,17 @@ send_to_holy_order_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_gain
DESC = clan_unity_send_to_holy_order.desc
REVERSE_NON_HOUSE_TARGET = no
if = {
limit = {
scope:puppet_or_actor = { government_has_flag = government_uses_house_unity }
}
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_gain
DESC = clan_unity_send_to_holy_order.desc
REVERSE_NON_HOUSE_TARGET = no
}
}
}
@ -4632,7 +4679,7 @@ send_to_holy_order_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_loss
@ -4719,8 +4766,6 @@ send_to_holy_order_interaction = {
has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_soulmate = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_best_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
opinion = {
target = scope:puppet_or_actor.cp:councillor_court_chaplain
value >= very_high_positive_opinion
@ -5018,6 +5063,15 @@ send_to_holy_order_interaction = {
empire = 24
hegemony = 24
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 432
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = {
base = 0
@ -5030,10 +5084,7 @@ send_to_holy_order_interaction = {
modifier = { # Try to send rivals
add = 100
scope:puppet_or_actor = {
OR = {
has_relation_rival = scope:recipient
has_relation_nemesis = scope:recipient
}
has_relation_rival = scope:recipient
}
}
@ -5270,6 +5321,7 @@ take_vows_interaction = {
limit = { scope:is_puppet_action ?= yes }
scope:puppet_or_actor = {
dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value }
prestige >= take_vows_prestige_cost_value
}
}
scope:recipient = {
@ -5387,6 +5439,13 @@ take_vows_interaction = {
multiply = 0
}
}
prestige = {
value = take_vows_prestige_cost_value
if = {
limit = { scope:is_puppet_action ?= yes }
multiply = 0
}
}
gold = {
value = 0
if = {
@ -5428,6 +5487,15 @@ take_vows_interaction = {
}
}
}
if = {
limit = { take_vows_prestige_cost_value > 0 }
add_prestige = {
value = {
value = take_vows_prestige_cost_value
multiply = -1
}
}
}
}
}
scope:puppet_or_actor = {
@ -5567,7 +5635,7 @@ take_vows_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_gain
@ -5632,7 +5700,7 @@ take_vows_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_loss
@ -5736,8 +5804,6 @@ take_vows_interaction = {
has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_soulmate = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_best_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
opinion = {
target = scope:puppet_or_actor.cp:councillor_court_chaplain
value >= very_high_positive_opinion
@ -6204,10 +6270,7 @@ take_vows_interaction = {
modifier = { # Try to send rivals
add = 100
scope:puppet_or_actor = {
OR = {
has_relation_rival = scope:recipient
has_relation_nemesis = scope:recipient
}
has_relation_rival = scope:recipient
}
}
@ -6500,7 +6563,7 @@ temporal_condemnation_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = medium_unity_gain
@ -6574,15 +6637,29 @@ host_honored_guest_interaction = {
is_available = {
trigger_if = {
limit = { is_ai = yes }
piety >= major_piety_value
OR = {
AND = {
rite ?= { rite_has_parameter = host_honored_guests_active }
piety >= major_piety_value
}
AND = {
NOT = { rite ?= { rite_has_parameter = host_honored_guests_active } }
prestige >= major_prestige_value
}
}
}
}
is_shown = {
scope:recipient != scope:puppet_or_actor
scope:puppet_or_actor ?= {
rite ?= {
rite_has_parameter = host_honored_guests_active
is_playable_character = yes
is_adult = yes
OR = {
rite ?= {
rite_has_parameter = host_honored_guests_active
}
culture = { has_cultural_parameter = caravanserai_hospitality }
}
is_playable_character = yes
is_adult = yes
@ -6684,9 +6761,20 @@ host_honored_guest_interaction = {
}
# Spend piety based on recipient's tier.
scope:puppet_or_actor = {
add_piety = {
value = 0
subtract = scope:recipient.tier_scaled_piety_value
if = {
limit = {
rite = { rite_has_parameter = host_honored_guests_active }
}
add_piety = {
value = 0
subtract = scope:recipient.tier_scaled_piety_value
}
}
else = {
add_prestige = {
value = 0
subtract = scope:recipient.tier_scaled_prestige_value
}
}
}
@ -6710,10 +6798,11 @@ host_honored_guest_interaction = {
limit = {
OR = {
has_trait = cynical
NOT = {
NOR = {
rite = {
rite_has_parameter = host_honored_guests_active
}
culture = { has_cultural_parameter = caravanserai_hospitality }
}
}
}
@ -6732,7 +6821,7 @@ host_honored_guest_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = miniscule_unity_gain
@ -8015,7 +8104,7 @@ hof_ask_for_claim_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:actor
TARGET = scope:secondary_recipient
VALUE = minor_unity_loss
@ -8431,7 +8520,7 @@ sun_trial_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:actor
TARGET = scope:recipient
VALUE = major_unity_loss
@ -8546,7 +8635,7 @@ literalist_debate_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = medium_unity_loss
@ -9522,6 +9611,7 @@ take_monastic_vows_interaction = {
limit = { scope:is_puppet_action ?= yes }
scope:puppet_or_actor = {
dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value }
prestige >= take_vows_prestige_cost_value
}
}
scope:recipient = {
@ -9664,6 +9754,13 @@ take_monastic_vows_interaction = {
multiply = 0
}
}
prestige = {
value = take_vows_prestige_cost_value
if = {
limit = { scope:is_puppet_action ?= yes }
multiply = 0
}
}
gold = {
value = 0
if = {
@ -9708,6 +9805,15 @@ take_monastic_vows_interaction = {
}
}
}
if = {
limit = { take_vows_prestige_cost_value > 0 }
add_prestige = {
value = {
value = take_vows_prestige_cost_value
multiply = -1
}
}
}
}
}
scope:secondary_recipient = {
@ -9779,7 +9885,7 @@ take_monastic_vows_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_gain
@ -9873,7 +9979,7 @@ take_monastic_vows_interaction = {
}
# If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_loss
@ -10000,8 +10106,6 @@ take_monastic_vows_interaction = {
has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_soulmate = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_best_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
opinion = {
target = scope:puppet_or_actor.cp:councillor_court_chaplain
value >= very_high_positive_opinion
@ -10446,6 +10550,15 @@ take_monastic_vows_interaction = {
empire = 24
hegemony = 24
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 432
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = {
base = 0
@ -10469,10 +10582,7 @@ take_monastic_vows_interaction = {
modifier = { # Try to send rivals
add = 100
scope:puppet_or_actor = {
OR = {
has_relation_rival = scope:recipient
has_relation_nemesis = scope:recipient
}
has_relation_rival = scope:recipient
}
}
modifier = { # Has cloister to send the child to
@ -10591,6 +10701,7 @@ take_monastic_vows_interaction = {
county.holder.top_liege = scope:puppet_or_actor.top_liege
}
any_leased_title = {
exists = scope:puppet_or_actor.capital_county.kingdom
kingdom ?= scope:puppet_or_actor.capital_county.kingdom
}
}
@ -10687,6 +10798,7 @@ take_monastic_vows_interaction = {
empire = scope:target.empire
}
trigger_else = {
exists = scope:puppet_or_actor.capital_county.empire
empire = scope:puppet_or_actor.capital_county.empire
}
}
@ -11223,6 +11335,15 @@ monastic_donation_interaction = {
empire = 12
hegemony = 12
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 144
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = {
base = 0
@ -11259,6 +11380,7 @@ monastic_donation_interaction = {
county.holder.top_liege = scope:puppet_or_actor.top_liege
}
any_leased_title = {
exists = scope:puppet_or_actor.capital_county
kingdom ?= scope:puppet_or_actor.capital_county.kingdom
}
}
@ -11313,6 +11435,8 @@ monastic_donation_interaction = {
modifier = {
factor = 1.25
exists = capital_county.kingdom
exists = scope:recipient.capital_county.kingdom
capital_county.kingdom = scope:recipient.capital_county.kingdom
}
@ -11351,6 +11475,7 @@ monastic_donation_interaction = {
empire = scope:target.empire
}
trigger_else = {
exists = scope:puppet_or_actor.capital_county
empire = scope:puppet_or_actor.capital_county.empire
}
}
@ -11987,6 +12112,8 @@ lease_title_to_existing_monastic_order_interaction = {
modifier = {
factor = 1.25
exists = capital_county.kingdom
exists = scope:recipient.capital_county.kingdom
capital_county.kingdom = scope:recipient.capital_county.kingdom
}