Alignment
This commit is contained in:
parent
f7a954eb51
commit
15a5108e23
250 changed files with 31104 additions and 25806 deletions
|
|
@ -101,7 +101,7 @@ diarch_revoke_title_interaction = {
|
|||
scope:recipient.highest_held_title_tier >= tier_county
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
is_valid = {
|
||||
# Here to correct for some dodgy inheritance situations.
|
||||
scope:actor != scope:intermediary
|
||||
|
|
@ -157,7 +157,7 @@ diarch_revoke_title_interaction = {
|
|||
trigger_if = {
|
||||
limit = {
|
||||
scope:actor = { is_diarch = yes }
|
||||
}
|
||||
}
|
||||
# Diarchs must have unlocked the appropriate power.
|
||||
scope:actor.liege ?= { has_diarchy_active_parameter = unlock_diarch_revoke_title_interaction }
|
||||
}
|
||||
|
|
@ -178,12 +178,12 @@ diarch_revoke_title_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
is_highlighted = {
|
||||
# Diarch revocations require a claim - this is uncommon, so we always highlight it.
|
||||
diarch_revocation_has_claim_check_trigger = yes
|
||||
}
|
||||
|
||||
|
||||
can_be_picked_title = {
|
||||
scope:target = {
|
||||
title_revocation_standard_can_pick_title_trigger = yes
|
||||
|
|
@ -251,7 +251,7 @@ diarch_revoke_title_interaction = {
|
|||
hidden_effect = {
|
||||
scope:actor = {
|
||||
if = {
|
||||
limit = {
|
||||
limit = {
|
||||
is_landed_or_landless_administrative = no
|
||||
scope:intermediary != scope:recipient
|
||||
}
|
||||
|
|
@ -732,10 +732,10 @@ diarch_retract_vassal_interaction = {
|
|||
can_send_despite_rejection = yes
|
||||
popup_on_receive = yes
|
||||
pause_on_receive = yes
|
||||
|
||||
|
||||
ai_min_reply_days = 4
|
||||
ai_max_reply_days = 9
|
||||
|
||||
|
||||
on_decline_summary = diarch_rebel_or_crime_summary.retract
|
||||
|
||||
is_shown = {
|
||||
|
|
@ -765,7 +765,7 @@ diarch_retract_vassal_interaction = {
|
|||
scope:recipient.highest_held_title_tier >= tier_duchy
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
is_valid = {
|
||||
# Here to correct for some dodgy inheritance situations.
|
||||
scope:actor != scope:intermediary
|
||||
|
|
@ -817,7 +817,7 @@ diarch_retract_vassal_interaction = {
|
|||
trigger_if = {
|
||||
limit = {
|
||||
scope:actor = { is_diarch = yes }
|
||||
}
|
||||
}
|
||||
# Diarchs must have unlocked the appropriate power.
|
||||
scope:actor.liege = { has_diarchy_active_parameter = unlock_diarch_retract_vassal_interaction }
|
||||
}
|
||||
|
|
@ -826,7 +826,7 @@ diarch_retract_vassal_interaction = {
|
|||
scope:actor = { is_at_war_with = scope:actor.liege }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
cooldown = { years = 1 }
|
||||
cooldown_against_recipient = { years = 3 }
|
||||
|
||||
|
|
@ -876,7 +876,7 @@ diarch_retract_vassal_interaction = {
|
|||
extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds"
|
||||
|
||||
send_options_exclusive = no
|
||||
|
||||
|
||||
on_send = {
|
||||
scope:actor = {
|
||||
add_character_flag = {
|
||||
|
|
@ -889,7 +889,7 @@ diarch_retract_vassal_interaction = {
|
|||
on_auto_accept = {
|
||||
scope:recipient = { trigger_event = char_interaction.0271 }
|
||||
}
|
||||
|
||||
|
||||
on_accept = {
|
||||
# Follow the standard flow for retraction.
|
||||
save_scope_value_as = {
|
||||
|
|
@ -959,7 +959,7 @@ diarch_retract_vassal_interaction = {
|
|||
diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_retract_veto_intermediary_list }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
on_decline = {
|
||||
scope:actor = {
|
||||
# Tell them that the retraction ran into issues.
|
||||
|
|
@ -1005,7 +1005,7 @@ diarch_retract_vassal_interaction = {
|
|||
diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_retract_decline_intermediary_list }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
auto_accept = {
|
||||
OR = {
|
||||
scope:recipient = {
|
||||
|
|
@ -1051,7 +1051,7 @@ diarch_retract_vassal_interaction = {
|
|||
}
|
||||
ai_accept = {
|
||||
base = 0 # Try to make it 0 for most interactions
|
||||
|
||||
|
||||
# Hook used
|
||||
modifier = {
|
||||
add = 40
|
||||
|
|
@ -1071,7 +1071,7 @@ diarch_retract_vassal_interaction = {
|
|||
desc = AI_REFUSAL_IS_TREASON
|
||||
scope:actor = { has_realm_law_flag = vassal_refusal_is_treason }
|
||||
}
|
||||
|
||||
|
||||
ai_value_modifier = {
|
||||
who = scope:recipient
|
||||
ai_greed = {
|
||||
|
|
@ -1111,7 +1111,7 @@ diarch_retract_vassal_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
modifier = { #Sub-Vassal is NOT De jure of current Vassal.
|
||||
add = 25
|
||||
desc = AI_REFUSAL_IS_NOT_DE_JURE_LIEGE
|
||||
|
|
@ -1199,7 +1199,7 @@ diarch_retract_vassal_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# AI
|
||||
ai_targets = { ai_recipients = peer_vassals }
|
||||
ai_frequency_by_tier = {
|
||||
|
|
@ -1210,7 +1210,7 @@ diarch_retract_vassal_interaction = {
|
|||
empire = 24
|
||||
hegemony = 24
|
||||
}
|
||||
|
||||
|
||||
ai_potential = {
|
||||
is_diarch = yes
|
||||
has_realm_law_flag = title_revocation_allowed
|
||||
|
|
@ -1218,7 +1218,7 @@ diarch_retract_vassal_interaction = {
|
|||
# Loyal diarchs don't engage in skullduggery.
|
||||
diarch_loyalty < diarch_loyalty_visibly_loyal_threshold
|
||||
}
|
||||
|
||||
|
||||
ai_will_do = {
|
||||
# We're generally ruthless here.
|
||||
base = @ai_secondary_powers_base_value
|
||||
|
|
@ -1441,7 +1441,7 @@ diarch_imprison_interaction = {
|
|||
trigger_if = {
|
||||
limit = {
|
||||
scope:actor = { is_diarch = yes }
|
||||
}
|
||||
}
|
||||
# Diarchs must have unlocked the appropriate power.
|
||||
scope:actor.liege = { has_diarchy_active_parameter = unlock_diarch_imprison_interaction }
|
||||
scope:actor.liege = {
|
||||
|
|
@ -1468,7 +1468,7 @@ diarch_imprison_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
is_highlighted = {
|
||||
scope:recipient = { is_imprisoned = no }
|
||||
scope:actor = { has_imprisonment_reason = scope:recipient }
|
||||
|
|
@ -1576,12 +1576,17 @@ diarch_imprison_interaction = {
|
|||
}
|
||||
|
||||
on_decline = {
|
||||
scope:actor = {
|
||||
imprison_HoF_consequences_effect = yes
|
||||
scope:actor = {
|
||||
save_scope_as = use_strife_not_tyranny
|
||||
imprison_HoF_consequences_effect = yes
|
||||
imprison_tyranny_effect = yes
|
||||
}
|
||||
# Do we want a war or an escape?
|
||||
scope:recipient = {
|
||||
add_opinion = {
|
||||
target = scope:actor
|
||||
modifier = attempted_imprisonment_opinion
|
||||
}
|
||||
# If target is count or higher, we want the option to start a war.
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -1599,6 +1604,11 @@ diarch_imprison_interaction = {
|
|||
diarch_declare_recipient_criminal_effect = yes
|
||||
}
|
||||
50 = {
|
||||
trigger = {
|
||||
scope:actor = {
|
||||
is_landed = yes # consistent with char_interaction.0283
|
||||
}
|
||||
}
|
||||
show_chance = no
|
||||
desc = char_interaction.0263.result.war
|
||||
scope:recipient = {
|
||||
|
|
@ -1743,7 +1753,7 @@ diarch_imprison_interaction = {
|
|||
}
|
||||
|
||||
auto_accept = no
|
||||
|
||||
|
||||
ai_intermediary_accept = {
|
||||
# The AI should be inclined to trust their regent, at least a little.
|
||||
base = 0
|
||||
|
|
@ -2158,7 +2168,7 @@ diarch_imprison_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Diarch (actor) offers to boost the CA/TA/IB of liege (recipient), taking on the costs and negatives themselves so that they can use their diarch powers.
|
||||
|
|
@ -2234,7 +2244,7 @@ diarch_subsidise_crown_authority_interaction = {
|
|||
limit = { has_realm_law = crown_authority_2 }
|
||||
can_pass_law_ca3_trigger = yes
|
||||
}
|
||||
|
||||
|
||||
# If the liege is administrative, they have to be independent.
|
||||
trigger_if = {
|
||||
limit = { government_allows = administrative }
|
||||
|
|
@ -2256,7 +2266,7 @@ diarch_subsidise_crown_authority_interaction = {
|
|||
multiply = subsidised_liege_authority_discount_value
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
on_accept = {
|
||||
scope:actor = {
|
||||
send_interface_toast = {
|
||||
|
|
@ -2294,7 +2304,7 @@ diarch_subsidise_crown_authority_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ai_accept = {
|
||||
base = 0
|
||||
|
||||
|
|
@ -2308,7 +2318,7 @@ diarch_subsidise_crown_authority_interaction = {
|
|||
|
||||
auto_accept = {
|
||||
custom_description = {
|
||||
text = auto_accept_interaction_ai
|
||||
text = auto_accept_interaction_ai
|
||||
object = scope:recipient
|
||||
scope:recipient = {
|
||||
is_ai = yes
|
||||
|
|
@ -2459,7 +2469,7 @@ diarch_adjust_bureaucracy_interaction = {
|
|||
localization = decrease_centralisation_name
|
||||
current_description = decrease_centralisation
|
||||
}
|
||||
|
||||
|
||||
on_send = {
|
||||
# Tell the AI to set their only send option.
|
||||
if = {
|
||||
|
|
@ -2518,7 +2528,7 @@ diarch_adjust_bureaucracy_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ai_accept = {
|
||||
base = -25
|
||||
|
||||
|
|
@ -2645,7 +2655,7 @@ diarch_adjust_bureaucracy_interaction = {
|
|||
|
||||
auto_accept = {
|
||||
custom_description = {
|
||||
text = auto_accept_interaction_ai
|
||||
text = auto_accept_interaction_ai
|
||||
object = scope:recipient
|
||||
scope:recipient = {
|
||||
is_ai = yes
|
||||
|
|
@ -2751,9 +2761,9 @@ diarch_legal_meddling_interaction = {
|
|||
# ... who are appropriately landed.
|
||||
is_landed_or_landless_administrative = yes
|
||||
scope:recipient.highest_held_title_tier >= tier_county
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
# You can't claim a title from someone if you already have claims on all their titles.
|
||||
custom_tooltip = {
|
||||
|
|
@ -2775,7 +2785,7 @@ diarch_legal_meddling_interaction = {
|
|||
trigger_if = {
|
||||
limit = {
|
||||
scope:actor = { is_diarch = yes }
|
||||
}
|
||||
}
|
||||
# Diarchs must have unlocked the appropriate power.
|
||||
scope:actor.liege = { has_diarchy_active_parameter = unlock_legal_meddling_interaction }
|
||||
}
|
||||
|
|
@ -2807,7 +2817,7 @@ diarch_legal_meddling_interaction = {
|
|||
|
||||
cooldown = { months = 6 }
|
||||
cooldown_against_recipient = { years = 3 }
|
||||
|
||||
|
||||
can_be_picked_title = {
|
||||
scope:target = {
|
||||
# Really anything you don't already have a claim on and which isn't special.
|
||||
|
|
@ -3166,7 +3176,7 @@ diarch_syphon_treasury_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
# Make sure scope:recipient is the liege.
|
||||
custom_tooltip = {
|
||||
|
|
@ -3194,7 +3204,7 @@ diarch_syphon_treasury_interaction = {
|
|||
trigger_if = {
|
||||
limit = {
|
||||
scope:actor = { is_diarch = yes }
|
||||
}
|
||||
}
|
||||
# Diarchs must have unlocked the appropriate power.
|
||||
scope:actor.liege = { has_diarchy_active_parameter = unlock_syphon_treasury_interaction }
|
||||
}
|
||||
|
|
@ -3296,15 +3306,15 @@ diarch_syphon_treasury_interaction = {
|
|||
# Inform scope:actor what type of embezzlement they'll be pursuing.
|
||||
## Very high stewardship characters syphon development growth from a few counties.
|
||||
if = {
|
||||
limit = {
|
||||
limit = {
|
||||
stewardship >= syphon_treasury_stewardship_very_high
|
||||
NOT = { government_has_flag = government_is_nomadic }
|
||||
NOT = { government_has_flag = government_is_nomadic }
|
||||
}
|
||||
custom_tooltip = diarch_syphon_treasury_interaction.tt.success.syphon_development_growth
|
||||
}
|
||||
## Alternatively, herd for nomadic rulers
|
||||
else_if = {
|
||||
limit = {
|
||||
limit = {
|
||||
stewardship >= syphon_treasury_stewardship_very_high
|
||||
government_has_flag = government_is_nomadic
|
||||
}
|
||||
|
|
@ -3399,27 +3409,27 @@ diarch_syphon_treasury_interaction = {
|
|||
## Very high.
|
||||
if = {
|
||||
limit = { always = scope:diarch_syphon_treasury_sum_huge }
|
||||
scope:recipient = {
|
||||
scope:recipient = {
|
||||
domicile ?= { change_herd = monumental_herd_loss }
|
||||
}
|
||||
}
|
||||
## High.
|
||||
else_if = {
|
||||
limit = { always = scope:diarch_syphon_treasury_sum_large }
|
||||
scope:recipient = {
|
||||
scope:recipient = {
|
||||
domicile ?= { change_herd = massive_herd_loss }
|
||||
}
|
||||
}
|
||||
## Medium.
|
||||
else_if = {
|
||||
limit = { always = scope:diarch_syphon_treasury_sum_medium }
|
||||
scope:recipient = {
|
||||
scope:recipient = {
|
||||
domicile ?= { change_herd = major_herd_loss }
|
||||
}
|
||||
}
|
||||
## Low.
|
||||
else = {
|
||||
scope:recipient = {
|
||||
scope:recipient = {
|
||||
domicile ?= { change_herd = medium_herd_loss }
|
||||
}
|
||||
}
|
||||
|
|
@ -3830,7 +3840,7 @@ diarch_shift_privileges_interaction = {
|
|||
scope:recipient.highest_held_title_tier >= tier_county
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
# Diarch must be able to act.
|
||||
diarch_cannot_be_disabled_trigger = { DIARCH = scope:actor }
|
||||
|
|
@ -3850,7 +3860,7 @@ diarch_shift_privileges_interaction = {
|
|||
trigger_if = {
|
||||
limit = {
|
||||
scope:actor = { is_diarch = yes }
|
||||
}
|
||||
}
|
||||
# Diarchs must have unlocked the appropriate power.
|
||||
scope:actor.liege = { has_diarchy_active_parameter = unlock_shift_privileges_interaction }
|
||||
}
|
||||
|
|
@ -4206,7 +4216,7 @@ diarch_request_imperial_expedition_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# How much influence do we want to outlay on this?
|
||||
## A cheapy amount.
|
||||
send_option = {
|
||||
|
|
@ -4261,7 +4271,7 @@ diarch_request_imperial_expedition_interaction = {
|
|||
trigger_event = diarchy.8002
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
auto_accept = {
|
||||
scope:recipient = {
|
||||
trigger_if = {
|
||||
|
|
@ -4600,7 +4610,7 @@ diarch_demand_despotate_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# How much influence do we want to outlay on this?
|
||||
## A cheapy amount.
|
||||
send_option = {
|
||||
|
|
@ -4677,7 +4687,7 @@ diarch_demand_despotate_interaction = {
|
|||
trigger_event = diarchy.8032
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
auto_accept = {
|
||||
scope:recipient = {
|
||||
trigger_if = {
|
||||
|
|
@ -5010,10 +5020,14 @@ diarch_coup_liege_interaction = {
|
|||
scope:recipient = scope:actor.liege
|
||||
}
|
||||
}
|
||||
scope:recipient = { save_scope_as = secondary_recipient }
|
||||
scope:recipient = {
|
||||
save_scope_as = secondary_recipient
|
||||
}
|
||||
}
|
||||
# Always make sure we're targeting your liege as the recipient for UX consistency.
|
||||
scope:actor.liege = { save_scope_as = recipient }
|
||||
scope:actor.liege = {
|
||||
save_scope_as = recipient
|
||||
}
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
|
|
@ -5028,12 +5042,11 @@ diarch_coup_liege_interaction = {
|
|||
is_designated_diarch = yes
|
||||
}
|
||||
}
|
||||
# Valid on vassals of your liege or your liege themselves.
|
||||
## More complex triggers don't generally work because redirect brings the interaction back to targeting the liege as scope:recipient, so we're left with this.
|
||||
### Don't try to improve it, it's not worth it, but if you _do_, then test your changes thoroughly.
|
||||
#### When this breaks (which it does easily), it tends to mean the interaction shows up as valid against _every_ other character in diplomatic range.
|
||||
OR = {
|
||||
scope:recipient = scope:actor.liege
|
||||
# secondary_recipient is always saved whenever you use it on anyone who isn't yourself or your liege, so we use this fact to validate it after the redirect, otherwise it will show up on every other ruler in the game
|
||||
trigger_if = {
|
||||
limit = {
|
||||
exists = scope:secondary_recipient
|
||||
}
|
||||
scope:secondary_recipient.liege ?= scope:actor.liege
|
||||
}
|
||||
}
|
||||
|
|
@ -5072,7 +5085,7 @@ diarch_coup_liege_interaction = {
|
|||
trigger_if = {
|
||||
limit = {
|
||||
scope:actor = { is_diarch = yes }
|
||||
}
|
||||
}
|
||||
# Diarchs must have unlocked the appropriate power.
|
||||
scope:actor.liege ?= { has_diarchy_active_parameter = regents_can_try_to_overthrow_present_lieges }
|
||||
}
|
||||
|
|
@ -5165,7 +5178,7 @@ diarch_coup_liege_interaction = {
|
|||
if = {
|
||||
limit = { exists = scope:secondary_recipient }
|
||||
scope:actor = {
|
||||
# Scope:secondary_recipient joins your conspiracy.
|
||||
# Scope:secondary_recipient joins your conspiracy.
|
||||
custom_tooltip = diarch_coup_liege_interaction.tt.secondary_recipient.joins_conspiracy
|
||||
## Send a notification just for a bit of extra feedback.
|
||||
send_interface_toast = {
|
||||
|
|
@ -5256,12 +5269,18 @@ diarch_coup_liege_interaction = {
|
|||
# Opinion.
|
||||
## Of scope:actor.
|
||||
opinion_modifier = {
|
||||
trigger = {
|
||||
exists = scope:secondary_recipient # because the secondary_recipient hasn't been chosen when the interaction is initialized
|
||||
}
|
||||
who = scope:secondary_recipient
|
||||
opinion_target = scope:actor
|
||||
multiplier = 1
|
||||
}
|
||||
## Of scope:recipient.
|
||||
opinion_modifier = {
|
||||
trigger = {
|
||||
exists = scope:secondary_recipient
|
||||
}
|
||||
who = scope:secondary_recipient
|
||||
opinion_target = scope:recipient
|
||||
multiplier = -0.5
|
||||
|
|
@ -5269,6 +5288,9 @@ diarch_coup_liege_interaction = {
|
|||
# Personality.
|
||||
## Values.
|
||||
ai_value_modifier = {
|
||||
trigger = {
|
||||
exists = scope:secondary_recipient
|
||||
}
|
||||
who = scope:secondary_recipient
|
||||
ai_honor = -1
|
||||
ai_boldness = 0.25
|
||||
|
|
@ -5278,68 +5300,69 @@ diarch_coup_liege_interaction = {
|
|||
modifier = {
|
||||
add = diarch_ai_desire_plus_3_value
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook.tt.has_trait.disloyal
|
||||
scope:secondary_recipient = { has_trait = disloyal }
|
||||
scope:secondary_recipient ?= { has_trait = disloyal }
|
||||
}
|
||||
### +++ Ambitious.
|
||||
modifier = {
|
||||
add = diarch_ai_desire_plus_3_value
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook.tt.has_trait.ambitious
|
||||
scope:secondary_recipient = { has_trait = ambitious }
|
||||
scope:secondary_recipient ?= { has_trait = ambitious }
|
||||
}
|
||||
### ++ Arbitrary.
|
||||
modifier = {
|
||||
add = diarch_ai_desire_plus_2_value
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook.tt.has_trait.arbitrary
|
||||
scope:secondary_recipient = { has_trait = arbitrary }
|
||||
scope:secondary_recipient ?= { has_trait = arbitrary }
|
||||
}
|
||||
### + Fickle.
|
||||
modifier = {
|
||||
add = diarch_ai_desire_plus_1_value
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook.tt.has_trait.fickle
|
||||
scope:secondary_recipient = { has_trait = fickle }
|
||||
scope:secondary_recipient ?= { has_trait = fickle }
|
||||
}
|
||||
### - Stubborn.
|
||||
modifier = {
|
||||
add = diarch_ai_desire_minus_1_value
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook.tt.has_trait.stubborn
|
||||
scope:secondary_recipient = { has_trait = stubborn }
|
||||
scope:secondary_recipient ?= { has_trait = stubborn }
|
||||
}
|
||||
### -- Just.
|
||||
modifier = {
|
||||
add = diarch_ai_desire_minus_2_value
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook.tt.has_trait.just
|
||||
scope:secondary_recipient = { has_trait = just }
|
||||
scope:secondary_recipient ?= { has_trait = just }
|
||||
}
|
||||
### --- Content.
|
||||
modifier = {
|
||||
add = diarch_ai_desire_minus_3_value
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook.tt.has_trait.content
|
||||
scope:secondary_recipient = { has_trait = content }
|
||||
scope:secondary_recipient ?= { has_trait = content }
|
||||
}
|
||||
### --- Loyal.
|
||||
modifier = {
|
||||
add = diarch_ai_desire_minus_3_value
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook.tt.has_trait.loyal
|
||||
scope:secondary_recipient = { has_trait = loyal }
|
||||
scope:secondary_recipient ?= { has_trait = loyal }
|
||||
}
|
||||
# Hooks.
|
||||
## Weak hooks are happy to have you in power.
|
||||
modifier = {
|
||||
add = 25
|
||||
scope:secondary_recipient = { has_weak_hook = scope:actor }
|
||||
scope:secondary_recipient ?= { has_weak_hook = scope:actor }
|
||||
}
|
||||
## Strong hooks are *very* happy to have you in power.
|
||||
modifier = {
|
||||
add = 75
|
||||
scope:secondary_recipient = { has_strong_hook = scope:actor }
|
||||
scope:secondary_recipient ?= { has_strong_hook = scope:actor }
|
||||
}
|
||||
## And conversely, don't want you to coup scope:recipient if they've already got a strong hook on them.
|
||||
modifier = {
|
||||
add = -100
|
||||
scope:secondary_recipient = { has_strong_hook = scope:recipient }
|
||||
scope:secondary_recipient ?= { has_strong_hook = scope:recipient }
|
||||
}
|
||||
## Loyalty hooks stop the AI signing up.
|
||||
modifier = {
|
||||
exists = scope:secondary_recipient
|
||||
add = -1000
|
||||
desc = diarch_coup_liege_interaction.tt.liege_has_loyalty_hook
|
||||
diarch_loyalty_due_to_hook_trigger = {
|
||||
|
|
@ -5355,12 +5378,12 @@ diarch_coup_liege_interaction = {
|
|||
# Reduce the malus a little if also allied to scope:actor.
|
||||
if = {
|
||||
limit = {
|
||||
scope:secondary_recipient = { is_allied_to = scope:actor }
|
||||
scope:secondary_recipient ?= { is_allied_to = scope:actor }
|
||||
}
|
||||
add = 50
|
||||
}
|
||||
}
|
||||
scope:secondary_recipient = { is_allied_to = scope:recipient }
|
||||
scope:secondary_recipient ?= { is_allied_to = scope:recipient }
|
||||
}
|
||||
## Heirs don't generally want to betray scope:recipient, as they'll lose out.
|
||||
modifier = {
|
||||
|
|
@ -5510,7 +5533,7 @@ mulct_vizier_interaction = {
|
|||
|
||||
# Don't squeeze them too often.
|
||||
cooldown = { years = 10 }
|
||||
|
||||
|
||||
# Attempt Methods
|
||||
send_options_exclusive = yes
|
||||
## Minimal.
|
||||
|
|
@ -5643,7 +5666,7 @@ mulct_vizier_interaction = {
|
|||
diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_vizmulct_accept_recipient_list }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
auto_accept = yes
|
||||
|
||||
# AI
|
||||
|
|
@ -6499,8 +6522,8 @@ swing_scales_currency_interaction = {
|
|||
# Viziers give you more bang for your buck when swinging against 'em.
|
||||
# Perk check for Voyager perk
|
||||
if = {
|
||||
limit = {
|
||||
has_diarchy_active_parameter = lieges_swing_more_against_diarchs
|
||||
limit = {
|
||||
has_diarchy_active_parameter = lieges_swing_more_against_diarchs
|
||||
has_perk = power_at_home_perk
|
||||
is_travelling = yes
|
||||
}
|
||||
|
|
@ -6513,7 +6536,7 @@ swing_scales_currency_interaction = {
|
|||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
has_diarchy_active_parameter = lieges_swing_more_against_diarchs
|
||||
has_diarchy_active_parameter = lieges_swing_more_against_diarchs
|
||||
AND = {
|
||||
has_perk = power_at_home_perk
|
||||
is_travelling = yes
|
||||
|
|
@ -6562,8 +6585,8 @@ swing_scales_currency_interaction = {
|
|||
# Viziers give you more bang for your buck when swinging against 'em.
|
||||
# Perk check for Voyager perk
|
||||
if = {
|
||||
limit = {
|
||||
has_diarchy_active_parameter = lieges_swing_more_against_diarchs
|
||||
limit = {
|
||||
has_diarchy_active_parameter = lieges_swing_more_against_diarchs
|
||||
has_perk = power_at_home_perk
|
||||
is_travelling = yes
|
||||
}
|
||||
|
|
@ -6576,7 +6599,7 @@ swing_scales_currency_interaction = {
|
|||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
has_diarchy_active_parameter = lieges_swing_more_against_diarchs
|
||||
has_diarchy_active_parameter = lieges_swing_more_against_diarchs
|
||||
AND = {
|
||||
has_perk = power_at_home_perk
|
||||
is_travelling = yes
|
||||
|
|
@ -6872,7 +6895,7 @@ diarch_swing_scales_currency_interaction = {
|
|||
}
|
||||
|
||||
cooldown = { years = 2 }
|
||||
|
||||
|
||||
cost = {
|
||||
influence = {
|
||||
if = {
|
||||
|
|
@ -6996,9 +7019,11 @@ diarch_swing_scales_currency_interaction = {
|
|||
scope:actor.var:movement_power_individual >= decent_movement_power_value
|
||||
}
|
||||
is_shown = {
|
||||
exists = scope:actor.var:movement_power_individual
|
||||
scope:actor = {
|
||||
government_has_flag = government_is_celestial
|
||||
is_diarch_of_target = scope:recipient
|
||||
exists = var:movement_power_individual
|
||||
}
|
||||
scope:recipient = { government_has_flag = government_is_celestial }
|
||||
}
|
||||
|
|
@ -7206,7 +7231,7 @@ diarch_entrench_regency_interaction = {
|
|||
# You must be able to act as diarch.
|
||||
diarch_cannot_be_disabled_trigger = { DIARCH = scope:actor }
|
||||
}
|
||||
|
||||
|
||||
on_accept = {
|
||||
scope:recipient = {
|
||||
# Tell scope:recipient what's up.
|
||||
|
|
@ -7240,7 +7265,7 @@ diarch_entrench_regency_interaction = {
|
|||
diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_entrench_recipient_list }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
auto_accept = yes
|
||||
|
||||
# AI
|
||||
|
|
@ -7323,7 +7348,7 @@ diarch_regent_appoints_self_co_emperor_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
on_accept = {
|
||||
scope:recipient = {
|
||||
# Tell scope:recipient what's up.
|
||||
|
|
@ -7361,7 +7386,7 @@ diarch_regent_appoints_self_co_emperor_interaction = {
|
|||
# Bit o'prestige for your hard work.
|
||||
scope:actor = { add_prestige = medium_prestige_gain }
|
||||
}
|
||||
|
||||
|
||||
auto_accept = yes
|
||||
|
||||
# AI
|
||||
|
|
@ -7413,7 +7438,7 @@ liege_dismiss_temporary_regency_interaction = {
|
|||
# Basic requirements must be fulfilled.
|
||||
scope:actor = { can_leave_diarchy_trigger = yes }
|
||||
}
|
||||
|
||||
|
||||
on_accept = {
|
||||
scope:actor = {
|
||||
# Tell scope:recipient what's up.
|
||||
|
|
@ -7453,7 +7478,7 @@ liege_dismiss_temporary_regency_interaction = {
|
|||
diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_dismtemp_accept_recipient_list }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
auto_accept = yes
|
||||
|
||||
# AI
|
||||
|
|
@ -7622,8 +7647,8 @@ liege_dismiss_entrenched_regency_interaction = {
|
|||
current_description = diarchy_ending_gift_herd_desc
|
||||
is_shown = {
|
||||
# Can only pay herd if actor has herd to pay and recipient accepts herd as a currency
|
||||
scope:actor = { government_has_flag = government_is_nomadic }
|
||||
scope:recipient = { government_has_flag = government_is_nomadic }
|
||||
scope:actor = { government_has_flag = government_is_nomadic }
|
||||
scope:recipient = { government_has_flag = government_is_nomadic }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -8003,7 +8028,7 @@ liege_dismiss_entrenched_regency_interaction = {
|
|||
scope:diarchy_ending_gift_unnecessary = yes
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ai_accept = {
|
||||
# Diarchs don't *want* to agree, by default...
|
||||
base = 0
|
||||
|
|
@ -8327,7 +8352,7 @@ liege_dismiss_vizier_interaction = {
|
|||
}
|
||||
|
||||
cooldown = { years = 5 }
|
||||
|
||||
|
||||
on_accept = {
|
||||
scope:actor = {
|
||||
# We've dismissed your vizier!
|
||||
|
|
@ -8441,7 +8466,7 @@ liege_dismiss_vizier_interaction = {
|
|||
diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_dismviz_accept_recipient_list }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
auto_accept = yes
|
||||
|
||||
# AI
|
||||
|
|
@ -8580,7 +8605,7 @@ liege_dismiss_vizier_interaction = {
|
|||
declare_me_regent_interaction = {
|
||||
category = interaction_category_diarch
|
||||
icon = icon_declare_me_regent
|
||||
filter_tags = { admin_liege rep_liege }
|
||||
filter_tags = { admin_liege }
|
||||
|
||||
desc = declare_me_regent_interaction_desc
|
||||
notification_text = DECLARE_ME_REGENT_PROPOSAL
|
||||
|
|
@ -8987,7 +9012,7 @@ declare_me_regent_interaction = {
|
|||
}
|
||||
}
|
||||
}
|
||||
# Events
|
||||
# Events
|
||||
modifier = {
|
||||
add = 25
|
||||
desc = tgp_power_undermined_modifier_tt
|
||||
|
|
@ -9193,16 +9218,26 @@ appoint_vizier_interaction = {
|
|||
NOT = { has_diarchy_active_parameter = diarchy_is_vizierate }
|
||||
}
|
||||
# We perform this upon ourselves or our (probable) candidates.
|
||||
scope:recipient = {
|
||||
OR = {
|
||||
this = scope:actor
|
||||
is_courtier_of = scope:actor
|
||||
AND = {
|
||||
highest_held_title_tier = tier_barony
|
||||
liege = scope:actor
|
||||
trigger_if = {
|
||||
limit = {
|
||||
exists = scope:secondary_recipient
|
||||
}
|
||||
scope:secondary_recipient = {
|
||||
is_valid_basic_candidate_for_vizier_trigger = yes
|
||||
OR = {
|
||||
is_courtier_of = scope:actor
|
||||
AND = {
|
||||
highest_held_title_tier = tier_barony
|
||||
liege = scope:actor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
scope:recipient = {
|
||||
this = scope:actor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
|
|
@ -9227,6 +9262,14 @@ appoint_vizier_interaction = {
|
|||
|
||||
populate_recipient_list = { sort_vizier_candidates_to_list_effect = yes }
|
||||
|
||||
redirect = {
|
||||
if = {
|
||||
limit = { scope:recipient != scope:actor }
|
||||
scope:recipient = { save_scope_as = secondary_recipient }
|
||||
scope:actor = { save_scope_as = recipient }
|
||||
}
|
||||
}
|
||||
|
||||
cost = {
|
||||
prestige = major_prestige_value
|
||||
renown = {
|
||||
|
|
@ -9379,7 +9422,7 @@ appoint_vizier_interaction = {
|
|||
custom_tooltip = appoint_vizier_interaction.tt.warning.vizier_replace_councillor
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Object explorer logging.
|
||||
scope:actor = {
|
||||
diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = di_track_appviz_accept }
|
||||
|
|
@ -9400,11 +9443,11 @@ appoint_vizier_interaction = {
|
|||
empire = 120
|
||||
hegemony = 120
|
||||
}
|
||||
|
||||
|
||||
ai_potential = {
|
||||
government_has_flag = may_appoint_viziers
|
||||
}
|
||||
|
||||
|
||||
ai_will_do = {
|
||||
base = 0
|
||||
|
||||
|
|
@ -9655,10 +9698,10 @@ appoint_junior_emperor_interaction = {
|
|||
}
|
||||
resolve_title_and_vassal_change = scope:change
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Object explorer logging.
|
||||
scope:actor = {
|
||||
diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = di_track_appjunemp_accept }
|
||||
|
|
@ -9679,7 +9722,7 @@ appoint_junior_emperor_interaction = {
|
|||
empire = 60
|
||||
hegemony = 60
|
||||
}
|
||||
|
||||
|
||||
ai_potential = {
|
||||
# Filter us down nice'n'tight.
|
||||
may_appoint_co_emperors_trigger = yes
|
||||
|
|
@ -9692,7 +9735,7 @@ appoint_junior_emperor_interaction = {
|
|||
is_adult = no
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ai_will_do = {
|
||||
# The AI doesn't like doing this without good reason.
|
||||
base = -100
|
||||
|
|
@ -9714,7 +9757,7 @@ appoint_co_emperor_interaction = {
|
|||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
scope:secondary_recipient ?= {
|
||||
scope:secondary_recipient ?= {
|
||||
valid_co_emperor_candidate_trigger = { LIEGE = scope:actor }
|
||||
}
|
||||
}
|
||||
|
|
@ -9900,9 +9943,9 @@ appoint_co_emperor_interaction = {
|
|||
resolve_title_and_vassal_change = scope:change
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Object explorer logging.
|
||||
scope:actor = {
|
||||
diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = di_track_appcoemp_accept }
|
||||
|
|
@ -9924,7 +9967,7 @@ appoint_co_emperor_interaction = {
|
|||
empire = 60
|
||||
hegemony = 60
|
||||
}
|
||||
|
||||
|
||||
ai_potential = {
|
||||
# Filter us down nice'n'tight.
|
||||
may_appoint_co_emperors_trigger = yes
|
||||
|
|
@ -9934,7 +9977,7 @@ appoint_co_emperor_interaction = {
|
|||
age >= 50
|
||||
any_child = { is_adult = yes }
|
||||
}
|
||||
|
||||
|
||||
ai_will_do = {
|
||||
# The AI doesn't like doing this without good reason.
|
||||
base = -100
|
||||
|
|
@ -10108,9 +10151,9 @@ appoint_co_monarch_interaction = {
|
|||
resolve_title_and_vassal_change = scope:change
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Object explorer logging.
|
||||
scope:actor = {
|
||||
diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = di_track_appcomon_accept }
|
||||
|
|
@ -10131,7 +10174,7 @@ appoint_co_monarch_interaction = {
|
|||
empire = 120
|
||||
hegemony = 120
|
||||
}
|
||||
|
||||
|
||||
ai_potential = {
|
||||
# Filter us down nice'n'tight.
|
||||
may_appoint_co_monarchs_trigger = yes
|
||||
|
|
@ -10141,7 +10184,7 @@ appoint_co_monarch_interaction = {
|
|||
age >= 50
|
||||
any_child = { is_adult = yes }
|
||||
}
|
||||
|
||||
|
||||
ai_will_do = {
|
||||
# The AI doesn't like doing this without good reason.
|
||||
base = -100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue