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

@ -247,7 +247,22 @@
title = modify_vassal_contract_interaction_notification
right_icon = scope:recipient
# Add tyranny for each level increased. Can spend one hook to avoid one level of tyranny hit.
add_tyranny = vassal_obligation_increase_tyranny_gain
add_tyranny = {
value = vassal_obligation_increase_tyranny_gain
#HRE should not revoke titles from North Italians
if = {
limit = {
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient }
}
multiply = 2
}
}
if = {
limit = {
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient }
}
gg_untargeted_catalyst_effect = { CATALYST = catalyst_gg_imperial_overreach }
}
if = {
limit = { vassal_obligation_increase_tyranny_gain != 0 }
stress_and_fulfillment_impact = {
@ -391,6 +406,21 @@ vassal_modify_vassal_contract_interaction = {
}
}
trigger_else = {
trigger_if = {
limit = {
scope:puppet_or_actor = { government_has_flag = government_is_republic }
}
custom_description = {
text = "vassal_modify_vassal_contract_republic_requires_hook"
subject = scope:puppet_or_actor
object = scope:recipient
OR = {
always = scope:hook
always = scope:diarch
}
}
}
scope:puppet_or_actor = {
has_changed_contract_obligation_trigger = yes
}
@ -1425,6 +1455,7 @@ admin_vassal_modify_vassal_contract_interaction = {
send_option = {
is_shown = {
scope:puppet_or_actor = { is_diarch_of_target = scope:recipient }
scope:recipient = { has_diarchy_parameter = diarch_gets_a_free_change_on_vassal_contract }
}
is_valid = {
scope:puppet_or_actor = {
@ -1438,6 +1469,7 @@ admin_vassal_modify_vassal_contract_interaction = {
}
}
}
scope:recipient = { has_diarchy_active_parameter = diarch_gets_a_free_change_on_vassal_contract }
}
flag = diarch
localization = CALL_IN_DIARCH_RIGHTS
@ -1937,6 +1969,7 @@ nomad_vassal_modify_vassal_contract_interaction = {
send_option = {
is_shown = {
scope:puppet_or_actor = { is_diarch_of_target = scope:recipient }
scope:recipient = { has_diarchy_parameter = diarch_gets_a_free_change_on_vassal_contract }
}
is_valid = {
scope:puppet_or_actor = {
@ -1950,6 +1983,7 @@ nomad_vassal_modify_vassal_contract_interaction = {
}
}
}
scope:recipient = { has_diarchy_active_parameter = diarch_gets_a_free_change_on_vassal_contract }
}
flag = diarch
localization = CALL_IN_DIARCH_RIGHTS
@ -2341,6 +2375,13 @@ subject_modify_tributary_contract_interaction = {
limit = { always = scope:hook }
use_hook = scope:recipient
}
else_if = {
limit = { always = scope:gold }
pay_short_term_gold = {
target = scope:recipient
gold = 100
}
}
else = {
if = {
limit = { subject_standing < 0 } # this means we don't use subject standing
@ -2355,9 +2396,14 @@ subject_modify_tributary_contract_interaction = {
}
}
else = {
pay_short_term_gold = {
target = scope:recipient
gold = major_gold_value
if = {
limit = {
NOT = { government_has_flag = government_is_merchant }
}
pay_short_term_gold = {
target = scope:recipient
gold = major_gold_value
}
}
}
}
@ -2432,6 +2478,7 @@ subject_modify_tributary_contract_interaction = {
send_option = {
is_shown = {
scope:puppet_or_actor = { is_diarch_of_target = scope:recipient }
scope:recipient = { has_diarchy_parameter = diarch_gets_a_free_change_on_vassal_contract }
}
is_valid = {
scope:puppet_or_actor = {
@ -2445,10 +2492,25 @@ subject_modify_tributary_contract_interaction = {
}
}
}
scope:recipient = { has_diarchy_active_parameter = diarch_gets_a_free_change_on_vassal_contract }
}
flag = diarch
localization = CALL_IN_DIARCH_RIGHTS
}
send_option = {
is_shown = {
scope:actor = {
government_has_flag = government_is_merchant
}
}
is_valid = {
scope:actor = {
}
}
flag = gold
localization = REQUEST_CONTRACT_CHANGE_GOLD
}
should_use_extra_icon = {
scope:puppet_or_actor = { has_usable_hook = scope:recipient }
}
@ -2460,12 +2522,21 @@ subject_modify_tributary_contract_interaction = {
# Opinion Factor
opinion_modifier = {
trigger = { NOT = { scope:actor = { government_has_flag = government_is_merchant } } }
who = scope:recipient
opinion_target = scope:puppet_or_actor
multiplier = 1
desc = AI_OPINION_REASON
}
opinion_modifier = {
trigger = { scope:actor = { government_has_flag = government_is_merchant } }
who = scope:recipient
opinion_target = scope:actor
multiplier = 0.75
desc = AI_OPINION_REASON
}
modifier = {
add = {
add = scope:new_value
@ -2482,9 +2553,31 @@ subject_modify_tributary_contract_interaction = {
}
multiply = 0.5
}
if = { # For merchants, it is a bit rougher making a difference, to see if we can force them to use gold
limit = {
scope:actor = {
has_subject_contract_group = tributary_merchant
}
}
multiply = 3
}
}
desc = AI_CONTRACT_BALANCE
}
modifier = {
scope:gold = yes
add = 20
desc = AI_GOLD_BALANCE
}
modifier = {
add = 15
desc = exclusive_contracts_perk_acceptance
scope:actor = {
government_has_flag = government_is_merchant
has_perk = forced_vassalage_perk
}
}
}
}