parent
15a5108e23
commit
c4b6d9bdeb
250 changed files with 11067 additions and 16365 deletions
|
|
@ -1577,16 +1577,11 @@ diarch_imprison_interaction = {
|
|||
|
||||
on_decline = {
|
||||
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 = {
|
||||
|
|
@ -1604,11 +1599,6 @@ 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 = {
|
||||
|
|
@ -5020,14 +5010,10 @@ 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 = {
|
||||
|
|
@ -5042,11 +5028,12 @@ diarch_coup_liege_interaction = {
|
|||
is_designated_diarch = yes
|
||||
}
|
||||
}
|
||||
# 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
|
||||
}
|
||||
# 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
|
||||
scope:secondary_recipient.liege ?= scope:actor.liege
|
||||
}
|
||||
}
|
||||
|
|
@ -5269,18 +5256,12 @@ 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
|
||||
|
|
@ -5288,9 +5269,6 @@ 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
|
||||
|
|
@ -5300,69 +5278,68 @@ 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 = {
|
||||
|
|
@ -5378,12 +5355,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 = {
|
||||
|
|
@ -7019,11 +6996,9 @@ 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 }
|
||||
}
|
||||
|
|
@ -8605,7 +8580,7 @@ liege_dismiss_vizier_interaction = {
|
|||
declare_me_regent_interaction = {
|
||||
category = interaction_category_diarch
|
||||
icon = icon_declare_me_regent
|
||||
filter_tags = { admin_liege }
|
||||
filter_tags = { admin_liege rep_liege }
|
||||
|
||||
desc = declare_me_regent_interaction_desc
|
||||
notification_text = DECLARE_ME_REGENT_PROPOSAL
|
||||
|
|
@ -9218,24 +9193,14 @@ appoint_vizier_interaction = {
|
|||
NOT = { has_diarchy_active_parameter = diarchy_is_vizierate }
|
||||
}
|
||||
# We perform this upon ourselves or our (probable) candidates.
|
||||
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 = {
|
||||
scope:recipient = {
|
||||
OR = {
|
||||
this = scope:actor
|
||||
is_courtier_of = scope:actor
|
||||
AND = {
|
||||
highest_held_title_tier = tier_barony
|
||||
liege = scope:actor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9262,14 +9227,6 @@ 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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue