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

@ -6,7 +6,6 @@
purchase_land_interaction = {
category = interaction_category_laamp
icon = purchase_land_interaction
desc = purchase_land_interaction_desc
target_type = title
target_filter = recipient_de_jure_titles
@ -17,7 +16,7 @@ purchase_land_interaction = {
first_valid = {
triggered_desc = {
trigger = {
scope:recipient = { top_liege != this }
scope:recipient.top_liege != this
scope:target = {
trigger_if = {
limit = { tier = tier_duchy }
@ -61,33 +60,23 @@ purchase_land_interaction = {
}
is_shown = {
has_ep3_dlc_trigger = yes
scope:actor = {
this != scope:recipient
}
scope:recipient = {
is_landed = yes
# Need to own the land/cannot directly buy a governorship (procure estate first)
NOT = { government_allows = noble_families }
NOR = {
government_allows = noble_families
government_has_flag = government_is_republic # join instead
}
}
scope:recipient != scope:actor
}
has_valid_target = {
custom_tooltip = { #prevent unwanted trigger tooltip
text = blank_line
scope:target ?= {
is_title_created = yes
holder = {
is_ai = yes
this = scope:recipient
}
OR = { #flatten the selection
tier = tier_duchy
tier = tier_county
}
NOR = {
this = scope:recipient.capital_county
this = scope:recipient.capital_county.duchy
}
}
scope:target ?= { is_purchasable_title_trigger = yes }
}
}
@ -100,9 +89,7 @@ purchase_land_interaction = {
send_option = {
flag = hook
is_valid = {
scope:actor = {
has_usable_hook = scope:recipient
}
scope:actor = { has_usable_hook = scope:recipient }
}
localization = GENERIC_SPEND_A_HOOK
}
@ -111,9 +98,7 @@ purchase_land_interaction = {
flag = offer_hook
is_valid = {
NOT = {
scope:recipient = {
has_usable_hook = scope:actor
}
scope:recipient = { has_usable_hook = scope:actor }
}
}
localization = purchase_land_interaction_offer_hook
@ -123,53 +108,17 @@ purchase_land_interaction = {
send_option = {
flag = vassal_obligation
is_shown = {
scope:recipient = {
government_has_flag = government_is_feudal
}
scope:recipient = { government_has_flag = government_is_feudal }
}
localization = purchase_land_interaction_offer_obligations
current_description = purchase_land_interaction_offer_obligations_desc
}
can_be_picked_title = {
custom_tooltip = {
text = purchase_land_tier_tt
scope:target = {
tier >= tier_county
tier <= tier_duchy
}
}
custom_tooltip = {
text = purchase_land_capital_tt
scope:target != scope:recipient.capital_county
}
custom_tooltip = {
text = purchase_land_primary_tt
scope:target != scope:recipient.primary_title
}
custom_tooltip = {
text = purchase_land_duchy_tt
scope:target = {
trigger_if = {
limit = { tier = tier_duchy }
scope:actor = {
prestige_level >= 3
}
}
}
}
custom_tooltip = {
text = PURCHASE_LAND_COMPLETE_CONTROL_TT
trigger_if = {
limit = { scope:target = { tier = tier_duchy } }
scope:recipient = {
completely_controls = scope:target
}
}
}
trigger_if = {
limit = { exists = scope:target.holder }
scope:target.holder = scope:recipient
is_title_purchasable_shared_trigger = {
TITLE = scope:target
BUYER = scope:actor
SELLER = scope:recipient
}
}
@ -184,64 +133,17 @@ purchase_land_interaction = {
}
scope:recipient = {
is_contact_of = scope:actor
is_at_war = no
NOT = { has_strong_hook = scope:actor }
}
trigger_if = { # Can't purchase Baronies
limit = {
scope:target ?= { tier = tier_barony }
}
custom_description = {
text = purchase_land_barony_tt
always = no
}
}
trigger_if = { # Can't purchase Kingdoms or Empires
limit = {
scope:target ?= { tier >= tier_kingdom }
}
custom_description = {
text = purchase_land_kingdom_tt
always = no
}
}
trigger_if = { # Can't purchase HoF titles
limit = {
scope:target ?= { is_head_of_faith = yes }
}
custom_description = {
text = purchase_land_religious_tt
always = no
}
}
trigger_if = { # Can't purchase nf titles
limit = {
scope:target ?= { is_noble_family_title = yes }
}
custom_description = {
text = purchase_land_noble_family_tt
always = no
}
}
trigger_if = { # Can't purchase laamp titles
limit = {
scope:target ?= { has_variable = adventurer_creation_reason }
}
custom_description = {
text = purchase_land_landless_adventurer_tt
always = no
custom_tooltip = {
text = purchase_land_no_land_tt
any_held_title = { is_purchasable_title_trigger = yes }
}
}
trigger_if = {
limit = {
scope:recipient = {
any_held_county = { count < 2 }
}
}
custom_description = {
text = purchase_land_minimum_county_tt
object = scope:recipient
always = no
limit = { exists = scope:target }
is_title_purchase_valid_shared_trigger = {
TITLE = scope:target
BUYER = scope:actor
SELLER = scope:recipient
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
@ -290,102 +192,12 @@ purchase_land_interaction = {
}
on_accept = {
scope:actor = { save_scope_as = adventurer }
scope:target = {
save_scope_as = purchase_land_target
add_to_list = purchased_titles
if = {
limit = { tier = tier_duchy }
every_de_jure_county = {
limit = {
holder ?= {
OR = {
this = scope:recipient
target_is_liege_or_above = scope:recipient
}
}
}
if = {
limit = { holder = scope:recipient }
add_to_list = purchased_titles
}
else_if = {
limit = {
holder ?= {
highest_held_title_tier < scope:purchase_land_target.tier
NOT = { government_has_flag = government_is_administrative }
target_is_liege_or_above = scope:recipient
}
}
holder = {
if = {
limit = {
NOT = { is_in_list = purchase_land_vassals_taken }
}
add_to_list = purchase_land_vassals_taken
}
}
}
else = {
add_to_list = purchased_titles
}
}
}
}
ordered_in_list = {
list = purchased_titles
order_by = tier
save_scope_as = new_primary_title
}
save_scope_value_as = {
name = purchase_land_cost
value = {
if = {
limit = { scope:target.tier = tier_county }
add = purchase_land_county_cost_value
}
else = {
add = purchase_land_duchy_cost_value
scope:target = {
every_de_jure_county = {
limit = { ep3_purchase_land_valid_county_trigger = yes }
add = purchase_land_county_cost_value
}
}
}
if = {
limit = {
scope:actor = { has_variable = ep3_grace_to_the_family_var }
}
multiply = 0.5
}
if = {
limit = { scope:offer_gold = yes }
multiply = 2
}
}
}
save_scope_value_as = {
name = purchase_land_legitimacy_cost
value = {
value = 0
if = {
limit = {
scope:target.holder != scope:recipient
}
every_in_list = {
list = purchased_titles
if = {
limit = { tier = tier_county }
add = minor_legitimacy_loss
}
else = { add = medium_legitimacy_loss }
}
}
}
}
purchase_land_interaction_save_scopes_effect = yes
show_as_tooltip = {
scope:actor = { purchase_land_interaction_effect = yes }
purchase_land_interaction_shortened_effect = {
TITLE_RECEIVER = scope:actor
TITLE_GIVER = scope:recipient
}
}
if = {
limit = { always = scope:hook }
@ -400,10 +212,7 @@ purchase_land_interaction = {
}
on_decline = {
scope:actor = {
save_scope_as = adventurer
trigger_event = ep3_laamps.0102
}
scope:actor = { trigger_event = ep3_laamps.0102 }
}
ai_targets = {
@ -420,7 +229,7 @@ purchase_land_interaction = {
ai_frequency_by_tier = {
barony = 0
county = 0
duchy = 60
duchy = 60 # adventurers are dukes
kingdom = 0
empire = 0
hegemony = 0
@ -464,7 +273,7 @@ purchase_land_interaction = {
value = 0
if = {
limit = { scope:target.tier = tier_county }
add = scope:target.development_level
add = scope:target.prosperity_level
scope:target = {
every_county_province = { add = num_buildings }
}
@ -473,7 +282,7 @@ purchase_land_interaction = {
scope:target = {
every_de_jure_county = {
limit = { ep3_purchase_land_valid_county_trigger = yes }
add = development_level
add = prosperity_level
every_county_province = { add = num_buildings }
}
}
@ -1113,7 +922,10 @@ purchase_sacred_land_interaction = {
}
}
show_as_tooltip = {
scope:actor = { purchase_land_interaction_effect = yes }
purchase_land_interaction_effect = {
TITLE_RECEIVER = scope:actor
TITLE_GIVER = scope:recipient
}
}
scope:actor = {
if = {
@ -1197,7 +1009,7 @@ purchase_sacred_land_interaction = {
value = 0
if = {
limit = { exists = scope:target }
add = scope:target.development_level
add = scope:target.prosperity_level
scope:target = {
every_county_province = { add = num_buildings }
}
@ -1420,7 +1232,7 @@ request_laamp_invasion_sponsorship_interaction = {
is_shown = {
scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } }
NOT = { scope:actor = { has_realm_law = camp_purpose_legitimists } }
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:recipient = { is_landed = yes }
scope:recipient != scope:actor
}
@ -1905,7 +1717,7 @@ negotiate_settlement_interaction = {
}
}
is_landed = yes
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
}
is_shown = {
@ -2008,6 +1820,15 @@ negotiate_settlement_interaction = {
always = no
}
}
trigger_if = { # Can't purchase merchant titles
limit = {
scope:target ?= { has_variable = merchant_creation_reason }
}
custom_description = {
text = negotiate_settlement_merchant_tt
always = no
}
}
trigger_if = {
limit = {
scope:actor = { government_has_flag = government_is_administrative }
@ -2319,7 +2140,7 @@ negotiate_settlement_interaction = {
value = 0
if = {
limit = { scope:target.tier = tier_county }
add = scope:target.development_level
add = scope:target.prosperity_level
scope:target = {
every_county_province = { add = num_buildings }
}
@ -2328,7 +2149,7 @@ negotiate_settlement_interaction = {
scope:target = {
every_de_jure_county = {
limit = { ep3_negotiate_settlement_valid_county_trigger = yes }
add = development_level
add = prosperity_level
every_county_province = { add = num_buildings }
}
}
@ -2813,13 +2634,13 @@ negotiate_settlement_interaction = {
limit = {
scope:target.tier = tier_county
}
subtract = scope:target.development_level
subtract = scope:target.prosperity_level
}
if = {
limit = {
scope:target.tier > tier_county
}
subtract = scope:target.title_capital_county.development_level
subtract = scope:target.title_capital_county.prosperity_level
}
}
}
@ -3221,7 +3042,7 @@ complete_task_contract_interaction = {
pause_on_receive = yes
is_shown = {
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:actor = {
any_character_active_contract = {
OR = {
@ -3440,7 +3261,7 @@ contact_list_request_interaction = { # make a request, make_a_request
is_shown = {
scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } }
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:actor != scope:recipient
}
is_valid_showing_failures_only = {
@ -3450,7 +3271,6 @@ contact_list_request_interaction = { # make a request, make_a_request
NOR = {
is_at_war_with = scope:actor
has_relation_rival = scope:actor
has_relation_nemesis = scope:actor
has_opinion_modifier = {
target = scope:actor
modifier = released_from_prison
@ -3934,7 +3754,7 @@ contact_list_request_interaction = { # make a request, make_a_request
name = provisions_transformed_to_gold_value
value = {
value = scope:provisions_overflow_value
multiply = 0.05
multiply = 0.02
}
}
}
@ -3996,7 +3816,7 @@ contact_list_request_interaction = { # make a request, make_a_request
name = requested_gold_value
value = {
value = scope:recipient.gold
divide = 4
divide = 8
multiply = {
value = scope:recipient.ai_greed
divide = -300
@ -4626,6 +4446,7 @@ contact_list_request_interaction = { # make a request, make_a_request
}
ai_targets = { ai_recipients = contacts }
ai_targets = { ai_recipients = hooked_characters }
ai_target_quick_trigger = { adult = yes }
auto_accept = {
scope:actor = { has_usable_hook = scope:recipient }
scope:recipient = { is_ai = yes }
@ -5164,7 +4985,7 @@ reinforce_soldiers_interaction = {
}
is_shown = {
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:recipient = scope:actor
}
@ -5418,15 +5239,33 @@ hire_laamp_mercenaries_interaction = {
is_available = {
trigger_if = {
limit = { is_ai = yes }
debt_level <= 1
any_character_war = {
is_war_leader = prev
}
war_chest_gold >= quarter_ai_war_chest_gold_maximum
any_war_ally = {
count < 3
has_government = landless_adventurer_government
}
any_character_war = {
count = all
OR = {
AND = {
primary_attacker = root
defender_war_score <= 95
}
AND = {
primary_defender = root
attacker_war_score <= 95
}
}
}
}
}
is_shown = {
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:recipient = {
OR = {
has_government = landless_adventurer_government
@ -5479,6 +5318,11 @@ hire_laamp_mercenaries_interaction = {
has_government = landless_minority_government
}
}
custom_tooltip = {
at_mercenary_limit = yes
text = MERCENARY_HIRE_LIMIT_REACHED
}
}
}
scope:puppet_or_actor = {
@ -5610,7 +5454,7 @@ hire_laamp_mercenaries_interaction = {
value = scope:puppet_or_actor
}
}
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = medium_unity_gain
@ -5654,7 +5498,7 @@ hire_laamp_mercenaries_interaction = {
# add = 1
# }
#}
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_loss
@ -5686,6 +5530,15 @@ hire_laamp_mercenaries_interaction = {
empire = 6
hegemony = 6
}
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 36
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_targets = {
ai_recipients = nearby_domicile_owners
}
@ -6161,7 +6014,7 @@ refill_maa_interaction = {
}
is_shown = {
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:recipient = scope:actor
}
@ -6312,7 +6165,7 @@ evict_adventurer_interaction = {
is_shown = {
scope:puppet_or_actor ?= { is_landed = yes }
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:recipient != scope:puppet_or_actor
scope:recipient = {
OR = {
@ -6694,7 +6547,7 @@ procure_estate_interaction = {
is_shown = {
scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } }
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:recipient = {
is_landed = yes
government_allows = noble_families
@ -7375,7 +7228,7 @@ request_laamp_legitimist_support = {
}
is_shown = {
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:recipient = {
is_landed = yes
is_ai = yes
@ -7404,12 +7257,8 @@ request_laamp_legitimist_support = {
NOT = {
any_claim = {
OR = {
holder = {
this = scope:recipient
}
holder.top_liege = {
this = scope:recipient
}
holder ?= scope:recipient
holder.top_liege ?= scope:recipient
}
}
}
@ -7646,7 +7495,7 @@ task_contract_train_knight_interaction = {
}
is_shown = {
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
scope:actor = {
any_character_active_contract = {
task_contract_type = laamp_help_train_commanders_contract