updating character interactions

This commit is contained in:
trashb0at 2025-04-11 14:29:56 -04:00
parent c7cd996463
commit 9e9e27cc5b
22 changed files with 846 additions and 342 deletions

View file

@ -1025,7 +1025,7 @@ challenge_to_2p_chess_interaction = {
icon = icon_gaming
category = interaction_category_friendly
desc = challenge_to_2p_chess_interaction_desc
common_interaction = yes
common_interaction = no
greeting = positive
notification_text = CHALLENGE_TO_2P_CHESS_INTERACTION_NOTIFICATION
@ -2006,6 +2006,7 @@ purchase_truce_interaction = {
has_struggle_phase_parameter = unlocks_truce_purchasing_interaction
}
has_perk = defensive_measures_perk
culture = { has_cultural_parameter = unlocks_purchase_truce }
}
# if you are not independent you should not be able to purchase truce with other fellow vassals only
@ -2026,7 +2027,10 @@ purchase_truce_interaction = {
is_valid_showing_failures_only = {
# Scope:actor must be an available (adult or child).
scope:actor = { is_available = yes }
scope:actor = {
gold >= pt_sum_small_value
is_available = yes
}
# Scope:recipient must be at least available.
scope:recipient = { is_available = yes }
# Make sure that scope:actor is going into this with a clean, no-recent/active/forbidden hostilities mindset.
@ -2442,45 +2446,6 @@ purchase_truce_interaction = {
scope:actor.max_military_strength > scope:recipient.purchase_truce_interaction_recipient_far_stronger_value
desc = PT_AI_RECIPIENT_IS_MUCH_WEAKER
}
# Struggle
modifier = {
desc = AI_STRUGGLE_INTENT
scope:recipient = {
any_character_struggle = {
involvement = involved
}
}
scope:actor = {
any_character_struggle = {
involvement = involved
}
}
add = {
value = 0
if = {
limit = {
scope:recipient = {
any_character_struggle = {
phase_has_catalyst = catalyst_sign_truce_outside_war
}
has_character_flag = agenda_towards_escalation
}
}
add = -50
}
else_if = {
limit = {
scope:recipient = {
any_character_struggle = {
phase_has_catalyst = catalyst_sign_truce_outside_war
}
}
}
add = 100
}
}
}
}
## Performance-enhancement
ai_potential = {
@ -3179,6 +3144,7 @@ contract_assistance_interaction = {
involvement = involved
has_struggle_phase_parameter = unlocks_contract_assistance_interaction
}
culture = { has_cultural_parameter = unlocks_contract_assistance }
is_landless_adventurer = yes
}
}
@ -3278,6 +3244,21 @@ contract_assistance_interaction = {
}
}
}
# Sensible restrictions to keep CulTrads from making this OP.
scope:recipient = {
custom_tooltip = {
text = contract_assistance_tier_too_high_tt
OR = {
highest_held_title_tier = tier_county
highest_held_title_tier >= scope:actor.highest_held_title_tier
sub_realm_size >= scope:actor.sub_realm_size
}
}
}
scope:actor = {
NOT = { highest_held_title_tier >= tier_empire }
}
}
can_be_picked = {