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

@ -53,17 +53,10 @@ start_murder_interaction = {
}
}
scope:recipient = { NOT = { has_strong_hook = scope:puppet_or_actor } }
trigger_if = {
limit = {
scope:puppet_or_actor = {
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
#limit range for landless adventurers/merchants
exceptional_diplo_range_trigger = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
}
trigger_if = {
limit = { scope:puppet_or_actor = { has_variable = no_scheming_allowed_var } }
@ -129,13 +122,22 @@ start_murder_interaction = {
scope:puppet_or_actor = {
if = { # Only get stressed/SP penalties if you don't have the parameter
limit = {
NOT = { has_fulfillment_parameter = sp_murder_yields_no_sp_or_stress_loss }
NOR = {
has_fulfillment_parameter = sp_murder_yields_no_sp_or_stress_loss
has_variable = recently_troubled_by_murder_plot
}
}
stress_and_fulfillment_impact = {
compassionate = major_stress_impact_gain
honest = medium_stress_impact_gain
just = medium_stress_impact_gain
}
hidden_effect = {
set_variable = {
name = recently_troubled_by_murder_plot
years = 1
}
}
}
send_interface_toast = {
type = event_toast_effect_neutral
@ -218,14 +220,15 @@ start_murder_interaction = {
# Hand over the modifier.
random_scheme = {
type = murder
limit = {
scheme_target_character = scope:recipient
}
limit = { scheme_target_character = scope:recipient }
add_scheme_modifier = { type = feast_learnt_habits_modifier }
}
# Remove the variable now that we're done with it.
remove_variable = feast_events_ewan_0001_bonus_value
}
# #Guelphs & Ghibellines
# gg_scheme_catalyst_warning_effect = { SCHEME = murder }
# gg_involvement_scheme_tooltip_effect = yes
}
if = {
limit = {
@ -327,18 +330,10 @@ start_abduct = {
}
}
scope:recipient = { NOT = { has_strong_hook = scope:puppet_or_actor } }
#limit range for landless adventurers
trigger_if = {
limit = {
scope:puppet_or_actor = {
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
#limit range for landless adventurers/merchants
exceptional_diplo_range_trigger = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
}
trigger_if = {
limit = { scope:puppet_or_actor = { has_variable = no_scheming_allowed_var } }
@ -488,6 +483,9 @@ start_abduct = {
}
}
}
#Guelphs & Ghibellines
gg_scheme_catalyst_warning_effect = { SCHEME = abduct }
gg_involvement_scheme_tooltip_effect = yes
}
if = {
limit = {
@ -582,6 +580,58 @@ start_abduct = {
}
always = yes
}
#The target is quite the GG meddler
modifier = {
add = {
value = 0
#More weight if they have high involvement, stacking
if = {
limit = {
scope:recipient = {
exists = var:gg_involvement
var:gg_involvement >= gg_involvement_major_value
}
}
add = 25
}
if = {
limit = {
scope:recipient = {
exists = var:gg_involvement
var:gg_involvement >= gg_involvement_massive_value
}
}
add = 25
}
if = {
limit = {
scope:recipient = {
exists = var:gg_involvement
var:gg_involvement >= gg_involvement_omega_value
}
}
add = 25
}
if = {
limit = {
scope:recipient = {
exists = var:gg_involvement
var:gg_involvement >= gg_involvement_capped_value
}
}
add = 25
}
#Double if the target banished someone from your side
if = {
limit = {
scope:recipient = { has_character_modifier = vilified_ruler_modifier }
}
multiply = 2
}
}
exists = situation:guelph_ghibelline
gg_first_and_second_are_opposite_sides_trigger = { FIRST = scope:actor SECOND = scope:recipient }
}
#Promised to abstain from sin
modifier = {
OR = {
@ -689,18 +739,10 @@ befriend_interaction = {
target_character = scope:recipient
}
}
#limit range for landless adventurers
trigger_if = {
limit = {
scope:puppet_or_actor = {
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
#limit range for landless adventurers/merchants
exceptional_diplo_range_trigger = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
}
trigger_if = {
limit = { scope:is_puppet_action ?= yes }
@ -1112,6 +1154,15 @@ seduce_interaction = {
empire = 12
hegemony = 12
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 216
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
is_available = {
trigger_if = {
@ -1260,18 +1311,10 @@ seduce_interaction = {
}
scope:recipient = { primary_spouse = { NOT = { has_strong_hook = scope:puppet_or_actor } } }
}
#limit range for landless adventurers
trigger_if = {
limit = {
scope:puppet_or_actor = {
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
#limit range for landless adventurers/merchants
exceptional_diplo_range_trigger = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
}
}
@ -1455,10 +1498,7 @@ seduce_interaction = {
add = 25
scope:recipient = {
primary_spouse ?= {
OR = {
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
}
has_relation_rival = scope:puppet_or_actor
}
}
}
@ -1922,18 +1962,10 @@ court_interaction = {
NOT = { has_character_modifier = clerical_chastity_vow_modifier }
}
}
#limit range for landless adventurers
trigger_if = {
limit = {
scope:puppet_or_actor = {
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
#limit range for landless adventurers/merchants
exceptional_diplo_range_trigger = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
}
}
@ -2258,6 +2290,15 @@ sway_interaction = {
empire = 6
hegemony = 6
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 360
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
is_available = {
trigger_if = {
@ -2347,18 +2388,10 @@ sway_interaction = {
target_character = scope:recipient
}
}
#limit range for landless adventurers
trigger_if = {
limit = {
scope:puppet_or_actor = {
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
#limit range for landless adventurers/merchants
exceptional_diplo_range_trigger = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
}
}
@ -2664,18 +2697,10 @@ learn_language_interaction = {
target_character = scope:recipient
}
}
#limit range for landless adventurers
trigger_if = {
limit = {
scope:puppet_or_actor = {
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
#limit range for landless adventurers/merchants
exceptional_diplo_range_trigger = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
}
}
@ -2784,6 +2809,23 @@ learn_language_interaction = {
scope:puppet_or_actor.religion = scope:recipient.religion
}
modifier = {
add = 50
scope:puppet_or_actor = {
culture = {
has_cultural_parameter = wants_to_learn_chinese
}
NOT = {
knows_language = language_chinese
}
}
scope:recipient = {
culture = {
has_cultural_pillar = language_chinese
}
}
}
modifier = {
add = 25
scope:puppet_or_actor = {
@ -2969,7 +3011,7 @@ learn_language_interaction = {
modifier = {
add = 100
scope:puppet_or_actor.culture = {
has_cultural_tradition = tradition_loyal_soldiers
has_cultural_parameter = wants_to_learn_liege_language
}
top_liege != this
scope:puppet_or_actor = {
@ -3057,6 +3099,15 @@ study_faith_interaction = {
empire = 36
hegemony = 36
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 216
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
is_available = {
trigger_if = {
@ -3104,18 +3155,10 @@ study_faith_interaction = {
target_character = scope:recipient
}
}
#limit range for landless adventurers
trigger_if = {
limit = {
scope:puppet_or_actor = {
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
#limit range for landless adventurers/merchants
exceptional_diplo_range_trigger = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
}
trigger_if = {
limit = { scope:is_puppet_action ?= yes }
@ -3521,3 +3564,350 @@ study_faith_interaction = {
}
}
influence_house_ambition_interaction = {
icon = influence_house_ambition
category = interaction_category_friendly
common_interaction = yes
send_name = START_SCHEME
interface_priority = 75
scheme = influence_house_ambition
ignores_pending_interaction_block = yes
ai_targets = {
ai_recipients = liege
ai_recipients = neighboring_rulers
max = 10
}
ai_targets = {
ai_recipients = vassals
ai_recipients = peer_vassals
max = 10
}
ai_frequency_by_tier = {
barony = 0
county = 120
duchy = 24
kingdom = 6
empire = 6
hegemony = 6
}
is_available = {
government_has_flag = government_is_republic
this = house.house_head
NOT = {
house = {
has_house_aspiration_parameter = republic_no_ambition
}
}
NOR = {
scheme_generic_ai_blocker_trigger = yes
primary_title = {
is_mercenary_company = yes
}
}
}
is_shown = {
scope:actor != scope:recipient
scope:recipient = {
government_has_flag = government_is_republic
this = house.house_head
}
}
is_valid_showing_failures_only = {
scope:actor = {
can_start_scheme = {
type = sway
target_character = scope:recipient
}
}
custom_tooltip = {
scope:actor.house = {
NOT = {
has_same_house_aspiration_as = scope:recipient.house
}
}
text = influence_house_ambition_same_ambition
}
}
desc = scheme_interaction_tt_influence_house_ambition_approved
on_accept = {
scope:actor = {
send_interface_toast = {
type = event_toast_effect_neutral
title = influence_house_ambition_interaction_notification
left_icon = scope:actor
right_icon = scope:recipient
begin_scheme_basic_effect = {
SCHEME_TYPE = influence_house_ambition
TARGET_TYPE = target_character
TARGET_SCOPE = scope:recipient
}
}
}
}
auto_accept = yes
ai_will_do = {
base = 10
modifier = { # Prefer seducing if you've got the focus for it
add = -20
scope:actor = {
has_focus = intrigue_temptation_focus
}
}
modifier = {
add = 10
scope:recipient = {
is_vassal_of = scope:actor
}
}
modifier = { # Try to sway those who you might want to vassalize
add = 30
scope:actor = {
top_liege = this
primary_title.tier >= tier_county
NOT = {
any_targeting_faction = {
exists = yes
OR = {
faction_is_type = liberty_faction
faction_is_type = claimant_faction
faction_is_type = independence_faction
}
}
}
}
scope:recipient = {
top_liege = this
is_playable_character = yes
primary_title.tier < scope:actor.primary_title.tier
OR = {
faith.religion = scope:actor.faith.religion
AND = {
faith = {
has_doctrine = doctrine_pluralism_pluralistic
}
scope:actor.faith = {
has_doctrine = doctrine_pluralism_pluralistic
}
}
}
}
}
modifier = {
add = 10
scope:recipient = {
joined_faction ?= {
faction_target = scope:actor
faction_is_type = liberty_faction
faction_is_at_war = no
}
}
}
modifier = {
add = 20
scope:recipient = {
joined_faction ?= {
faction_target = scope:actor
faction_is_type = claimant_faction
faction_is_at_war = no
}
}
}
modifier = {
add = 30
scope:recipient = {
joined_faction ?= {
faction_target = scope:actor
faction_is_type = independence_faction
faction_is_at_war = no
}
}
}
modifier = {
factor = 2
scope:recipient = {
is_a_faction_leader = yes
is_vassal_of = scope:actor
}
}
modifier = {
factor = 3
scope:recipient = {
is_vassal_of = scope:actor
opinion = {
target = scope:actor
value < 0
}
}
}
modifier = {
factor = 4
scope:recipient = {
is_powerful_vassal_of = scope:actor
opinion = {
target = scope:actor
value < 0
}
}
}
modifier = {
factor = 0.5
scope:recipient.faith != scope:actor.faith
}
modifier = {
factor = 0.25
scope:actor = {
is_ruler = yes
tier_difference = {
target = scope:recipient
value > 2
}
}
scope:recipient = {
is_theocratic_lessee = no
}
}
modifier = {
factor = 0.5
scope:actor = {
has_personality_malicious_trigger = yes
}
}
modifier = {
factor = 2
scope:actor = {
OR = {
has_trait = gregarious
has_trait = diplomat
has_trait = family_first
has_trait = august
}
}
}
modifier = {
factor = 0.75
scope:recipient = {
is_child_of = scope:actor
}
}
modifier = {
factor = 2
scope:actor = {
is_child_of = scope:recipient
}
}
modifier = {
factor = 0.25
scope:recipient = {
any_claim = {
this = scope:actor.primary_title
}
}
}
modifier = { # Butter up the realm priest
factor = 10
scope:recipient = {
is_theocratic_lessee = yes
opinion = {
target = scope:actor
value <= 50
}
}
}
modifier = { # Try to make your tax collectors like you
factor = 10
scope:actor = {
government_has_flag = government_is_clan
}
scope:recipient = {
is_tax_collector = yes
opinion = {
target = scope:actor
value <= 50
}
}
}
modifier = { # No point in swaying if opinion is already at 100
factor = 0
scope:recipient = {
opinion = {
target = scope:actor
value >= 100
}
}
}
modifier = { # Unlanded only if a realm priest, spymaster, or clan tax collector
factor = 0
scope:recipient = {
is_ruler = no
NOR = {
is_theocratic_lessee = yes
has_council_position = councillor_spymaster
AND = {
is_tax_collector = yes
scope:actor = { government_has_flag = government_is_clan }
}
}
}
}
modifier = { # Ignore rivals unless forgiving
factor = 0
scope:actor = {
has_relation_rival = scope:recipient
NOT = { has_trait = forgiving }
}
}
modifier = { # Ignore non-councillor barons
factor = 0
scope:recipient = {
primary_title.tier = tier_barony
is_councillor = no
}
}
modifier = { # Ignore neighboring Kings+
factor = 0
scope:recipient = {
top_liege = this
is_playable_character = yes
primary_title.tier >= tier_kingdom
}
}
modifier = { # Ignore neighboring Herders
factor = 0
scope:recipient = {
government_has_flag = government_is_herder
}
}
}
}