character_interactions updated files

This commit is contained in:
Thakia 2026-10-02 18:44:14 -03:00
parent f086d8f7ec
commit d8cc7ae2ea
34 changed files with 21815 additions and 13849 deletions

View file

@ -43,14 +43,14 @@ offer_hostage_interaction = {
scope:recipient = {
NOR = {
government_has_flag = government_is_landless_adventurer
government_has_flag = government_is_true_herder
government_has_flag = government_is_herder
}
}
#Inside a merit realm vassals won't offer hostages except to your top liege.
trigger_if = {
limit = {
scope:actor.top_liege = { government_has_flag = government_has_merit }
scope:actor.top_liege != scope:actor
scope:actor.top_liege ?= { government_has_flag = government_has_merit }
scope:recipient != scope:actor.top_liege
}
NAND = {
@ -94,16 +94,12 @@ offer_hostage_interaction = {
}
scope:actor = {
OR = {
government_has_flag = government_is_urepublic
government_has_flag = government_is_prepublic
is_landless_ruler = no
is_landless_administrative = yes
}
}
scope:recipient = {
OR = {
government_has_flag = government_is_urepublic
government_has_flag = government_is_prepublic
is_landless_ruler = no
is_landless_administrative = yes
}
@ -465,15 +461,15 @@ offer_hostage_interaction = {
}
is_available = {
NOT = {
government_has_flag = government_is_landless_adventurer
}
trigger_if = {
limit = {
is_ai = yes
}
NOT = { has_variable = conqueror }
}
NOT = {
government_has_flag = government_is_landless_adventurer
}
}
ai_will_do = {
@ -624,11 +620,19 @@ demand_hostage_interaction = {
cooldown_against_recipient = { years = 3 }
is_available = {
trigger_if = {
limit = { is_ai = yes }
highest_held_title_tier >= tier_county
NOT = { has_variable = conqueror }
}
}
is_shown = {
# Cannot exchange hostages with self
scope:recipient != scope:actor
# Cannot exchange hostages with a herder
NOT = { scope:recipient = { government_has_flag = government_is_true_herder } }
NOT = { scope:recipient = { government_has_flag = government_is_herder } }
# Only significant rulers use hostages
scope:actor.highest_held_title_tier > tier_barony
OR = {
@ -650,8 +654,8 @@ demand_hostage_interaction = {
#Inside a merit realm vassals won't demand hostages.
trigger_if = {
limit = {
scope:actor.top_liege = { government_has_flag = government_has_merit }
scope:actor.top_liege != scope:actor
scope:actor.top_liege ?= { government_has_flag = government_has_merit }
}
NAND = {
scope:actor = { government_has_flag = government_has_merit }
@ -681,16 +685,12 @@ demand_hostage_interaction = {
}
scope:actor = {
OR = {
government_has_flag = government_is_urepublic
government_has_flag = government_is_prepublic
is_landless_ruler = no
is_landless_administrative = yes
}
}
scope:recipient = {
OR = {
government_has_flag = government_is_urepublic
government_has_flag = government_is_prepublic
is_landless_ruler = no
is_landless_administrative = yes
}
@ -1208,11 +1208,6 @@ demand_hostage_interaction = {
hegemony = 36
}
ai_potential = {
highest_held_title_tier >= tier_county
NOT = { has_variable = conqueror }
}
ai_will_do = {
base = 0
opinion_modifier = { # Opinion Factor
@ -1328,11 +1323,20 @@ exchange_hostage_interaction = {
cooldown_against_recipient = { years = 3 }
is_available = {
trigger_if = {
limit = { is_ai = yes }
highest_held_title_tier >= tier_county
is_adult = yes
NOT = { has_variable = conqueror }
}
}
is_shown = {
# Cannot exchange hostages with self
scope:recipient != scope:actor
# Cannot exchange hostages with a herder
NOT = { scope:recipient = { government_has_flag = government_is_true_herder } }
NOT = { scope:recipient = { government_has_flag = government_is_herder } }
# Only significant rulers use hostages
scope:actor.highest_held_title_tier > tier_barony
OR = {
@ -1354,8 +1358,8 @@ exchange_hostage_interaction = {
#Inside a merit realm vassals won't exchange hostages.
trigger_if = {
limit = {
scope:actor.top_liege = { government_has_flag = government_has_merit }
scope:actor.top_liege != scope:actor
scope:actor.top_liege ?= { government_has_flag = government_has_merit }
}
NAND = {
scope:actor = { government_has_flag = government_has_merit }
@ -1423,8 +1427,6 @@ exchange_hostage_interaction = {
}
}
OR = {
government_has_flag = government_is_urepublic
government_has_flag = government_is_prepublic
is_landless_ruler = no
is_landless_administrative = yes
}
@ -1903,12 +1905,6 @@ exchange_hostage_interaction = {
hegemony = 36
}
ai_potential = {
is_adult = yes
highest_held_title_tier >= tier_county
NOT = { has_variable = conqueror }
}
ai_will_do = {
base = 0
opinion_modifier = { # Opinion Factor
@ -2057,7 +2053,7 @@ return_hostage_interaction = {
desc = return_hostage_interaction_desc
populate_recipient_list = {
scope:actor = {
scope:puppet_or_actor = {
every_warden_hostage = {
limit = { home_court ?= scope:recipient }
add_to_list = characters
@ -2067,22 +2063,31 @@ return_hostage_interaction = {
cost = {}
is_available = {
# Implied by is_shown, but asked once per character instead of once per recipient
trigger_if = {
limit = { is_ai = yes }
any_warden_hostage = { count >= 1 }
}
}
is_shown = {
# Cannot return hostages to self
scope:recipient != scope:actor
exists = scope:puppet_or_actor
scope:recipient != scope:puppet_or_actor
# Must have a hostage
OR = {
scope:actor = {
scope:puppet_or_actor ?= {
any_warden_hostage = { home_court ?= scope:recipient }
}
scope:recipient.warden ?= scope:actor
scope:recipient.warden ?= scope:puppet_or_actor
}
}
redirect = {
if = {
limit = {
scope:recipient.warden ?= scope:actor
scope:recipient.warden ?= scope:puppet_or_actor
}
scope:recipient = { save_scope_as = secondary_recipient }
scope:recipient.home_court = { save_scope_as = recipient }
@ -2092,9 +2097,9 @@ return_hostage_interaction = {
is_valid_showing_failures_only = {
NOR = {
# Must be at peace
scope:recipient = { is_at_war_with = scope:actor }
scope:recipient = { is_at_war_with = scope:puppet_or_actor }
# Only family oriented governments use hostages
scope:actor = {
scope:puppet_or_actor = {
OR = {
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
@ -2115,7 +2120,7 @@ return_hostage_interaction = {
can_send = {
NOT = {
scope:actor = { is_at_war_with = scope:recipient }
scope:puppet_or_actor = { is_at_war_with = scope:recipient }
}
}
@ -2125,7 +2130,7 @@ return_hostage_interaction = {
on_accept = {
# Save scopes for clarity
scope:actor = { save_scope_as = warden }
scope:puppet_or_actor = { save_scope_as = warden }
scope:recipient = { save_scope_as = home_court }
scope:secondary_recipient = { save_scope_as = hostage }
# Send toast informing sender of acceptance
@ -2203,8 +2208,8 @@ return_hostage_interaction = {
}
NOT = {
scope:recipient = {
has_any_cb_on = scope:actor
scope:recipient.current_strength_with_allies_fifty_percent_value > scope:actor.current_strength_with_allies_value
has_any_cb_on = scope:puppet_or_actor
scope:recipient.current_strength_with_allies_fifty_percent_value > scope:puppet_or_actor.current_strength_with_allies_value
}
}
}
@ -2213,21 +2218,21 @@ return_hostage_interaction = {
}
opinion_modifier = { # Opinion Factor
who = scope:recipient
opinion_target = scope:actor
opinion_target = scope:puppet_or_actor
multiplier = 0.5
desc = AI_OPINION_REASON
}
modifier = {
add = 25
scope:actor = {
scope:puppet_or_actor = {
has_any_cb_on = scope:recipient
scope:actor.current_strength_with_allies_fifty_percent_value > scope:recipient.current_strength_with_allies_value
scope:puppet_or_actor.current_strength_with_allies_fifty_percent_value > scope:recipient.current_strength_with_allies_value
}
}
modifier = {
scope:recipient = {
OR = {
is_allied_to = scope:actor
is_allied_to = scope:puppet_or_actor
is_spouse_of = scope:recipient
}
}
@ -2235,26 +2240,26 @@ return_hostage_interaction = {
}
modifier = {
scope:recipient = {
has_any_cb_on = scope:actor
scope:recipient.current_strength_with_allies_fifty_percent_value > scope:actor.current_strength_with_allies_value
has_any_cb_on = scope:puppet_or_actor
scope:recipient.current_strength_with_allies_fifty_percent_value > scope:puppet_or_actor.current_strength_with_allies_value
}
add = -50
}
bp2_hostage_return_personality_modifier = {
WARDEN = scope:actor
WARDEN = scope:puppet_or_actor
HOME_COURT = scope:recipient
}
# Cultural traditions
modifier = {
scope:actor.culture = { has_cultural_tradition = tradition_equitable }
scope:puppet_or_actor.culture = { has_cultural_tradition = tradition_equitable }
add = 25
}
modifier = {
scope:actor.culture = { has_cultural_tradition = tradition_esteemed_hospitality }
scope:puppet_or_actor.culture = { has_cultural_tradition = tradition_esteemed_hospitality }
add = 25
}
modifier = {
scope:actor = {
scope:puppet_or_actor = {
is_vassal_of = scope:recipient
culture = { has_cultural_tradition = tradition_loyal_soldiers }
}
@ -2756,6 +2761,13 @@ influence_child_personality_interaction = {
desc = influence_child_personality_interaction_desc
is_available = {
trigger_if = {
limit = { is_ai = yes }
any_relation = { type = ward }
}
}
is_shown = { #any ai ward/hostage
has_bp2_dlc_trigger = yes
scope:recipient = {
@ -3990,183 +4002,183 @@ influence_child_personality_interaction = {
switch = {
trigger = yes
scope:sadistic = {
scope:recipient.faith = {
trait_is_virtue = trait:sadistic
scope:recipient.rite = {
trait_is_virtue_rite = trait:sadistic
}
}
scope:lustful = {
scope:recipient.faith = {
trait_is_virtue = trait:lustful
scope:recipient.rite = {
trait_is_virtue_rite = trait:lustful
}
}
scope:chaste = {
scope:recipient.faith = {
trait_is_virtue = trait:chaste
scope:recipient.rite = {
trait_is_virtue_rite = trait:chaste
}
}
scope:gluttonous = {
scope:recipient.faith = {
trait_is_virtue = trait:gluttonous
scope:recipient.rite = {
trait_is_virtue_rite = trait:gluttonous
}
}
scope:temperate = {
scope:recipient.faith = {
trait_is_virtue = trait:temperate
scope:recipient.rite = {
trait_is_virtue_rite = trait:temperate
}
}
scope:greedy = {
scope:recipient.faith = {
trait_is_virtue = trait:greedy
scope:recipient.rite = {
trait_is_virtue_rite = trait:greedy
}
}
scope:generous = {
scope:recipient.faith = {
trait_is_virtue = trait:generous
scope:recipient.rite = {
trait_is_virtue_rite = trait:generous
}
}
scope:lazy = {
scope:recipient.faith = {
trait_is_virtue = trait:lazy
scope:recipient.rite = {
trait_is_virtue_rite = trait:lazy
}
}
scope:diligent = {
scope:recipient.faith = {
trait_is_virtue = trait:diligent
scope:recipient.rite = {
trait_is_virtue_rite = trait:diligent
}
}
scope:wrathful = {
scope:recipient.faith = {
trait_is_virtue = trait:wrathful
scope:recipient.rite = {
trait_is_virtue_rite = trait:wrathful
}
}
scope:calm = {
scope:recipient.faith = {
trait_is_virtue = trait:calm
scope:recipient.rite = {
trait_is_virtue_rite = trait:calm
}
}
scope:patient = {
scope:recipient.faith = {
trait_is_virtue = trait:patient
scope:recipient.rite = {
trait_is_virtue_rite = trait:patient
}
}
scope:impatient = {
scope:recipient.faith = {
trait_is_virtue = trait:impatient
scope:recipient.rite = {
trait_is_virtue_rite = trait:impatient
}
}
scope:arrogant = {
scope:recipient.faith = {
trait_is_virtue = trait:arrogant
scope:recipient.rite = {
trait_is_virtue_rite = trait:arrogant
}
}
scope:humble = {
scope:recipient.faith = {
trait_is_virtue = trait:humble
scope:recipient.rite = {
trait_is_virtue_rite = trait:humble
}
}
scope:deceitful = {
scope:recipient.faith = {
trait_is_virtue = trait:deceitful
scope:recipient.rite = {
trait_is_virtue_rite = trait:deceitful
}
}
scope:honest = {
scope:recipient.faith = {
trait_is_virtue = trait:honest
scope:recipient.rite = {
trait_is_virtue_rite = trait:honest
}
}
scope:craven = {
scope:recipient.faith = {
trait_is_virtue = trait:craven
scope:recipient.rite = {
trait_is_virtue_rite = trait:craven
}
}
scope:brave = {
scope:recipient.faith = {
trait_is_virtue = trait:brave
scope:recipient.rite = {
trait_is_virtue_rite = trait:brave
}
}
scope:shy = {
scope:recipient.faith = {
trait_is_virtue = trait:shy
scope:recipient.rite = {
trait_is_virtue_rite = trait:shy
}
}
scope:gregarious = {
scope:recipient.faith = {
trait_is_virtue = trait:gregarious
scope:recipient.rite = {
trait_is_virtue_rite = trait:gregarious
}
}
scope:ambitious = {
scope:recipient.faith = {
trait_is_virtue = trait:ambitious
scope:recipient.rite = {
trait_is_virtue_rite = trait:ambitious
}
}
scope:content = {
scope:recipient.faith = {
trait_is_virtue = trait:content
scope:recipient.rite = {
trait_is_virtue_rite = trait:content
}
}
scope:arbitrary = {
scope:recipient.faith = {
trait_is_virtue = trait:arbitrary
scope:recipient.rite = {
trait_is_virtue_rite = trait:arbitrary
}
}
scope:just = {
scope:recipient.faith = {
trait_is_virtue = trait:just
scope:recipient.rite = {
trait_is_virtue_rite = trait:just
}
}
scope:cynical = {
scope:recipient.faith = {
trait_is_virtue = trait:cynical
scope:recipient.rite = {
trait_is_virtue_rite = trait:cynical
}
}
scope:zealous = {
scope:recipient.faith = {
trait_is_virtue = trait:zealous
scope:recipient.rite = {
trait_is_virtue_rite = trait:zealous
}
}
scope:paranoid = {
scope:recipient.faith = {
trait_is_virtue = trait:paranoid
scope:recipient.rite = {
trait_is_virtue_rite = trait:paranoid
}
}
scope:trusting = {
scope:recipient.faith = {
trait_is_virtue = trait:trusting
scope:recipient.rite = {
trait_is_virtue_rite = trait:trusting
}
}
scope:compassionate = {
scope:recipient.faith = {
trait_is_virtue = trait:compassionate
scope:recipient.rite = {
trait_is_virtue_rite = trait:compassionate
}
}
scope:callous = {
scope:recipient.faith = {
trait_is_virtue = trait:callous
scope:recipient.rite = {
trait_is_virtue_rite = trait:callous
}
}
scope:stubborn = {
scope:recipient.faith = {
trait_is_virtue = trait:stubborn
scope:recipient.rite = {
trait_is_virtue_rite = trait:stubborn
}
}
scope:fickle = {
scope:recipient.faith = {
trait_is_virtue = trait:fickle
scope:recipient.rite = {
trait_is_virtue_rite = trait:fickle
}
}
scope:eccentric = {
scope:recipient.faith = {
trait_is_virtue = trait:eccentric
scope:recipient.rite = {
trait_is_virtue_rite = trait:eccentric
}
}
scope:vengeful = {
scope:recipient.faith = {
trait_is_virtue = trait:vengeful
scope:recipient.rite = {
trait_is_virtue_rite = trait:vengeful
}
}
scope:forgiving = {
scope:recipient.faith = {
trait_is_virtue = trait:forgiving
scope:recipient.rite = {
trait_is_virtue_rite = trait:forgiving
}
}
}
@ -4730,183 +4742,183 @@ influence_child_personality_interaction = {
switch = {
trigger = yes
scope:sadistic = {
scope:recipient.faith = {
trait_is_sin = trait:sadistic
scope:recipient.rite = {
trait_is_sin_rite = trait:sadistic
}
}
scope:lustful = {
scope:recipient.faith = {
trait_is_sin = trait:lustful
scope:recipient.rite = {
trait_is_sin_rite = trait:lustful
}
}
scope:chaste = {
scope:recipient.faith = {
trait_is_sin = trait:chaste
scope:recipient.rite = {
trait_is_sin_rite = trait:chaste
}
}
scope:gluttonous = {
scope:recipient.faith = {
trait_is_sin = trait:gluttonous
scope:recipient.rite = {
trait_is_sin_rite = trait:gluttonous
}
}
scope:temperate = {
scope:recipient.faith = {
trait_is_sin = trait:temperate
scope:recipient.rite = {
trait_is_sin_rite = trait:temperate
}
}
scope:greedy = {
scope:recipient.faith = {
trait_is_sin = trait:greedy
scope:recipient.rite = {
trait_is_sin_rite = trait:greedy
}
}
scope:generous = {
scope:recipient.faith = {
trait_is_sin = trait:generous
scope:recipient.rite = {
trait_is_sin_rite = trait:generous
}
}
scope:lazy = {
scope:recipient.faith = {
trait_is_sin = trait:lazy
scope:recipient.rite = {
trait_is_sin_rite = trait:lazy
}
}
scope:diligent = {
scope:recipient.faith = {
trait_is_sin = trait:diligent
scope:recipient.rite = {
trait_is_sin_rite = trait:diligent
}
}
scope:wrathful = {
scope:recipient.faith = {
trait_is_sin = trait:wrathful
scope:recipient.rite = {
trait_is_sin_rite = trait:wrathful
}
}
scope:calm = {
scope:recipient.faith = {
trait_is_sin = trait:calm
scope:recipient.rite = {
trait_is_sin_rite = trait:calm
}
}
scope:patient = {
scope:recipient.faith = {
trait_is_sin = trait:patient
scope:recipient.rite = {
trait_is_sin_rite = trait:patient
}
}
scope:impatient = {
scope:recipient.faith = {
trait_is_sin = trait:impatient
scope:recipient.rite = {
trait_is_sin_rite = trait:impatient
}
}
scope:arrogant = {
scope:recipient.faith = {
trait_is_sin = trait:arrogant
scope:recipient.rite = {
trait_is_sin_rite = trait:arrogant
}
}
scope:humble = {
scope:recipient.faith = {
trait_is_sin = trait:humble
scope:recipient.rite = {
trait_is_sin_rite = trait:humble
}
}
scope:deceitful = {
scope:recipient.faith = {
trait_is_sin = trait:deceitful
scope:recipient.rite = {
trait_is_sin_rite = trait:deceitful
}
}
scope:honest = {
scope:recipient.faith = {
trait_is_sin = trait:honest
scope:recipient.rite = {
trait_is_sin_rite = trait:honest
}
}
scope:craven = {
scope:recipient.faith = {
trait_is_sin = trait:craven
scope:recipient.rite = {
trait_is_sin_rite = trait:craven
}
}
scope:brave = {
scope:recipient.faith = {
trait_is_sin = trait:brave
scope:recipient.rite = {
trait_is_sin_rite = trait:brave
}
}
scope:shy = {
scope:recipient.faith = {
trait_is_sin = trait:shy
scope:recipient.rite = {
trait_is_sin_rite = trait:shy
}
}
scope:gregarious = {
scope:recipient.faith = {
trait_is_sin = trait:gregarious
scope:recipient.rite = {
trait_is_sin_rite = trait:gregarious
}
}
scope:ambitious = {
scope:recipient.faith = {
trait_is_sin = trait:ambitious
scope:recipient.rite = {
trait_is_sin_rite = trait:ambitious
}
}
scope:content = {
scope:recipient.faith = {
trait_is_sin = trait:content
scope:recipient.rite = {
trait_is_sin_rite = trait:content
}
}
scope:arbitrary = {
scope:recipient.faith = {
trait_is_sin = trait:arbitrary
scope:recipient.rite = {
trait_is_sin_rite = trait:arbitrary
}
}
scope:just = {
scope:recipient.faith = {
trait_is_sin = trait:just
scope:recipient.rite = {
trait_is_sin_rite = trait:just
}
}
scope:cynical = {
scope:recipient.faith = {
trait_is_sin = trait:cynical
scope:recipient.rite = {
trait_is_sin_rite = trait:cynical
}
}
scope:zealous = {
scope:recipient.faith = {
trait_is_sin = trait:zealous
scope:recipient.rite = {
trait_is_sin_rite = trait:zealous
}
}
scope:paranoid = {
scope:recipient.faith = {
trait_is_sin = trait:paranoid
scope:recipient.rite = {
trait_is_sin_rite = trait:paranoid
}
}
scope:trusting = {
scope:recipient.faith = {
trait_is_sin = trait:trusting
scope:recipient.rite = {
trait_is_sin_rite = trait:trusting
}
}
scope:compassionate = {
scope:recipient.faith = {
trait_is_sin = trait:compassionate
scope:recipient.rite = {
trait_is_sin_rite = trait:compassionate
}
}
scope:callous = {
scope:recipient.faith = {
trait_is_sin = trait:callous
scope:recipient.rite = {
trait_is_sin_rite = trait:callous
}
}
scope:stubborn = {
scope:recipient.faith = {
trait_is_sin = trait:stubborn
scope:recipient.rite = {
trait_is_sin_rite = trait:stubborn
}
}
scope:fickle = {
scope:recipient.faith = {
trait_is_sin = trait:fickle
scope:recipient.rite = {
trait_is_sin_rite = trait:fickle
}
}
scope:eccentric = {
scope:recipient.faith = {
trait_is_sin = trait:eccentric
scope:recipient.rite = {
trait_is_sin_rite = trait:eccentric
}
}
scope:vengeful = {
scope:recipient.faith = {
trait_is_sin = trait:vengeful
scope:recipient.rite = {
trait_is_sin_rite = trait:vengeful
}
}
scope:forgiving = {
scope:recipient.faith = {
trait_is_sin = trait:forgiving
scope:recipient.rite = {
trait_is_sin_rite = trait:forgiving
}
}
}
@ -4944,10 +4956,6 @@ influence_child_personality_interaction = {
}
}
# AI
ai_potential = {
any_relation = { type = ward }
}
ai_frequency_by_tier = {
barony = 0
county = 36
@ -4996,3 +5004,4 @@ influence_child_personality_interaction = {
}
}