ALL THE WAY TO DECISIONS DONE

This commit is contained in:
Fishedotjpg 2026-12-03 19:01:47 +00:00
parent 359420bc6b
commit d758b987c9
112 changed files with 20676 additions and 14484 deletions

View file

@ -1207,7 +1207,27 @@ sell_artifact_interaction = {
}
trigger_if = {
limit = { exists = scope:target }
scope:recipient = { gold >= gdp_merchant_sell_artifact_value }
scope:recipient.gold >= gdp_merchant_sell_artifact_value
}
trigger_else = {
trigger_if = {
limit = { NOT = { exists = scope:haggle } }
save_temporary_scope_value_as = {
name = haggle
value = yes
}
}
custom_description = {
text = "sell_artifact_cannot_afford_any_tt"
scope:puppet_or_actor = {
any_character_artifact = {
is_equipped = no
artifact_can_be_gift_to_trigger = { RECIPIENT = scope:recipient }
save_temporary_scope_as = target
scope:recipient.gold >= gdp_merchant_sell_artifact_value
}
}
}
}
}

View file

@ -58,6 +58,28 @@ offer_vassalization_interaction = {
government_has_flag = government_is_herder
}
}
scope:actor = {
trigger_if = {
limit = { is_confederation_member = yes }
confederation ?= {
OR = {
is_title_based = yes
is_house_based = yes
}
}
}
}
scope:recipient = {
trigger_if = {
limit = { is_confederation_member = yes }
confederation ?= {
OR = {
is_title_based = yes
is_house_based = yes
}
}
}
}
# Temujin cannot make Jamukha his subject once he leaves him
NOT = {
scope:actor = {
@ -69,10 +91,6 @@ offer_vassalization_interaction = {
is_valid_showing_failures_only = {
scope:actor = {
trigger_if = {
limit = { is_confederation_member = yes }
exists = house.house_confederation
}
trigger_if = {
limit = {
has_title = title:h_china
@ -97,7 +115,6 @@ offer_vassalization_interaction = {
}
scope:recipient = {
is_at_war = no
is_confederation_member = no
custom_description = {
text = was_recently_granted_independence
@ -459,6 +476,12 @@ offer_vassalization_interaction = {
# Religious exemption, for clans
send_option = {
is_shown = {
scope:actor = {
NOR = {
rite = { rite_has_tenet = tenet_tax_nonbelievers }
faith = { has_doctrine = special_doctrine_jizya }
}
}
scope:recipient = {
government_has_flag = government_is_clan
}
@ -473,6 +496,12 @@ offer_vassalization_interaction = {
# Nothing, for clans
send_option = {
is_shown = {
scope:actor = {
NOR = {
rite = { rite_has_tenet = tenet_tax_nonbelievers }
faith = { has_doctrine = special_doctrine_jizya }
}
}
scope:recipient = {
government_has_flag = government_is_clan
}
@ -516,6 +545,10 @@ offer_vassalization_interaction = {
on_accept = {
offer_vassalization_interaction_effect = yes
consume_all_criminal_reasons_effect = {
LIEGE = scope:puppet_or_actor
CRIMINAL = scope:recipient
}
scope:actor = {
trigger_event = char_interaction.0001
@ -582,11 +615,21 @@ offer_fealty_interaction = {
is_available = {
is_landed = yes
top_liege ?= this # You have to be independent - This check exists to prevent a lot of edge-cases where you can change liege
is_confederation_member = no
NOT = { government_has_flag = cannot_be_vassal_or_liege }
}
is_shown = {
scope:actor = {
trigger_if = {
limit = { is_confederation_member = yes }
confederation ?= {
OR = {
is_title_based = yes
is_house_based = yes
}
}
}
}
scope:recipient = {
this != scope:actor
is_landed = yes
@ -979,6 +1022,10 @@ offer_fealty_interaction = {
is_shown = {
scope:actor = {
government_has_flag = government_is_clan
NOR = {
rite = { rite_has_tenet = tenet_tax_nonbelievers }
faith = { has_doctrine = special_doctrine_jizya }
}
}
}
is_valid = {
@ -993,6 +1040,10 @@ offer_fealty_interaction = {
is_shown = {
scope:actor = {
government_has_flag = government_is_clan
NOR = {
rite = { rite_has_tenet = tenet_tax_nonbelievers }
faith = { has_doctrine = special_doctrine_jizya }
}
}
}
is_valid = {
@ -1427,7 +1478,12 @@ grant_independence_interaction = {
scope:puppet_or_actor ?= {
trigger_if = {
limit = { is_confederation_member = yes }
exists = house.house_confederation
confederation ?= {
OR = {
is_title_based = yes
is_house_based = yes
}
}
}
}
scope:recipient = {

View file

@ -2058,75 +2058,75 @@ diarch_imprison_interaction = {
}
## We avoid wars here too, but only in the resulting event.
## Agenda impact
# modifier = {
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# any_character_struggle = { phase_has_catalyst = catalyst_imprison_important }
# has_character_flag = agenda_towards_escalation
# }
# }
# add = 200
# }
# else_if = {
# limit = {
# scope:actor = {
# any_character_struggle = { phase_has_catalyst = catalyst_imprison_important }
# }
# }
# add = -100
# }
# }
# any_character_struggle = { involvement = involved }
# }
# modifier = {
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor }
# has_trait = fp3_struggle_supporter
# }
# }
# add = 200
# }
# else_if = {
# limit = {
# scope:actor = {
# any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor }
# }
# }
# add = -100
# }
# }
# any_character_struggle = { involvement = involved }
# }
# modifier = {
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter }
# has_trait = fp3_struggle_detractor
# }
# }
# add = 200
# }
# else_if = {
# limit = {
# scope:actor = {
# any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter }
# }
# }
# add = -100
# }
# }
# any_character_struggle = { involvement = involved }
# }
modifier = {
add = {
value = 0
if = {
limit = {
scope:actor = {
any_character_struggle = { phase_has_catalyst = catalyst_imprison_important }
has_character_flag = agenda_towards_escalation
}
}
add = 200
}
else_if = {
limit = {
scope:actor = {
any_character_struggle = { phase_has_catalyst = catalyst_imprison_important }
}
}
add = -100
}
}
any_character_struggle = { involvement = involved }
}
modifier = {
add = {
value = 0
if = {
limit = {
scope:actor = {
any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor }
has_trait = fp3_struggle_supporter
}
}
add = 200
}
else_if = {
limit = {
scope:actor = {
any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor }
}
}
add = -100
}
}
any_character_struggle = { involvement = involved }
}
modifier = {
add = {
value = 0
if = {
limit = {
scope:actor = {
any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter }
has_trait = fp3_struggle_detractor
}
}
add = 200
}
else_if = {
limit = {
scope:actor = {
any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter }
}
}
add = -100
}
}
any_character_struggle = { involvement = involved }
}
# Factors.
## Relationships.
### + Do pick on people we hate.

View file

@ -1944,221 +1944,221 @@ dynast_legitimize_bastard_interaction = {
}
}
#send_to_varangian_guard_interaction = {
# category = interaction_category_friendly
# interface_priority = 60
# icon = send_to_varangian_guard_interaction
send_to_varangian_guard_interaction = {
category = interaction_category_friendly
interface_priority = 60
icon = send_to_varangian_guard_interaction
# desc = send_to_varangian_guard_interaction_desc
# use_diplomatic_range = no
# common_interaction = yes
#
# is_available = {
# trigger_if = {
# limit = { is_ai = yes }
# is_dynast = yes
# dynasty ?= {
# has_dynasty_perk = fp1_adventure_legacy_1
# }
desc = send_to_varangian_guard_interaction_desc
use_diplomatic_range = no
common_interaction = yes
is_available = {
trigger_if = {
limit = { is_ai = yes }
is_dynast = yes
dynasty ?= {
has_dynasty_perk = fp1_adventure_legacy_1
}
# NOR = {
# faith ?= {
# has_doctrine_parameter = pacifist
# }
# this = title:e_byzantium.holder
# is_at_war_with = title:e_byzantium.holder
# has_truce = title:e_byzantium.holder
# }
NOR = {
faith ?= {
has_doctrine_parameter = pacifist
}
this = title:e_byzantium.holder
is_at_war_with = title:e_byzantium.holder
has_truce = title:e_byzantium.holder
}
# exists = title:e_byzantium.holder
# is_at_war = no
# }
# }
exists = title:e_byzantium.holder
is_at_war = no
}
}
# is_shown = {
# scope:recipient != scope:puppet_or_actor
is_shown = {
scope:recipient != scope:puppet_or_actor
# scope:puppet_or_actor ?= {
# is_dynast = yes
# dynasty ?= scope:recipient.dynasty
#
# dynasty ?= {
# has_dynasty_perk = fp1_adventure_legacy_1
# }
#
# exists = title:e_byzantium.holder
# NOR = {
# faith ?= {
# has_doctrine_parameter = pacifist
# }
# this = title:e_byzantium.holder
# is_at_war_with = title:e_byzantium.holder
# has_truce = title:e_byzantium.holder
# }
# }
# }
#
# cooldown = { years = 2 }
scope:puppet_or_actor ?= {
is_dynast = yes
dynasty ?= scope:recipient.dynasty
dynasty ?= {
has_dynasty_perk = fp1_adventure_legacy_1
}
exists = title:e_byzantium.holder
NOR = {
faith ?= {
has_doctrine_parameter = pacifist
}
this = title:e_byzantium.holder
is_at_war_with = title:e_byzantium.holder
has_truce = title:e_byzantium.holder
}
}
}
cooldown = { years = 2 }
# is_valid_showing_failures_only = {
# scope:puppet_or_actor = {
# is_at_war = no
# NOT = {
# has_relation_rival = title:e_byzantium.holder
# }
# }
# scope:recipient = {
# is_ruler = no
# is_adult = yes
# is_married = no
# NOR = {
# has_trait = varangian
# has_trait = order_member
# }
# }
# trigger_if = {
# limit = {
# scope:recipient = {
# is_adult = yes
# NOT = {
# can_be_knight_trigger = {
# ARMY_OWNER = title:e_byzantium.holder
# }
# }
# }
# }
# custom_description = {
# scope:recipient = {
# can_be_knight_trigger = {
# ARMY_OWNER = title:e_byzantium.holder
# }
# }
# text = "not_allowed_in_varangian_guard"
# }
# }
# trigger_if = {
# limit = {
# scope:recipient = {
# NOR = {
# is_child_of = scope:puppet_or_actor
# is_grandchild_of = scope:puppet_or_actor
# is_great_grandchild_of = scope:puppet_or_actor
# }
# }
# }
# custom_description = {
# scope:recipient.top_liege = scope:puppet_or_actor.top_liege
# subject = scope:puppet_or_actor
# text = "same_realm_as"
# }
# }
# }
#
# on_accept = {
# title:e_byzantium.holder = {
# save_scope_as = emperor
# if = {
# limit = { capital_county = title:c_byzantion }
# set_local_variable = {
# name = to_miklagard
# value = yes
# }
# }
# }
#
# scope:puppet_or_actor = {
# stress_and_fulfillment_impact = {
# paranoid = minor_stress_impact_gain
# }
# hidden_effect = {
# send_interface_toast = {
# type = event_toast_effect_neutral
# title = send_to_varangian_guard_interaction_toast
is_valid_showing_failures_only = {
scope:puppet_or_actor = {
is_at_war = no
NOT = {
has_relation_rival = title:e_byzantium.holder
}
}
scope:recipient = {
is_ruler = no
is_adult = yes
is_married = no
NOR = {
has_trait = varangian
has_trait = order_member
}
}
trigger_if = {
limit = {
scope:recipient = {
is_adult = yes
NOT = {
can_be_knight_trigger = {
ARMY_OWNER = title:e_byzantium.holder
}
}
}
}
custom_description = {
scope:recipient = {
can_be_knight_trigger = {
ARMY_OWNER = title:e_byzantium.holder
}
}
text = "not_allowed_in_varangian_guard"
}
}
trigger_if = {
limit = {
scope:recipient = {
NOR = {
is_child_of = scope:puppet_or_actor
is_grandchild_of = scope:puppet_or_actor
is_great_grandchild_of = scope:puppet_or_actor
}
}
}
custom_description = {
scope:recipient.top_liege = scope:puppet_or_actor.top_liege
subject = scope:puppet_or_actor
text = "same_realm_as"
}
}
}
on_accept = {
title:e_byzantium.holder = {
save_scope_as = emperor
if = {
limit = { capital_county = title:c_byzantion }
set_local_variable = {
name = to_miklagard
value = yes
}
}
}
scope:puppet_or_actor = {
stress_and_fulfillment_impact = {
paranoid = minor_stress_impact_gain
}
hidden_effect = {
send_interface_toast = {
type = event_toast_effect_neutral
title = send_to_varangian_guard_interaction_toast
# left_icon = scope:recipient
# right_icon = scope:emperor
#
# custom_tooltip = send_to_varangian_guard_interaction_toast_desc
# }
# }
# }
# hidden_effect = {
# if = {
# limit = {
# scope:is_puppet_action ?= yes
# }
# scope:actor = {
# send_interface_toast = {
# type = event_toast_effect_neutral
# title = send_to_varangian_guard_interaction_toast
left_icon = scope:recipient
right_icon = scope:emperor
custom_tooltip = send_to_varangian_guard_interaction_toast_desc
}
}
}
hidden_effect = {
if = {
limit = {
scope:is_puppet_action ?= yes
}
scope:actor = {
send_interface_toast = {
type = event_toast_effect_neutral
title = send_to_varangian_guard_interaction_toast
# left_icon = scope:recipient
# right_icon = scope:emperor
left_icon = scope:recipient
right_icon = scope:emperor
# custom_tooltip = send_to_varangian_guard_interaction_toast_desc
# }
# }
# }
# }
custom_tooltip = send_to_varangian_guard_interaction_toast_desc
}
}
}
}
# scope:recipient = {
# save_scope_as = varangian_candidate
#
# }
#
# show_as_tooltip = {
# scope:varangian_candidate = {
# visit_court_of = scope:emperor
# add_trait = varangian
# custom_description_no_bullet = {
# text = send_to_varangian_guard_interaction_effect
# }
# }
# }
# hidden_effect = {
# scope:emperor = {
# trigger_event = varangian.0003
# }
# }
#
# # If we're a clan this interaction affects unity
# add_house_unity_interaction_effect = {
# CHARACTER = scope:puppet_or_actor
# TARGET = scope:recipient
# VALUE = miniscule_unity_loss
# DESC = clan_unity_vaering.desc
# REVERSE_NON_HOUSE_TARGET = no
# }
# }
#
# cost = {
# prestige = {
# value = 350
# if = {
# limit = { scope:is_puppet_action ?= yes }
# multiply = 0
# }
# }
# }
#
# auto_accept = yes
scope:recipient = {
save_scope_as = varangian_candidate
}
show_as_tooltip = {
scope:varangian_candidate = {
visit_court_of = scope:emperor
add_trait = varangian
custom_description_no_bullet = {
text = send_to_varangian_guard_interaction_effect
}
}
}
hidden_effect = {
scope:emperor = {
trigger_event = varangian.0003
}
}
# If we're a clan this interaction affects unity
add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = miniscule_unity_loss
DESC = clan_unity_vaering.desc
REVERSE_NON_HOUSE_TARGET = no
}
}
cost = {
prestige = {
value = 350
if = {
limit = { scope:is_puppet_action ?= yes }
multiply = 0
}
}
}
auto_accept = yes
# ai_targets = {
# ai_recipients = children
# max = 10
# }
#
# ai_frequency_by_tier = {
# barony = 0
# county = 120
# duchy = 60
# kingdom = 24
# empire = 24
# hegemony = 24
# }
#
# ai_will_do = {
# base = 100
# }
#}
ai_targets = {
ai_recipients = children
max = 10
}
ai_frequency_by_tier = {
barony = 0
county = 120
duchy = 60
kingdom = 24
empire = 24
hegemony = 24
}
ai_will_do = {
base = 100
}
}

File diff suppressed because it is too large Load diff

View file

@ -176,9 +176,24 @@ gift_interaction = {
type = event_gold_neutral
title = gift_interaction_notification
right_icon = scope:recipient
pay_short_term_gold = {
gold = gift_value
target = scope:recipient
if = {
limit = {
scope:recipient = {
highest_held_title_tier = tier_barony
government_has_flag = government_is_republic
has_treasury = yes
}
}
pay_gold_to_treasury = {
target = scope:recipient
value = gift_value
}
}
else = {
pay_short_term_gold = {
gold = gift_value
target = scope:recipient
}
}
stress_and_fulfillment_impact = {
greedy = medium_stress_impact_gain
@ -263,67 +278,67 @@ gift_interaction = {
}
# Struggle Catalyst
# if = {
# limit = {
# scope:puppet_or_actor = {
# any_character_struggle = {
# involvement = involved
# phase_has_catalyst = catalyst_gift_independent_ruler
# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = {
# CATALYST = catalyst_gift_independent_ruler
# CHAR = scope:recipient
# }
# }
# }
# }
# hidden_effect = {
# scope:puppet_or_actor = {
# every_character_struggle = {
# involvement = involved
# limit = { phase_has_catalyst = catalyst_gift_independent_ruler }
# activate_struggle_catalyst = {
# catalyst = catalyst_gift_independent_ruler
# character = scope:puppet_or_actor
# }
# }
# }
# }
# }
# if = {
# limit = {
# fp3_struggle_involves_one_supporter_and_one_detractor = {
# FIRST = scope:puppet_or_actor
# SECOND = scope:recipient
# }
# scope:puppet_or_actor = {
# any_character_struggle = {
# #involvement = involved
# activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
# CATALYST = catalyst_gift_supporter_detractor_ruler
# CHAR = scope:recipient
# }
# }
# }
# }
# hidden_effect = {
# scope:puppet_or_actor = {
# every_character_struggle = {
# #involvement = involved
# limit = {
# activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
# CATALYST = catalyst_gift_supporter_detractor_ruler
# CHAR = scope:recipient
# }
# }
# activate_struggle_catalyst = {
# catalyst = catalyst_gift_supporter_detractor_ruler
# character = scope:puppet_or_actor
# }
# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_gift_supporter_detractor_ruler }
# }
# }
# }
# }
if = {
limit = {
scope:puppet_or_actor = {
any_character_struggle = {
involvement = involved
phase_has_catalyst = catalyst_gift_independent_ruler
activate_struggle_catalyst_secondary_character_involvement_involved_trigger = {
CATALYST = catalyst_gift_independent_ruler
CHAR = scope:recipient
}
}
}
}
hidden_effect = {
scope:puppet_or_actor = {
every_character_struggle = {
involvement = involved
limit = { phase_has_catalyst = catalyst_gift_independent_ruler }
activate_struggle_catalyst = {
catalyst = catalyst_gift_independent_ruler
character = scope:puppet_or_actor
}
}
}
}
}
if = {
limit = {
fp3_struggle_involves_one_supporter_and_one_detractor = {
FIRST = scope:puppet_or_actor
SECOND = scope:recipient
}
scope:puppet_or_actor = {
any_character_struggle = {
#involvement = involved
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
CATALYST = catalyst_gift_supporter_detractor_ruler
CHAR = scope:recipient
}
}
}
}
hidden_effect = {
scope:puppet_or_actor = {
every_character_struggle = {
#involvement = involved
limit = {
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
CATALYST = catalyst_gift_supporter_detractor_ruler
CHAR = scope:recipient
}
}
activate_struggle_catalyst = {
catalyst = catalyst_gift_supporter_detractor_ruler
character = scope:puppet_or_actor
}
log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_gift_supporter_detractor_ruler }
}
}
}
}
# FP2 Urbanism Legacy Perk 2: increase cultural acceptance when gifting a republican vassal
if = {
@ -574,39 +589,39 @@ gift_interaction = {
}
# Struggle motive
# modifier = {
# desc = AI_STRUGGLE_INTENT
# scope:recipient = {
# top_liege = this
# any_character_struggle = {
# involvement = involved
# }
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:recipient = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_gift_independent_ruler
# }
# has_character_flag = agenda_towards_escalation
# }
# }
# add = -100
# }
# else_if = {
# limit = {
# scope:recipient = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_gift_independent_ruler
# }
# }
# }
# add = 200
# }
# }
# }
modifier = {
desc = AI_STRUGGLE_INTENT
scope:recipient = {
top_liege = this
any_character_struggle = {
involvement = involved
}
}
add = {
value = 0
if = {
limit = {
scope:recipient = {
any_character_struggle = {
phase_has_catalyst = catalyst_gift_independent_ruler
}
has_character_flag = agenda_towards_escalation
}
}
add = -100
}
else_if = {
limit = {
scope:recipient = {
any_character_struggle = {
phase_has_catalyst = catalyst_gift_independent_ruler
}
}
}
add = 200
}
}
}
}
auto_accept = {
@ -768,93 +783,93 @@ gift_interaction = {
has_relation_rival = scope:puppet_or_actor
}
}
# AND = { # Independent ruler within the struggle should be considered
# any_character_struggle = {
# phase_has_catalyst = catalyst_gift_independent_ruler
# }
# }
AND = { # Independent ruler within the struggle should be considered
any_character_struggle = {
phase_has_catalyst = catalyst_gift_independent_ruler
}
}
}
}
}
# Struggle
# modifier = {
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# phase_has_catalyst = catalyst_gift_independent_ruler
# }
# }
# scope:puppet_or_actor = {
# any_character_struggle = {
# involvement = involved
# phase_has_catalyst = catalyst_gift_independent_ruler
# }
# NOT = {
# has_relation_rival = scope:recipient
# }
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:puppet_or_actor = {
# has_character_flag = agenda_towards_escalation
# }
# }
# add = -100
# }
# else_if = {
# limit = {
# scope:puppet_or_actor = {
# has_character_flag = agenda_towards_deescalation
# }
# scope:recipient = {
# has_character_flag = agenda_towards_deescalation
# }
# }
# add = {
# value = 150
# if = {
# limit = { scope:recipient = { is_ai = no} }
# add = 150 # higher for human player to Prioritize them
# }
# # Then lower the intent depending on the gold reserve
# # Base value applied if the AI has 3x the gold cutoff
# multiply = {
# value = short_term_gold
# divide = {
# value = gift_interaction_cutoff
# multiply = 3
# }
# }
# }
# }
# else_if = {
# limit = {
# scope:puppet_or_actor = {
# has_character_flag = agenda_towards_deescalation
# }
# }
# add = {
# value = 25
# if = {
# limit = { scope:recipient = { is_ai = no} }
# add = 150 # higher for human player to Prioritize them
# }
# # Then lower the intent depending on the gold reserve
# # Base value applied if the AI has 3x the gold cutoff
# multiply = {
# value = short_term_gold
# divide = {
# value = gift_interaction_cutoff
# multiply = 3
# }
# }
# }
# }
# }
# }
modifier = {
scope:recipient = {
any_character_struggle = {
involvement = involved
phase_has_catalyst = catalyst_gift_independent_ruler
}
}
scope:puppet_or_actor = {
any_character_struggle = {
involvement = involved
phase_has_catalyst = catalyst_gift_independent_ruler
}
NOT = {
has_relation_rival = scope:recipient
}
}
add = {
value = 0
if = {
limit = {
scope:puppet_or_actor = {
has_character_flag = agenda_towards_escalation
}
}
add = -100
}
else_if = {
limit = {
scope:puppet_or_actor = {
has_character_flag = agenda_towards_deescalation
}
scope:recipient = {
has_character_flag = agenda_towards_deescalation
}
}
add = {
value = 150
if = {
limit = { scope:recipient = { is_ai = no} }
add = 150 # higher for human player to Prioritize them
}
# Then lower the intent depending on the gold reserve
# Base value applied if the AI has 3x the gold cutoff
multiply = {
value = short_term_gold
divide = {
value = gift_interaction_cutoff
multiply = 3
}
}
}
}
else_if = {
limit = {
scope:puppet_or_actor = {
has_character_flag = agenda_towards_deescalation
}
}
add = {
value = 25
if = {
limit = { scope:recipient = { is_ai = no} }
add = 150 # higher for human player to Prioritize them
}
# Then lower the intent depending on the gold reserve
# Base value applied if the AI has 3x the gold cutoff
multiply = {
value = short_term_gold
divide = {
value = gift_interaction_cutoff
multiply = 3
}
}
}
}
}
}
modifier = {
factor = 0.1
@ -872,18 +887,18 @@ gift_interaction = {
}
}
# modifier = {
# add = 100
# scope:puppet_or_actor = {
# is_at_war = no
# has_trait = fp3_struggle_supporter
# any_character_struggle = { is_struggle_type = persian_struggle }
# }
# scope:recipient = {
# title:d_sunni.holder ?= this
# gold < 0
# }
# }
modifier = {
add = 100
scope:puppet_or_actor = {
is_at_war = no
has_trait = fp3_struggle_supporter
any_character_struggle = { is_struggle_type = persian_struggle }
}
scope:recipient = {
title:d_sunni.holder ?= this
gold < 0
}
}
# Nomads are slightly less likely to do this since they'd prefer to send Herd instead
modifier = {

File diff suppressed because it is too large Load diff

View file

@ -147,12 +147,9 @@
target = scope:recipient
type = theological_agent_puppet
}
pam_generic_set_puppet_interaction_side_effects = yes
}
}
show_as_tooltip = {
pam_generic_set_puppet_interaction_side_effects = yes
}
pam_generic_set_puppet_interaction_side_effects = yes
}
scope:recipient = {
custom_tooltip = set_clerical_puppet_tt
@ -750,6 +747,21 @@ make_external_ruler_puppet_interaction = {
text = actor_is_antipope_sponsor_tt
pam_sponsors_other_antipope_trigger = no
}
trigger_if = {
limit = {
government_has_flag = government_is_merchant
NOR = {
has_trait = seducer
has_trait = torturer
has_trait = family_first
has_trait = schemer
has_trait = diplomat
has_trait = gallant
}
}
has_realm_law = company_purpose_creditor
has_hook = scope:recipient
}
}
}
@ -1017,37 +1029,155 @@ make_external_ruler_puppet_interaction = {
# recipient is militarily weaker than the actor
modifier = {
add = 15
scope:actor = { is_landless_merchant = no }
scope:recipient = {
is_landed = yes
current_military_strength < scope:actor.current_military_strength
}
scope:recipient.current_military_strength < scope:actor.current_military_strength
desc = PUPPET_RECIPIENT_WEAKER_REASON
}
# recipient is far weaker (less than half) than the actor
modifier = {
add = 30
scope:actor = { is_landless_merchant = no }
scope:recipient = {
is_landed = yes
current_military_strength < scope:actor.half_current_military_strength
}
scope:recipient.current_military_strength < scope:actor.half_current_military_strength
desc = PUPPET_RECIPIENT_MUCH_WEAKER_REASON
}
# actor is militarily weaker than the recipient
modifier = {
add = -15
scope:actor.current_military_strength < scope:recipient.current_military_strength
scope:recipient = { is_landed = yes }
scope:actor = {
is_landless_merchant = no
current_military_strength < scope:recipient.current_military_strength
}
desc = PUPPET_ACTOR_WEAKER_REASON
}
# actor is far weaker (less than half) than the recipient
modifier = {
add = -30
scope:actor.current_military_strength < scope:recipient.half_current_military_strength
scope:recipient = { is_landed = yes }
scope:actor = {
is_landless_merchant = no
current_military_strength < scope:recipient.half_current_military_strength
}
desc = PUPPET_ACTOR_MUCH_WEAKER_REASON
}
# Company size
modifier = {
add = 30
scope:actor = {
is_landless_merchant = yes
trigger_if = {
limit = { company_size_value = 1 } #company_size_small
always = no
}
trigger_else_if = {
limit = { company_size_value = 2 } # company_size_medium
scope:recipient.highest_held_title_tier < tier_duchy
}
trigger_else_if = {
limit = { company_size_value = 3 } # company_size_large
scope:recipient.highest_held_title_tier < tier_kingdom
}
trigger_else = { scope:recipient.highest_held_title_tier < tier_empire }
}
desc = MERCHANT_PROCURE_ESTATE_COMPANY_REASON
}
modifier = {
add = 15
scope:actor = {
is_landless_merchant = yes
trigger_if = {
limit = { company_size_value = 1 } #company_size_small
always = no
}
trigger_else_if = {
limit = { company_size_value = 2 } # company_size_medium
scope:recipient.highest_held_title_tier = tier_duchy
}
trigger_else_if = {
limit = { company_size_value = 3 } # company_size_large
scope:recipient.highest_held_title_tier = tier_kingdom
}
trigger_else = { scope:recipient.highest_held_title_tier = tier_empire }
}
desc = MERCHANT_PROCURE_ESTATE_COMPANY_REASON
}
modifier = {
add = -15
scope:actor = {
is_landless_merchant = yes
trigger_if = {
limit = { company_size_value = 1 } #company_size_small
scope:recipient.highest_held_title_tier = tier_duchy
}
trigger_else_if = {
limit = { company_size_value = 2 } # company_size_medium
scope:recipient.highest_held_title_tier = tier_kingdom
}
trigger_else_if = {
limit = { company_size_value = 3 } # company_size_large
scope:recipient.highest_held_title_tier = tier_empire
}
trigger_else = { always = no }
}
desc = MERCHANT_PROCURE_ESTATE_COMPANY_REASON
}
modifier = {
add = -30
scope:actor = {
is_landless_merchant = yes
trigger_if = {
limit = { company_size_value = 1 } #company_size_small
scope:recipient.highest_held_title_tier >= tier_kingdom
}
trigger_else_if = {
limit = { company_size_value = 2 } # company_size_medium
scope:recipient.highest_held_title_tier >= tier_empire
}
trigger_else_if = {
limit = { company_size_value = 3 } # company_size_large
scope:recipient.highest_held_title_tier >= tier_hegemony
}
trigger_else = { always = no }
}
desc = MERCHANT_PROCURE_ESTATE_COMPANY_REASON
}
# Loans
modifier = {
add = {
value = 0
scope:recipient = {
every_owned_story = {
limit = {
story_type = story_cycle_loan
var:lender ?= scope:actor
}
add = var:amount_owed
}
}
divide = 5
max = 250
}
scope:actor = { is_landless_merchant = yes }
scope:recipient = {
has_existing_loan_from_trigger = { LENDER = scope:actor }
}
desc = PUPPET_RECIPIENT_LOAN_REASON
}
modifier = {
add = 50
scope:actor = {

View file

@ -3223,6 +3223,9 @@ excommunicate_interaction = {
}
is_shown = {
scope:recipient = {
NOT = { has_trait = excommunicated }
}
scope:puppet_or_actor ?= {
this != scope:recipient
#Pope or Bishop
@ -3489,28 +3492,11 @@ lift_excommunication_interaction = {
}
is_shown = {
scope:puppet_or_actor ?= {
#Pope or Bishop
OR = {
AND = {
is_clergy = yes
is_ruler = yes
}
religious_head_or_challenger ?= scope:puppet_or_actor
}
NOT = {
religious_head_or_challenger ?= scope:recipient
}
faith ?= {
has_doctrine = doctrine_spiritual_head
faith_has_sacraments_central_trigger = yes
this = scope:recipient.faith
}
}
scope:recipient = {
has_trait = excommunicated
this != scope:puppet_or_actor
can_lift_excommunication_interaction_trigger = {
EXCOMMUNICATED = scope:recipient
LIFTER = scope:puppet_or_actor
}
scope:recipient != scope:puppet_or_actor
}
cost = {
@ -3520,6 +3506,10 @@ lift_excommunication_interaction = {
limit = { scope:is_puppet_action ?= yes }
multiply = 0
}
if = {
limit = { scope:offer_pilgrimage ?= yes }
multiply = 0
}
}
}
@ -3542,13 +3532,88 @@ lift_excommunication_interaction = {
pam_valid_excommunication_target_trigger = { EXCOMMUNICATOR = scope:puppet_or_actor }
}
}
send_option = {
is_valid = {
scope:recipient = { gold >= major_gold_value }
}
flag = excommunication_demand_gold
localization = request_gold
}
send_option = {
is_valid = {
NOT = {
scope:actor = { has_hook = scope:recipient }
}
}
flag = excommunication_demand_hook
localization = RANSOM_FAVOR_OPTION
}
send_option = {
is_valid = {
scope:recipient = {
NOT = { has_character_modifier = promised_pilgrimage_to_clergy_modifier }
}
}
flag = offer_pilgrimage
localization = LIFT_EXCOMMUNICATION_INTERACTION_OPTION_PILGRIMAGE
}
send_options_exclusive = no
auto_accept = {
NOR = {
scope:excommunication_demand_gold ?= yes
scope:excommunication_demand_hook ?= yes
scope:offer_pilgrimage ?= yes
}
}
auto_accept = yes
force_notification = yes
notification_text = religious_interaction.1024
#answer_accept_key = religious_interaction.1024.positive
notification_text = {
first_valid = {
triggered_desc = {
trigger = { scope:excommunication_demand_gold ?= yes }
desc = LIFT_EXCOMMUNICATION_INTERACTION_NOTIFICATION_GOLD
}
triggered_desc = {
trigger = { scope:excommunication_demand_hook ?= yes }
desc = LIFT_EXCOMMUNICATION_INTERACTION_NOTIFICATION_HOOK
}
triggered_desc = {
trigger = { scope:offer_pilgrimage ?= yes }
desc = LIFT_EXCOMMUNICATION_INTERACTION_NOTIFICATION_PILGRIMAGE
}
desc = LIFT_EXCOMMUNICATION_INTERACTION_NOTIFICATION
}
}
on_accept = {
scope:recipient = {
if = {
limit = { scope:excommunication_demand_gold = yes }
pay_short_term_gold = {
gold = major_gold_value
target = scope:actor
}
}
if = {
limit = { scope:excommunication_demand_hook = yes }
scope:actor = {
add_hook = {
type = indebted_hook
target = scope:recipient
}
}
}
if = {
limit = { scope:offer_pilgrimage = yes }
pam_offer_pilgrimage_effect = {
ACTOR = scope:recipient
CLERIC = scope:actor
}
}
}
if = {
limit = { scope:is_puppet_action ?= yes }
scope:puppet_or_actor = {
@ -3619,6 +3684,58 @@ lift_excommunication_interaction = {
hegemony = 12
}
ai_accept = {
base = 50
opinion_modifier = {
opinion_target = scope:actor
multiplier = 0.5
}
modifier = {
rite != scope:actor.rite
add = -25
desc = DIFFERENT_RITE_REASON
}
modifier = {
scope:excommunication_demand_gold = yes
add = -25
desc = GOLD_INTERACTION_ACCEPTANCE_SEND_OPTION
}
modifier = {
scope:excommunication_demand_gold = yes
gold < major_gold_value
add = -25
desc = GOLD_NEGATIVE_REASON
}
modifier = {
scope:excommunication_demand_gold = yes
gold > 0
add = {
value = gold
multiply = 0.25
ceiling = yes
}
desc = AI_RECIPIENT_GOLD_REASON
}
modifier = {
scope:excommunication_demand_hook = yes
add = -25
desc = ASKING_FOR_WEAK_HOOK_ACCEPTANCE_TT
}
modifier = {
scope:offer_pilgrimage = yes
add = -10
desc = DEMANDING_PILGRIMAGE_REASON
}
modifier = {
OR = {
var:requested_my_excommunication ?= scope:actor
var:excommunication_issuer ?= scope:actor
}
add = -25
desc = EXCOMMUNICATED_ME_REASON
}
}
ai_will_do = {
base = 10
@ -3646,6 +3763,11 @@ lift_excommunication_interaction = {
}
}
modifier = {
factor = 0
scope:puppet_or_actor.imprisoner ?= scope:recipient
}
modifier = {
factor = 0
scope:puppet_or_actor = {
@ -4022,6 +4144,7 @@ request_excommunication_interaction = {
desc = EXCOMMUNICATION_DEFIED_CHURCH_PEACE
}
opinion_modifier = {
trigger = { scope:recipient != scope:puppet_or_actor }
who = scope:recipient
opinion_target = scope:puppet_or_actor
multiplier = 1
@ -4091,11 +4214,6 @@ request_excommunication_interaction = {
}
desc = the_christian_church_phase_value_tt
}
modifier = {
add = 100
scope:puppet_or_actor.puppet:theological_agent_puppet ?= scope:recipient
desc = IS_YOUR_PUPPET
}
modifier = {
add = -1000
scope:recipient.puppeteer ?= scope:secondary_recipient
@ -5648,7 +5766,7 @@ take_vows_interaction = {
take_vows_faith_opinion_effect = yes
if = {
limit = {
house = {
house ?= {
has_house_aspiration_parameter = humility_take_the_vows_bonus
}
}
@ -12414,6 +12532,81 @@ offer_bedside_support_interaction = {
}
}
priest_kings_consecrate_temple_interaction = {
category = interaction_category_religion
icon = religious
common_interaction = yes
interface_priority = 50
desc = priest_kings_consecrate_temple_interaction_desc
target_type = title
target_filter = actor_domain_titles
auto_accept = yes
is_shown = {
scope:actor = {
this = scope:recipient
OR = {
AND = {
government_has_flag = government_is_theocracy
culture = { has_cultural_parameter = priest_kings_temple_citadels_enabled }
}
rite ?= { rite_has_parameter = NEOW_can_build_citadels }
}
}
}
is_available = {
OR = {
AND = {
government_has_flag = government_is_theocracy
culture = { has_cultural_parameter = priest_kings_temple_citadels_enabled }
}
rite ?= { rite_has_parameter = NEOW_can_build_citadels }
}
}
can_be_picked_title = {
scope:target = {
holder = scope:actor
is_capital_barony = no
tier <= tier_county
title_province = { has_holding_type = church_holding }
}
}
has_valid_target_showing_failures_only = {
scope:target.title_province = {
barony_controller = scope:actor
has_holding_type = church_holding
has_ongoing_construction = no
}
}
cost = {
treasury_or_gold = {
scope:actor = { add = 500 }
}
piety = {
scope:actor = { add = 500 }
}
}
on_accept = {
scope:actor = {
send_interface_toast = {
type = event_toast_effect_good
title = priest_kings_consecrate_temple_interaction_notification
right_icon = scope:actor
scope:target.title_province ?= {
set_holding_type = temple_citadel_holding
}
}
}
}
ai_will_do = { base = 20 }
}
#Get Monastic Order to spread tenet
#By Mother Superior Jasonetta Cantalini
monastic_espouse_beliefs_interaction = {
@ -12583,78 +12776,3 @@ monastic_espouse_beliefs_interaction = {
}
}
}
priest_kings_consecrate_temple_interaction = {
category = interaction_category_religion
icon = religious
common_interaction = yes
interface_priority = 50
desc = priest_kings_consecrate_temple_interaction_desc
target_type = title
target_filter = actor_domain_titles
auto_accept = yes
is_shown = {
scope:actor = {
this = scope:recipient
OR = {
AND = {
government_has_flag = government_is_theocracy
culture = { has_cultural_parameter = priest_kings_temple_citadels_enabled }
}
rite ?= { rite_has_parameter = NEOW_can_build_citadels }
}
}
}
is_available = {
OR = {
AND = {
government_has_flag = government_is_theocracy
culture = { has_cultural_parameter = priest_kings_temple_citadels_enabled }
}
rite ?= { rite_has_parameter = NEOW_can_build_citadels }
}
}
can_be_picked_title = {
scope:target = {
holder = scope:actor
is_capital_barony = no
tier <= tier_county
title_province = { has_holding_type = church_holding }
}
}
has_valid_target_showing_failures_only = {
scope:target.title_province = {
barony_controller = scope:actor
has_holding_type = church_holding
has_ongoing_construction = no
}
}
cost = {
treasury_or_gold = {
scope:actor = { add = 500 }
}
piety = {
scope:actor = { add = 500 }
}
}
on_accept = {
scope:actor = {
send_interface_toast = {
type = event_toast_effect_good
title = priest_kings_consecrate_temple_interaction_notification
right_icon = scope:actor
scope:target.title_province ?= {
set_holding_type = temple_citadel_holding
}
}
}
}
ai_will_do = { base = 20 }
}

View file

@ -3825,6 +3825,7 @@ request_council_interaction = {
desc = AI_OPINION_REASON
}
opinion_modifier = { # Opinion of the current councillor
trigger = { exists = scope:target.councillor }
who = scope:recipient
opinion_target = scope:target.councillor
multiplier = -0.8
@ -3972,6 +3973,7 @@ request_council_interaction = {
}
#You are more influential
modifier = {
exists = scope:target.councillor
scope:actor.influence_level != scope:target.councillor.influence_level
add = {
value = scope:actor.influence_level
@ -9623,6 +9625,7 @@ request_emperor_title_troops_interaction = {
exists = holder
holder.top_liege = scope:recipient
holder != scope:actor
holder ?= { government_has_mechanic = administrative }
any_title_maa_regiment = {
exists = this
}

View file

@ -16,7 +16,7 @@ purchase_land_interaction = {
first_valid = {
triggered_desc = {
trigger = {
scope:recipient.top_liege != this
scope:recipient = { is_independent_ruler = no }
scope:target = {
trigger_if = {
limit = { tier = tier_duchy }
@ -3404,7 +3404,8 @@ contact_list_request_interaction = { # make a request, make_a_request
custom_tooltip = {
scope:recipient = {
any_knight = {
is_landed = no
is_ruler = no
can_be_knight_trigger = { ARMY_OWNER = scope:actor }
count > 1
}
}
@ -3789,7 +3790,7 @@ contact_list_request_interaction = { # make a request, make_a_request
}
if = {
limit = {
exists = capital_county
capital_county.holder ?= scope:recipient
}
hidden_effect = {
capital_county = {

File diff suppressed because it is too large Load diff