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

File diff suppressed because it is too large Load diff

View file

@ -37,6 +37,7 @@ ce1_ask_to_promote_legend_interaction = {
text = recipient_already_promoting_legend_tt text = recipient_already_promoting_legend_tt
NOT = { exists = promoted_legend } NOT = { exists = promoted_legend }
} }
NOT = { is_at_war_with = scope:puppet_or_actor }
} }
custom_tooltip = { custom_tooltip = {
text = recipient_close_or_neighbor_tt text = recipient_close_or_neighbor_tt
@ -95,6 +96,13 @@ ce1_ask_to_promote_legend_interaction = {
} }
desc = TIER_REASON_EMPEROR desc = TIER_REASON_EMPEROR
} }
modifier = {
add = -40
scope:recipient.primary_title = {
tier = 6
}
desc = TIER_REASON_HEGEMON
}
## Legend ## Legend
# How cool is the legend? # How cool is the legend?
modifier = { modifier = {

View file

@ -5,6 +5,8 @@ offer_vassalization_interaction = {
icon = icon_vassal icon = icon_vassal
desc = offer_vassalization_interaction_desc desc = offer_vassalization_interaction_desc
greeting = positive
notification_text = OFFER_VASSALIZATION_INTERACTION_NOTIFICATION
ai_targets = { ai_targets = {
ai_recipients = neighboring_rulers ai_recipients = neighboring_rulers
@ -122,9 +124,6 @@ offer_vassalization_interaction = {
} }
} }
greeting = positive
notification_text = OFFER_VASSALIZATION_INTERACTION_NOTIFICATION
cost = { cost = {
influence = { influence = {
value = 0 value = 0
@ -396,6 +395,16 @@ offer_vassalization_interaction = {
opinion_target = scope:actor opinion_target = scope:actor
multiplier = 1 multiplier = 1
} }
#GG modifier
modifier = {
add = -50
OR = {
gg_first_and_second_are_opposite_sides_trigger = { FIRST = scope:actor SECOND = scope:recipient }
scope:recipient = { is_gg_undecided_trigger = yes }
}
desc = RECIPIENT_IS_NOT_YOUR_GG
}
} }
# Low starting obligations # Low starting obligations
@ -1149,7 +1158,7 @@ force_vote_in_succession_election_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -1159,6 +1168,82 @@ force_vote_in_succession_election_interaction = {
} }
} }
force_assembly_vote_interaction = {
category = interaction_category_diplomacy
filter_tags = { assembly_interaction }
special_interaction = force_assembly_vote
icon = scroll_scales
greeting = positive
notification_text = FORCE_ASSEMBLY_VOTE_INTERACTION_NOTIFICATION
force_notification = yes
desc = force_assembly_vote_interaction_desc
auto_accept = yes
is_valid_showing_failures_only = {
custom_description = {
text = must_have_usable_hook_blocker
subject = scope:actor
object = scope:recipient
scope:actor = {
has_usable_hook = scope:recipient
}
}
custom_description = {
text = must_have_ongoing_session
scope:actor = {
ongoing_voting_session = yes
}
}
custom_description = {
text = target_already_forced
object = scope:recipient
scope:recipient = {
is_forced_voter = no
}
}
custom_description = {
text = target_not_law_proposer
object = scope:recipient
NOT = { scope:actor.law_proposer ?= scope:recipient }
}
}
is_highlighted = {
scope:actor = {
has_usable_hook = scope:recipient
ongoing_voting_session = yes
}
}
should_use_extra_icon = {
scope:actor = { has_usable_hook = scope:recipient }
}
extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds"
on_accept = {
scope:actor = {
send_interface_message = {
type = event_title_good
title = force_assembly_vote_interaction
right_icon = scope:recipient
use_hook = scope:recipient
custom_tooltip = msg_force_assembly_vote_message
}
}
}
}
set_primary_spouse_interaction = { set_primary_spouse_interaction = {
category = interaction_category_diplomacy category = interaction_category_diplomacy
desc = set_primary_spouse_interaction_desc desc = set_primary_spouse_interaction_desc
@ -1610,7 +1695,7 @@ grant_independence_interaction = {
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -1723,6 +1808,10 @@ expose_secret_interaction = {
every_known_secret = { every_known_secret = {
limit = { limit = {
secret_owner = scope:recipient secret_owner = scope:recipient
NOR = {
secret_target ?= scope:puppet_or_actor
any_secret_participant = { this = scope:puppet_or_actor }
}
} }
expose_secret = scope:puppet_or_actor expose_secret = scope:puppet_or_actor
} }
@ -1793,7 +1882,7 @@ expose_secret_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = major_unity_loss VALUE = major_unity_loss
@ -1924,6 +2013,22 @@ expose_secret_interaction = {
evaluate_action_decreasing_house_unity = { evaluate_action_decreasing_house_unity = {
VALUE = 100 VALUE = 100
} }
modifier = {
NOT = { exists = scope:target }
scope:recipient = {
NOT = {
any_secret = {
is_known_by = scope:puppet_or_actor
NOR = {
secret_target ?= scope:puppet_or_actor
any_secret_participant = { this = scope:puppet_or_actor }
}
}
}
}
factor = 0
}
} }
} }

View file

@ -182,6 +182,15 @@
empire = 12 empire = 12
hegemony = 12 hegemony = 12
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 108
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = { ai_will_do = {
base = 0 base = 0
@ -324,8 +333,6 @@
has_relation_lover = scope:actor has_relation_lover = scope:actor
has_relation_friend = scope:actor has_relation_friend = scope:actor
has_secret_relation_lover = scope:actor has_secret_relation_lover = scope:actor
has_relation_soulmate = scope:actor
has_relation_best_friend = scope:actor
is_child_of = scope:actor is_child_of = scope:actor
} }
} }
@ -597,6 +604,7 @@ invite_to_court_interaction = {
desc = invite_to_court_interaction_desc desc = invite_to_court_interaction_desc
is_shown = { is_shown = {
scope:actor = { is_ruler = yes }
scope:recipient = { scope:recipient = {
NOR = { NOR = {
is_courtier_of = scope:actor is_courtier_of = scope:actor
@ -665,17 +673,13 @@ invite_to_court_interaction = {
#Pay som gold to persuade a wandering character to come to your court #Pay som gold to persuade a wandering character to come to your court
send_option = { send_option = {
is_shown = { is_shown = { exists = scope:recipient }
exists = scope:recipient
}
flag = cover_travel_expenses flag = cover_travel_expenses
localization = COVER_TRAVEL_EXPENSES localization = COVER_TRAVEL_EXPENSES
} }
send_option = { # EP3 Influence send_option = { # EP3 Influence
is_shown = { # Actor must have a government that uses influence is_shown = { # Actor must have a government that uses influence
scope:actor = { scope:actor = { government_has_flag = government_has_influence }
government_has_flag = government_has_influence
}
} }
is_valid = { is_valid = {
# Actor has enough influence # Actor has enough influence
@ -688,9 +692,7 @@ invite_to_court_interaction = {
} }
send_option = { send_option = {
is_valid = { is_valid = {
scope:actor = { scope:actor = { has_usable_hook = scope:recipient }
has_usable_hook = scope:recipient
}
} }
flag = hook flag = hook
localization = SCHEME_HOOK localization = SCHEME_HOOK
@ -714,58 +716,91 @@ invite_to_court_interaction = {
} }
on_accept = { on_accept = {
hidden_effect = { scope:recipient = {
scope:recipient = { set_variable = {
set_variable = { name = invite_to_court_cooldown
name = invite_to_court_cooldown years = 5
years = 5
}
} }
# Message relevant parties
if = { liege ?= {
limit = { if = {
exists = scope:recipient.liege limit = {
} NOT = { government_has_flag = government_is_merchant }
scope:recipient.liege = { }
send_interface_message = { send_interface_message = {
type = event_generic_neutral type = event_generic_neutral
title = msg_courtier_left_court_interaction_title title = msg_courtier_left_court_interaction_title
right_icon = scope:recipient right_icon = scope:recipient
show_as_tooltip = { remove_courtier_or_guest = scope:recipient }
show_as_tooltip = { }
remove_courtier_or_guest = scope:recipient }
else = {
send_interface_message = {
type = event_generic_bad
title = msg_courtier_left_court_interaction_merchant_title
right_icon = scope:recipient
show_as_tooltip = { remove_courtier_or_guest = scope:recipient }
}
}
# House Relation impact
if = { # Only change house relations w vassals or below
limit = { this != scope:actor.liege }
house ?= {
if = {
limit = { this != scope:actor.house }
if = {
limit = {
NOT = { has_house_relation_with = scope:actor.house }
}
set_house_relation = {
target = scope:actor.house
level = quarrel
description = house_relation_poached_talent_desc
}
}
else = {
change_house_relation_effect = {
HOUSE = scope:actor.house
VALUE = house_relation_damage_minor_value
REASON = poached_talent
CHAR = scope:actor
TARGET_CHAR = scope:recipient.liege
TITLE = scope:dummy_gender
}
}
} }
} }
} }
} }
} }
scope:actor = { scope:actor = {
send_interface_message = { send_interface_message = {
type = event_generic_neutral type = event_generic_neutral
title = invite_to_court_interaction_notification title = invite_to_court_interaction_notification
right_icon = scope:recipient right_icon = scope:recipient
scope:recipient = { scope:recipient = {
every_traveling_family_member = { every_traveling_family_member = {
scope:actor = { add_courtier = prev } scope:actor = { add_courtier = prev }
hidden_effect = { hidden_effect = { return_to_court = yes }
return_to_court = yes
}
} }
} }
if = { if = {
limit = { always = scope:hook } limit = { always = scope:hook }
scope:actor = { scope:actor = { use_hook = scope:recipient }
use_hook = scope:recipient }
if = {
limit = { government_has_flag = government_uses_company_sentiment }
house ?= {
add_unity_value = {
value = minor_unity_loss
character = scope:recipient
desc = merchant_invite_associate_loss
}
} }
} }
} }
} }
if = { if = {
limit = { always = scope:cover_travel_expenses } limit = { always = scope:cover_travel_expenses }
scope:actor = { scope:actor = {
@ -784,7 +819,7 @@ invite_to_court_interaction = {
} }
ai_accept = { ai_accept = {
base = -50 base = -80
#Opinions #Opinions
opinion_modifier = { opinion_modifier = {
@ -964,18 +999,14 @@ invite_to_court_interaction = {
add = -50 add = -50
desc = AI_INSPIRED desc = AI_INSPIRED
inspiration ?= { inspiration ?= {
NOT = { NOT = { exists = inspiration_sponsor }
exists = inspiration_sponsor
}
} }
} }
modifier = { modifier = {
add = -500 add = -500
desc = AI_SPONSORED_INSPIRATION desc = AI_SPONSORED_INSPIRATION
inspiration ?= { inspiration ?= { exists = inspiration_sponsor }
exists = inspiration_sponsor
}
} }
modifier = { modifier = {
@ -991,9 +1022,7 @@ invite_to_court_interaction = {
is_adult = no is_adult = no
any_memory = { any_memory = {
memory_type = family_castration_fled_memory memory_type = family_castration_fled_memory
memory_participant:castrator ?= { memory_participant:castrator ?= { this = scope:actor }
this = scope:actor
}
} }
} }
@ -1011,9 +1040,7 @@ invite_to_court_interaction = {
add = scope:actor.diplomacy add = scope:actor.diplomacy
if = { if = {
limit = { limit = { faith = scope:actor.faith }
faith = scope:actor.faith
}
add = 10 add = 10
} }
else_if = { else_if = {
@ -1029,16 +1056,12 @@ invite_to_court_interaction = {
add = 5 add = 5
} }
if = { if = {
limit = { limit = { culture = scope:actor.culture }
culture = scope:actor.culture
}
add = 10 add = 10
} }
else_if = { else_if = {
limit = { limit = {
culture = { culture = { has_same_culture_heritage = scope:actor.culture }
has_same_culture_heritage = scope:actor.culture
}
} }
add = 5 add = 5
} }
@ -1074,15 +1097,11 @@ invite_to_court_interaction = {
add = { add = {
value = 20 value = 20
if = { if = {
limit = { limit = { has_trait = greedy }
has_trait = greedy
}
multiply = 1.5 multiply = 1.5
} }
else_if = { else_if = {
limit = { limit = { has_trait = generous }
has_trait = generous
}
multiply = 0.5 multiply = 0.5
} }
} }
@ -1108,7 +1127,7 @@ invite_to_court_interaction = {
if = { if = {
limit = { limit = {
scope:actor = { scope:actor = {
amenity_level = { target = court_lodging_standards value >= very_high_amenity_level } amenity_level = { target = court_lodging_standards value >= very_high_amenity_level }
} }
} }
add = 10 add = 10
@ -1116,7 +1135,7 @@ invite_to_court_interaction = {
if = { if = {
limit = { limit = {
scope:actor = { scope:actor = {
amenity_level = { target = court_lodging_standards value >= max_amenity_level } amenity_level = { target = court_lodging_standards value >= max_amenity_level }
} }
} }
add = 20 add = 20
@ -1174,15 +1193,47 @@ invite_to_court_interaction = {
multiply = 0.5 multiply = 0.5
} }
desc = AI_HOUSE_UNITY desc = AI_HOUSE_UNITY
scope:actor = { government_has_flag = government_is_clan } scope:actor = {
exists = house government_has_flag = government_uses_house_unity
exists = scope:actor.house exists = house
house = scope:actor.house }
house = { house ?= {
OR = { this = scope:actor.house
has_house_unity_stage = harmonious house_unity_is_positive_trigger = yes
has_house_unity_stage = friendly }
} }
modifier = {
add = {
value = scope:actor.house.house_unity_value
multiply = 0.5
}
desc = AI_COMPANY_DIRECTION
scope:actor = {
government_has_flag = government_uses_company_sentiment
exists = house
}
house ?= {
this = scope:actor.house
house_unity_is_positive_trigger = yes
}
}
modifier = {
add = 50
desc = AI_RECIPIENT_COMPANY_SENTIMENT
scope:recipient.liege ?= {
government_has_flag = government_is_merchant
house ?= { has_house_unity_stage = rapacious_cs }
}
}
modifier = {
add = 20
desc = AI_RECIPIENT_COMPANY_SENTIMENT_OPPORTUNISTIC
scope:recipient.liege ?= {
government_has_flag = government_is_merchant
house ?= { has_house_unity_stage = opportunistic_cs }
} }
} }
@ -1238,9 +1289,7 @@ invite_to_court_interaction = {
} }
modifier = { modifier = {
scope:actor.culture = { scope:actor.culture = { has_cultural_parameter = invite_courtiers_reasons }
has_cultural_parameter = invite_courtiers_reasons
}
add = 15 add = 15
desc = invite_courtiers_additional_reason desc = invite_courtiers_additional_reason
} }
@ -1254,7 +1303,57 @@ invite_to_court_interaction = {
add = -200 add = -200
desc = cid_1010_no_invite_var_desc desc = cid_1010_no_invite_var_desc
} }
}
# #Guelphs & Ghibellines
# modifier = {
# scope:recipient = {
# has_opinion_modifier = {
# modifier = banished_me
# target = scope:actor
# }
# }
# add = -500
# desc = RECIPIENT_WAS_BANISHED_BY_ACTOR
# }
# modifier = {
# scope:actor = { is_ghibelline_trigger = yes }
# scope:recipient = { exists = var:displaced_ghibelline_ruler }
# add = 100
# desc = RECIPIENT_WAS_GHIBELLINE_SIDE
# }
# modifier = {
# scope:actor = { is_guelph_trigger = yes }
# scope:recipient = { exists = var:displaced_guelph_ruler }
# add = 100
# desc = RECIPIENT_WAS_GUELPH_SIDE
# }
# modifier = {
# scope:actor = { is_ghibelline_trigger = yes }
# scope:recipient = { exists = var:displaced_guelph_ruler }
# add = -200
# desc = RECIPIENT_WAS_GUELPH_SIDE
# }
# modifier = {
# scope:actor = { is_guelph_trigger = yes }
# scope:recipient = { exists = var:displaced_ghibelline_ruler }
# add = -200
# desc = RECIPIENT_WAS_GHIBELLINE_SIDE
# }
# modifier = {
# OR = {
# AND = {
# scope:actor = { is_guelph_trigger = yes }
# scope:recipient.var:displaced_ghibelline_ruler ?= scope:actor
# }
# AND = {
# scope:actor = { is_ghibelline_trigger = yes }
# scope:recipient.var:displaced_guelph_ruler ?= scope:actor
# }
# }
# add = -1000
# desc = RECIPIENT_WAS_DISPLACED_BY_ACTOR
# }
# }
auto_accept = { auto_accept = {
custom_description = { custom_description = {

View file

@ -15,6 +15,8 @@ request_culture_conversion_interaction = {
desc = ask_for_conversion_interaction_desc desc = ask_for_conversion_interaction_desc
notification_text = ask_for_culture_conversion_interaction_notice
hidden = yes hidden = yes
is_shown = { is_shown = {

View file

@ -75,6 +75,9 @@ diarch_revoke_title_interaction = {
prompt = RETRACT_VASSAL_SELECT_VASSAL_TO_RETRACT prompt = RETRACT_VASSAL_SELECT_VASSAL_TO_RETRACT
is_available = { is_available = {
liege ?= {
has_diarchy_parameter = unlock_diarch_revoke_title_interaction
}
trigger_if = { trigger_if = {
limit = { is_ai = yes } limit = { is_ai = yes }
is_diarch = yes is_diarch = yes
@ -82,9 +85,6 @@ diarch_revoke_title_interaction = {
# Loyal diarchs don't engage in skullduggery. # Loyal diarchs don't engage in skullduggery.
diarch_loyalty < diarch_loyalty_visibly_loyal_threshold diarch_loyalty < diarch_loyalty_visibly_loyal_threshold
} }
liege ?= {
has_diarchy_parameter = unlock_diarch_revoke_title_interaction
}
# If you're not in a diarchy, we don't care. # If you're not in a diarchy, we don't care.
OR = { OR = {
is_designated_diarch = yes is_designated_diarch = yes
@ -1828,6 +1828,7 @@ diarch_imprison_interaction = {
desc = AI_PRISON_FEUDAL_COMPLEX_PERK desc = AI_PRISON_FEUDAL_COMPLEX_PERK
scope:actor = { scope:actor = {
has_perk = prison_feudal_complex_perk has_perk = prison_feudal_complex_perk
NOT = { government_has_flag = government_is_merchant }
} }
} }
modifier = { #I am a King! modifier = { #I am a King!
@ -3153,6 +3154,7 @@ diarch_syphon_treasury_interaction = {
} }
# Loyal diarchs don't engage in skullduggery. # Loyal diarchs don't engage in skullduggery.
diarch_loyalty < diarch_loyalty_visibly_loyal_threshold diarch_loyalty < diarch_loyalty_visibly_loyal_threshold
liege ?= { has_diarchy_active_parameter = unlock_syphon_treasury_interaction }
} }
liege ?= { has_diarchy_parameter = unlock_syphon_treasury_interaction } liege ?= { has_diarchy_parameter = unlock_syphon_treasury_interaction }
# If you're not in a diarchy, we don't care. # If you're not in a diarchy, we don't care.
@ -3306,13 +3308,13 @@ diarch_syphon_treasury_interaction = {
min = 10 min = 10
desc = diarch_syphon_treasury_interaction.tt.success desc = diarch_syphon_treasury_interaction.tt.success
# Inform scope:actor what type of embezzlement they'll be pursuing. # Inform scope:actor what type of embezzlement they'll be pursuing.
## Very high stewardship characters syphon development growth from a few counties. ## Very high stewardship characters syphon prosperity growth from a few counties.
if = { if = {
limit = { limit = {
stewardship >= syphon_treasury_stewardship_very_high 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 custom_tooltip = diarch_syphon_treasury_interaction.tt.success.syphon_prosperity_growth
} }
## Alternatively, herd for nomadic rulers ## Alternatively, herd for nomadic rulers
else_if = { else_if = {
@ -3380,28 +3382,28 @@ diarch_syphon_treasury_interaction = {
} }
## Plus the maluses for the liege. ## Plus the maluses for the liege.
scope:recipient = { scope:recipient = {
# Very high stewardship characters syphon development growth from a few counties. # Very high stewardship characters syphon prosperity growth from a few counties.
if = { if = {
limit = { scope:actor.stewardship >= syphon_treasury_stewardship_very_high } limit = { scope:actor.stewardship >= syphon_treasury_stewardship_very_high }
# Gold transfer was... # Gold transfer was...
## Very high. ## Very high.
if = { if = {
limit = { always = scope:diarch_syphon_treasury_sum_huge } limit = { always = scope:diarch_syphon_treasury_sum_huge }
diarch_syphon_treasury_interaction_syphon_development_growth_effect = { LOSS = massive_development_progress_loss } diarch_syphon_treasury_interaction_syphon_prosperity_growth_effect = { LOSS = massive_prosperity_progress_loss }
} }
## High. ## High.
else_if = { else_if = {
limit = { always = scope:diarch_syphon_treasury_sum_large } limit = { always = scope:diarch_syphon_treasury_sum_large }
diarch_syphon_treasury_interaction_syphon_development_growth_effect = { LOSS = major_development_progress_loss } diarch_syphon_treasury_interaction_syphon_prosperity_growth_effect = { LOSS = major_prosperity_progress_loss }
} }
## Medium. ## Medium.
else_if = { else_if = {
limit = { always = scope:diarch_syphon_treasury_sum_medium } limit = { always = scope:diarch_syphon_treasury_sum_medium }
diarch_syphon_treasury_interaction_syphon_development_growth_effect = { LOSS = medium_development_progress_loss } diarch_syphon_treasury_interaction_syphon_prosperity_growth_effect = { LOSS = medium_prosperity_progress_loss }
} }
## Low. ## Low.
else = { else = {
diarch_syphon_treasury_interaction_syphon_development_growth_effect = { LOSS = minor_development_progress_loss } diarch_syphon_treasury_interaction_syphon_prosperity_growth_effect = { LOSS = minor_prosperity_progress_loss }
} }
} }
# Alternatively, for nomadic rulers, we steal some herd # Alternatively, for nomadic rulers, we steal some herd
@ -4983,6 +4985,7 @@ diarch_coup_liege_interaction = {
pre_answer_yes_breakdown_key = diarch_coup_liege_interaction_pre_answer_yes_breakdown_key pre_answer_yes_breakdown_key = diarch_coup_liege_interaction_pre_answer_yes_breakdown_key
desc = diarch_coup_liege_interaction_desc desc = diarch_coup_liege_interaction_desc
notification_text = diarch_coup_liege_interaction_notification
# First, grab every other powerful vassal of your liege & plonk them in a list. # First, grab every other powerful vassal of your liege & plonk them in a list.
populate_recipient_list = { populate_recipient_list = {
@ -6512,7 +6515,7 @@ swing_scales_currency_interaction = {
is_shown = { is_shown = {
# Filter out for the liege in vizierates - they can mulct the vizier, so we don't give them the chance to spend that gold back. # Filter out for the liege in vizierates - they can mulct the vizier, so we don't give them the chance to spend that gold back.
interaction_actor_is_liege_with_vizierate_trigger = no interaction_actor_is_liege_with_vizierate_trigger = no
NOT = { religious_head_or_challenger ?= scope:recipient } NOT = { scope:actor.religious_head_or_challenger ?= scope:recipient }
} }
is_valid = { is_valid = {
diarch_swing_scales_valid_shared_hof_trigger = yes diarch_swing_scales_valid_shared_hof_trigger = yes
@ -6865,16 +6868,13 @@ diarch_swing_scales_currency_interaction = {
interface_priority = 20 interface_priority = 20
is_available = { is_available = {
trigger_if = {
limit = { is_ai = yes }
# Double check due to some irritating errors.
is_diarch = yes
# Loyal diarchs don't engage in skullduggery.
diarch_loyalty < diarch_loyalty_visibly_loyal_threshold
liege ?= { has_active_diarchy = yes }
}
is_playable_character = no
is_ai = yes is_ai = yes
is_playable_character = no
# Double check due to some irritating errors.
is_diarch = yes
liege ?= { has_active_diarchy = yes }
# Loyal diarchs don't engage in skullduggery.
diarch_loyalty < diarch_loyalty_visibly_loyal_threshold
} }
is_shown = { is_shown = {
@ -7097,7 +7097,7 @@ diarch_swing_scales_currency_interaction = {
} }
# HoF # HoF
send_option = { send_option = {
is_shown = { NOT = { religious_head_or_challenger ?= scope:recipient } } is_shown = { NOT = { scope:actor.religious_head_or_challenger ?= scope:recipient } }
is_valid = { diarch_swing_scales_valid_shared_hof_trigger = yes } is_valid = { diarch_swing_scales_valid_shared_hof_trigger = yes }
# Top of the prio order for enablement. # Top of the prio order for enablement.
starts_enabled = { diarch_swing_scales_valid_shared_hof_trigger = yes } starts_enabled = { diarch_swing_scales_valid_shared_hof_trigger = yes }
@ -8413,9 +8413,9 @@ liege_dismiss_vizier_interaction = {
has_trait = vengeful has_trait = vengeful
can_set_relation_rival_trigger = { CHARACTER = scope:actor } can_set_relation_rival_trigger = { CHARACTER = scope:actor }
} }
set_relation_rival = { set_relation_rival_effect = {
target = scope:actor TARGET = scope:actor
reason = rival_dismissed_me_from_vizierate REASON = rival_dismissed_me_from_vizierate
} }
add_opinion = { add_opinion = {
target = scope:actor target = scope:actor

View file

@ -38,8 +38,9 @@ disinherit_interaction = {
} }
scope:recipient = { scope:recipient = {
NOT = { NOR = {
has_trait = disinherited has_trait = disinherited
has_trait = adopted_no_inheritance
} }
} }
} }
@ -184,7 +185,7 @@ disinherit_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -335,10 +336,7 @@ disinherit_interaction = {
modifier = { modifier = {
add = 100 add = 100
scope:recipient = { scope:recipient = {
OR = { has_relation_rival = scope:puppet_or_actor
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
}
} }
} }
@ -438,10 +436,7 @@ disinherit_interaction = {
modifier = { modifier = {
factor = 0 factor = 0
scope:recipient = { scope:recipient = {
OR = { has_relation_friend = scope:puppet_or_actor
has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
}
} }
} }
@ -484,8 +479,9 @@ disinherit_children_interaction = {
has_dynasty_perk = fp2_coterie_legacy_5 has_dynasty_perk = fp2_coterie_legacy_5
} }
scope:recipient = { scope:recipient = {
NOT = { NOR = {
has_trait = disinherited has_trait = disinherited
has_trait = adopted_no_inheritance
} }
} }
} }
@ -592,7 +588,7 @@ disinherit_children_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -654,10 +650,7 @@ disinherit_children_interaction = {
modifier = { modifier = {
add = 100 add = 100
scope:recipient = { scope:recipient = {
OR = { has_relation_rival = scope:puppet_or_actor
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
}
} }
} }
@ -757,10 +750,7 @@ disinherit_children_interaction = {
modifier = { modifier = {
factor = 0 factor = 0
scope:recipient = { scope:recipient = {
OR = { has_relation_friend = scope:puppet_or_actor
has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
}
} }
} }
@ -795,7 +785,10 @@ restore_inheritance_interaction = {
} }
scope:recipient = { scope:recipient = {
has_trait = disinherited OR = {
has_trait = disinherited
has_trait = adopted_no_inheritance
}
} }
} }
@ -836,7 +829,7 @@ restore_inheritance_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -877,10 +870,7 @@ restore_inheritance_interaction = {
modifier = { modifier = {
add = 100 add = 100
scope:recipient = { scope:recipient = {
OR = { has_relation_friend = scope:puppet_or_actor
has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
}
} }
} }
@ -902,10 +892,7 @@ restore_inheritance_interaction = {
modifier = { modifier = {
factor = 0 factor = 0
scope:recipient = { scope:recipient = {
OR = { has_relation_rival = scope:puppet_or_actor
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
}
} }
} }
} }
@ -1017,7 +1004,7 @@ denounce_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -1107,10 +1094,7 @@ denounce_interaction = {
modifier = { modifier = {
add = 100 add = 100
scope:recipient = { scope:recipient = {
OR = { has_relation_rival = scope:puppet_or_actor
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
}
} }
} }
@ -1195,10 +1179,7 @@ denounce_interaction = {
modifier = { modifier = {
factor = 0 factor = 0
scope:recipient = { scope:recipient = {
OR = { has_relation_friend = scope:puppet_or_actor
has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
}
} }
} }
} }
@ -1266,7 +1247,7 @@ forgive_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -1307,10 +1288,7 @@ forgive_interaction = {
modifier = { modifier = {
add = 100 add = 100
scope:recipient = { scope:recipient = {
OR = { has_relation_friend = scope:puppet_or_actor
has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
}
} }
} }
@ -1332,10 +1310,7 @@ forgive_interaction = {
modifier = { modifier = {
factor = 0 factor = 0
scope:recipient = { scope:recipient = {
OR = { has_relation_rival = scope:puppet_or_actor
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
}
} }
} }
} }
@ -1790,7 +1765,7 @@ dynast_claim_title_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -1970,7 +1945,7 @@ dynast_legitimize_bastard_interaction = {
# category = interaction_category_friendly # category = interaction_category_friendly
# interface_priority = 60 # interface_priority = 60
# icon = send_to_varangian_guard_interaction # icon = send_to_varangian_guard_interaction
#
# desc = send_to_varangian_guard_interaction_desc # desc = send_to_varangian_guard_interaction_desc
# use_diplomatic_range = no # use_diplomatic_range = no
# common_interaction = yes # common_interaction = yes
@ -1982,7 +1957,7 @@ dynast_legitimize_bastard_interaction = {
# dynasty ?= { # dynasty ?= {
# has_dynasty_perk = fp1_adventure_legacy_1 # has_dynasty_perk = fp1_adventure_legacy_1
# } # }
#
# NOR = { # NOR = {
# faith ?= { # faith ?= {
# has_doctrine_parameter = pacifist # has_doctrine_parameter = pacifist
@ -1991,15 +1966,15 @@ dynast_legitimize_bastard_interaction = {
# is_at_war_with = title:e_byzantium.holder # is_at_war_with = title:e_byzantium.holder
# has_truce = title:e_byzantium.holder # has_truce = title:e_byzantium.holder
# } # }
#
# exists = title:e_byzantium.holder # exists = title:e_byzantium.holder
# is_at_war = no # is_at_war = no
# } # }
# } # }
#
# is_shown = { # is_shown = {
# scope:recipient != scope:puppet_or_actor # scope:recipient != scope:puppet_or_actor
#
# scope:puppet_or_actor ?= { # scope:puppet_or_actor ?= {
# is_dynast = yes # is_dynast = yes
# dynasty ?= scope:recipient.dynasty # dynasty ?= scope:recipient.dynasty
@ -2021,7 +1996,7 @@ dynast_legitimize_bastard_interaction = {
# } # }
# #
# cooldown = { years = 2 } # cooldown = { years = 2 }
#
# is_valid_showing_failures_only = { # is_valid_showing_failures_only = {
# scope:puppet_or_actor = { # scope:puppet_or_actor = {
# is_at_war = no # is_at_war = no
@ -2096,7 +2071,7 @@ dynast_legitimize_bastard_interaction = {
# send_interface_toast = { # send_interface_toast = {
# type = event_toast_effect_neutral # type = event_toast_effect_neutral
# title = send_to_varangian_guard_interaction_toast # title = send_to_varangian_guard_interaction_toast
#
# left_icon = scope:recipient # left_icon = scope:recipient
# right_icon = scope:emperor # right_icon = scope:emperor
# #
@ -2113,16 +2088,16 @@ dynast_legitimize_bastard_interaction = {
# send_interface_toast = { # send_interface_toast = {
# type = event_toast_effect_neutral # type = event_toast_effect_neutral
# title = send_to_varangian_guard_interaction_toast # title = send_to_varangian_guard_interaction_toast
#
# left_icon = scope:recipient # left_icon = scope:recipient
# right_icon = scope:emperor # right_icon = scope:emperor
#
# custom_tooltip = send_to_varangian_guard_interaction_toast_desc # custom_tooltip = send_to_varangian_guard_interaction_toast_desc
# } # }
# } # }
# } # }
# } # }
#
# scope:recipient = { # scope:recipient = {
# save_scope_as = varangian_candidate # save_scope_as = varangian_candidate
# #
@ -2144,7 +2119,7 @@ dynast_legitimize_bastard_interaction = {
# } # }
# #
# # If we're a clan this interaction affects unity # # If we're a clan this interaction affects unity
# add_clan_unity_interaction_effect = { # add_house_unity_interaction_effect = {
# CHARACTER = scope:puppet_or_actor # CHARACTER = scope:puppet_or_actor
# TARGET = scope:recipient # TARGET = scope:recipient
# VALUE = miniscule_unity_loss # VALUE = miniscule_unity_loss
@ -2164,7 +2139,7 @@ dynast_legitimize_bastard_interaction = {
# } # }
# #
# auto_accept = yes # auto_accept = yes
#
# ai_targets = { # ai_targets = {
# ai_recipients = children # ai_recipients = children
# max = 10 # max = 10

File diff suppressed because it is too large Load diff

View file

@ -37,6 +37,15 @@ gift_interaction = {
empire = 36 empire = 36
hegemony = 36 hegemony = 36
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 180
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
is_available = { is_available = {
trigger_if = { trigger_if = {
@ -56,12 +65,11 @@ gift_interaction = {
# Prioritize paying back loans first # Prioritize paying back loans first
scope:puppet_or_actor ?= { scope:puppet_or_actor ?= {
this != scope:recipient this != scope:recipient
trigger_if = { NOT = {
limit = { any_owned_story = {
exists = var:loan_amount_owed type = story_cycle_loan
exists = var:loan_holder var:lender = scope:recipient
} }
NOT = { var:loan_holder = scope:recipient }
} }
# A landless puppet has nothing to gift that is not already the puppeteer's # A landless puppet has nothing to gift that is not already the puppeteer's
trigger_if = { trigger_if = {
@ -336,7 +344,7 @@ gift_interaction = {
target = scope:puppet_or_actor.culture target = scope:puppet_or_actor.culture
value = { value = {
value = 20 value = 20
multiply = scope:recipient.capital_province.county.development_level multiply = scope:recipient.capital_province.county.prosperity_level
divide = 100 divide = 100
} }
desc = cultural_acceptance_gain_gift_dynasty_perk desc = cultural_acceptance_gain_gift_dynasty_perk
@ -652,9 +660,7 @@ gift_interaction = {
} }
has_secret_relation_lover = scope:puppet_or_actor has_secret_relation_lover = scope:puppet_or_actor
has_relation_lover = scope:puppet_or_actor has_relation_lover = scope:puppet_or_actor
has_relation_soulmate = scope:puppet_or_actor
has_relation_friend = scope:puppet_or_actor has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
} }
gold < 0 gold < 0
} }
@ -663,9 +669,7 @@ gift_interaction = {
OR = { OR = {
has_secret_relation_lover = scope:puppet_or_actor has_secret_relation_lover = scope:puppet_or_actor
has_relation_lover = scope:puppet_or_actor has_relation_lover = scope:puppet_or_actor
has_relation_soulmate = scope:puppet_or_actor
has_relation_friend = scope:puppet_or_actor has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
} }
scope:puppet_or_actor = { scope:puppet_or_actor = {
OR = { OR = {
@ -696,7 +700,6 @@ gift_interaction = {
OR = { OR = {
scope:puppet_or_actor.liege ?= this scope:puppet_or_actor.liege ?= this
has_relation_friend = scope:puppet_or_actor has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
is_allied_to = scope:puppet_or_actor is_allied_to = scope:puppet_or_actor
is_close_or_extended_family_of = scope:puppet_or_actor is_close_or_extended_family_of = scope:puppet_or_actor
} }
@ -724,7 +727,7 @@ gift_interaction = {
target = scope:puppet_or_actor target = scope:puppet_or_actor
value < 0 value < 0
} }
NOT ={ NOT = {
has_opinion_modifier = { has_opinion_modifier = {
target = scope:puppet_or_actor target = scope:puppet_or_actor
modifier = gift_opinion modifier = gift_opinion
@ -734,7 +737,7 @@ gift_interaction = {
AND = { # Factioneering vassals should be considered AND = { # Factioneering vassals should be considered
is_vassal_of = scope:puppet_or_actor is_vassal_of = scope:puppet_or_actor
is_a_faction_member = yes is_a_faction_member = yes
NOT ={ NOT = {
has_opinion_modifier = { has_opinion_modifier = {
target = scope:puppet_or_actor target = scope:puppet_or_actor
modifier = gift_opinion modifier = gift_opinion

View file

@ -1,4 +1,9 @@
# Be aware that the actual granting of the title happens in code! # Interactions for players granting titles to their vassals.
#
# Implementation note:
# NPC/AI does not invoke 'grant_titles_interaction' or 'grant_governorship_interaction' by traditional means.
# Granting titles is instead handled by custom C++ code which picks the appropriate one given character properties.
#
# Extra custom Grant Titles functionality: # Extra custom Grant Titles functionality:
# - scope:government_type may be set when a specific government type will be switched to with the title grant (not set = default government type) # - scope:government_type may be set when a specific government type will be switched to with the title grant (not set = default government type)
# #
@ -30,9 +35,8 @@ grant_titles_interaction = {
is_shown = { is_shown = {
scope:puppet_or_actor != scope:recipient scope:puppet_or_actor != scope:recipient
scope:puppet_or_actor ?= { scope:puppet_or_actor ?= {
NOT = { is_landless_adventurer = no
government_has_flag = cannot_be_vassal_or_liege is_landless_merchant = no
}
} }
scope:recipient = { scope:recipient = {
OR = { OR = {
@ -75,6 +79,7 @@ grant_titles_interaction = {
limit = { is_ruler = no } limit = { is_ruler = no }
is_imprisoned = no is_imprisoned = no
} }
NOT = { is_imprisoned_by = scope:puppet_or_actor }
# DON'T TAKE OTHER PLAYERS' ACCLAIMED KNIGHTS # DON'T TAKE OTHER PLAYERS' ACCLAIMED KNIGHTS
custom_description = { custom_description = {
text = grant_title_stealing_acclaimed_knight text = grant_title_stealing_acclaimed_knight
@ -142,6 +147,78 @@ grant_titles_interaction = {
} }
} }
} }
# When republics grant titles to other republics
trigger_if = {
limit = {
scope:actor = { government_has_flag = government_is_republic }
scope:recipient = { government_has_flag = government_is_republic }
scope:target = { is_noble_family_title = no } # For tooltip reasons, so we don't show more than necessary
}
# Republic governors can only hold titles neighboring any existing titles
scope:recipient = {
# Landed being granted additional land
trigger_if = {
limit = {
is_landed = yes
scope:target = { is_noble_family_title = no }
}
# Grant County
trigger_if = {
limit = { scope:target.tier = tier_county }
republic_can_grant_county_to_landed_trigger = yes
}
# Grant Duchy+
trigger_else = { republic_can_grant_duchy_or_higher_to_landed_trigger = yes }
}
# Landless being granted land for first time
trigger_else = {
# Duchy+ must be de jure above selected counties
trigger_if = {
limit = { scope:target.tier > tier_county }
republic_can_grant_duchy_or_higher_to_landless_trigger = yes
}
# County must be neighbor or de jure below selected titles
trigger_else = {
custom_tooltip = {
text = republic_title_must_be_neighboring_desc
trigger_if = {
limit = {
any_in_list = {
list = target_titles
count > 1
}
}
any_in_list = {
list = target_titles
count = all
trigger_if = {
limit = { tier = tier_barony }
de_jure_liege = { is_in_list = target_titles }
}
trigger_else_if = {
limit = { tier = tier_county }
OR = {
any_title_to_title_neighboring_county = { is_in_list = target_titles }
any_in_de_jure_hierarchy = {
tier = tier_barony
is_in_list = target_titles
}
}
}
trigger_else = {
any_in_de_jure_hierarchy = {
tier = tier_county
is_in_list = target_titles
}
}
}
}
}
}
}
}
}
} }
can_be_picked_title = { can_be_picked_title = {
@ -178,6 +255,16 @@ grant_titles_interaction = {
always = no always = no
} }
} }
trigger_if = {
limit = {
tier > tier_county
scope:recipient = { government_has_flag = government_is_herder }
}
custom_tooltip = {
text = GRANT_TITLES_ITEM_CANT_GIVE_ABOVE_COUNTY_TO_HERDER
always = no
}
}
trigger_if = { trigger_if = {
limit = { is_nomad_title = yes } limit = { is_nomad_title = yes }
@ -258,6 +345,7 @@ grant_titles_interaction = {
custom_description = { custom_description = {
text = grant_titles_interaction_can_only_give_diarch_de_jure_liege_to_diarch text = grant_titles_interaction_can_only_give_diarch_de_jure_liege_to_diarch
subject = scope:puppet_or_actor.diarch subject = scope:puppet_or_actor.diarch
object = scope:puppet_or_actor
NAND = { NAND = {
# Only applies if we have an active diarchy. # Only applies if we have an active diarchy.
scope:puppet_or_actor = { has_active_diarchy = yes } scope:puppet_or_actor = { has_active_diarchy = yes }
@ -303,10 +391,75 @@ grant_titles_interaction = {
custom_description = { custom_description = {
text = grant_titles_interaction_title_being_wagered text = grant_titles_interaction_title_being_wagered
subject = scope:puppet_or_actor
NOT = { NOT = {
scope:target = { has_variable = wagered_county } scope:target = { has_variable = wagered_county }
} }
} }
# When republics grant titles to other republics
trigger_if = {
limit = {
scope:actor = { government_has_flag = government_is_republic }
scope:recipient = { government_has_flag = government_is_republic }
scope:target = { is_noble_family_title = no } # For tooltip reasons, so we don't show more than necessary
}
# Republic governors can only hold titles neighboring any existing titles
scope:recipient = {
# Landed being granted additional land
trigger_if = {
limit = {
is_landed = yes
scope:target = { is_noble_family_title = no }
}
# Grant County
trigger_if = {
limit = { scope:target.tier = tier_county }
republic_can_grant_county_to_landed_trigger = yes
}
# Grant Duchy+
trigger_else = { republic_can_grant_duchy_or_higher_to_landed_trigger = yes }
}
# Landless being granted land for first time
trigger_else = {
# Duchy+ must be de jure above selected counties
trigger_if = {
limit = { scope:target.tier > tier_county }
republic_can_grant_duchy_or_higher_to_landless_trigger = yes
}
# County must be neighbor or de jure below selected titles
trigger_else = {
custom_tooltip = {
text = republic_title_must_be_neighboring_desc
trigger_if = {
limit = {
any_in_list = {
list = target_titles
count > 0
}
}
OR = {
scope:target = {
OR = {
is_in_list = target_titles
any_title_to_title_neighboring_county = { is_in_list = target_titles }
trigger_if = {
limit = { tier = tier_barony }
de_jure_liege = { is_in_list = target_titles }
}
}
}
any_in_list = {
list = target_titles
is_de_jure_liege_or_above_target = scope:target
}
}
}
}
}
}
}
}
} }
auto_accept = yes auto_accept = yes
@ -2301,6 +2454,153 @@ grant_governorship_interaction = {
} }
can_be_picked_title = { can_be_picked_title = {
scope:target = {
is_leased_out = no
scope:recipient = {
trigger_if = { # Governors can only be appointed to certain titles
limit = {
is_governor = yes
scope:target = { is_noble_family_title = no } # For tooltip reasons, so we don't show more than necessary
}
custom_tooltip = { # Only one province of highest rank
text = only_one_province_of_highest_rank_tt
NAND = {
highest_held_title_tier = scope:target.tier
scope:target.tier >= main_administrative_tier
trigger_if = {
limit = {
scope:target.tier >= tier_duchy
}
scope:target = { # We make an exception if recipient controls at least one de jure county
any_de_jure_county = {
count < 1
OR = {
holder = scope:recipient
holder = { is_vassal_or_below_of = scope:recipient }
}
}
}
}
}
}
custom_tooltip = {
text = admin_must_be_de_jure_or_neighboring
any_held_title = {
OR = {
# The target title is part of your de jure structure
is_de_jure_liege_or_above_target = scope:target
target_is_de_jure_liege_or_above = scope:target
# Or is a neighboring county which de jure duchy is not part of your realm
AND = {
tier >= tier_county
any_title_to_title_neighboring_county = { this = scope:target }
scope:target = {
tier = tier_county
duchy = {
OR = {
NOT = { exists = holder }
holder = {
NOR = {
is_vassal_or_below_of = scope:puppet_or_actor
this = scope:puppet_or_actor
}
}
}
}
}
}
}
}
}
}
trigger_if = { # If recipient is landless and only have a family title, target title must be a duchy or above
limit = {
is_landless_ruler = yes
any_held_title = { is_noble_family_title = yes }
scope:target.tier < min_appointment_tier
}
primary_title.tier <= scope:target.tier
}
trigger_if = { # If recipient is a count, they can get only get counties within the same duchy
limit = {
highest_held_title_tier = tier_county
main_administrative_tier > tier_county
is_landed = yes
scope:target.tier = tier_county
}
custom_tooltip = {
text = admin_count_grant_only_counties
any_held_title = { duchy = scope:target.duchy }
}
}
tgp_is_ceremonial_liege_trigger = no
}
custom_tooltip = {
text = GRANT_TITLES_ITEM_CANT_GIVE_ADMIN_PRIMARY
this != scope:puppet_or_actor.capital_province.duchy
}
trigger_if = {
limit = { is_noble_family_title = yes }
custom_tooltip = {
text = GRANT_TITLES_ITEM_CANT_GIVE_NOBLE_FAMILY
always = no
}
}
trigger_if = {
limit = { exists = var:ceremonial_title }
custom_tooltip = {
text = GRANT_TITLES_ITEM_CANT_GIVE_CEREMONIAL_TITLE
always = no
}
}
trigger_if = {
limit = {
list_size:target_titles > 0
}
custom_tooltip = {
text = GRANT_TITLES_ITEM_ADMIN_CANT_GIVE_MORE_THAN_ONE
any_in_list = {
list = target_titles
scope:target ?= this
}
}
}
trigger_if = {
limit = { scope:target = title:k_fashion }
NOT = { scope:target = title:k_fashion }
}
}
custom_description = {
text = grant_titles_interaction_can_only_give_diarch_de_jure_liege_to_diarch
subject = scope:puppet_or_actor.diarch
object = scope:puppet_or_actor
NAND = {
# Only applies if we have an active diarchy.
scope:puppet_or_actor = { has_active_diarchy = yes }
# Now, prevent us from giving away our diarch's land to invalidate them...
scope:target = {
any_dejure_vassal_title_holder = { this = scope:puppet_or_actor.diarch }
# ... _unless_ we're giving it _to_ the diarch.
scope:recipient != scope:puppet_or_actor.diarch
# Plus we only care if the title is below our tier.
tier < scope:puppet_or_actor.highest_held_title_tier
}
}
}
custom_description = {
text = grant_titles_interaction_title_being_wagered
subject = scope:puppet_or_actor
NOT = {
scope:target = { has_variable = wagered_county }
}
}
} }
auto_accept = yes auto_accept = yes

View file

@ -33,7 +33,7 @@ break_up_with_lover_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = miniscule_unity_loss VALUE = miniscule_unity_loss

View file

@ -247,7 +247,22 @@
title = modify_vassal_contract_interaction_notification title = modify_vassal_contract_interaction_notification
right_icon = scope:recipient right_icon = scope:recipient
# Add tyranny for each level increased. Can spend one hook to avoid one level of tyranny hit. # 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 = { if = {
limit = { vassal_obligation_increase_tyranny_gain != 0 } limit = { vassal_obligation_increase_tyranny_gain != 0 }
stress_and_fulfillment_impact = { stress_and_fulfillment_impact = {
@ -391,6 +406,21 @@ vassal_modify_vassal_contract_interaction = {
} }
} }
trigger_else = { 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 = { scope:puppet_or_actor = {
has_changed_contract_obligation_trigger = yes has_changed_contract_obligation_trigger = yes
} }
@ -1425,6 +1455,7 @@ admin_vassal_modify_vassal_contract_interaction = {
send_option = { send_option = {
is_shown = { is_shown = {
scope:puppet_or_actor = { is_diarch_of_target = scope:recipient } 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 = { is_valid = {
scope:puppet_or_actor = { 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 flag = diarch
localization = CALL_IN_DIARCH_RIGHTS localization = CALL_IN_DIARCH_RIGHTS
@ -1937,6 +1969,7 @@ nomad_vassal_modify_vassal_contract_interaction = {
send_option = { send_option = {
is_shown = { is_shown = {
scope:puppet_or_actor = { is_diarch_of_target = scope:recipient } 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 = { is_valid = {
scope:puppet_or_actor = { 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 flag = diarch
localization = CALL_IN_DIARCH_RIGHTS localization = CALL_IN_DIARCH_RIGHTS
@ -2341,6 +2375,13 @@ subject_modify_tributary_contract_interaction = {
limit = { always = scope:hook } limit = { always = scope:hook }
use_hook = scope:recipient use_hook = scope:recipient
} }
else_if = {
limit = { always = scope:gold }
pay_short_term_gold = {
target = scope:recipient
gold = 100
}
}
else = { else = {
if = { if = {
limit = { subject_standing < 0 } # this means we don't use subject standing limit = { subject_standing < 0 } # this means we don't use subject standing
@ -2355,9 +2396,14 @@ subject_modify_tributary_contract_interaction = {
} }
} }
else = { else = {
pay_short_term_gold = { if = {
target = scope:recipient limit = {
gold = major_gold_value 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 = { send_option = {
is_shown = { is_shown = {
scope:puppet_or_actor = { is_diarch_of_target = scope:recipient } 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 = { is_valid = {
scope:puppet_or_actor = { 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 flag = diarch
localization = CALL_IN_DIARCH_RIGHTS 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 = { should_use_extra_icon = {
scope:puppet_or_actor = { has_usable_hook = scope:recipient } scope:puppet_or_actor = { has_usable_hook = scope:recipient }
} }
@ -2460,12 +2522,21 @@ subject_modify_tributary_contract_interaction = {
# Opinion Factor # Opinion Factor
opinion_modifier = { opinion_modifier = {
trigger = { NOT = { scope:actor = { government_has_flag = government_is_merchant } } }
who = scope:recipient who = scope:recipient
opinion_target = scope:puppet_or_actor opinion_target = scope:puppet_or_actor
multiplier = 1 multiplier = 1
desc = AI_OPINION_REASON 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 = { modifier = {
add = { add = {
add = scope:new_value add = scope:new_value
@ -2482,9 +2553,31 @@ subject_modify_tributary_contract_interaction = {
} }
multiply = 0.5 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 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
}
}
} }
} }

File diff suppressed because it is too large Load diff

View file

@ -22,17 +22,36 @@
ai_instant_response = yes ai_instant_response = yes
desc = make_clerical_puppet_interaction_desc desc = make_clerical_puppet_interaction_desc
notification_text = make_clerical_puppet_interaction_notification
is_available = { is_available = {
can_have_realm_priest_puppet_trigger = yes can_have_realm_priest_puppet_trigger = yes
is_incapable = no is_incapable = no
trigger_if = { trigger_if = {
limit = { limit = {
is_ai = yes is_ai = yes
} }
NOT = { NOT = {
exists = puppet:theological_agent_puppet exists = puppet:theological_agent_puppet
} }
cp:councillor_court_chaplain ?= {
is_available_quick = {
ai = yes
adult = yes
incapable = no
}
NOT = { exists = puppeteer }
}
OR = {
piety_level >= 2
has_hook = cp:councillor_court_chaplain
cp:councillor_court_chaplain = {
has_dread_level_towards = {
target = root
level >= 2
}
}
}
} }
} }
@ -128,7 +147,7 @@
hidden_effect = { hidden_effect = {
send_interface_toast = { send_interface_toast = {
type = event_toast_effect_good type = event_toast_effect_good
title = make_clerical_puppet_interaction_notification title = make_clerical_puppet_interaction_toast
left_icon = scope:actor left_icon = scope:actor
right_icon = scope:recipient right_icon = scope:recipient
set_puppet = { set_puppet = {
@ -259,6 +278,7 @@ make_external_clerical_puppet_interaction = {
use_diplomatic_range = no use_diplomatic_range = no
desc = make_external_clerical_puppet_interaction_desc desc = make_external_clerical_puppet_interaction_desc
notification_text = make_clerical_puppet_interaction_notification
is_available = { is_available = {
is_adult = yes is_adult = yes
@ -445,7 +465,9 @@ make_external_clerical_puppet_interaction = {
on_accept = { on_accept = {
scope:actor = { scope:actor = {
trigger_event = pam_interactions_events.0120 trigger_event = pam_interactions_events.0120
pam_generic_set_puppet_interaction_side_effects = yes show_as_tooltip = {
pam_generic_set_puppet_interaction_side_effects = yes
}
} }
scope:recipient = { scope:recipient = {
custom_tooltip = set_external_clerical_puppet_tt custom_tooltip = set_external_clerical_puppet_tt
@ -686,6 +708,8 @@ make_external_ruler_puppet_interaction = {
desc = make_external_ruler_puppet_interaction_desc desc = make_external_ruler_puppet_interaction_desc
notification_text = make_external_ruler_puppet_interaction_greetings
is_available = { is_available = {
is_ai = no is_ai = no
trigger_if = { trigger_if = {
@ -965,7 +989,9 @@ make_external_ruler_puppet_interaction = {
on_accept = { on_accept = {
scope:actor = { scope:actor = {
trigger_event = pam_interactions_events.0121 trigger_event = pam_interactions_events.0121
pam_generic_set_puppet_interaction_side_effects = yes show_as_tooltip = {
pam_generic_set_puppet_interaction_side_effects = yes
}
} }
scope:recipient = { scope:recipient = {
custom_tooltip = set_external_ruler_puppet_tt custom_tooltip = set_external_ruler_puppet_tt

View file

@ -5,6 +5,7 @@ ask_for_conversion_interaction = {
popup_on_receive = yes popup_on_receive = yes
desc = compel_conversion_interaction_desc desc = compel_conversion_interaction_desc
notification_text = demand_conversion_minister_rites_interaction_notice
hidden = yes hidden = yes
@ -2619,7 +2620,7 @@ seek_indulgences_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -2640,7 +2641,7 @@ seek_indulgences_interaction = {
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -2667,6 +2668,15 @@ seek_indulgences_interaction = {
empire = 36 empire = 36
hegemony = 36 hegemony = 36
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 108
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = { ai_will_do = {
base = -25 base = -25
@ -3091,6 +3101,16 @@ declaration_of_repentance_interaction = {
evaluate_action_decreasing_house_unity = { evaluate_action_decreasing_house_unity = {
VALUE = -100 VALUE = -100
} }
modifier = {
add = 40
scope:actor = { has_character_modifier = favored_by_pope_modifier }
desc = FAVORED_BY_POPE
}
modifier = {
add = -40
scope:actor = { has_character_modifier = scorned_pope_modifier }
desc = HAS_SCORNED_POPE
}
} }
ai_min_reply_days = 1 ai_min_reply_days = 1
@ -3114,7 +3134,7 @@ declaration_of_repentance_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -3133,7 +3153,7 @@ declaration_of_repentance_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -3310,7 +3330,10 @@ excommunicate_interaction = {
} }
situation:the_christian_church = { trigger_situation_catalyst = catalyst_excommunicate } situation:the_christian_church = { trigger_situation_catalyst = catalyst_excommunicate }
} }
else = { else_if = {
limit = {
situation:the_christian_church = { situation_top_has_catalyst = catalyst_excommunicate_minor }
}
situation:the_christian_church = { trigger_situation_catalyst = catalyst_excommunicate_minor } situation:the_christian_church = { trigger_situation_catalyst = catalyst_excommunicate_minor }
} }
} }
@ -3320,7 +3343,6 @@ excommunicate_interaction = {
REQUESTING_CHARACTER = scope:puppet_or_actor REQUESTING_CHARACTER = scope:puppet_or_actor
TARGET_CHARACTER = scope:recipient TARGET_CHARACTER = scope:recipient
} }
scope:recipient = { scope:recipient = {
# Letter arrives a few days later; gives time for the trait to land before the player reads it. # Letter arrives a few days later; gives time for the trait to land before the player reads it.
trigger_event = { trigger_event = {
@ -3328,9 +3350,8 @@ excommunicate_interaction = {
days = 5 days = 5
} }
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -3372,7 +3393,6 @@ excommunicate_interaction = {
scope:recipient = { scope:recipient = {
NOR = { NOR = {
has_relation_rival = scope:puppet_or_actor has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
is_at_war_with = scope:puppet_or_actor is_at_war_with = scope:puppet_or_actor
has_character_flag = executed_own_hof_unlawfully has_character_flag = executed_own_hof_unlawfully
has_character_flag = executed_senior_cleric_unlawfully has_character_flag = executed_senior_cleric_unlawfully
@ -3465,11 +3485,11 @@ lift_excommunication_interaction = {
NOT = { NOT = {
religious_head_or_challenger ?= scope:recipient religious_head_or_challenger ?= scope:recipient
} }
} faith ?= {
scope:puppet_or_actor.faith ?= { has_doctrine = doctrine_spiritual_head
has_doctrine = doctrine_spiritual_head faith_has_sacraments_central_trigger = yes
faith_has_sacraments_central_trigger = yes this = scope:recipient.faith
this = scope:recipient.faith }
} }
scope:recipient = { scope:recipient = {
has_trait = excommunicated has_trait = excommunicated
@ -3488,17 +3508,13 @@ lift_excommunication_interaction = {
} }
is_valid_showing_failures_only = { is_valid_showing_failures_only = {
trigger_if = { scope:puppet_or_actor = {
limit = { scope:is_puppet_action ?= yes } trigger_if = {
scope:puppet_or_actor = { limit = { scope:is_puppet_action ?= yes }
piety >= lift_excommunication_interaction_cost_value piety >= lift_excommunication_interaction_cost_value
} }
}
scope:puppet_or_actor = {
highest_held_title_tier >= tier_duchy highest_held_title_tier >= tier_duchy
NOT = { NOT = { is_at_war_with = scope:recipient }
is_at_war_with = scope:recipient
}
custom_tooltip = { custom_tooltip = {
text = HOF_INTERACTION_UNREFORMED_FAITH text = HOF_INTERACTION_UNREFORMED_FAITH
NOT = { NOT = {
@ -3536,21 +3552,13 @@ lift_excommunication_interaction = {
scope:puppet_or_actor = { scope:puppet_or_actor = {
if = { if = {
limit = { limit = {
NOT = { NOT = { this = scope:recipient }
this = scope:recipient any_character_situation = { situation_type = the_christian_church }
} situation:the_christian_church ?= { situation_top_has_catalyst = catalyst_lift_excommunication }
any_character_situation = {
situation_type = the_christian_church
}
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_lift_excommunication
}
} }
if = { if = {
limit = { limit = {
scope:recipient = { scope:recipient = { highest_held_title_tier >= tier_kingdom }
highest_held_title_tier >= tier_kingdom
}
} }
situation:the_christian_church = { trigger_situation_catalyst = catalyst_lift_excommunication } situation:the_christian_church = { trigger_situation_catalyst = catalyst_lift_excommunication }
} }
@ -3561,7 +3569,7 @@ lift_excommunication_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -3637,7 +3645,6 @@ lift_excommunication_interaction = {
scope:recipient = { scope:recipient = {
NOR = { # Only do this for friends NOR = { # Only do this for friends
has_relation_friend = scope:puppet_or_actor has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
is_allied_to = scope:puppet_or_actor is_allied_to = scope:puppet_or_actor
has_variable = pam_turned_the_other_cheek_var has_variable = pam_turned_the_other_cheek_var
scope:puppet_or_actor = { # Unless you are in the Concord phase scope:puppet_or_actor = { # Unless you are in the Concord phase
@ -4042,6 +4049,16 @@ request_excommunication_interaction = {
has_trait = consecrated_blood has_trait = consecrated_blood
} }
} }
modifier = {
add = 40
scope:actor = { has_character_modifier = favored_by_pope_modifier }
desc = FAVORED_BY_POPE
}
modifier = {
add = -40
scope:actor = { has_character_modifier = scorned_pope_modifier }
desc = HAS_SCORNED_POPE
}
modifier = { modifier = {
add = 20 add = 20
scope:puppet_or_actor = { # PAM - Reform phase scope:puppet_or_actor = { # PAM - Reform phase
@ -4162,7 +4179,7 @@ request_excommunication_interaction = {
} }
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -4201,7 +4218,7 @@ request_excommunication_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = miniscule_unity_gain VALUE = miniscule_unity_gain
@ -4229,6 +4246,15 @@ request_excommunication_interaction = {
empire = 12 empire = 12
hegemony = 12 hegemony = 12
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 144
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = { ai_will_do = {
base = 25 base = 25
@ -4243,7 +4269,6 @@ request_excommunication_interaction = {
scope:secondary_recipient = { scope:secondary_recipient = {
NOR = { NOR = {
has_relation_rival = scope:puppet_or_actor has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
is_at_war_with = scope:puppet_or_actor is_at_war_with = scope:puppet_or_actor
has_character_flag = executed_own_hof_unlawfully has_character_flag = executed_own_hof_unlawfully
has_character_flag = executed_senior_cleric_unlawfully has_character_flag = executed_senior_cleric_unlawfully
@ -4374,6 +4399,7 @@ send_to_holy_order_interaction = {
limit = { scope:is_puppet_action ?= yes } limit = { scope:is_puppet_action ?= yes }
scope:puppet_or_actor = { scope:puppet_or_actor = {
dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value } dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value }
prestige >= take_vows_prestige_cost_value
} }
} }
scope:recipient = { scope:recipient = {
@ -4480,6 +4506,13 @@ send_to_holy_order_interaction = {
multiply = 0 multiply = 0
} }
} }
prestige = {
value = take_vows_prestige_cost_value
if = {
limit = { scope:is_puppet_action ?= yes }
multiply = 0
}
}
} }
on_send = { on_send = {
@ -4514,6 +4547,15 @@ send_to_holy_order_interaction = {
} }
} }
} }
if = {
limit = { take_vows_prestige_cost_value > 0 }
add_prestige = {
value = {
value = take_vows_prestige_cost_value
multiply = -1
}
}
}
} }
} }
scope:puppet_or_actor = { scope:puppet_or_actor = {
@ -4568,12 +4610,17 @@ send_to_holy_order_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { if = {
CHARACTER = scope:puppet_or_actor limit = {
TARGET = scope:recipient scope:puppet_or_actor = { government_has_flag = government_uses_house_unity }
VALUE = minor_unity_gain }
DESC = clan_unity_send_to_holy_order.desc add_house_unity_interaction_effect = {
REVERSE_NON_HOUSE_TARGET = no CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient
VALUE = minor_unity_gain
DESC = clan_unity_send_to_holy_order.desc
REVERSE_NON_HOUSE_TARGET = no
}
} }
} }
@ -4632,7 +4679,7 @@ send_to_holy_order_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -4719,8 +4766,6 @@ send_to_holy_order_interaction = {
has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_soulmate = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_best_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
opinion = { opinion = {
target = scope:puppet_or_actor.cp:councillor_court_chaplain target = scope:puppet_or_actor.cp:councillor_court_chaplain
value >= very_high_positive_opinion value >= very_high_positive_opinion
@ -5018,6 +5063,15 @@ send_to_holy_order_interaction = {
empire = 24 empire = 24
hegemony = 24 hegemony = 24
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 432
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = { ai_will_do = {
base = 0 base = 0
@ -5030,10 +5084,7 @@ send_to_holy_order_interaction = {
modifier = { # Try to send rivals modifier = { # Try to send rivals
add = 100 add = 100
scope:puppet_or_actor = { scope:puppet_or_actor = {
OR = { has_relation_rival = scope:recipient
has_relation_rival = scope:recipient
has_relation_nemesis = scope:recipient
}
} }
} }
@ -5270,6 +5321,7 @@ take_vows_interaction = {
limit = { scope:is_puppet_action ?= yes } limit = { scope:is_puppet_action ?= yes }
scope:puppet_or_actor = { scope:puppet_or_actor = {
dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value } dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value }
prestige >= take_vows_prestige_cost_value
} }
} }
scope:recipient = { scope:recipient = {
@ -5387,6 +5439,13 @@ take_vows_interaction = {
multiply = 0 multiply = 0
} }
} }
prestige = {
value = take_vows_prestige_cost_value
if = {
limit = { scope:is_puppet_action ?= yes }
multiply = 0
}
}
gold = { gold = {
value = 0 value = 0
if = { if = {
@ -5428,6 +5487,15 @@ take_vows_interaction = {
} }
} }
} }
if = {
limit = { take_vows_prestige_cost_value > 0 }
add_prestige = {
value = {
value = take_vows_prestige_cost_value
multiply = -1
}
}
}
} }
} }
scope:puppet_or_actor = { scope:puppet_or_actor = {
@ -5567,7 +5635,7 @@ take_vows_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -5632,7 +5700,7 @@ take_vows_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -5736,8 +5804,6 @@ take_vows_interaction = {
has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_soulmate = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_best_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
opinion = { opinion = {
target = scope:puppet_or_actor.cp:councillor_court_chaplain target = scope:puppet_or_actor.cp:councillor_court_chaplain
value >= very_high_positive_opinion value >= very_high_positive_opinion
@ -6204,10 +6270,7 @@ take_vows_interaction = {
modifier = { # Try to send rivals modifier = { # Try to send rivals
add = 100 add = 100
scope:puppet_or_actor = { scope:puppet_or_actor = {
OR = { has_relation_rival = scope:recipient
has_relation_rival = scope:recipient
has_relation_nemesis = scope:recipient
}
} }
} }
@ -6500,7 +6563,7 @@ temporal_condemnation_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -6574,15 +6637,29 @@ host_honored_guest_interaction = {
is_available = { is_available = {
trigger_if = { trigger_if = {
limit = { is_ai = yes } limit = { is_ai = yes }
piety >= major_piety_value OR = {
AND = {
rite ?= { rite_has_parameter = host_honored_guests_active }
piety >= major_piety_value
}
AND = {
NOT = { rite ?= { rite_has_parameter = host_honored_guests_active } }
prestige >= major_prestige_value
}
}
} }
} }
is_shown = { is_shown = {
scope:recipient != scope:puppet_or_actor scope:recipient != scope:puppet_or_actor
scope:puppet_or_actor ?= { scope:puppet_or_actor ?= {
rite ?= { is_playable_character = yes
rite_has_parameter = host_honored_guests_active is_adult = yes
OR = {
rite ?= {
rite_has_parameter = host_honored_guests_active
}
culture = { has_cultural_parameter = caravanserai_hospitality }
} }
is_playable_character = yes is_playable_character = yes
is_adult = yes is_adult = yes
@ -6684,9 +6761,20 @@ host_honored_guest_interaction = {
} }
# Spend piety based on recipient's tier. # Spend piety based on recipient's tier.
scope:puppet_or_actor = { scope:puppet_or_actor = {
add_piety = { if = {
value = 0 limit = {
subtract = scope:recipient.tier_scaled_piety_value rite = { rite_has_parameter = host_honored_guests_active }
}
add_piety = {
value = 0
subtract = scope:recipient.tier_scaled_piety_value
}
}
else = {
add_prestige = {
value = 0
subtract = scope:recipient.tier_scaled_prestige_value
}
} }
} }
@ -6710,10 +6798,11 @@ host_honored_guest_interaction = {
limit = { limit = {
OR = { OR = {
has_trait = cynical has_trait = cynical
NOT = { NOR = {
rite = { rite = {
rite_has_parameter = host_honored_guests_active rite_has_parameter = host_honored_guests_active
} }
culture = { has_cultural_parameter = caravanserai_hospitality }
} }
} }
} }
@ -6732,7 +6821,7 @@ host_honored_guest_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = miniscule_unity_gain VALUE = miniscule_unity_gain
@ -8015,7 +8104,7 @@ hof_ask_for_claim_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:secondary_recipient TARGET = scope:secondary_recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -8431,7 +8520,7 @@ sun_trial_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = major_unity_loss VALUE = major_unity_loss
@ -8546,7 +8635,7 @@ literalist_debate_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -9522,6 +9611,7 @@ take_monastic_vows_interaction = {
limit = { scope:is_puppet_action ?= yes } limit = { scope:is_puppet_action ?= yes }
scope:puppet_or_actor = { scope:puppet_or_actor = {
dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value } dynasty ?= { dynasty_prestige >= take_vows_dynasty_prestige_cost_value }
prestige >= take_vows_prestige_cost_value
} }
} }
scope:recipient = { scope:recipient = {
@ -9664,6 +9754,13 @@ take_monastic_vows_interaction = {
multiply = 0 multiply = 0
} }
} }
prestige = {
value = take_vows_prestige_cost_value
if = {
limit = { scope:is_puppet_action ?= yes }
multiply = 0
}
}
gold = { gold = {
value = 0 value = 0
if = { if = {
@ -9708,6 +9805,15 @@ take_monastic_vows_interaction = {
} }
} }
} }
if = {
limit = { take_vows_prestige_cost_value > 0 }
add_prestige = {
value = {
value = take_vows_prestige_cost_value
multiply = -1
}
}
}
} }
} }
scope:secondary_recipient = { scope:secondary_recipient = {
@ -9779,7 +9885,7 @@ take_monastic_vows_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -9873,7 +9979,7 @@ take_monastic_vows_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -10000,8 +10106,6 @@ take_monastic_vows_interaction = {
has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain has_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain has_relation_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain has_secret_relation_lover = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_soulmate = scope:puppet_or_actor.cp:councillor_court_chaplain
has_relation_best_friend = scope:puppet_or_actor.cp:councillor_court_chaplain
opinion = { opinion = {
target = scope:puppet_or_actor.cp:councillor_court_chaplain target = scope:puppet_or_actor.cp:councillor_court_chaplain
value >= very_high_positive_opinion value >= very_high_positive_opinion
@ -10446,6 +10550,15 @@ take_monastic_vows_interaction = {
empire = 24 empire = 24
hegemony = 24 hegemony = 24
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 432
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = { ai_will_do = {
base = 0 base = 0
@ -10469,10 +10582,7 @@ take_monastic_vows_interaction = {
modifier = { # Try to send rivals modifier = { # Try to send rivals
add = 100 add = 100
scope:puppet_or_actor = { scope:puppet_or_actor = {
OR = { has_relation_rival = scope:recipient
has_relation_rival = scope:recipient
has_relation_nemesis = scope:recipient
}
} }
} }
modifier = { # Has cloister to send the child to modifier = { # Has cloister to send the child to
@ -10591,6 +10701,7 @@ take_monastic_vows_interaction = {
county.holder.top_liege = scope:puppet_or_actor.top_liege county.holder.top_liege = scope:puppet_or_actor.top_liege
} }
any_leased_title = { any_leased_title = {
exists = scope:puppet_or_actor.capital_county.kingdom
kingdom ?= scope:puppet_or_actor.capital_county.kingdom kingdom ?= scope:puppet_or_actor.capital_county.kingdom
} }
} }
@ -10687,6 +10798,7 @@ take_monastic_vows_interaction = {
empire = scope:target.empire empire = scope:target.empire
} }
trigger_else = { trigger_else = {
exists = scope:puppet_or_actor.capital_county.empire
empire = scope:puppet_or_actor.capital_county.empire empire = scope:puppet_or_actor.capital_county.empire
} }
} }
@ -11223,6 +11335,15 @@ monastic_donation_interaction = {
empire = 12 empire = 12
hegemony = 12 hegemony = 12
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 144
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = { ai_will_do = {
base = 0 base = 0
@ -11259,6 +11380,7 @@ monastic_donation_interaction = {
county.holder.top_liege = scope:puppet_or_actor.top_liege county.holder.top_liege = scope:puppet_or_actor.top_liege
} }
any_leased_title = { any_leased_title = {
exists = scope:puppet_or_actor.capital_county
kingdom ?= scope:puppet_or_actor.capital_county.kingdom kingdom ?= scope:puppet_or_actor.capital_county.kingdom
} }
} }
@ -11313,6 +11435,8 @@ monastic_donation_interaction = {
modifier = { modifier = {
factor = 1.25 factor = 1.25
exists = capital_county.kingdom
exists = scope:recipient.capital_county.kingdom
capital_county.kingdom = scope:recipient.capital_county.kingdom capital_county.kingdom = scope:recipient.capital_county.kingdom
} }
@ -11351,6 +11475,7 @@ monastic_donation_interaction = {
empire = scope:target.empire empire = scope:target.empire
} }
trigger_else = { trigger_else = {
exists = scope:puppet_or_actor.capital_county
empire = scope:puppet_or_actor.capital_county.empire empire = scope:puppet_or_actor.capital_county.empire
} }
} }
@ -11987,6 +12112,8 @@ lease_title_to_existing_monastic_order_interaction = {
modifier = { modifier = {
factor = 1.25 factor = 1.25
exists = capital_county.kingdom
exists = scope:recipient.capital_county.kingdom
capital_county.kingdom = scope:recipient.capital_county.kingdom capital_county.kingdom = scope:recipient.capital_county.kingdom
} }

View file

@ -84,21 +84,12 @@
# Plus make sure there's a legal right to revoke. # Plus make sure there's a legal right to revoke.
scope:puppet_or_actor = { scope:puppet_or_actor = {
trigger_if = { trigger_if = {
limit = { government_has_flag = government_is_tribal } limit = {
custom_description = { scope:recipient = {
text = "has_law_allowing_title_revocation_tribal" highest_held_title_tier = tier_barony # Can always revoke from barons
has_realm_law_flag = title_revocation_allowed }
} }
} always = yes
trigger_else_if = {
limit = { government_is_japanese_trigger = yes }
custom_description = {
text = "has_law_allowing_title_revocation_soryo"
has_realm_law_flag = title_revocation_allowed
}
}
trigger_else_if = {
limit = { government_has_mechanic = administrative }
} }
trigger_else_if = { trigger_else_if = {
limit = { realm_law_use_church_authority = yes } limit = { realm_law_use_church_authority = yes }
@ -108,9 +99,35 @@
} }
} }
trigger_else = { trigger_else = {
custom_description = { trigger_if = {
text = "has_law_allowing_title_revocation_crown" limit = { government_has_flag = government_is_tribal }
has_realm_law_flag = title_revocation_allowed custom_description = {
text = "has_law_allowing_title_revocation_tribal"
has_realm_law_flag = title_revocation_allowed
}
}
trigger_else_if = {
limit = { government_is_japanese_trigger = yes }
custom_description = {
text = "has_law_allowing_title_revocation_soryo"
has_realm_law_flag = title_revocation_allowed
}
}
trigger_else_if = {
limit = { government_has_mechanic = administrative }
}
trigger_else_if = {
limit = { government_has_flag = government_is_republic }
custom_description = {
text = "has_law_allowing_title_revocation_republic"
has_realm_law_flag = title_revocation_allowed
}
}
trigger_else = {
custom_description = {
text = "has_law_allowing_title_revocation_crown"
has_realm_law_flag = title_revocation_allowed
}
} }
} }
} }
@ -238,6 +255,18 @@
has_clerical_region = yes has_clerical_region = yes
pam_title_is_clerical_elector_trigger = yes pam_title_is_clerical_elector_trigger = yes
pam_title_is_antipope_office_trigger = yes pam_title_is_antipope_office_trigger = yes
AND = {
holder = { government_has_flag = government_is_republic }
gdp_is_republic_title_trigger = yes
}
}
custom_description = {
text = "character_interactions_not_clerical_elector_title"
pam_title_is_clerical_elector_trigger = no
}
custom_description = {
text = "character_interactions_not_antipope_office_title"
pam_title_is_antipope_office_trigger = no
} }
} }
} }
@ -441,6 +470,17 @@
trigger_event = char_interaction.0199 trigger_event = char_interaction.0199
} }
} }
# Code hands the revoked primary title's treasury to the revoker, so empty a baron's treasury first
scope:recipient = {
if = {
limit = {
scope:landed_title.tier = tier_barony
primary_title = scope:landed_title
has_treasury = yes
}
hidden_effect = { empty_treasury_when_abandoning_landed_life_effect = yes }
}
}
revoke_title_interaction_effect = yes revoke_title_interaction_effect = yes
if = { if = {
@ -612,9 +652,16 @@
} }
} }
else = { else = {
war_for_revoke_effect = { if = {
LIEGE = scope:puppet_or_actor limit = {
REBEL = scope:recipient scope:puppet_or_actor = {
NOT = { has_realm_law_flag = republic_vassal_refusal_allowed }
}
}
war_for_revoke_effect = {
LIEGE = scope:puppet_or_actor
REBEL = scope:recipient
}
} }
scope:recipient = { scope:recipient = {
add_opinion = { add_opinion = {
@ -956,6 +1003,15 @@
} }
desc = VASSALS_REFUSAL_indomitable_azatani desc = VASSALS_REFUSAL_indomitable_azatani
} }
#GG modifier
modifier = {
add = -50
OR = {
gg_first_and_second_are_opposite_sides_trigger = { FIRST = scope:actor SECOND = scope:recipient }
scope:recipient = { is_gg_undecided_trigger = yes }
}
desc = RECIPIENT_IS_NOT_YOUR_GG
}
} }
# AI # AI
@ -964,11 +1020,6 @@
} }
ai_frequency = 0 # This is handled via code instead; see REVOKE_TITLE_TICK in the AI defines. All the logic for *if* to send a revoke though is scripted below ai_frequency = 0 # This is handled via code instead; see REVOKE_TITLE_TICK in the AI defines. All the logic for *if* to send a revoke though is scripted below
ai_potential = {
has_realm_law_flag = title_revocation_allowed
primary_title.tier >= tier_county
}
ai_will_do = { ai_will_do = {
base = -1000 base = -1000
@ -1066,6 +1117,11 @@
# Always revoke preferred capital and capital duchy # Always revoke preferred capital and capital duchy
modifier = { modifier = {
years_from_game_start >= 3 years_from_game_start >= 3
exists = scope:puppet_or_actor.primary_title.title_capital_county
OR = {
scope:landed_title = scope:puppet_or_actor.primary_title.title_capital_county
scope:landed_title = scope:puppet_or_actor.primary_title.title_capital_county.de_jure_liege
}
OR = { OR = {
scope:puppet_or_actor = { scope:puppet_or_actor = {
is_at_war = no is_at_war = no
@ -1089,11 +1145,6 @@
primary_title = title:e_europa primary_title = title:e_europa
} }
} }
exists = scope:puppet_or_actor.primary_title.title_capital_county
OR = {
scope:landed_title = scope:puppet_or_actor.primary_title.title_capital_county
scope:landed_title = scope:puppet_or_actor.primary_title.title_capital_county.de_jure_liege
}
NAND = { # Don't revoke player titles tyranically, it must be possible to play and succeed as Ulm! NAND = { # Don't revoke player titles tyranically, it must be possible to play and succeed as Ulm!
scope:landed_title.holder = { scope:landed_title.holder = {
is_ai = no is_ai = no
@ -1107,6 +1158,9 @@
# If below domain limit, try to revoke counties in your capital duchy despite tyranny, sometimes # If below domain limit, try to revoke counties in your capital duchy despite tyranny, sometimes
modifier = { modifier = {
years_from_game_start >= 3 years_from_game_start >= 3
scope:landed_title.tier = tier_county # Only Counties
exists = scope:puppet_or_actor.primary_title.title_capital_county
scope:landed_title.de_jure_liege = scope:puppet_or_actor.primary_title.title_capital_county.de_jure_liege # Under the same Duchy as your capital
OR = { OR = {
scope:puppet_or_actor = { scope:puppet_or_actor = {
is_at_war = no is_at_war = no
@ -1146,14 +1200,12 @@
} }
} }
} }
exists = scope:puppet_or_actor.primary_title.title_capital_county
OR = { OR = {
scope:puppet_or_actor.primary_title.title_capital_county.holder = scope:puppet_or_actor # You have your de jure capital already scope:puppet_or_actor.primary_title.title_capital_county.holder = scope:puppet_or_actor # You have your de jure capital already
NOT = { NOT = {
scope:puppet_or_actor.primary_title.title_capital_county.holder.top_liege = scope:puppet_or_actor.top_liege # Or your De Jure capital isn't in your realm scope:puppet_or_actor.primary_title.title_capital_county.holder.top_liege = scope:puppet_or_actor.top_liege # Or your De Jure capital isn't in your realm
} }
} }
scope:landed_title.tier = tier_county # Only Counties
OR = { # The AI gives away wrong-holding counties almost instantly, so we restrict to counties with holdings they can hold OR = { # The AI gives away wrong-holding counties almost instantly, so we restrict to counties with holdings they can hold
scope:landed_title.title_province = { has_holding_type = castle_holding } # Everyone is valid for castles scope:landed_title.title_province = { has_holding_type = castle_holding } # Everyone is valid for castles
AND = { AND = {
@ -1192,8 +1244,6 @@
} }
} }
scope:landed_title.de_jure_liege = scope:puppet_or_actor.primary_title.title_capital_county.de_jure_liege # Under the same Duchy as your capital
scope:recipient = { # Not from players scope:recipient = { # Not from players
is_ai = yes is_ai = yes
} }
@ -1289,6 +1339,11 @@
modifier = { modifier = {
scope:puppet_or_actor.faith != scope:recipient.faith scope:puppet_or_actor.faith != scope:recipient.faith
scope:recipient.primary_title.tier > tier_barony scope:recipient.primary_title.tier > tier_barony
scope:puppet_or_actor = {
NOT = {
title_revocation_is_tyrannical_trigger = { VASSAL = scope:recipient }
}
}
OR = { OR = {
scope:puppet_or_actor.faith.religion != scope:recipient.faith.religion scope:puppet_or_actor.faith.religion != scope:recipient.faith.religion
scope:puppet_or_actor.ai_zeal >= low_negative_ai_value scope:puppet_or_actor.ai_zeal >= low_negative_ai_value
@ -1302,9 +1357,9 @@
} }
NOT = { NOT = {
any_vassal = { any_vassal = {
is_imprisoned_by = scope:puppet_or_actor
faith != scope:puppet_or_actor.faith faith != scope:puppet_or_actor.faith
primary_title.tier > tier_barony primary_title.tier > tier_barony
is_imprisoned_by = scope:puppet_or_actor
time_in_prison = { years < 1 } time_in_prison = { years < 1 }
} }
} }
@ -1318,6 +1373,9 @@
has_relation_rival = scope:recipient has_relation_rival = scope:recipient
has_relation_nemesis = scope:recipient has_relation_nemesis = scope:recipient
} }
NOT = {
title_revocation_is_tyrannical_trigger = { VASSAL = scope:recipient }
}
} }
add = 100 add = 100
} }
@ -1330,9 +1388,7 @@
scope:puppet_or_actor = { scope:puppet_or_actor = {
OR = { OR = {
has_relation_friend = scope:recipient has_relation_friend = scope:recipient
has_relation_best_friend = scope:recipient
has_relation_lover = scope:recipient has_relation_lover = scope:recipient
has_relation_soulmate = scope:recipient
is_parent_of = scope:recipient is_parent_of = scope:recipient
is_grandparent_of = scope:recipient is_grandparent_of = scope:recipient
is_great_grandparent_of = scope:recipient is_great_grandparent_of = scope:recipient
@ -1409,12 +1465,12 @@
scope:puppet_or_actor = { scope:puppet_or_actor = {
government_has_flag = government_is_clan government_has_flag = government_is_clan
exists = house exists = house
ai_wants_high_unity = yes
} }
scope:recipient = { scope:recipient = {
government_has_flag = government_is_clan government_has_flag = government_is_clan
house ?= scope:puppet_or_actor.house house ?= scope:puppet_or_actor.house
} }
scope:puppet_or_actor = { ai_wants_high_unity = yes }
add = -1000 add = -1000
} # Admin Government: Do not revoke titles from your house unless it's really needed } # Admin Government: Do not revoke titles from your house unless it's really needed
modifier = { modifier = {
@ -1471,6 +1527,20 @@
} }
} }
# House Unity: Avoid revoking titles from house members if the AI wants to have high unity
modifier = {
scope:puppet_or_actor = {
government_has_flag = government_uses_house_unity
exists = house
}
scope:recipient = {
government_has_flag = government_uses_house_unity
house ?= scope:puppet_or_actor.house
}
scope:puppet_or_actor = { ai_wants_high_unity = yes }
add = -1000
}
# Don't take a title off anyone when refusing would raise half the realm against us. A prisoner, baron and lawful revocations are exempt, because they don't cause civil wars # Don't take a title off anyone when refusing would raise half the realm against us. A prisoner, baron and lawful revocations are exempt, because they don't cause civil wars
modifier = { modifier = {
factor = 0 factor = 0
@ -1553,5 +1623,11 @@
# } # }
# factor = 0 # factor = 0
# } # }
modifier = {
scope:actor = {
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient }
}
factor = 0
}
} }
} }

View file

@ -53,17 +53,10 @@ start_murder_interaction = {
} }
} }
scope:recipient = { NOT = { has_strong_hook = scope:puppet_or_actor } } scope:recipient = { NOT = { has_strong_hook = scope:puppet_or_actor } }
trigger_if = { #limit range for landless adventurers/merchants
limit = { exceptional_diplo_range_trigger = {
scope:puppet_or_actor = { CHARACTER = scope:puppet_or_actor
has_government = landless_adventurer_government TARGET = scope:recipient
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
trigger_if = { trigger_if = {
limit = { scope:puppet_or_actor = { has_variable = no_scheming_allowed_var } } limit = { scope:puppet_or_actor = { has_variable = no_scheming_allowed_var } }
@ -129,13 +122,22 @@ start_murder_interaction = {
scope:puppet_or_actor = { scope:puppet_or_actor = {
if = { # Only get stressed/SP penalties if you don't have the parameter if = { # Only get stressed/SP penalties if you don't have the parameter
limit = { limit = {
NOT = { has_fulfillment_parameter = sp_murder_yields_no_sp_or_stress_loss } NOR = {
has_fulfillment_parameter = sp_murder_yields_no_sp_or_stress_loss
has_variable = recently_troubled_by_murder_plot
}
} }
stress_and_fulfillment_impact = { stress_and_fulfillment_impact = {
compassionate = major_stress_impact_gain compassionate = major_stress_impact_gain
honest = medium_stress_impact_gain honest = medium_stress_impact_gain
just = medium_stress_impact_gain just = medium_stress_impact_gain
} }
hidden_effect = {
set_variable = {
name = recently_troubled_by_murder_plot
years = 1
}
}
} }
send_interface_toast = { send_interface_toast = {
type = event_toast_effect_neutral type = event_toast_effect_neutral
@ -218,14 +220,15 @@ start_murder_interaction = {
# Hand over the modifier. # Hand over the modifier.
random_scheme = { random_scheme = {
type = murder type = murder
limit = { limit = { scheme_target_character = scope:recipient }
scheme_target_character = scope:recipient
}
add_scheme_modifier = { type = feast_learnt_habits_modifier } add_scheme_modifier = { type = feast_learnt_habits_modifier }
} }
# Remove the variable now that we're done with it. # Remove the variable now that we're done with it.
remove_variable = feast_events_ewan_0001_bonus_value remove_variable = feast_events_ewan_0001_bonus_value
} }
# #Guelphs & Ghibellines
# gg_scheme_catalyst_warning_effect = { SCHEME = murder }
# gg_involvement_scheme_tooltip_effect = yes
} }
if = { if = {
limit = { limit = {
@ -327,18 +330,10 @@ start_abduct = {
} }
} }
scope:recipient = { NOT = { has_strong_hook = scope:puppet_or_actor } } scope:recipient = { NOT = { has_strong_hook = scope:puppet_or_actor } }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:puppet_or_actor
scope:puppet_or_actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
trigger_if = { trigger_if = {
limit = { scope:puppet_or_actor = { has_variable = no_scheming_allowed_var } } limit = { scope:puppet_or_actor = { has_variable = no_scheming_allowed_var } }
@ -488,6 +483,9 @@ start_abduct = {
} }
} }
} }
#Guelphs & Ghibellines
gg_scheme_catalyst_warning_effect = { SCHEME = abduct }
gg_involvement_scheme_tooltip_effect = yes
} }
if = { if = {
limit = { limit = {
@ -582,6 +580,58 @@ start_abduct = {
} }
always = yes always = yes
} }
#The target is quite the GG meddler
modifier = {
add = {
value = 0
#More weight if they have high involvement, stacking
if = {
limit = {
scope:recipient = {
exists = var:gg_involvement
var:gg_involvement >= gg_involvement_major_value
}
}
add = 25
}
if = {
limit = {
scope:recipient = {
exists = var:gg_involvement
var:gg_involvement >= gg_involvement_massive_value
}
}
add = 25
}
if = {
limit = {
scope:recipient = {
exists = var:gg_involvement
var:gg_involvement >= gg_involvement_omega_value
}
}
add = 25
}
if = {
limit = {
scope:recipient = {
exists = var:gg_involvement
var:gg_involvement >= gg_involvement_capped_value
}
}
add = 25
}
#Double if the target banished someone from your side
if = {
limit = {
scope:recipient = { has_character_modifier = vilified_ruler_modifier }
}
multiply = 2
}
}
exists = situation:guelph_ghibelline
gg_first_and_second_are_opposite_sides_trigger = { FIRST = scope:actor SECOND = scope:recipient }
}
#Promised to abstain from sin #Promised to abstain from sin
modifier = { modifier = {
OR = { OR = {
@ -689,18 +739,10 @@ befriend_interaction = {
target_character = scope:recipient target_character = scope:recipient
} }
} }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:puppet_or_actor
scope:puppet_or_actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
trigger_if = { trigger_if = {
limit = { scope:is_puppet_action ?= yes } limit = { scope:is_puppet_action ?= yes }
@ -1112,6 +1154,15 @@ seduce_interaction = {
empire = 12 empire = 12
hegemony = 12 hegemony = 12
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 216
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
is_available = { is_available = {
trigger_if = { trigger_if = {
@ -1260,18 +1311,10 @@ seduce_interaction = {
} }
scope:recipient = { primary_spouse = { NOT = { has_strong_hook = scope:puppet_or_actor } } } scope:recipient = { primary_spouse = { NOT = { has_strong_hook = scope:puppet_or_actor } } }
} }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:puppet_or_actor
scope:puppet_or_actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
} }
@ -1455,10 +1498,7 @@ seduce_interaction = {
add = 25 add = 25
scope:recipient = { scope:recipient = {
primary_spouse ?= { primary_spouse ?= {
OR = { has_relation_rival = scope:puppet_or_actor
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
}
} }
} }
} }
@ -1922,18 +1962,10 @@ court_interaction = {
NOT = { has_character_modifier = clerical_chastity_vow_modifier } NOT = { has_character_modifier = clerical_chastity_vow_modifier }
} }
} }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:puppet_or_actor
scope:puppet_or_actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
} }
@ -2258,6 +2290,15 @@ sway_interaction = {
empire = 6 empire = 6
hegemony = 6 hegemony = 6
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 360
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
is_available = { is_available = {
trigger_if = { trigger_if = {
@ -2347,18 +2388,10 @@ sway_interaction = {
target_character = scope:recipient target_character = scope:recipient
} }
} }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:puppet_or_actor
scope:puppet_or_actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
} }
@ -2664,18 +2697,10 @@ learn_language_interaction = {
target_character = scope:recipient target_character = scope:recipient
} }
} }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:puppet_or_actor
scope:puppet_or_actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
} }
@ -2784,6 +2809,23 @@ learn_language_interaction = {
scope:puppet_or_actor.religion = scope:recipient.religion scope:puppet_or_actor.religion = scope:recipient.religion
} }
modifier = {
add = 50
scope:puppet_or_actor = {
culture = {
has_cultural_parameter = wants_to_learn_chinese
}
NOT = {
knows_language = language_chinese
}
}
scope:recipient = {
culture = {
has_cultural_pillar = language_chinese
}
}
}
modifier = { modifier = {
add = 25 add = 25
scope:puppet_or_actor = { scope:puppet_or_actor = {
@ -2969,7 +3011,7 @@ learn_language_interaction = {
modifier = { modifier = {
add = 100 add = 100
scope:puppet_or_actor.culture = { scope:puppet_or_actor.culture = {
has_cultural_tradition = tradition_loyal_soldiers has_cultural_parameter = wants_to_learn_liege_language
} }
top_liege != this top_liege != this
scope:puppet_or_actor = { scope:puppet_or_actor = {
@ -3057,6 +3099,15 @@ study_faith_interaction = {
empire = 36 empire = 36
hegemony = 36 hegemony = 36
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 216
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
is_available = { is_available = {
trigger_if = { trigger_if = {
@ -3104,18 +3155,10 @@ study_faith_interaction = {
target_character = scope:recipient target_character = scope:recipient
} }
} }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:puppet_or_actor
scope:puppet_or_actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
trigger_if = { trigger_if = {
limit = { scope:is_puppet_action ?= yes } limit = { scope:is_puppet_action ?= yes }
@ -3521,3 +3564,350 @@ study_faith_interaction = {
} }
} }
influence_house_ambition_interaction = {
icon = influence_house_ambition
category = interaction_category_friendly
common_interaction = yes
send_name = START_SCHEME
interface_priority = 75
scheme = influence_house_ambition
ignores_pending_interaction_block = yes
ai_targets = {
ai_recipients = liege
ai_recipients = neighboring_rulers
max = 10
}
ai_targets = {
ai_recipients = vassals
ai_recipients = peer_vassals
max = 10
}
ai_frequency_by_tier = {
barony = 0
county = 120
duchy = 24
kingdom = 6
empire = 6
hegemony = 6
}
is_available = {
government_has_flag = government_is_republic
this = house.house_head
NOT = {
house = {
has_house_aspiration_parameter = republic_no_ambition
}
}
NOR = {
scheme_generic_ai_blocker_trigger = yes
primary_title = {
is_mercenary_company = yes
}
}
}
is_shown = {
scope:actor != scope:recipient
scope:recipient = {
government_has_flag = government_is_republic
this = house.house_head
}
}
is_valid_showing_failures_only = {
scope:actor = {
can_start_scheme = {
type = sway
target_character = scope:recipient
}
}
custom_tooltip = {
scope:actor.house = {
NOT = {
has_same_house_aspiration_as = scope:recipient.house
}
}
text = influence_house_ambition_same_ambition
}
}
desc = scheme_interaction_tt_influence_house_ambition_approved
on_accept = {
scope:actor = {
send_interface_toast = {
type = event_toast_effect_neutral
title = influence_house_ambition_interaction_notification
left_icon = scope:actor
right_icon = scope:recipient
begin_scheme_basic_effect = {
SCHEME_TYPE = influence_house_ambition
TARGET_TYPE = target_character
TARGET_SCOPE = scope:recipient
}
}
}
}
auto_accept = yes
ai_will_do = {
base = 10
modifier = { # Prefer seducing if you've got the focus for it
add = -20
scope:actor = {
has_focus = intrigue_temptation_focus
}
}
modifier = {
add = 10
scope:recipient = {
is_vassal_of = scope:actor
}
}
modifier = { # Try to sway those who you might want to vassalize
add = 30
scope:actor = {
top_liege = this
primary_title.tier >= tier_county
NOT = {
any_targeting_faction = {
exists = yes
OR = {
faction_is_type = liberty_faction
faction_is_type = claimant_faction
faction_is_type = independence_faction
}
}
}
}
scope:recipient = {
top_liege = this
is_playable_character = yes
primary_title.tier < scope:actor.primary_title.tier
OR = {
faith.religion = scope:actor.faith.religion
AND = {
faith = {
has_doctrine = doctrine_pluralism_pluralistic
}
scope:actor.faith = {
has_doctrine = doctrine_pluralism_pluralistic
}
}
}
}
}
modifier = {
add = 10
scope:recipient = {
joined_faction ?= {
faction_target = scope:actor
faction_is_type = liberty_faction
faction_is_at_war = no
}
}
}
modifier = {
add = 20
scope:recipient = {
joined_faction ?= {
faction_target = scope:actor
faction_is_type = claimant_faction
faction_is_at_war = no
}
}
}
modifier = {
add = 30
scope:recipient = {
joined_faction ?= {
faction_target = scope:actor
faction_is_type = independence_faction
faction_is_at_war = no
}
}
}
modifier = {
factor = 2
scope:recipient = {
is_a_faction_leader = yes
is_vassal_of = scope:actor
}
}
modifier = {
factor = 3
scope:recipient = {
is_vassal_of = scope:actor
opinion = {
target = scope:actor
value < 0
}
}
}
modifier = {
factor = 4
scope:recipient = {
is_powerful_vassal_of = scope:actor
opinion = {
target = scope:actor
value < 0
}
}
}
modifier = {
factor = 0.5
scope:recipient.faith != scope:actor.faith
}
modifier = {
factor = 0.25
scope:actor = {
is_ruler = yes
tier_difference = {
target = scope:recipient
value > 2
}
}
scope:recipient = {
is_theocratic_lessee = no
}
}
modifier = {
factor = 0.5
scope:actor = {
has_personality_malicious_trigger = yes
}
}
modifier = {
factor = 2
scope:actor = {
OR = {
has_trait = gregarious
has_trait = diplomat
has_trait = family_first
has_trait = august
}
}
}
modifier = {
factor = 0.75
scope:recipient = {
is_child_of = scope:actor
}
}
modifier = {
factor = 2
scope:actor = {
is_child_of = scope:recipient
}
}
modifier = {
factor = 0.25
scope:recipient = {
any_claim = {
this = scope:actor.primary_title
}
}
}
modifier = { # Butter up the realm priest
factor = 10
scope:recipient = {
is_theocratic_lessee = yes
opinion = {
target = scope:actor
value <= 50
}
}
}
modifier = { # Try to make your tax collectors like you
factor = 10
scope:actor = {
government_has_flag = government_is_clan
}
scope:recipient = {
is_tax_collector = yes
opinion = {
target = scope:actor
value <= 50
}
}
}
modifier = { # No point in swaying if opinion is already at 100
factor = 0
scope:recipient = {
opinion = {
target = scope:actor
value >= 100
}
}
}
modifier = { # Unlanded only if a realm priest, spymaster, or clan tax collector
factor = 0
scope:recipient = {
is_ruler = no
NOR = {
is_theocratic_lessee = yes
has_council_position = councillor_spymaster
AND = {
is_tax_collector = yes
scope:actor = { government_has_flag = government_is_clan }
}
}
}
}
modifier = { # Ignore rivals unless forgiving
factor = 0
scope:actor = {
has_relation_rival = scope:recipient
NOT = { has_trait = forgiving }
}
}
modifier = { # Ignore non-councillor barons
factor = 0
scope:recipient = {
primary_title.tier = tier_barony
is_councillor = no
}
}
modifier = { # Ignore neighboring Kings+
factor = 0
scope:recipient = {
top_liege = this
is_playable_character = yes
primary_title.tier >= tier_kingdom
}
}
modifier = { # Ignore neighboring Herders
factor = 0
scope:recipient = {
government_has_flag = government_is_herder
}
}
}
}

View file

@ -319,7 +319,7 @@ appoint_podesta_interaction = {
any_county_province = { any_county_province = {
has_holding_type = city_holding has_holding_type = city_holding
} }
development_level > 20 prosperity_level > 20
} }
} }
} }
@ -412,7 +412,7 @@ appoint_podesta_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain

View file

@ -52,7 +52,7 @@
limit = { tier <= tier_county } limit = { tier <= tier_county }
title_province = { title_province = {
barony_controller = scope:actor barony_controller = scope:actor
has_ongoing_construction = no has_ongoing_holding_construction = no
} }
} }
} }
@ -139,7 +139,7 @@ tribalize_holding_interaction = {
limit = { tier <= tier_county } limit = { tier <= tier_county }
title_province = { title_province = {
barony_controller = scope:actor barony_controller = scope:actor
has_ongoing_construction = no has_ongoing_holding_construction = no
} }
} }
} }
@ -290,7 +290,7 @@ support_feudalize_tribal_holding_interaction = {
limit = { tier <= tier_county } limit = { tier <= tier_county }
title_province = { title_province = {
barony_controller = scope:recipient barony_controller = scope:recipient
has_ongoing_construction = no has_ongoing_holding_construction = no
} }
} }
} }

View file

@ -11,9 +11,25 @@ become_tributary_interaction = {
desc = become_tributary_interaction_desc desc = become_tributary_interaction_desc
is_available = {
is_landed = yes # Landless have no realm to render tribute from;
is_independent_ruler = yes # 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
}
trigger_if = {
limit = {
is_ai = yes
}
is_at_war = no
is_available_allow_travelling = yes
}
}
is_shown = { is_shown = {
scope:recipient = { scope:recipient = {
is_independent_ruler = yes # while it's possible for tributaries to have their own tributaries, it should not be possible to create a tributary relationship with a non-independent ruler this = top_liege # while it's possible for tributaries to have their own tributaries, it should not be possible to create a tributary relationship with a non-independent ruler
NOR = { NOR = {
this = scope:actor this = scope:actor
this = scope:actor.suzerain this = scope:actor.suzerain
@ -26,6 +42,18 @@ become_tributary_interaction = {
limit = { is_ai = yes } limit = { is_ai = yes }
current_military_strength < scope:recipient.one_and_a_half_times_current_military_strength current_military_strength < scope:recipient.one_and_a_half_times_current_military_strength
primary_title.tier < scope:recipient.primary_title.tier primary_title.tier < scope:recipient.primary_title.tier
# We skip recipients that ai_will_do weights down so far the AI never picks them
scope:recipient = {
OR = {
government_has_flag = government_is_mandala
government_has_flag = government_is_tribal
NOR = {
government_has_mechanic = administrative
government_is_japanese_trigger = yes
government_has_flag = government_is_nomadic
}
}
}
} }
} }
} }
@ -34,7 +62,7 @@ become_tributary_interaction = {
#These triggers need to match the Tribute Mission Decision #These triggers need to match the Tribute Mission Decision
trigger_if = { trigger_if = {
limit = { limit = {
scope:recipient = { primary_title.tier = tier_hegemony } scope:recipient = { highest_held_title_tier = tier_hegemony }
} }
custom_tooltip = { custom_tooltip = {
text = become_tributary_interaction_hegemony_not_neighbor_tt text = become_tributary_interaction_hegemony_not_neighbor_tt
@ -279,13 +307,6 @@ become_tributary_interaction = {
} }
} }
is_available = {
is_landed = yes # Landless have no realm to render tribute from;
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 }
}
ai_targets = { ai_targets = {
ai_recipients = neighboring_rulers_including_tributary_borders ai_recipients = neighboring_rulers_including_tributary_borders
max = 5 max = 5
@ -414,23 +435,23 @@ become_tributary_interaction = {
### MANDALA ### ### MANDALA ###
#Added threshold for Mandalas who already are Tributaries #Added threshold for Mandalas who already are Tributaries
modifier = { modifier = {
scope:recipient = { is_tributary = yes } scope:actor = { is_tributary = yes }
NOT = { scope:recipient.suzerain = scope:actor } NOT = { scope:actor.suzerain = scope:recipient }
scope:recipient.suzerain = { primary_title.tier = tier_duchy } scope:actor.suzerain = { primary_title.tier = tier_duchy }
add = -25 add = -25
desc = already_tributary_threshold desc = already_tributary_threshold
} }
modifier = { modifier = {
scope:recipient = { is_tributary = yes } scope:actor = { is_tributary = yes }
NOT = { scope:recipient.suzerain = scope:actor } NOT = { scope:actor.suzerain = scope:recipient }
scope:recipient.suzerain = { primary_title.tier = tier_kingdom } scope:actor.suzerain = { primary_title.tier = tier_kingdom }
add = -50 add = -50
desc = already_tributary_threshold desc = already_tributary_threshold
} }
modifier = { modifier = {
scope:recipient = { is_tributary = yes } scope:actor = { is_tributary = yes }
NOT = { scope:recipient.suzerain = scope:actor } NOT = { scope:actor.suzerain = scope:recipient }
scope:recipient.suzerain = { primary_title.tier >= tier_empire } scope:actor.suzerain = { primary_title.tier >= tier_empire }
add = -75 add = -75
desc = already_tributary_threshold desc = already_tributary_threshold
} }
@ -479,7 +500,6 @@ become_tributary_interaction = {
modifier = { modifier = {
trigger_if = { trigger_if = {
limit = { limit = {
scope:recipient = { has_unruined_mandala_capital_trigger = yes }
scope:actor = { scope:actor = {
is_tributary = no is_tributary = no
OR = { OR = {
@ -487,6 +507,7 @@ become_tributary_interaction = {
government_has_flag = government_is_tribal government_has_flag = government_is_tribal
} }
} }
scope:recipient = { has_unruined_mandala_capital_trigger = yes }
} }
scope:recipient = { scope:recipient = {
OR = { OR = {
@ -754,7 +775,7 @@ become_tributary_interaction = {
modifier = { # Can't flee the conqueror this way modifier = { # Can't flee the conqueror this way
add = -1000 add = -1000
desc = NO_FRIVOLOUS_ACTIVITIES_REASON desc = NO_FRIVOLOUS_ACTIVITIES_REASON
scope:actor = { has_variable = conqueror } scope:recipient = { has_variable = conqueror }
} }
modifier = { # Wide difference in rank modifier = { # Wide difference in rank
@ -777,6 +798,8 @@ become_tributary_interaction = {
any_neighboring_top_liege_realm_owner = { this = scope:recipient } any_neighboring_top_liege_realm_owner = { this = scope:recipient }
} }
} }
exists = scope:actor.capital_province
exists = scope:recipient.capital_province
scope:actor.capital_province = { squared_distance = { target = scope:recipient.capital_province value < squared_distance_major } } scope:actor.capital_province = { squared_distance = { target = scope:recipient.capital_province value < squared_distance_major } }
} }
add = -15 add = -15
@ -789,6 +812,8 @@ become_tributary_interaction = {
any_neighboring_top_liege_realm_owner = { this = scope:recipient } any_neighboring_top_liege_realm_owner = { this = scope:recipient }
} }
} }
exists = scope:actor.capital_province
exists = scope:recipient.capital_province
scope:actor.capital_province = { squared_distance = { target = scope:recipient.capital_province value >= squared_distance_major } } scope:actor.capital_province = { squared_distance = { target = scope:recipient.capital_province value >= squared_distance_major } }
} }
add = -25 add = -25
@ -929,7 +954,7 @@ demand_tributary_interaction = {
} }
is_valid_showing_failures_only = { is_valid_showing_failures_only = {
scope:puppet_or_actor = { scope:puppet_or_actor ?= {
NOT = { has_truce = scope:recipient } NOT = { has_truce = scope:recipient }
is_available_allow_travelling = yes is_available_allow_travelling = yes
} }
@ -1210,11 +1235,16 @@ demand_tributary_interaction = {
} }
# if the actor is a major threat to the recipient they're more likely to accept # if the actor is a major threat to the recipient they're more likely to accept
ai_military_threat_modifier_with_cbs = { modifier = { # Casus bellis on target
SENDER = scope:recipient scope:recipient ?= { NOT = { has_government = herder_government } } # herders don't care
RECEIVER = scope:puppet_or_actor scope:puppet_or_actor ?= { NOT = { has_any_cb_on = scope:recipient } }
MULTIPLIER = 1 add = {
add = dominant_negative_ai_value
multiply = 1
}
desc = NO_CASUS_BELLI_REASON
} }
ai_military_threat_modifier = { SENDER = scope:recipient RECEIVER = scope:puppet_or_actor MULTIPLIER = 1 }
modifier = { # They are a King modifier = { # They are a King
desc = tributary_interaction_aibehavior_recipient_tier_tt desc = tributary_interaction_aibehavior_recipient_tier_tt
@ -1386,7 +1416,10 @@ demand_tributary_interaction = {
add = { add = {
add = -10 add = -10
if = { if = {
limit = { scope:puppet_or_actor.culture ?= { has_cultural_pillar = ethos_bellicose } } limit = {
exists = scope:puppet_or_actor
scope:puppet_or_actor.culture = { has_cultural_pillar = ethos_bellicose }
}
add = -10 add = -10
} }
} }
@ -1495,10 +1528,13 @@ cease_paying_tribute_interaction = {
is_available = { is_available = {
trigger_if = { trigger_if = {
limit = { is_ai = yes } limit = { is_ai = yes }
is_at_war = no
is_migrating = no
suzerain ?= { suzerain ?= {
is_migrating = no is_migrating = no
OR = { OR = {
is_landed = no
AND = { AND = {
NOT = { root = { government_has_flag = government_is_herder } } NOT = { root = { government_has_flag = government_is_herder } }
trigger_if = { # Obedience is a hard blocker, but only if suzerain is landed trigger_if = { # Obedience is a hard blocker, but only if suzerain is landed
@ -1513,7 +1549,6 @@ cease_paying_tribute_interaction = {
this = root this = root
} }
} }
is_landed = no
} }
trigger_if = { trigger_if = {
limit = { limit = {
@ -1533,7 +1568,6 @@ cease_paying_tribute_interaction = {
} }
} }
} }
is_at_war = no
trigger_if = { trigger_if = {
limit = { limit = {
suzerain = { suzerain = {
@ -1542,7 +1576,6 @@ cease_paying_tribute_interaction = {
} }
subject_standing < 20 subject_standing < 20
} }
is_migrating = no
} }
} }
@ -1551,6 +1584,7 @@ cease_paying_tribute_interaction = {
this != scope:recipient this != scope:recipient
suzerain ?= scope:recipient suzerain ?= scope:recipient
is_tributary = yes is_tributary = yes
NOT = { government_has_flag = government_is_merchant }
} }
} }
@ -1966,7 +2000,7 @@ cease_paying_tribute_interaction = {
government_has_flag = government_is_mandala government_has_flag = government_is_mandala
capital_province = { capital_province = {
has_building_with_flag = mandala_capital_building has_building_with_flag = mandala_capital_building
has_ruined_great_building = no has_ruined_great_district = no
} }
} }
add = 50 add = 50
@ -1985,7 +2019,7 @@ cease_paying_tribute_interaction = {
faith = scope:puppet_or_actor.faith faith = scope:puppet_or_actor.faith
capital_province = { capital_province = {
has_building_with_flag = mandala_capital_building has_building_with_flag = mandala_capital_building
has_ruined_great_building = no has_ruined_great_district = no
} }
} }
add = -10 add = -10
@ -2041,6 +2075,7 @@ release_tributary_interaction = {
scope:recipient = { scope:recipient = {
this != scope:puppet_or_actor this != scope:puppet_or_actor
suzerain ?= scope:puppet_or_actor suzerain ?= scope:puppet_or_actor
NOT = { government_has_flag = government_is_merchant }
OR = { # AI should only ever consider releasing unruly subjects OR = { # AI should only ever consider releasing unruly subjects
scope:actor = { is_ai = no } scope:actor = { is_ai = no }
NOT = { is_obedient_to = scope:puppet_or_actor } NOT = { is_obedient_to = scope:puppet_or_actor }
@ -2287,7 +2322,10 @@ exact_tribute_interaction = {
desc = exact_tribute_interaction_desc desc = exact_tribute_interaction_desc
is_shown = { is_shown = {
scope:recipient = { is_ai = yes } scope:recipient = {
is_ai = yes
NOT = { government_has_flag = government_is_merchant }
}
scope:actor = { scope:actor = {
OR = { OR = {
highest_held_title_tier >= tier_hegemony highest_held_title_tier >= tier_hegemony
@ -2773,19 +2811,19 @@ exact_tribute_interaction = {
add = 25 add = 25
if = { if = {
limit = { limit = {
OR = { NAND = {
NOT = { scope:recipient.primary_title = title:h_china } primary_title = title:h_china
government_has_flag = government_is_meritocratic government_has_flag = government_is_celestial
} }
} }
add = 25 add = 25
} }
} }
desc = tributary_interaction_aibehavior_recipient_hegemon_tier_tt desc = tributary_interaction_aibehavior_actor_hegemon_tier_tt
} }
# Unstable Phase # Unstable Phase
modifier = { modifier = {
scope:actor = { highest_held_title_tier >= tier_hegemony } scope:actor = { has_title = title:h_china }
situation:dynastic_cycle ?= { situation:dynastic_cycle ?= {
OR = { OR = {
situation_current_phase = situation_dynastic_cycle_phase_instability situation_current_phase = situation_dynastic_cycle_phase_instability
@ -2798,7 +2836,7 @@ exact_tribute_interaction = {
# Stable Phase # Stable Phase
modifier = { modifier = {
scope:actor = { scope:actor = {
highest_held_title_tier >= tier_hegemony has_title = title:h_china
legitimacy_level < dynastic_cycle_legitimacy_expectation legitimacy_level < dynastic_cycle_legitimacy_expectation
} }
situation:dynastic_cycle ?= { situation:dynastic_cycle ?= {
@ -2812,7 +2850,7 @@ exact_tribute_interaction = {
} }
modifier = { modifier = {
scope:actor = { scope:actor = {
highest_held_title_tier >= tier_hegemony has_title = title:h_china
legitimacy_level > dynastic_cycle_legitimacy_expectation legitimacy_level > dynastic_cycle_legitimacy_expectation
} }
situation:dynastic_cycle ?= { situation:dynastic_cycle ?= {
@ -2941,7 +2979,10 @@ exact_tribute_player_interaction = {
desc = exact_tribute_player_interaction_desc desc = exact_tribute_player_interaction_desc
is_shown = { is_shown = {
scope:recipient = { is_ai = no } scope:recipient = {
is_ai = no
NOT = { government_has_flag = government_is_merchant }
}
trigger_if = { trigger_if = {
limit = { limit = {
scope:actor = { highest_held_title_tier >= tier_hegemony } scope:actor = { highest_held_title_tier >= tier_hegemony }
@ -3220,6 +3261,9 @@ offer_courtier_interaction = {
is_shown = { is_shown = {
scope:actor != scope:recipient scope:actor != scope:recipient
scope:actor = {
NOT = { government_has_flag = government_is_merchant }
}
scope:recipient = { scope:recipient = {
is_ruler = yes is_ruler = yes
NOT = { government_has_flag = government_is_herder } NOT = { government_has_flag = government_is_herder }
@ -3251,16 +3295,10 @@ offer_courtier_interaction = {
} }
} }
trigger_if = { #For adventurers we check range #limit range for landless adventurers/merchants
limit = { exceptional_diplo_range_trigger = {
scope:actor = { CHARACTER = scope:actor
is_landless_adventurer = yes TARGET = scope:recipient
}
}
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:actor
}
} }
} }
@ -3312,15 +3350,15 @@ offer_courtier_interaction = {
prowess >= extremely_high_skill_rating prowess >= extremely_high_skill_rating
AND = { AND = {
diplomacy >= monumentally_high_skill_rating diplomacy >= monumentally_high_skill_rating
scope:actor.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating } scope:recipient.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating stewardship >= monumentally_high_skill_rating
scope:actor.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating } scope:recipient.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating intrigue >= monumentally_high_skill_rating
scope:actor.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating } scope:recipient.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating }
} }
has_relation_lover = scope:recipient # Shhh, don't tell anyone, of course you're 'skilled'! has_relation_lover = scope:recipient # Shhh, don't tell anyone, of course you're 'skilled'!
trigger_if = { trigger_if = {
@ -3479,15 +3517,15 @@ offer_courtier_interaction = {
exists = inspiration exists = inspiration
AND = { AND = {
diplomacy >= monumentally_high_skill_rating diplomacy >= monumentally_high_skill_rating
scope:actor.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating } scope:recipient.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating stewardship >= monumentally_high_skill_rating
scope:actor.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating } scope:recipient.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating intrigue >= monumentally_high_skill_rating
scope:actor.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating } scope:recipient.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating }
} }
trigger_if = { trigger_if = {
limit = { limit = {
@ -3709,11 +3747,11 @@ demand_courtier_interaction = {
scope:actor.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating } scope:actor.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating stewardship >= monumentally_high_skill_rating
scope:actor.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating } scope:actor.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating intrigue >= monumentally_high_skill_rating
scope:actor.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating } scope:actor.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating }
} }
trigger_if = { trigger_if = {
@ -3777,6 +3815,7 @@ demand_courtier_interaction = {
is_shown = { is_shown = {
scope:actor != scope:recipient scope:actor != scope:recipient
scope:recipient = { scope:recipient = {
NOT = { government_has_flag = government_is_merchant }
OR = { OR = {
trigger_if = { trigger_if = {
limit = { limit = {
@ -3990,11 +4029,11 @@ demand_courtier_interaction = {
scope:actor.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating } scope:actor.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating stewardship >= monumentally_high_skill_rating
scope:actor.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating } scope:actor.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating intrigue >= monumentally_high_skill_rating
scope:actor.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating } scope:actor.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating }
} }
trigger_if = { trigger_if = {
@ -4128,7 +4167,10 @@ demand_courtier_interaction = {
} }
# Use Hook # Use Hook
if = { if = {
limit = { scope:hook = yes } limit = {
scope:hook = yes
has_usable_hook = scope:recipient
}
use_hook = scope:recipient use_hook = scope:recipient
} }
} }
@ -4395,11 +4437,11 @@ demand_concubine_interaction = {
scope:actor.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating } scope:actor.cp:councillor_chancellor ?= { diplomacy < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating stewardship >= monumentally_high_skill_rating
scope:actor.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating } scope:actor.cp:councillor_steward ?= { stewardship < monumentally_high_skill_rating }
} }
AND = { AND = {
diplomacy >= monumentally_high_skill_rating intrigue >= monumentally_high_skill_rating
scope:actor.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating } scope:actor.cp:councillor_spymaster ?= { intrigue < monumentally_high_skill_rating }
} }
has_conventionally_attractive_trigger = yes has_conventionally_attractive_trigger = yes
@ -4677,7 +4719,10 @@ offer_tributary_status_interaction = { #Embrace as Tributary
if = { if = {
limit = { limit = {
is_confederation_member = yes is_confederation_member = yes
confederation ?= { is_house_based = no } confederation ?= {
is_house_based = no
is_title_based = no
}
} }
confederation = { remove_confederation_member = scope:recipient } confederation = { remove_confederation_member = scope:recipient }
} }
@ -4921,7 +4966,7 @@ offer_tributary_status_interaction = { #Embrace as Tributary
trigger = { trigger = {
scope:recipient.capital_province ?= { scope:recipient.capital_province ?= {
has_building_with_flag = mandala_capital_building has_building_with_flag = mandala_capital_building
has_ruined_great_building = no has_ruined_great_district = no
} }
} }
add = -200 add = -200
@ -4948,7 +4993,7 @@ offer_tributary_status_interaction = { #Embrace as Tributary
scope:actor.faith = scope:recipient.faith scope:actor.faith = scope:recipient.faith
scope:actor.capital_province = { scope:actor.capital_province = {
has_building_with_flag = mandala_capital_building has_building_with_flag = mandala_capital_building
has_ruined_great_building = no has_ruined_great_district = no
} }
} }
add = { add = {
@ -5361,6 +5406,7 @@ reassert_tributary_interaction = {
is_shown = { is_shown = {
scope:recipient = { scope:recipient = {
is_tributary_of = scope:actor is_tributary_of = scope:actor
NOT = { government_has_flag = government_is_merchant }
is_ai = yes is_ai = yes
cease_tribute_payments_ai_chance > 0 cease_tribute_payments_ai_chance > 0
} }

View file

@ -45,6 +45,14 @@ grant_vassal_interaction = {
} }
} }
scope:recipient.highest_held_title_tier > tier_barony scope:recipient.highest_held_title_tier > tier_barony
scope:actor = {
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
}
} }
is_valid_showing_failures_only = { is_valid_showing_failures_only = {
@ -266,7 +274,7 @@ grant_vassal_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = miniscule_unity_gain VALUE = miniscule_unity_gain
@ -424,7 +432,7 @@ grant_vassal_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:recipient CHARACTER = scope:recipient
TARGET = scope:puppet_or_actor TARGET = scope:puppet_or_actor
VALUE = miniscule_unity_loss VALUE = miniscule_unity_loss
@ -513,6 +521,15 @@ retract_vassal_interaction = {
has_realm_law_flag = vassal_retraction_allowed has_realm_law_flag = vassal_retraction_allowed
} }
} }
trigger_else_if = {
limit = {
government_has_flag = government_is_republic
}
custom_description = {
text = "has_law_allowing_vassal_retraction_republic"
has_realm_law_flag = vassal_retraction_allowed
}
}
trigger_else_if = { trigger_else_if = {
limit = { limit = {
realm_law_use_church_authority = yes realm_law_use_church_authority = yes
@ -596,10 +613,17 @@ retract_vassal_interaction = {
on_decline = { on_decline = {
scope:puppet_or_actor = { vassal_revocation_tyranny_effect = yes } scope:puppet_or_actor = { vassal_revocation_tyranny_effect = yes }
war_for_retraction_effect = { if = {
LIEGE = scope:puppet_or_actor limit = {
REBEL = scope:recipient scope:puppet_or_actor = {
SUBVASSAL = scope:secondary_recipient NOT = { has_realm_law_flag = republic_vassal_refusal_allowed }
}
}
war_for_retraction_effect = {
LIEGE = scope:puppet_or_actor
REBEL = scope:recipient
SUBVASSAL = scope:secondary_recipient
}
} }
scope:recipient = { scope:recipient = {
add_opinion = { add_opinion = {
@ -909,6 +933,15 @@ retract_vassal_interaction = {
} }
desc = VASSALS_REFUSAL_indomitable_azatani desc = VASSALS_REFUSAL_indomitable_azatani
} }
#GG modifier
modifier = {
add = -50
OR = {
gg_first_and_second_are_opposite_sides_trigger = { FIRST = scope:actor SECOND = scope:recipient }
scope:recipient = { is_gg_undecided_trigger = yes }
}
desc = RECIPIENT_IS_NOT_YOUR_GG
}
} }
#Use hook #Use hook
@ -1161,9 +1194,7 @@ retract_vassal_interaction = {
scope:puppet_or_actor = { scope:puppet_or_actor = {
OR = { OR = {
has_relation_friend = scope:recipient has_relation_friend = scope:recipient
has_relation_best_friend = scope:recipient
has_relation_lover = scope:recipient has_relation_lover = scope:recipient
has_relation_soulmate = scope:recipient
is_heir_of = scope:recipient is_heir_of = scope:recipient
} }
} }
@ -1224,6 +1255,13 @@ retract_vassal_interaction = {
} }
} }
} }
modifier = {
scope:actor = {
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient }
}
factor = 0
}
} }
} }
@ -1382,6 +1420,12 @@ create_claimant_faction_against_interaction = {
text = "faction_can_join_create_in_another_faction" text = "faction_can_join_create_in_another_faction"
is_a_faction_member = no is_a_faction_member = no
} }
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
} }
is_shown = { is_shown = {
@ -1485,7 +1529,7 @@ create_claimant_faction_against_interaction = {
trigger_if = { trigger_if = {
limit = { limit = {
exists = scope:landed_title exists = scope:landed_title
scope:actor.top_liege.primary_title.var:administrative_ui_special_title ?= scope:landed_title scope:actor.ceremonial_liege_title ?= scope:landed_title
} }
scope:recipient = { scope:recipient = {
tgp_is_in_ceremonial_house_trigger = yes tgp_is_in_ceremonial_house_trigger = yes
@ -1611,9 +1655,7 @@ invite_to_council_position_interaction = {
first_valid = { first_valid = {
triggered_desc = { triggered_desc = {
trigger = { trigger = {
scope:recipient = { scope:recipient = { is_councillor_of = scope:actor }
is_councillor_of = scope:actor
}
} }
desc = liege_offer_council_position_exchange desc = liege_offer_council_position_exchange
} }
@ -1641,9 +1683,7 @@ invite_to_council_position_interaction = {
} }
triggered_desc = { triggered_desc = {
trigger = { trigger = {
scope:recipient = { scope:recipient = { is_powerful_vassal_of = scope:actor }
is_powerful_vassal_of = scope:actor
}
} }
desc = liege_offer_council_position_powerful desc = liege_offer_council_position_powerful
} }
@ -1666,14 +1706,13 @@ invite_to_council_position_interaction = {
} }
is_valid_showing_failures_only = { is_valid_showing_failures_only = {
scope:recipient.liege = scope:actor
ALL_FALSE = { ALL_FALSE = {
scope:recipient.council_task = scope:target scope:recipient.council_task = scope:target
scope:actor = { is_at_war_with = scope:recipient } scope:actor = { is_at_war_with = scope:recipient }
} }
trigger_if = { trigger_if = {
limit = { limit = { exists = scope:target.councillor }
exists = scope:target.councillor
}
scope:target = { can_fire_position = yes } scope:target = { can_fire_position = yes }
NOT = { NOT = {
scope:target.councillor = { scope:target.councillor = {
@ -1709,7 +1748,7 @@ invite_to_council_position_interaction = {
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
#if = { #if = {
# limit = { scope:actor = { NOT = { has_character_flag = fp3_consulted_house } } } # limit = { scope:actor = { NOT = { has_character_flag = fp3_consulted_house } } }
# add_clan_unity_interaction_effect = { # add_house_unity_interaction_effect = {
# CHARACTER = scope:actor # CHARACTER = scope:actor
# TARGET = scope:recipient # TARGET = scope:recipient
# VALUE = miniscule_unity_gain # VALUE = miniscule_unity_gain
@ -1898,7 +1937,7 @@ force_onto_council = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -2132,8 +2171,6 @@ force_onto_council = {
OR = { OR = {
has_relation_friend = scope:recipient has_relation_friend = scope:recipient
has_relation_lover = scope:recipient has_relation_lover = scope:recipient
has_relation_best_friend = scope:recipient
has_relation_soulmate = scope:recipient
} }
} }
} }
@ -2245,7 +2282,7 @@ stop_attacker_vassal_war_interaction = {
exists = scope:actor.house exists = scope:actor.house
scope:recipient.house != scope:actor.house scope:recipient.house != scope:actor.house
} }
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:target.primary_defender TARGET = scope:target.primary_defender
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -2259,7 +2296,7 @@ stop_attacker_vassal_war_interaction = {
exists = scope:target.primary_defender.house exists = scope:target.primary_defender.house
scope:target.primary_defender.house != scope:actor.house scope:target.primary_defender.house != scope:actor.house
} }
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -2381,7 +2418,7 @@ stop_defender_vassal_war_interaction = {
exists = scope:target.primary_attacker.house exists = scope:target.primary_attacker.house
scope:target.primary_attacker.house != scope:actor.house scope:target.primary_attacker.house != scope:actor.house
} }
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -2395,7 +2432,7 @@ stop_defender_vassal_war_interaction = {
exists = scope:recipient.house exists = scope:recipient.house
scope:recipient.house != scope:actor.house scope:recipient.house != scope:actor.house
} }
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:target.primary_attacker TARGET = scope:target.primary_attacker
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -2552,7 +2589,7 @@ ask_for_pardon_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -2610,7 +2647,7 @@ ask_for_pardon_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:recipient CHARACTER = scope:recipient
TARGET = scope:actor TARGET = scope:actor
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -2984,7 +3021,7 @@ pardon_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -3016,9 +3053,7 @@ pardon_interaction = {
scope:recipient = { scope:recipient = {
OR = { OR = {
has_relation_friend = scope:puppet_or_actor has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
has_relation_lover = scope:puppet_or_actor has_relation_lover = scope:puppet_or_actor
has_relation_soulmate = scope:puppet_or_actor
is_primary_heir_of = scope:puppet_or_actor is_primary_heir_of = scope:puppet_or_actor
} }
} }
@ -3108,6 +3143,12 @@ vassal_claim_liege_title_interaction = {
scope:puppet_or_actor ?= { scope:puppet_or_actor ?= {
is_physically_able_adult = yes is_physically_able_adult = yes
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
} }
scope:recipient = scope:puppet_or_actor.liege scope:recipient = scope:puppet_or_actor.liege
@ -3377,7 +3418,7 @@ vassal_claim_liege_title_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = major_unity_loss VALUE = major_unity_loss
@ -3438,10 +3479,7 @@ vassal_claim_liege_title_interaction = {
modifier = { modifier = {
add = 25 add = 25
scope:recipient = { scope:recipient = {
OR = { has_relation_rival = scope:puppet_or_actor
has_relation_rival = scope:puppet_or_actor
has_relation_nemesis = scope:puppet_or_actor
}
} }
} }
@ -3566,7 +3604,6 @@ vassal_claim_liege_title_interaction = {
scope:recipient = { scope:recipient = {
OR = { OR = {
has_relation_friend = scope:puppet_or_actor has_relation_friend = scope:puppet_or_actor
has_relation_best_friend = scope:puppet_or_actor
has_relation_soulmate = scope:puppet_or_actor has_relation_soulmate = scope:puppet_or_actor
} }
} }
@ -3618,7 +3655,7 @@ give_vassal_directive_interaction = {
} }
send_option = { send_option = {
flag = improve_development flag = improve_prosperity
is_shown = { is_shown = {
scope:recipient = { scope:recipient = {
government_has_mechanic = administrative government_has_mechanic = administrative
@ -3810,7 +3847,7 @@ give_vassal_directive_interaction = {
text = has_any_directive text = has_any_directive
scope:recipient = { scope:recipient = {
has_variable = { has_variable = {
name = vassal_directive_improve_development name = vassal_directive_improve_prosperity
name = vassal_directive_train_commanders name = vassal_directive_train_commanders
name = vassal_directive_build_maa name = vassal_directive_build_maa
name = vassal_directive_convert_faith name = vassal_directive_convert_faith
@ -3834,7 +3871,7 @@ give_vassal_directive_interaction = {
if = { if = {
limit = { limit = {
has_variable = { has_variable = {
name = vassal_directive_improve_development name = vassal_directive_improve_prosperity
name = vassal_directive_train_commanders name = vassal_directive_train_commanders
name = vassal_directive_build_maa name = vassal_directive_build_maa
name = vassal_directive_convert_faith name = vassal_directive_convert_faith
@ -3857,11 +3894,11 @@ give_vassal_directive_interaction = {
switch = { switch = {
trigger = yes trigger = yes
scope:improve_development ?= { scope:improve_prosperity ?= {
custom_tooltip = { custom_tooltip = {
text = vassal_directive_improve_development text = vassal_directive_improve_prosperity
remove_vassal_directives = yes remove_vassal_directives = yes
add_character_flag = vassal_directive_improve_development add_character_flag = vassal_directive_improve_prosperity
} }
} }
@ -3984,11 +4021,11 @@ give_vassal_directive_interaction = {
modifier = { modifier = {
add = 100 add = 100
scope:improve_development ?= yes scope:improve_prosperity ?= yes
scope:recipient = { scope:recipient = {
has_none_of_variables = { has_none_of_variables = {
name = vassal_directive_building_focus_economy name = vassal_directive_building_focus_economy
name = vassal_directive_improve_development name = vassal_directive_improve_prosperity
} }
OR = { OR = {
vassal_contract_has_flag = admin_theme_civilian vassal_contract_has_flag = admin_theme_civilian
@ -4003,7 +4040,7 @@ give_vassal_directive_interaction = {
scope:recipient = { scope:recipient = {
has_none_of_variables = { has_none_of_variables = {
name = vassal_directive_building_focus_economy name = vassal_directive_building_focus_economy
name = vassal_directive_improve_development name = vassal_directive_improve_prosperity
} }
OR = { OR = {
vassal_contract_has_flag = admin_theme_civilian vassal_contract_has_flag = admin_theme_civilian

View file

@ -30,16 +30,13 @@ fund_inspiration_interaction = {
is_shown = { is_shown = {
scope:recipient = { scope:recipient = {
is_ruler = no is_ruler = no
inspiration ?= { exists = inspiration
NOT = { any_inspiration = {
exists = inspiration_sponsor NOT = { exists = inspiration_sponsor }
}
} }
} }
scope:actor = { scope:actor = {
any_courtier_or_guest = { any_courtier_or_guest = { this = scope:recipient }
this = scope:recipient
}
} }
} }
@ -62,8 +59,17 @@ fund_inspiration_interaction = {
} }
} }
scope:actor = { scope:actor = {
can_sponsor_inspiration = scope:recipient.inspiration
gold >= scope:recipient.inspiration.base_inspiration_gold_cost gold >= scope:recipient.inspiration.base_inspiration_gold_cost
trigger_if = {
limit = { government_has_flag = government_is_merchant }
has_realm_law = company_purpose_artisan
}
trigger_else = {
custom_description = {
text = needs_inspiration_to_sponsor_tt
can_sponsor_inspiration = scope:recipient.inspiration
}
}
} }
} }
@ -134,7 +140,7 @@ fund_inspiration_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = miniscule_unity_gain VALUE = miniscule_unity_gain
@ -344,7 +350,7 @@ indebt_guest_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = miniscule_unity_loss VALUE = miniscule_unity_loss
@ -368,7 +374,7 @@ indebt_guest_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = miniscule_unity_loss VALUE = miniscule_unity_loss

View file

@ -368,7 +368,7 @@ share_known_secrets_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -620,7 +620,7 @@ propose_best_friendship_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -669,7 +669,7 @@ propose_best_friendship_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -807,7 +807,7 @@ reaffirm_best_friendship_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -851,7 +851,7 @@ reaffirm_best_friendship_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -978,7 +978,7 @@ synergise_friendship_interaction = {
synergise_friendship_interaction_actual_effect = yes synergise_friendship_interaction_actual_effect = yes
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -1012,7 +1012,7 @@ synergise_friendship_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -1138,18 +1138,10 @@ challenge_to_2p_chess_interaction = {
bg_can_start_board_game_is_scope_banned_checks_trigger = no bg_can_start_board_game_is_scope_banned_checks_trigger = no
} }
} }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:actor
scope:actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:actor
}
} }
} }
@ -1379,7 +1371,7 @@ challenge_to_2p_chess_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = miniscule_unity_loss VALUE = miniscule_unity_loss
@ -1425,7 +1417,7 @@ challenge_to_2p_chess_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:recipient CHARACTER = scope:recipient
TARGET = scope:actor TARGET = scope:actor
VALUE = miniscule_unity_loss VALUE = miniscule_unity_loss
@ -2149,18 +2141,10 @@ purchase_truce_interaction = {
NOT = { any_truce_holder = { this = scope:recipient } } NOT = { any_truce_holder = { this = scope:recipient } }
} }
} }
#limit range for landless adventurers #limit range for landless adventurers/merchants
trigger_if = { exceptional_diplo_range_trigger = {
limit = { CHARACTER = scope:puppet_or_actor
scope:puppet_or_actor = { TARGET = scope:recipient
has_government = landless_adventurer_government
}
}
#Has to be used instead of diplo range checks in laamp to landed interactions
ep3_laamp_diplo_range_trigger = {
TARGET = scope:recipient
LAAMP = scope:puppet_or_actor
}
} }
} }
@ -2234,7 +2218,7 @@ purchase_truce_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -2281,7 +2265,7 @@ purchase_truce_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:recipient CHARACTER = scope:recipient
TARGET = scope:puppet_or_actor TARGET = scope:puppet_or_actor
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -2656,6 +2640,15 @@ purchase_truce_interaction = {
empire = 0 empire = 0
hegemony = 0 hegemony = 0
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 180
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_will_do = { ai_will_do = {
base = 0 base = 0
@ -2899,7 +2892,7 @@ incite_revolts_interaction = {
any_sub_realm_county = { any_sub_realm_county = {
count > 0 count > 0
holder = scope:recipient holder = scope:recipient
county_opinion < 0 popular_opinion < 0
NOR = { NOR = {
has_county_modifier = small_investment_in_revolt_modifier has_county_modifier = small_investment_in_revolt_modifier
has_county_modifier = medium_investment_in_revolt_modifier has_county_modifier = medium_investment_in_revolt_modifier
@ -2954,7 +2947,7 @@ incite_revolts_interaction = {
has_county_modifier = medium_investment_in_revolt_modifier has_county_modifier = medium_investment_in_revolt_modifier
has_county_modifier = high_investment_in_revolt_modifier has_county_modifier = high_investment_in_revolt_modifier
} }
county_opinion < 0 popular_opinion < 0
holder = scope:recipient holder = scope:recipient
} }
weight = { weight = {
@ -3005,10 +2998,7 @@ incite_revolts_interaction = {
if = { if = {
limit = { limit = {
scope:actor = { scope:actor = {
OR = { has_relation_rival = scope:recipient
has_relation_rival = scope:recipient
has_relation_nemesis = scope:recipient
}
} }
} }
stress_and_fulfillment_impact = { stress_and_fulfillment_impact = {
@ -3183,7 +3173,7 @@ incite_revolts_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -3289,10 +3279,7 @@ incite_revolts_interaction = {
modifier = { modifier = {
add = 50 add = 50
scope:recipient = { scope:recipient = {
OR = { has_relation_rival = scope:actor
has_relation_rival = scope:actor
has_relation_nemesis = scope:actor
}
} }
} }
@ -3312,8 +3299,6 @@ incite_revolts_interaction = {
OR = { OR = {
has_relation_friend = scope:actor has_relation_friend = scope:actor
has_relation_lover = scope:actor has_relation_lover = scope:actor
has_relation_soulmate = scope:actor
has_relation_best_friend = scope:actor
} }
} }
} }
@ -3333,16 +3318,16 @@ incite_revolts_interaction = {
# special_interaction = interfere_in_war_interaction # special_interaction = interfere_in_war_interaction
# popup_on_receive = yes # popup_on_receive = yes
# pause_on_receive = yes # pause_on_receive = yes
#
# ai_maybe = yes # ai_maybe = yes
# desc = contract_assistance_interaction_desc # desc = contract_assistance_interaction_desc
# icon = icon_gold # icon = icon_gold
#
# greeting = positive # greeting = positive
# notification_text = contract_assistance_interaction_notification # notification_text = contract_assistance_interaction_notification
#
# cooldown_against_recipient = { years = 5 } # cooldown_against_recipient = { years = 5 }
#
# is_available = { # is_available = {
# trigger_if = { # trigger_if = {
# limit = { is_ai = yes } # limit = { is_ai = yes }
@ -3361,7 +3346,7 @@ incite_revolts_interaction = {
# } # }
# NOT = { government_has_flag = government_is_herder } # NOT = { government_has_flag = government_is_herder }
# } # }
#
# is_shown = { # is_shown = {
# # Recipient is Involved in Struggle, at war, and not at war with Actor # # Recipient is Involved in Struggle, at war, and not at war with Actor
# scope:recipient = { # scope:recipient = {
@ -3386,15 +3371,15 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# has_valid_target = { # has_valid_target = {
# exists = scope:target # exists = scope:target
# } # }
#
# has_valid_target_showing_failures_only = { # has_valid_target_showing_failures_only = {
# scope:target = { is_war_leader = scope:recipient } # scope:target = { is_war_leader = scope:recipient }
# } # }
#
# is_valid_showing_failures_only = { # is_valid_showing_failures_only = {
# scope:recipient = { # scope:recipient = {
# # Cannot demand gold from allies # # Cannot demand gold from allies
@ -3415,7 +3400,7 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# # Recipient is not in (any) war against your liege(s) # # Recipient is not in (any) war against your liege(s)
# trigger_if = { # trigger_if = {
# limit = { exists = scope:actor.liege } # limit = { exists = scope:actor.liege }
@ -3427,7 +3412,7 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# # Cannot join wars with raised armies # # Cannot join wars with raised armies
# scope:actor = { # scope:actor = {
# has_raised_armies = no # has_raised_armies = no
@ -3442,13 +3427,13 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# # Can only contract one war at a time # # Can only contract one war at a time
# custom_tooltip = { # custom_tooltip = {
# text = contract_assistance_war_already_contracted_tt # text = contract_assistance_war_already_contracted_tt
# scope:actor = { NOT = { has_variable = owed_contract_assistance_war } } # scope:actor = { NOT = { has_variable = owed_contract_assistance_war } }
# } # }
#
# # Adventurers can't join wars in places they're exiled from. # # Adventurers can't join wars in places they're exiled from.
# custom_tooltip = { # custom_tooltip = {
# text = the_wake_1 # text = the_wake_1
@ -3459,7 +3444,7 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# # Sensible restrictions to keep CulTrads from making this OP. # # Sensible restrictions to keep CulTrads from making this OP.
# scope:recipient = { # scope:recipient = {
# custom_tooltip = { # custom_tooltip = {
@ -3506,7 +3491,7 @@ incite_revolts_interaction = {
# # Liege checks # # Liege checks
# can_join_war_liege_vassal_check_trigger = { WARRIOR = scope:recipient JOINER = scope:actor } # can_join_war_liege_vassal_check_trigger = { WARRIOR = scope:recipient JOINER = scope:actor }
# } # }
#
# is_highlighted = { # is_highlighted = {
# scope:actor = { # scope:actor = {
# has_realm_law = camp_purpose_mercenaries # has_realm_law = camp_purpose_mercenaries
@ -3541,7 +3526,7 @@ incite_revolts_interaction = {
# craven = medium_stress_impact_gain # craven = medium_stress_impact_gain
# shy = minor_stress_impact_gain # shy = minor_stress_impact_gain
# } # }
#
# # Struggle Catalyst # # Struggle Catalyst
# if = { # if = {
# limit = { # limit = {
@ -3587,9 +3572,9 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# # If we're a clan this interaction affects unity # # If we're a clan this interaction affects unity
# add_clan_unity_interaction_effect = { # add_house_unity_interaction_effect = {
# CHARACTER = scope:actor # CHARACTER = scope:actor
# TARGET = scope:recipient # TARGET = scope:recipient
# VALUE = medium_unity_loss # VALUE = medium_unity_loss
@ -3597,13 +3582,13 @@ incite_revolts_interaction = {
# REVERSE_NON_HOUSE_TARGET = no # REVERSE_NON_HOUSE_TARGET = no
# } # }
# } # }
#
# on_decline = { # on_decline = {
# # Refusal notification # # Refusal notification
# scope:actor = { trigger_event = char_interaction.0236 } # scope:actor = { trigger_event = char_interaction.0236 }
#
# # If we're a clan this interaction affects unity # # If we're a clan this interaction affects unity
# add_clan_unity_interaction_effect = { # add_house_unity_interaction_effect = {
# CHARACTER = scope:recipient # CHARACTER = scope:recipient
# TARGET = scope:actor # TARGET = scope:actor
# VALUE = minor_unity_gain # VALUE = minor_unity_gain
@ -3802,7 +3787,7 @@ incite_revolts_interaction = {
# multiplier = 0.25 # multiplier = 0.25
# desc = AI_OPINION_REASON # desc = AI_OPINION_REASON
# } # }
#
# modifier = { # modifier = {
# add = { # add = {
# value = ai_greed # value = ai_greed
@ -3811,7 +3796,7 @@ incite_revolts_interaction = {
# ai_greed <= 0.5 # ai_greed <= 0.5
# desc = AI_VALUE_MODIFIER_GREED # desc = AI_VALUE_MODIFIER_GREED
# } # }
#
# modifier = { # modifier = {
# add = { # add = {
# value = ai_boldness # value = ai_boldness
@ -3820,7 +3805,7 @@ incite_revolts_interaction = {
# NOT = { ai_boldness = 0 } # NOT = { ai_boldness = 0 }
# desc = AI_VALUE_MODIFIER_BOLDNESS # desc = AI_VALUE_MODIFIER_BOLDNESS
# } # }
#
# modifier = { # modifier = {
# add = 50 # add = 50
# desc = camp_purpose_mercenaries_reason # desc = camp_purpose_mercenaries_reason
@ -3834,12 +3819,12 @@ incite_revolts_interaction = {
# # WARJOINER = scope:actor # # WARJOINER = scope:actor
# # } # # }
# } # }
#
# ai_target_quick_trigger = { adult = yes } # ai_target_quick_trigger = { adult = yes }
# ai_targets = { # ai_targets = {
# ai_recipients = neighboring_rulers # ai_recipients = neighboring_rulers
# } # }
#
# ai_set_target = { # ai_set_target = {
# scope:recipient = { # scope:recipient = {
# ordered_character_war = { #We offer our services for the war where the character is losing the most # ordered_character_war = { #We offer our services for the war where the character is losing the most
@ -3881,10 +3866,10 @@ incite_revolts_interaction = {
# empire = 12 # empire = 12
# hegemony = 12 # hegemony = 12
# } # }
#
# ai_will_do = { # ai_will_do = {
# base = 0 # base = 0
#
# modifier = { # Increase chance if recipient is losing a war # modifier = { # Increase chance if recipient is losing a war
# trigger_if = { # trigger_if = {
# limit = { exists = scope:target } # limit = { exists = scope:target }
@ -3896,7 +3881,7 @@ incite_revolts_interaction = {
# modifier = { # Increase chance with amount of gold of recipient over interaction cost # modifier = { # Increase chance with amount of gold of recipient over interaction cost
# factor = offer_assistance_interaction_gold_modifier_value # factor = offer_assistance_interaction_gold_modifier_value
# } # }
#
# modifier = { # Increase chance if likes recipient more than enemy # modifier = { # Increase chance if likes recipient more than enemy
# scope:actor = { # scope:actor = {
# save_temporary_opinion_value_as = { # save_temporary_opinion_value_as = {
@ -3919,7 +3904,7 @@ incite_revolts_interaction = {
# } # }
# add = 25 # add = 25
# } # }
#
# modifier = { # Increase chance for family # modifier = { # Increase chance for family
# scope:recipient = { # scope:recipient = {
# OR = { # OR = {
@ -3929,7 +3914,7 @@ incite_revolts_interaction = {
# } # }
# add = 25 # add = 25
# } # }
#
# modifier = { # Decrease chance if army is small # modifier = { # Decrease chance if army is small
# trigger_if = { # trigger_if = {
# limit = { exists = scope:target } # limit = { exists = scope:target }
@ -3937,7 +3922,7 @@ incite_revolts_interaction = {
# } # }
# add = -50 # add = -50
# } # }
#
# modifier = { # Increase chance for rivalry # modifier = { # Increase chance for rivalry
# trigger_if = { # trigger_if = {
# limit = { exists = scope:target } # limit = { exists = scope:target }
@ -3951,7 +3936,7 @@ incite_revolts_interaction = {
# } # }
# add = 25 # add = 25
# } # }
#
# # Higher chance to target a human player # # Higher chance to target a human player
# modifier = { # modifier = {
# scope:recipient = { is_ai = no } # scope:recipient = { is_ai = no }
@ -3973,16 +3958,16 @@ incite_revolts_interaction = {
# special_interaction = call_ally_interaction # special_interaction = call_ally_interaction
# popup_on_receive = yes # popup_on_receive = yes
# pause_on_receive = yes # pause_on_receive = yes
#
# ai_maybe = yes # ai_maybe = yes
# desc = request_contract_assistance_interaction_desc # desc = request_contract_assistance_interaction_desc
# icon = icon_gold # icon = icon_gold
#
# greeting = positive # greeting = positive
# notification_text = request_contract_assistance_interaction_notification # notification_text = request_contract_assistance_interaction_notification
#
# cooldown_against_recipient = { years = 5 } # cooldown_against_recipient = { years = 5 }
#
# is_available = { # is_available = {
# is_at_war = yes # is_at_war = yes
# any_character_struggle = { # any_character_struggle = {
@ -3997,7 +3982,7 @@ incite_revolts_interaction = {
# is_imprisoned = no # is_imprisoned = no
# } # }
# } # }
#
# is_shown = { # is_shown = {
# # Actor is Involved in Struggle # # Actor is Involved in Struggle
# scope:actor = { # scope:actor = {
@ -4014,15 +3999,15 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# has_valid_target = { # has_valid_target = {
# exists = scope:target # exists = scope:target
# } # }
#
# has_valid_target_showing_failures_only = { # has_valid_target_showing_failures_only = {
# scope:target = { # scope:target = {
# is_war_leader = scope:actor # is_war_leader = scope:actor
#
# # Cannot contract against allies # # Cannot contract against allies
# trigger_if = { # trigger_if = {
# limit = { # limit = {
@ -4038,7 +4023,7 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# # Adventurers can't join wars in places they're exiled from. # # Adventurers can't join wars in places they're exiled from.
# trigger_if = { # trigger_if = {
# limit = { # limit = {
@ -4055,7 +4040,7 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# is_valid_showing_failures_only = { # is_valid_showing_failures_only = {
# scope:recipient = { # scope:recipient = {
# # Cannot demand gold from allies # # Cannot demand gold from allies
@ -4074,10 +4059,10 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# # Cannot join wars with raised armies # # Cannot join wars with raised armies
# scope:recipient = { has_raised_armies = no } # scope:recipient = { has_raised_armies = no }
#
# # Can only contract one war at a time # # Can only contract one war at a time
# custom_tooltip = { # custom_tooltip = {
# text = contract_assistance_war_already_contracted_tt # text = contract_assistance_war_already_contracted_tt
@ -4086,7 +4071,7 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# can_be_picked = { # can_be_picked = {
# # Recipient is war leader in chosen war # # Recipient is war leader in chosen war
# scope:target = { # scope:target = {
@ -4103,7 +4088,7 @@ incite_revolts_interaction = {
# # Liege checks # # Liege checks
# can_join_war_liege_vassal_check_trigger = { WARRIOR = scope:actor JOINER = scope:recipient } # can_join_war_liege_vassal_check_trigger = { WARRIOR = scope:actor JOINER = scope:recipient }
# } # }
#
# on_accept = { # on_accept = {
# # Add Actor to Recipient's war # # Add Actor to Recipient's war
# scope:target = { # scope:target = {
@ -4133,8 +4118,8 @@ incite_revolts_interaction = {
# craven = medium_stress_impact_gain # craven = medium_stress_impact_gain
# shy = minor_stress_impact_gain # shy = minor_stress_impact_gain
# } # }
#
#
# # Struggle Catalyst # # Struggle Catalyst
# if = { # if = {
# limit = { # limit = {
@ -4180,9 +4165,9 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# # If we're a clan this interaction affects unity # # If we're a clan this interaction affects unity
# add_clan_unity_interaction_effect = { # add_house_unity_interaction_effect = {
# CHARACTER = scope:actor # CHARACTER = scope:actor
# TARGET = scope:recipient # TARGET = scope:recipient
# VALUE = medium_unity_loss # VALUE = medium_unity_loss
@ -4190,13 +4175,13 @@ incite_revolts_interaction = {
# REVERSE_NON_HOUSE_TARGET = no # REVERSE_NON_HOUSE_TARGET = no
# } # }
# } # }
#
# on_decline = { # on_decline = {
# # Refusal notification # # Refusal notification
# scope:actor = { trigger_event = char_interaction.0236 } # scope:actor = { trigger_event = char_interaction.0236 }
#
# # If we're a clan this interaction affects unity # # If we're a clan this interaction affects unity
# add_clan_unity_interaction_effect = { # add_house_unity_interaction_effect = {
# CHARACTER = scope:recipient # CHARACTER = scope:recipient
# TARGET = scope:actor # TARGET = scope:actor
# VALUE = minor_unity_gain # VALUE = minor_unity_gain
@ -4204,10 +4189,10 @@ incite_revolts_interaction = {
# REVERSE_NON_HOUSE_TARGET = no # REVERSE_NON_HOUSE_TARGET = no
# } # }
# } # }
#
# ai_accept = { # ai_accept = {
# base = 0 # Reluctant to spend money without good reason # base = 0 # Reluctant to spend money without good reason
#
# # Recipient has low cash # # Recipient has low cash
# modifier = { # modifier = {
# add = { # add = {
@ -4291,7 +4276,7 @@ incite_revolts_interaction = {
# multiplier = 0.25 # multiplier = 0.25
# desc = AI_OPINION_REASON # desc = AI_OPINION_REASON
# } # }
#
# modifier = { # modifier = {
# add = { # add = {
# value = ai_greed # value = ai_greed
@ -4300,7 +4285,7 @@ incite_revolts_interaction = {
# ai_greed <= 0.5 # ai_greed <= 0.5
# desc = AI_VALUE_MODIFIER_GREED # desc = AI_VALUE_MODIFIER_GREED
# } # }
#
# modifier = { # modifier = {
# add = { # add = {
# value = ai_boldness # value = ai_boldness
@ -4309,19 +4294,19 @@ incite_revolts_interaction = {
# NOT = { ai_boldness = 0 } # NOT = { ai_boldness = 0 }
# desc = AI_VALUE_MODIFIER_BOLDNESS # desc = AI_VALUE_MODIFIER_BOLDNESS
# } # }
#
# # Allegiances # # Allegiances
# fp2_contracting_ally_modifier = { # fp2_contracting_ally_modifier = {
# WARMONGER = scope:actor # WARMONGER = scope:actor
# WARJOINER = scope:recipient # WARJOINER = scope:recipient
# } # }
# } # }
#
# ai_target_quick_trigger = { adult = yes } # ai_target_quick_trigger = { adult = yes }
# ai_targets = { # ai_targets = {
# ai_recipients = neighboring_rulers # ai_recipients = neighboring_rulers
# } # }
#
# ai_set_target = { # ai_set_target = {
# scope:actor = { # scope:actor = {
# ordered_character_war = { #We offer our services for the war where the character is losing the most # ordered_character_war = { #We offer our services for the war where the character is losing the most
@ -4350,7 +4335,7 @@ incite_revolts_interaction = {
# } # }
# } # }
# } # }
#
# ai_targets = { # ai_targets = {
# ai_recipients = peer_vassals # ai_recipients = peer_vassals
# } # }
@ -4362,10 +4347,10 @@ incite_revolts_interaction = {
# empire = 36 # empire = 36
# hegemony = 0 # hegemony = 0
# } # }
#
# ai_will_do = { # ai_will_do = {
# base = 0 # base = 0
#
# modifier = { # AI is losing the war # modifier = { # AI is losing the war
# trigger_if = { # trigger_if = {
# limit = { exists = scope:target } # limit = { exists = scope:target }
@ -4381,7 +4366,7 @@ incite_revolts_interaction = {
# } # }
# add = 15 # add = 15
# } # }
#
# modifier = { # Increase chance for asking family # modifier = { # Increase chance for asking family
# scope:recipient = { # scope:recipient = {
# OR = { # OR = {
@ -4391,7 +4376,7 @@ incite_revolts_interaction = {
# } # }
# factor = 2 # factor = 2
# } # }
#
# modifier = { # Decrease chance if army is small # modifier = { # Decrease chance if army is small
# trigger_if = { # trigger_if = {
# limit = { exists = scope:target } # limit = { exists = scope:target }
@ -4407,7 +4392,7 @@ incite_revolts_interaction = {
# } # }
# add = -50 # add = -50
# } # }
#
# modifier = { # Increase chance for rivalry # modifier = { # Increase chance for rivalry
# trigger_if = { # trigger_if = {
# limit = { exists = scope:target } # limit = { exists = scope:target }
@ -4421,7 +4406,7 @@ incite_revolts_interaction = {
# } # }
# add = 25 # add = 25
# } # }
#
# modifier = { # AI is extremely rich # modifier = { # AI is extremely rich
# short_term_gold >= ai_war_chest_desired_gold_value # short_term_gold >= ai_war_chest_desired_gold_value
# add = 50 # add = 50
@ -4739,7 +4724,7 @@ enforce_truce_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -4753,7 +4738,7 @@ enforce_truce_interaction = {
scope:actor = { trigger_event = char_interaction.0236 } scope:actor = { trigger_event = char_interaction.0236 }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:recipient CHARACTER = scope:recipient
TARGET = scope:actor TARGET = scope:actor
VALUE = medium_unity_loss VALUE = medium_unity_loss
@ -5092,7 +5077,7 @@ bargain_fealty_interaction = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -5106,7 +5091,7 @@ bargain_fealty_interaction = {
scope:actor = { trigger_event = char_interaction.0236 } scope:actor = { trigger_event = char_interaction.0236 }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:recipient CHARACTER = scope:recipient
TARGET = scope:actor TARGET = scope:actor
VALUE = minor_unity_loss VALUE = minor_unity_loss

View file

@ -40,11 +40,31 @@ offer_hostage_interaction = {
# Only significant rulers use hostages # Only significant rulers use hostages
scope:recipient.highest_held_title_tier > tier_barony scope:recipient.highest_held_title_tier > tier_barony
# Laamps can't do anything with hostages but return/recall them. # Laamps can't do anything with hostages but return/recall them.
scope:actor = {
NOR = {
government_has_flag = government_is_landless_adventurer
government_has_flag = government_is_merchant
government_has_flag = government_is_herder
}
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
}
scope:recipient = { scope:recipient = {
NOR = { NOR = {
government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_adventurer
government_has_flag = government_is_merchant
government_has_flag = government_is_herder government_has_flag = government_is_herder
} }
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
} }
#Inside a merit realm vassals won't offer hostages except to your top liege. #Inside a merit realm vassals won't offer hostages except to your top liege.
trigger_if = { trigger_if = {
@ -253,18 +273,12 @@ offer_hostage_interaction = {
} }
scope:actor = { trigger_event = char_interaction.0330 } scope:actor = { trigger_event = char_interaction.0330 }
# If we're of the same clan this interaction affects unity # If we're of the same clan this interaction affects unity
if = { add_house_unity_interaction_effect = {
limit = { CHARACTER = scope:actor
scope:actor = { government_has_flag = government_is_clan } TARGET = scope:recipient
scope:actor.house = scope:recipient.house VALUE = medium_unity_loss
} DESC = clan_unity_hostage.desc
add_clan_unity_interaction_effect = { REVERSE_NON_HOUSE_TARGET = no
CHARACTER = scope:actor
TARGET = scope:recipient
VALUE = medium_unity_loss
DESC = clan_unity_hostage.desc
REVERSE_NON_HOUSE_TARGET = no
}
} }
} }
@ -468,7 +482,25 @@ offer_hostage_interaction = {
limit = { limit = {
is_ai = yes is_ai = yes
} }
NOT = { has_variable = conqueror } NOR = {
government_has_flag = government_is_merchant
government_has_flag = government_is_herder
government_has_flag = government_is_theocracy
has_variable = conqueror
}
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
OR = {
is_landless_ruler = no
is_landless_administrative = yes
}
any_close_family_member = {
bp2_valid_to_offer_as_hostage_trigger = { SENDER = root }
}
} }
} }
@ -649,8 +681,25 @@ demand_hostage_interaction = {
# Laamps can't do anything with hostages but return/recall them. # Laamps can't do anything with hostages but return/recall them.
NOR = { NOR = {
scope:actor = { government_has_flag = government_is_landless_adventurer } scope:actor = { government_has_flag = government_is_landless_adventurer }
scope:actor = { government_has_flag = government_is_merchant }
scope:recipient = { government_has_flag = government_is_landless_adventurer } scope:recipient = { government_has_flag = government_is_landless_adventurer }
} }
scope:actor = {
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
}
scope:recipient = {
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
}
#Inside a merit realm vassals won't demand hostages. #Inside a merit realm vassals won't demand hostages.
trigger_if = { trigger_if = {
limit = { limit = {
@ -897,18 +946,12 @@ demand_hostage_interaction = {
} }
scope:actor = { trigger_event = char_interaction.0331 } scope:actor = { trigger_event = char_interaction.0331 }
# If we're of the same clan this interaction affects unity # If we're of the same clan this interaction affects unity
if = { add_house_unity_interaction_effect = {
limit = { CHARACTER = scope:actor
scope:actor = { government_has_flag = government_is_clan } TARGET = scope:recipient
scope:actor.house = scope:recipient.house VALUE = minor_unity_loss
} DESC = clan_unity_hostage.desc
add_clan_unity_interaction_effect = { REVERSE_NON_HOUSE_TARGET = no
CHARACTER = scope:actor
TARGET = scope:recipient
VALUE = minor_unity_loss
DESC = clan_unity_hostage.desc
REVERSE_NON_HOUSE_TARGET = no
}
} }
} }
@ -1353,8 +1396,25 @@ exchange_hostage_interaction = {
# Laamps can't do anything with hostages but return/recall them. # Laamps can't do anything with hostages but return/recall them.
NOR = { NOR = {
scope:actor = { government_has_flag = government_is_landless_adventurer } scope:actor = { government_has_flag = government_is_landless_adventurer }
scope:actor = { government_has_flag = government_is_merchant }
scope:recipient = { government_has_flag = government_is_landless_adventurer } scope:recipient = { government_has_flag = government_is_landless_adventurer }
} }
scope:actor = {
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
}
scope:recipient = {
trigger_if = {
limit = {
government_has_flag = government_is_republic
}
is_landed = yes
}
}
#Inside a merit realm vassals won't exchange hostages. #Inside a merit realm vassals won't exchange hostages.
trigger_if = { trigger_if = {
limit = { limit = {
@ -1642,18 +1702,12 @@ exchange_hostage_interaction = {
} }
scope:actor = { trigger_event = char_interaction.0332 } scope:actor = { trigger_event = char_interaction.0332 }
# If we're of the same clan this interaction affects unity # If we're of the same clan this interaction affects unity
if = { add_house_unity_interaction_effect = {
limit = { CHARACTER = scope:actor
scope:actor = { government_has_flag = government_is_clan } TARGET = scope:recipient
scope:actor.house = scope:recipient.house VALUE = medium_unity_loss
} DESC = clan_unity_hostage.desc
add_clan_unity_interaction_effect = { REVERSE_NON_HOUSE_TARGET = no
CHARACTER = scope:actor
TARGET = scope:recipient
VALUE = medium_unity_loss
DESC = clan_unity_hostage.desc
REVERSE_NON_HOUSE_TARGET = no
}
} }
scope:actor.house = { scope:actor.house = {
change_house_relation_effect = { change_house_relation_effect = {

View file

@ -1151,10 +1151,9 @@ support_candidacy_interaction = {
# No one promoting... ripe for the taking # No one promoting... ripe for the taking
modifier = { modifier = {
scope:major_influence_option = yes
scope:target = { scope:target = {
holder = { has_order_of_succession = appointment
has_realm_law_flag = appointment_type_succession
}
current_heir ?= { current_heir ?= {
NOR = { NOR = {
AND = { AND = {
@ -1177,28 +1176,33 @@ support_candidacy_interaction = {
# Promote characters we like # Promote characters we like
modifier = { modifier = {
scope:major_influence_option = yes
scope:secondary_recipient ?= house.house_confederation.leading_house.house_head scope:secondary_recipient ?= house.house_confederation.leading_house.house_head
factor = 5 factor = 5
} }
modifier = { modifier = {
scope:major_influence_option = yes
scope:secondary_recipient ?= { scope:secondary_recipient ?= {
is_close_family_of = scope:actor is_close_family_of = scope:actor
} }
factor = 3 factor = 3
} }
modifier = { modifier = {
scope:major_influence_option = yes
scope:secondary_recipient ?= { scope:secondary_recipient ?= {
is_extended_family_of = scope:actor is_extended_family_of = scope:actor
} }
factor = 1.5 factor = 1.5
} }
modifier = { modifier = {
scope:major_influence_option = yes
scope:actor = { scope:actor = {
has_relation_friend = scope:secondary_recipient has_relation_friend = scope:secondary_recipient
} }
factor = 2 factor = 2
} }
modifier = { modifier = {
scope:major_influence_option = yes
scope:actor = { scope:actor = {
has_relation_best_friend = scope:secondary_recipient has_relation_best_friend = scope:secondary_recipient
} }
@ -1207,6 +1211,7 @@ support_candidacy_interaction = {
# For the imperial title, we want to promote ourselves # For the imperial title, we want to promote ourselves
modifier = { modifier = {
scope:major_influence_option = yes
scope:target.tier >= tier_empire scope:target.tier >= tier_empire
scope:actor = scope:secondary_recipient scope:actor = scope:secondary_recipient
factor = 5 factor = 5
@ -1214,6 +1219,7 @@ support_candidacy_interaction = {
# Prefer unlanded relatives # Prefer unlanded relatives
modifier = { modifier = {
scope:major_influence_option = yes
scope:target.tier < tier_empire scope:target.tier < tier_empire
scope:secondary_recipient ?= { scope:secondary_recipient ?= {
is_ruler = no is_ruler = no
@ -1223,6 +1229,7 @@ support_candidacy_interaction = {
# Prefer titles that are somewhat close to the capital # Prefer titles that are somewhat close to the capital
modifier = { modifier = {
scope:major_influence_option = yes
exists = scope:recipient.capital_province # Make sure the top liege has a capital exists = scope:recipient.capital_province # Make sure the top liege has a capital
scope:target = { scope:target = {
title_capital_county ?= { title_capital_county ?= {
@ -1237,6 +1244,7 @@ support_candidacy_interaction = {
# Try to avoid promoting the same candidate for multiple titles if they are winning a title already # Try to avoid promoting the same candidate for multiple titles if they are winning a title already
modifier = { modifier = {
scope:major_influence_option = yes
scope:secondary_recipient ?= { scope:secondary_recipient ?= {
any_heir_title = { any_heir_title = {
is_noble_family_title = no is_noble_family_title = no
@ -1250,10 +1258,15 @@ support_candidacy_interaction = {
# Promote only one house member for each title # Promote only one house member for each title
modifier = { modifier = {
scope:major_influence_option = yes
scope:target = { has_order_of_succession = appointment }
scope:secondary_recipient ?= {
exists = house
exists = scope:actor.house
house = scope:actor.house
"appointment_candidate_accumulated_score(scope:target)" <= 0
}
scope:target = { scope:target = {
holder = {
has_realm_law_flag = appointment_type_succession
}
any_title_heir = { any_title_heir = {
exists = house exists = house
exists = scope:actor.house exists = scope:actor.house
@ -1261,17 +1274,12 @@ support_candidacy_interaction = {
"appointment_candidate_accumulated_score(scope:target)" > 0 "appointment_candidate_accumulated_score(scope:target)" > 0
} }
} }
scope:secondary_recipient ?= {
exists = house
exists = scope:actor.house
house = scope:actor.house
"appointment_candidate_accumulated_score(scope:target)" <= 0
}
factor = 0 factor = 0
} }
# Don't outcompete our own house/candidate at the top, or someone we like in the top 3 # Don't outcompete our own house/candidate at the top, or someone we like in the top 3
modifier = { modifier = {
scope:major_influence_option = yes
scope:target = { scope:target = {
any_title_heir = { any_title_heir = {
save_temporary_scope_as = heir save_temporary_scope_as = heir
@ -1283,12 +1291,6 @@ support_candidacy_interaction = {
} }
OR = { OR = {
AND = { AND = {
scope:target = {
place_in_line_of_succession = {
target = scope:heir
value = 1
}
}
OR = { OR = {
scope:heir = scope:secondary_recipient scope:heir = scope:secondary_recipient
AND = { AND = {
@ -1297,6 +1299,12 @@ support_candidacy_interaction = {
scope:heir.house = scope:actor.house scope:heir.house = scope:actor.house
} }
} }
scope:target = {
place_in_line_of_succession = {
target = scope:heir
value = 1
}
}
} }
scope:actor = { scope:actor = {
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:heir } has_any_good_relationship_with_character_trigger = { CHARACTER = scope:heir }
@ -1309,6 +1317,7 @@ support_candidacy_interaction = {
# Don't support someone who has renounced their aspirations for the throne # Don't support someone who has renounced their aspirations for the throne
modifier = { modifier = {
scope:major_influence_option = yes
scope:secondary_recipient = { scope:secondary_recipient = {
OR = { OR = {
has_character_modifier = ep3_admin_renounce_throne_personal has_character_modifier = ep3_admin_renounce_throne_personal
@ -1318,6 +1327,12 @@ support_candidacy_interaction = {
scope:target.tier = scope:recipient.highest_held_title_tier scope:target.tier = scope:recipient.highest_held_title_tier
factor = 0 factor = 0
} }
# The major option always wins because of the factor above, so we don't score the others
modifier = {
scope:major_influence_option = no
factor = 0
}
} }
} }
@ -3898,8 +3913,6 @@ request_council_interaction = {
OR = { OR = {
has_relation_friend = scope:recipient has_relation_friend = scope:recipient
has_relation_lover = scope:recipient has_relation_lover = scope:recipient
has_relation_best_friend = scope:recipient
has_relation_soulmate = scope:recipient
} }
} }
} }
@ -4162,6 +4175,7 @@ transfer_county_interaction = {
custom_description = { custom_description = {
text = grant_titles_interaction_can_only_give_diarch_de_jure_liege_to_diarch text = grant_titles_interaction_can_only_give_diarch_de_jure_liege_to_diarch
subject = scope:actor.diarch subject = scope:actor.diarch
object = scope:actor
NAND = { NAND = {
# Only applies if we have an active diarchy. # Only applies if we have an active diarchy.
scope:actor = { has_active_diarchy = yes } scope:actor = { has_active_diarchy = yes }
@ -4178,6 +4192,7 @@ transfer_county_interaction = {
custom_description = { custom_description = {
text = grant_titles_interaction_title_being_wagered text = grant_titles_interaction_title_being_wagered
subject = scope:actor
NOT = { NOT = {
scope:target = { has_variable = wagered_county } scope:target = { has_variable = wagered_county }
} }
@ -4752,15 +4767,13 @@ castrate_child_interaction = {
scope:actor = { scope:actor = {
remove_courtier_or_guest = scope:recipient remove_courtier_or_guest = scope:recipient
if = { if = {
limit = { limit = { has_hook = scope:recipient }
has_hook = scope:recipient
}
remove_hook = { target = scope:recipient } remove_hook = { target = scope:recipient }
} }
scope:recipient = { scope:recipient = {
set_relation_rival = { set_relation_rival_effect = {
target = scope:actor TARGET = scope:actor
reason = rival_attempted_castration REASON = rival_attempted_castration
} }
add_stress = medium_stress_gain add_stress = medium_stress_gain
@ -5789,6 +5802,11 @@ boost_efficiency_interaction = {
trigger_if = { trigger_if = {
limit = { is_ai = yes } limit = { is_ai = yes }
government_has_mechanic = administrative government_has_mechanic = administrative
is_adult = yes
trigger_if = {
limit = { exists = top_participant_group:dynastic_cycle }
top_participant_group:dynastic_cycle = { participant_group_type = advancement_movement }
}
top_liege ?= { top_liege ?= {
any_vassal = { any_vassal = {
is_governor = yes is_governor = yes
@ -6064,6 +6082,13 @@ damage_efficiency_interaction = {
trigger_if = { trigger_if = {
limit = { is_ai = yes } limit = { is_ai = yes }
government_has_mechanic = administrative government_has_mechanic = administrative
is_adult = yes
trigger_if = {
limit = { exists = top_participant_group:dynastic_cycle }
top_participant_group:dynastic_cycle = {
NOT = { participant_group_type = advancement_movement }
}
}
top_liege ?= { top_liege ?= {
any_vassal = { any_vassal = {
is_governor = yes is_governor = yes
@ -6597,7 +6622,6 @@ governor_removal_interaction = {
house ?= scope:recipient.house house ?= scope:recipient.house
} }
has_relation_friend = scope:recipient has_relation_friend = scope:recipient
has_relation_best_friend = scope:recipient
is_allied_to = scope:recipient is_allied_to = scope:recipient
has_relation_soulmate = scope:recipient has_relation_soulmate = scope:recipient
is_spouse_of = scope:recipient is_spouse_of = scope:recipient
@ -6621,7 +6645,6 @@ governor_removal_interaction = {
house ?= scope:recipient.house house ?= scope:recipient.house
} }
has_relation_friend = scope:recipient has_relation_friend = scope:recipient
has_relation_best_friend = scope:recipient
is_allied_to = scope:recipient is_allied_to = scope:recipient
has_relation_soulmate = scope:recipient has_relation_soulmate = scope:recipient
is_spouse_of = scope:recipient is_spouse_of = scope:recipient
@ -6836,6 +6859,18 @@ force_governor_removal_interaction = {
ai_min_reply_days = 4 ai_min_reply_days = 4
ai_max_reply_days = 9 ai_max_reply_days = 9
is_available = {
government_has_mechanic = administrative
trigger_if = {
limit = {
is_ai = yes
}
influence > massive_influence_value
}
is_independent_ruler = no
top_liege ?= { government_has_mechanic = administrative }
}
is_shown = { is_shown = {
scope:secondary_recipient ?= { scope:secondary_recipient ?= {
is_governor = yes is_governor = yes
@ -6847,10 +6882,7 @@ force_governor_removal_interaction = {
trigger_if = { trigger_if = {
limit = { limit = {
top_liege = { top_liege = {
NAND = { tgp_has_access_to_ministry_trigger = no
highest_held_title_tier >= tier_hegemony
government_has_flag = government_is_celestial
}
} }
} }
is_vassal_of = scope:recipient is_vassal_of = scope:recipient
@ -7346,18 +7378,6 @@ force_governor_removal_interaction = {
hegemony = 12 hegemony = 12
} }
is_available = {
government_has_mechanic = administrative
trigger_if = {
limit = {
is_ai = yes
}
influence > massive_influence_value
}
top_liege != this
top_liege ?= { government_has_mechanic = administrative }
}
ai_accept = { ai_accept = {
base = -50 base = -50
# SEND OPTIONS # SEND OPTIONS
@ -7639,7 +7659,7 @@ force_step_down_interaction = {
government_has_mechanic = administrative government_has_mechanic = administrative
trigger_if = { trigger_if = {
limit = { is_ai = yes } limit = { is_ai = yes }
highest_held_title_tier >= tier_duchy highest_held_title_tier >= main_administrative_tier
NOT = { NOT = {
any_scheme = { any_scheme = {
is_scheme_category = political is_scheme_category = political
@ -7657,6 +7677,7 @@ force_step_down_interaction = {
government_has_mechanic = administrative government_has_mechanic = administrative
is_governor = yes is_governor = yes
top_liege ?= scope:actor.top_liege top_liege ?= scope:actor.top_liege
highest_held_title_tier >= main_administrative_tier
} }
} }
@ -7793,10 +7814,12 @@ force_step_down_interaction = {
} }
} }
if = { if = {
limit = { can_set_relation_rival_trigger = { CHARACTER = scope:actor } } limit = {
set_relation_rival = { can_set_relation_rival_trigger = { CHARACTER = scope:actor }
target = scope:actor }
reason = rival_forced_my_resignation_reason set_relation_rival_effect = {
TARGET = scope:actor
REASON = rival_forced_my_resignation_reason
} }
} }
house ?= { house ?= {
@ -7847,10 +7870,12 @@ force_step_down_interaction = {
modifier = attempted_force_step_down_opinion modifier = attempted_force_step_down_opinion
} }
if = { if = {
limit = { can_set_relation_rival_trigger = { CHARACTER = scope:actor } } limit = {
set_relation_rival = { can_set_relation_rival_trigger = { CHARACTER = scope:actor }
target = scope:actor }
reason = rival_attempted_to_force_my_resignation_reason set_relation_rival_effect = {
TARGET = scope:actor
REASON = rival_attempted_to_force_my_resignation_reason
} }
} }
} }
@ -8186,10 +8211,6 @@ request_governorship_interaction = {
cooldown_against_recipient = { years = 10 } cooldown_against_recipient = { years = 10 }
redirect = {
scope:recipient = { save_scope_as = secondary_recipient }
}
cost = { cost = {
influence = { influence = {
add = { add = {
@ -8199,7 +8220,7 @@ request_governorship_interaction = {
} }
desc = BASE desc = BASE
} }
# Province Size # Settlement Size
add = { add = {
value = 0 value = 0
if = { if = {
@ -8256,16 +8277,21 @@ request_governorship_interaction = {
} }
is_shown = { is_shown = {
scope:recipient != scope:actor
OR = {
scope:recipient = scope:actor.top_liege
scope:recipient = {
liege ?= scope:actor.top_liege
has_title = title:e_minister_of_personnel
}
}
scope:recipient = { scope:recipient = {
government_has_mechanic = administrative government_has_mechanic = administrative
NOT = { this = scope:actor }
}
scope:actor.top_liege = {
OR = {
this = scope:recipient
trigger_if = {
limit = {
tgp_has_access_to_ministry_trigger = yes
exists = cp:minister_personnel
}
cp:minister_personnel = scope:recipient
}
}
} }
} }
@ -8273,14 +8299,19 @@ request_governorship_interaction = {
if = { if = {
limit = { limit = {
scope:actor.top_liege = { scope:actor.top_liege = {
this = scope:recipient # prevents redirect making this shown for everyone with same top_liege
tgp_has_access_to_ministry_trigger = yes tgp_has_access_to_ministry_trigger = yes
exists = cp:minister_personnel exists = cp:minister_personnel
} }
} }
title:e_minister_of_personnel.holder ?= { scope:actor.top_liege.cp:minister_personnel ?= {
save_scope_as = recipient save_scope_as = recipient
save_scope_as = secondary_recipient
} }
} }
else = {
scope:recipient = { save_scope_as = secondary_recipient }
}
} }
is_valid_showing_failures_only = { is_valid_showing_failures_only = {
@ -8294,6 +8325,10 @@ request_governorship_interaction = {
text = is_a_minister_desc text = is_a_minister_desc
tgp_is_any_minister = no tgp_is_any_minister = no
} }
trigger_if = {
limit = { government_allows = merit }
merit_level >= 3
}
} }
} }
@ -8344,13 +8379,16 @@ request_governorship_interaction = {
any_de_jure_county = { holder = scope:actor.top_liege } any_de_jure_county = { holder = scope:actor.top_liege }
} }
} }
trigger_if = { trigger_if = {
limit = { limit = {
min_appointment_level > 0 min_appointment_level > 0
} }
scope:actor = { has_appointment_level_for_title = scope:target } scope:actor = { has_appointment_level_for_title = scope:target }
} }
custom_tooltip = { # Titles below the holder's primary tier are inherited alongside it, so they cannot be contested on their own
text = follows_other_title_appointment_tt
holder ?= { primary_title.tier = scope:target.tier }
}
} }
} }
@ -8440,7 +8478,7 @@ request_governorship_interaction = {
} }
desc = BASE desc = BASE
} }
# Province Size # Settlement Size
add = { add = {
value = 0 value = 0
if = { if = {
@ -8705,11 +8743,8 @@ request_governorship_interaction = {
# Your Efficiency # Your Efficiency
modifier = { modifier = {
add = { add = {
value = { value = scope:actor.governor_efficiency_presented
value = scope:actor.governor_efficiency multiply = 0.5
multiply = 25
}
round = yes
} }
desc = AI_GOVERNOR_EFFICIENCY desc = AI_GOVERNOR_EFFICIENCY
} }
@ -8722,10 +8757,9 @@ request_governorship_interaction = {
} }
add = { add = {
value = { value = {
value = scope:target.current_heir.governor_efficiency value = scope:target.current_heir.governor_efficiency_presented
multiply = -50 multiply = -1
} }
round = yes
} }
desc = AI_GOVERNOR_EFFICIENCY_HEIR desc = AI_GOVERNOR_EFFICIENCY_HEIR
} }
@ -11055,7 +11089,7 @@ request_co_emperor_interaction = {
desc = declare_me_regent_interaction.tt.actor_is.close_family desc = declare_me_regent_interaction.tt.actor_is.close_family
is_close_family_of = scope:actor is_close_family_of = scope:actor
# Make sure this isn't cancelled out by the incumbent sharing the relation. # Make sure this isn't cancelled out by the incumbent sharing the relation.
diarchy_successor = { diarchy_successor ?= {
NOT = { is_close_family_of = scope:recipient } NOT = { is_close_family_of = scope:recipient }
} }
} }
@ -11065,7 +11099,7 @@ request_co_emperor_interaction = {
desc = declare_me_regent_interaction.tt.actor_is.extended_family desc = declare_me_regent_interaction.tt.actor_is.extended_family
is_extended_family_of = scope:actor is_extended_family_of = scope:actor
# Make sure this isn't cancelled out by the incumbent sharing the relation. # Make sure this isn't cancelled out by the incumbent sharing the relation.
diarchy_successor = { diarchy_successor ?= {
NOT = { is_extended_family_of = scope:recipient } NOT = { is_extended_family_of = scope:recipient }
} }
} }
@ -11076,7 +11110,7 @@ request_co_emperor_interaction = {
house = scope:actor.house house = scope:actor.house
NOT = { is_close_or_extended_family_of = scope:actor } NOT = { is_close_or_extended_family_of = scope:actor }
# Make sure this isn't cancelled out by the incumbent sharing the relation. # Make sure this isn't cancelled out by the incumbent sharing the relation.
diarchy_successor = { diarchy_successor ?= {
house != scope:recipient.house house != scope:recipient.house
} }
} }
@ -12799,6 +12833,17 @@ ep3_hof_ask_for_influence_interaction = {
} }
desc = you_have_faithful_nobles_attribute_with_value_desc desc = you_have_faithful_nobles_attribute_with_value_desc
} }
modifier = {
add = 40
scope:actor = { has_character_modifier = favored_by_pope_modifier }
desc = FAVORED_BY_POPE
}
modifier = {
add = -40
scope:actor = { has_character_modifier = scorned_pope_modifier }
desc = HAS_SCORNED_POPE
}
secular_to_ecclesiastical_pam_factors_acceptance_modifier = yes secular_to_ecclesiastical_pam_factors_acceptance_modifier = yes
modifier = { modifier = {

View file

@ -6,7 +6,6 @@
purchase_land_interaction = { purchase_land_interaction = {
category = interaction_category_laamp category = interaction_category_laamp
icon = purchase_land_interaction icon = purchase_land_interaction
desc = purchase_land_interaction_desc desc = purchase_land_interaction_desc
target_type = title target_type = title
target_filter = recipient_de_jure_titles target_filter = recipient_de_jure_titles
@ -17,7 +16,7 @@ purchase_land_interaction = {
first_valid = { first_valid = {
triggered_desc = { triggered_desc = {
trigger = { trigger = {
scope:recipient = { top_liege != this } scope:recipient.top_liege != this
scope:target = { scope:target = {
trigger_if = { trigger_if = {
limit = { tier = tier_duchy } limit = { tier = tier_duchy }
@ -61,33 +60,23 @@ purchase_land_interaction = {
} }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes scope:actor = {
this != scope:recipient
}
scope:recipient = { scope:recipient = {
is_landed = yes is_landed = yes
# Need to own the land/cannot directly buy a governorship (procure estate first) # Need to own the land/cannot directly buy a governorship (procure estate first)
NOT = { government_allows = noble_families } NOR = {
government_allows = noble_families
government_has_flag = government_is_republic # join instead
}
} }
scope:recipient != scope:actor
} }
has_valid_target = { has_valid_target = {
custom_tooltip = { #prevent unwanted trigger tooltip custom_tooltip = { #prevent unwanted trigger tooltip
text = blank_line text = blank_line
scope:target ?= { scope:target ?= { is_purchasable_title_trigger = yes }
is_title_created = yes
holder = {
is_ai = yes
this = scope:recipient
}
OR = { #flatten the selection
tier = tier_duchy
tier = tier_county
}
NOR = {
this = scope:recipient.capital_county
this = scope:recipient.capital_county.duchy
}
}
} }
} }
@ -100,9 +89,7 @@ purchase_land_interaction = {
send_option = { send_option = {
flag = hook flag = hook
is_valid = { is_valid = {
scope:actor = { scope:actor = { has_usable_hook = scope:recipient }
has_usable_hook = scope:recipient
}
} }
localization = GENERIC_SPEND_A_HOOK localization = GENERIC_SPEND_A_HOOK
} }
@ -111,9 +98,7 @@ purchase_land_interaction = {
flag = offer_hook flag = offer_hook
is_valid = { is_valid = {
NOT = { NOT = {
scope:recipient = { scope:recipient = { has_usable_hook = scope:actor }
has_usable_hook = scope:actor
}
} }
} }
localization = purchase_land_interaction_offer_hook localization = purchase_land_interaction_offer_hook
@ -123,53 +108,17 @@ purchase_land_interaction = {
send_option = { send_option = {
flag = vassal_obligation flag = vassal_obligation
is_shown = { is_shown = {
scope:recipient = { scope:recipient = { government_has_flag = government_is_feudal }
government_has_flag = government_is_feudal
}
} }
localization = purchase_land_interaction_offer_obligations localization = purchase_land_interaction_offer_obligations
current_description = purchase_land_interaction_offer_obligations_desc current_description = purchase_land_interaction_offer_obligations_desc
} }
can_be_picked_title = { can_be_picked_title = {
custom_tooltip = { is_title_purchasable_shared_trigger = {
text = purchase_land_tier_tt TITLE = scope:target
scope:target = { BUYER = scope:actor
tier >= tier_county SELLER = scope:recipient
tier <= tier_duchy
}
}
custom_tooltip = {
text = purchase_land_capital_tt
scope:target != scope:recipient.capital_county
}
custom_tooltip = {
text = purchase_land_primary_tt
scope:target != scope:recipient.primary_title
}
custom_tooltip = {
text = purchase_land_duchy_tt
scope:target = {
trigger_if = {
limit = { tier = tier_duchy }
scope:actor = {
prestige_level >= 3
}
}
}
}
custom_tooltip = {
text = PURCHASE_LAND_COMPLETE_CONTROL_TT
trigger_if = {
limit = { scope:target = { tier = tier_duchy } }
scope:recipient = {
completely_controls = scope:target
}
}
}
trigger_if = {
limit = { exists = scope:target.holder }
scope:target.holder = scope:recipient
} }
} }
@ -184,64 +133,17 @@ purchase_land_interaction = {
} }
scope:recipient = { scope:recipient = {
is_contact_of = scope:actor is_contact_of = scope:actor
is_at_war = no custom_tooltip = {
NOT = { has_strong_hook = scope:actor } text = purchase_land_no_land_tt
} any_held_title = { is_purchasable_title_trigger = yes }
trigger_if = { # Can't purchase Baronies
limit = {
scope:target ?= { tier = tier_barony }
}
custom_description = {
text = purchase_land_barony_tt
always = no
}
}
trigger_if = { # Can't purchase Kingdoms or Empires
limit = {
scope:target ?= { tier >= tier_kingdom }
}
custom_description = {
text = purchase_land_kingdom_tt
always = no
}
}
trigger_if = { # Can't purchase HoF titles
limit = {
scope:target ?= { is_head_of_faith = yes }
}
custom_description = {
text = purchase_land_religious_tt
always = no
}
}
trigger_if = { # Can't purchase nf titles
limit = {
scope:target ?= { is_noble_family_title = yes }
}
custom_description = {
text = purchase_land_noble_family_tt
always = no
}
}
trigger_if = { # Can't purchase laamp titles
limit = {
scope:target ?= { has_variable = adventurer_creation_reason }
}
custom_description = {
text = purchase_land_landless_adventurer_tt
always = no
} }
} }
trigger_if = { trigger_if = {
limit = { limit = { exists = scope:target }
scope:recipient = { is_title_purchase_valid_shared_trigger = {
any_held_county = { count < 2 } TITLE = scope:target
} BUYER = scope:actor
} SELLER = scope:recipient
custom_description = {
text = purchase_land_minimum_county_tt
object = scope:recipient
always = no
} }
} }
#Has to be used instead of diplo range checks in laamp to landed interactions #Has to be used instead of diplo range checks in laamp to landed interactions
@ -290,102 +192,12 @@ purchase_land_interaction = {
} }
on_accept = { on_accept = {
scope:actor = { save_scope_as = adventurer } purchase_land_interaction_save_scopes_effect = yes
scope:target = {
save_scope_as = purchase_land_target
add_to_list = purchased_titles
if = {
limit = { tier = tier_duchy }
every_de_jure_county = {
limit = {
holder ?= {
OR = {
this = scope:recipient
target_is_liege_or_above = scope:recipient
}
}
}
if = {
limit = { holder = scope:recipient }
add_to_list = purchased_titles
}
else_if = {
limit = {
holder ?= {
highest_held_title_tier < scope:purchase_land_target.tier
NOT = { government_has_flag = government_is_administrative }
target_is_liege_or_above = scope:recipient
}
}
holder = {
if = {
limit = {
NOT = { is_in_list = purchase_land_vassals_taken }
}
add_to_list = purchase_land_vassals_taken
}
}
}
else = {
add_to_list = purchased_titles
}
}
}
}
ordered_in_list = {
list = purchased_titles
order_by = tier
save_scope_as = new_primary_title
}
save_scope_value_as = {
name = purchase_land_cost
value = {
if = {
limit = { scope:target.tier = tier_county }
add = purchase_land_county_cost_value
}
else = {
add = purchase_land_duchy_cost_value
scope:target = {
every_de_jure_county = {
limit = { ep3_purchase_land_valid_county_trigger = yes }
add = purchase_land_county_cost_value
}
}
}
if = {
limit = {
scope:actor = { has_variable = ep3_grace_to_the_family_var }
}
multiply = 0.5
}
if = {
limit = { scope:offer_gold = yes }
multiply = 2
}
}
}
save_scope_value_as = {
name = purchase_land_legitimacy_cost
value = {
value = 0
if = {
limit = {
scope:target.holder != scope:recipient
}
every_in_list = {
list = purchased_titles
if = {
limit = { tier = tier_county }
add = minor_legitimacy_loss
}
else = { add = medium_legitimacy_loss }
}
}
}
}
show_as_tooltip = { show_as_tooltip = {
scope:actor = { purchase_land_interaction_effect = yes } purchase_land_interaction_shortened_effect = {
TITLE_RECEIVER = scope:actor
TITLE_GIVER = scope:recipient
}
} }
if = { if = {
limit = { always = scope:hook } limit = { always = scope:hook }
@ -400,10 +212,7 @@ purchase_land_interaction = {
} }
on_decline = { on_decline = {
scope:actor = { scope:actor = { trigger_event = ep3_laamps.0102 }
save_scope_as = adventurer
trigger_event = ep3_laamps.0102
}
} }
ai_targets = { ai_targets = {
@ -420,7 +229,7 @@ purchase_land_interaction = {
ai_frequency_by_tier = { ai_frequency_by_tier = {
barony = 0 barony = 0
county = 0 county = 0
duchy = 60 duchy = 60 # adventurers are dukes
kingdom = 0 kingdom = 0
empire = 0 empire = 0
hegemony = 0 hegemony = 0
@ -464,7 +273,7 @@ purchase_land_interaction = {
value = 0 value = 0
if = { if = {
limit = { scope:target.tier = tier_county } limit = { scope:target.tier = tier_county }
add = scope:target.development_level add = scope:target.prosperity_level
scope:target = { scope:target = {
every_county_province = { add = num_buildings } every_county_province = { add = num_buildings }
} }
@ -473,7 +282,7 @@ purchase_land_interaction = {
scope:target = { scope:target = {
every_de_jure_county = { every_de_jure_county = {
limit = { ep3_purchase_land_valid_county_trigger = yes } limit = { ep3_purchase_land_valid_county_trigger = yes }
add = development_level add = prosperity_level
every_county_province = { add = num_buildings } every_county_province = { add = num_buildings }
} }
} }
@ -1113,7 +922,10 @@ purchase_sacred_land_interaction = {
} }
} }
show_as_tooltip = { show_as_tooltip = {
scope:actor = { purchase_land_interaction_effect = yes } purchase_land_interaction_effect = {
TITLE_RECEIVER = scope:actor
TITLE_GIVER = scope:recipient
}
} }
scope:actor = { scope:actor = {
if = { if = {
@ -1197,7 +1009,7 @@ purchase_sacred_land_interaction = {
value = 0 value = 0
if = { if = {
limit = { exists = scope:target } limit = { exists = scope:target }
add = scope:target.development_level add = scope:target.prosperity_level
scope:target = { scope:target = {
every_county_province = { add = num_buildings } every_county_province = { add = num_buildings }
} }
@ -1420,7 +1232,7 @@ request_laamp_invasion_sponsorship_interaction = {
is_shown = { is_shown = {
scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } } scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } }
NOT = { scope:actor = { has_realm_law = camp_purpose_legitimists } } NOT = { scope:actor = { has_realm_law = camp_purpose_legitimists } }
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:recipient = { is_landed = yes } scope:recipient = { is_landed = yes }
scope:recipient != scope:actor scope:recipient != scope:actor
} }
@ -1905,7 +1717,7 @@ negotiate_settlement_interaction = {
} }
} }
is_landed = yes is_landed = yes
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
} }
is_shown = { is_shown = {
@ -2008,6 +1820,15 @@ negotiate_settlement_interaction = {
always = no always = no
} }
} }
trigger_if = { # Can't purchase merchant titles
limit = {
scope:target ?= { has_variable = merchant_creation_reason }
}
custom_description = {
text = negotiate_settlement_merchant_tt
always = no
}
}
trigger_if = { trigger_if = {
limit = { limit = {
scope:actor = { government_has_flag = government_is_administrative } scope:actor = { government_has_flag = government_is_administrative }
@ -2319,7 +2140,7 @@ negotiate_settlement_interaction = {
value = 0 value = 0
if = { if = {
limit = { scope:target.tier = tier_county } limit = { scope:target.tier = tier_county }
add = scope:target.development_level add = scope:target.prosperity_level
scope:target = { scope:target = {
every_county_province = { add = num_buildings } every_county_province = { add = num_buildings }
} }
@ -2328,7 +2149,7 @@ negotiate_settlement_interaction = {
scope:target = { scope:target = {
every_de_jure_county = { every_de_jure_county = {
limit = { ep3_negotiate_settlement_valid_county_trigger = yes } limit = { ep3_negotiate_settlement_valid_county_trigger = yes }
add = development_level add = prosperity_level
every_county_province = { add = num_buildings } every_county_province = { add = num_buildings }
} }
} }
@ -2813,13 +2634,13 @@ negotiate_settlement_interaction = {
limit = { limit = {
scope:target.tier = tier_county scope:target.tier = tier_county
} }
subtract = scope:target.development_level subtract = scope:target.prosperity_level
} }
if = { if = {
limit = { limit = {
scope:target.tier > tier_county scope:target.tier > tier_county
} }
subtract = scope:target.title_capital_county.development_level subtract = scope:target.title_capital_county.prosperity_level
} }
} }
} }
@ -3221,7 +3042,7 @@ complete_task_contract_interaction = {
pause_on_receive = yes pause_on_receive = yes
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:actor = { scope:actor = {
any_character_active_contract = { any_character_active_contract = {
OR = { OR = {
@ -3440,7 +3261,7 @@ contact_list_request_interaction = { # make a request, make_a_request
is_shown = { is_shown = {
scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } } scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } }
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:actor != scope:recipient scope:actor != scope:recipient
} }
is_valid_showing_failures_only = { is_valid_showing_failures_only = {
@ -3450,7 +3271,6 @@ contact_list_request_interaction = { # make a request, make_a_request
NOR = { NOR = {
is_at_war_with = scope:actor is_at_war_with = scope:actor
has_relation_rival = scope:actor has_relation_rival = scope:actor
has_relation_nemesis = scope:actor
has_opinion_modifier = { has_opinion_modifier = {
target = scope:actor target = scope:actor
modifier = released_from_prison modifier = released_from_prison
@ -3934,7 +3754,7 @@ contact_list_request_interaction = { # make a request, make_a_request
name = provisions_transformed_to_gold_value name = provisions_transformed_to_gold_value
value = { value = {
value = scope:provisions_overflow_value value = scope:provisions_overflow_value
multiply = 0.05 multiply = 0.02
} }
} }
} }
@ -3996,7 +3816,7 @@ contact_list_request_interaction = { # make a request, make_a_request
name = requested_gold_value name = requested_gold_value
value = { value = {
value = scope:recipient.gold value = scope:recipient.gold
divide = 4 divide = 8
multiply = { multiply = {
value = scope:recipient.ai_greed value = scope:recipient.ai_greed
divide = -300 divide = -300
@ -4626,6 +4446,7 @@ contact_list_request_interaction = { # make a request, make_a_request
} }
ai_targets = { ai_recipients = contacts } ai_targets = { ai_recipients = contacts }
ai_targets = { ai_recipients = hooked_characters } ai_targets = { ai_recipients = hooked_characters }
ai_target_quick_trigger = { adult = yes }
auto_accept = { auto_accept = {
scope:actor = { has_usable_hook = scope:recipient } scope:actor = { has_usable_hook = scope:recipient }
scope:recipient = { is_ai = yes } scope:recipient = { is_ai = yes }
@ -5164,7 +4985,7 @@ reinforce_soldiers_interaction = {
} }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:recipient = scope:actor scope:recipient = scope:actor
} }
@ -5418,15 +5239,33 @@ hire_laamp_mercenaries_interaction = {
is_available = { is_available = {
trigger_if = { trigger_if = {
limit = { is_ai = yes } limit = { is_ai = yes }
debt_level <= 1
any_character_war = { any_character_war = {
is_war_leader = prev is_war_leader = prev
} }
war_chest_gold >= quarter_ai_war_chest_gold_maximum war_chest_gold >= quarter_ai_war_chest_gold_maximum
any_war_ally = {
count < 3
has_government = landless_adventurer_government
}
any_character_war = {
count = all
OR = {
AND = {
primary_attacker = root
defender_war_score <= 95
}
AND = {
primary_defender = root
attacker_war_score <= 95
}
}
}
} }
} }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:recipient = { scope:recipient = {
OR = { OR = {
has_government = landless_adventurer_government has_government = landless_adventurer_government
@ -5479,6 +5318,11 @@ hire_laamp_mercenaries_interaction = {
has_government = landless_minority_government has_government = landless_minority_government
} }
} }
custom_tooltip = {
at_mercenary_limit = yes
text = MERCENARY_HIRE_LIMIT_REACHED
}
} }
} }
scope:puppet_or_actor = { scope:puppet_or_actor = {
@ -5610,7 +5454,7 @@ hire_laamp_mercenaries_interaction = {
value = scope:puppet_or_actor value = scope:puppet_or_actor
} }
} }
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = medium_unity_gain VALUE = medium_unity_gain
@ -5654,7 +5498,7 @@ hire_laamp_mercenaries_interaction = {
# add = 1 # add = 1
# } # }
#} #}
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:puppet_or_actor CHARACTER = scope:puppet_or_actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -5686,6 +5530,15 @@ hire_laamp_mercenaries_interaction = {
empire = 6 empire = 6
hegemony = 6 hegemony = 6
} }
ai_frequency_by_tier_government_override = {
government = merchant_government
barony = 0
county = 36
duchy = 0
kingdom = 0
empire = 0
hegemony = 0
}
ai_targets = { ai_targets = {
ai_recipients = nearby_domicile_owners ai_recipients = nearby_domicile_owners
} }
@ -6161,7 +6014,7 @@ refill_maa_interaction = {
} }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:recipient = scope:actor scope:recipient = scope:actor
} }
@ -6312,7 +6165,7 @@ evict_adventurer_interaction = {
is_shown = { is_shown = {
scope:puppet_or_actor ?= { is_landed = yes } scope:puppet_or_actor ?= { is_landed = yes }
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:recipient != scope:puppet_or_actor scope:recipient != scope:puppet_or_actor
scope:recipient = { scope:recipient = {
OR = { OR = {
@ -6694,7 +6547,7 @@ procure_estate_interaction = {
is_shown = { is_shown = {
scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } } scope:actor = { OR = { government_has_flag = government_is_landless_adventurer government_has_flag = government_is_landless_minority } }
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:recipient = { scope:recipient = {
is_landed = yes is_landed = yes
government_allows = noble_families government_allows = noble_families
@ -7375,7 +7228,7 @@ request_laamp_legitimist_support = {
} }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:recipient = { scope:recipient = {
is_landed = yes is_landed = yes
is_ai = yes is_ai = yes
@ -7404,12 +7257,8 @@ request_laamp_legitimist_support = {
NOT = { NOT = {
any_claim = { any_claim = {
OR = { OR = {
holder = { holder ?= scope:recipient
this = scope:recipient holder.top_liege ?= scope:recipient
}
holder.top_liege = {
this = scope:recipient
}
} }
} }
} }
@ -7646,7 +7495,7 @@ task_contract_train_knight_interaction = {
} }
is_shown = { is_shown = {
has_ep3_dlc_trigger = yes has_playable_adventurer_dlc_trigger = yes
scope:actor = { scope:actor = {
any_character_active_contract = { any_character_active_contract = {
task_contract_type = laamp_help_train_commanders_contract task_contract_type = laamp_help_train_commanders_contract

View file

@ -33,6 +33,7 @@
} }
} }
age >= 6 age >= 6
is_imprisoned = no
} }
is_playable_character = yes is_playable_character = yes
} }
@ -732,6 +733,7 @@
} }
has_trait = denounced has_trait = denounced
has_trait = disinherited has_trait = disinherited
has_trait = adopted_no_inheritance
} }
} }
} }
@ -1430,7 +1432,7 @@
scope:actor = { scope:actor = {
custom_tooltip = create_confederation_tt custom_tooltip = create_confederation_tt
custom_tooltip = confederation_defensive_wars_tt custom_tooltip = confederation_defensive_wars_tt
custom_tooltip = unlock_leave_confederation_interaction_tt custom_tooltip = unlock_leave_confederation_decision_tt
if = { if = {
limit = { limit = {
government_has_flag = government_is_nomadic government_has_flag = government_is_nomadic
@ -2546,6 +2548,7 @@ migration_interaction = {
} }
desc = migration_interaction_desc desc = migration_interaction_desc
notification_text = migration_interaction_notification
is_available = { is_available = {
government_has_flag = government_is_nomadic government_has_flag = government_is_nomadic
@ -2563,6 +2566,7 @@ migration_interaction = {
is_imprisoned = no is_imprisoned = no
is_independent_ruler = yes is_independent_ruler = yes
is_travelling = no is_travelling = no
has_raised_armies = no
custom_tooltip = { custom_tooltip = {
text = no_primary_wars_tt text = no_primary_wars_tt
NOT = { NOT = {
@ -4301,6 +4305,10 @@ mpo_interaction_leverage_khan_authority = {
NOT = { NOT = {
has_character_flag = established_paiza_system has_character_flag = established_paiza_system
} }
any_character_artifact = {
has_variable = paiza_patron
root = { can_benefit_from_artifact = prev }
}
} }
is_shown = { is_shown = {
@ -4308,8 +4316,12 @@ mpo_interaction_leverage_khan_authority = {
is_ai = yes is_ai = yes
is_gurkhan = no is_gurkhan = no
age >= 12 age >= 12
NOT = { NOT = { has_character_flag = established_paiza_system }
has_character_flag = established_paiza_system # Implied by the artifact check below: a paiza only benefits while its patron is the gurkhan
OR = {
top_liege ?= situation:the_great_steppe.situation_top_herd
AND = { is_independent_ruler = yes primary_title.tier < scope:actor.primary_title.tier government_has_flag = government_is_nomadic }
liege ?= { government_has_flag = government_is_nomadic }
} }
} }
scope:actor = { scope:actor = {
@ -4318,19 +4330,10 @@ mpo_interaction_leverage_khan_authority = {
scope:actor = { can_benefit_from_artifact = prev } scope:actor = { can_benefit_from_artifact = prev }
OR = { OR = {
scope:recipient.top_liege ?= var:paiza_patron scope:recipient.top_liege ?= var:paiza_patron
scope:recipient = { scope:recipient = { is_independent_ruler = yes primary_title.tier < scope:actor.primary_title.tier government_has_flag = government_is_nomadic }
is_independent_ruler = yes scope:recipient.liege ?= {
primary_title.tier < scope:actor.primary_title.tier
government_has_flag = government_is_nomadic government_has_flag = government_is_nomadic
} }
scope:recipient = {
liege = {
OR = {
government_has_flag = government_is_nomadic
scope:recipient.top_liege ?= prev.var:paiza_patron
}
}
}
} }
} }
} }
@ -4441,20 +4444,35 @@ mpo_interaction_leverage_khan_authority = {
} }
modifier = { modifier = {
add = -10 add = -10
var:paiza_patron ?= { scope:actor = {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_1 } any_character_artifact = {
scope:actor = { can_benefit_from_artifact = prev }
var:paiza_patron ?= {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_1 }
}
}
} }
} }
modifier = { modifier = {
add = -20 add = -20
var:paiza_patron ?= { scope:actor = {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_2 } any_character_artifact = {
scope:actor = { can_benefit_from_artifact = prev }
var:paiza_patron ?= {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_2 }
}
}
} }
} }
modifier = { modifier = {
add = -35 add = -35
var:paiza_patron ?= { scope:actor = {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_3 } any_character_artifact = {
scope:actor = { can_benefit_from_artifact = prev }
var:paiza_patron ?= {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_3 }
}
}
} }
} }
} }
@ -4471,17 +4489,21 @@ mpo_interaction_leverage_khan_authority = {
title = mpo_interaction_leverage_khan_authority title = mpo_interaction_leverage_khan_authority
make_obedient_recipient_to_actor_effect = yes make_obedient_recipient_to_actor_effect = yes
scope:recipient = { scope:recipient = {
pay_short_term_gold = { if = {
target = scope:actor limit = { gold > 0 }
gold = { pay_short_term_gold = {
value = current_gold_value target = scope:actor
divide = 2 gold = {
value = current_gold_value
divide = 2
}
} }
} }
if = { if = {
limit = { limit = {
government_has_flag = government_is_nomadic government_has_flag = government_is_nomadic
scope:recipient = { domicile ?= { herd > 0 }
scope:actor = {
government_has_flag = government_is_nomadic government_has_flag = government_is_nomadic
} }
} }
@ -4508,22 +4530,6 @@ mpo_interaction_leverage_khan_authority = {
add_prestige = minor_prestige_value add_prestige = minor_prestige_value
} }
} }
if = {
limit = {
government_has_flag = government_is_nomadic
scope:recipient = {
government_has_flag = government_is_nomadic
}
}
pay_herd = {
target = scope:actor
value = {
value = domicile.herd
multiply = 0.5
}
}
}
} }
scope:actor = { scope:actor = {
@ -6874,7 +6880,7 @@ mpo_make_blood_brother = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_gain VALUE = minor_unity_gain
@ -6954,7 +6960,7 @@ mpo_make_blood_brother = {
} }
# If we're a clan this interaction affects unity # If we're a clan this interaction affects unity
add_clan_unity_interaction_effect = { add_house_unity_interaction_effect = {
CHARACTER = scope:actor CHARACTER = scope:actor
TARGET = scope:recipient TARGET = scope:recipient
VALUE = minor_unity_loss VALUE = minor_unity_loss
@ -7176,7 +7182,7 @@ feudalize_nomadic_holding_interaction = {
} }
trigger_else = { trigger_else = {
custom_description = { custom_description = {
text = "feudalize_nomadic_holding_interaction_title_not_county_or_below" text = "feudalize_holding_interaction_title_not_county_or_below"
always = no always = no
} }
} }
@ -7189,7 +7195,7 @@ feudalize_nomadic_holding_interaction = {
limit = { tier <= tier_county } limit = { tier <= tier_county }
title_province = { title_province = {
barony_controller = scope:actor barony_controller = scope:actor
has_ongoing_construction = no has_ongoing_holding_construction = no
} }
} }
} }
@ -7319,7 +7325,7 @@ feudalize_herder_holding_interaction = {
} }
trigger_else = { trigger_else = {
custom_description = { custom_description = {
text = "feudalize_herder_holding_interaction_title_not_county_or_below" text = "feudalize_holding_interaction_title_not_county_or_below"
always = no always = no
} }
} }
@ -7332,7 +7338,7 @@ feudalize_herder_holding_interaction = {
limit = { tier <= tier_county } limit = { tier <= tier_county }
title_province = { title_province = {
barony_controller = scope:actor barony_controller = scope:actor
has_ongoing_construction = no has_ongoing_holding_construction = no
} }
} }
} }
@ -7498,10 +7504,7 @@ mpo_retrieve_land_from_herder_interaction = {
is_vassal_of = scope:actor is_vassal_of = scope:actor
} }
} }
custom_tooltip = { capital_county = { is_migration_target = no }
text = mpo_retrieve_land_migration_tt
capital_county = { is_migration_target = no }
}
} }
} }
@ -8043,9 +8046,7 @@ mpo_gift_herd_interaction = {
} }
has_secret_relation_lover = scope:actor has_secret_relation_lover = scope:actor
has_relation_lover = scope:actor has_relation_lover = scope:actor
has_relation_soulmate = scope:actor
has_relation_friend = scope:actor has_relation_friend = scope:actor
has_relation_best_friend = scope:actor
} }
domicile.herd < minor_herd_value_static domicile.herd < minor_herd_value_static
} }
@ -8053,9 +8054,7 @@ mpo_gift_herd_interaction = {
OR = { OR = {
has_secret_relation_lover = scope:actor has_secret_relation_lover = scope:actor
has_relation_lover = scope:actor has_relation_lover = scope:actor
has_relation_soulmate = scope:actor
has_relation_friend = scope:actor has_relation_friend = scope:actor
has_relation_best_friend = scope:actor
} }
scope:actor = { scope:actor = {
OR = { OR = {
@ -8086,7 +8085,6 @@ mpo_gift_herd_interaction = {
OR = { OR = {
scope:actor.liege ?= this scope:actor.liege ?= this
has_relation_friend = scope:actor has_relation_friend = scope:actor
has_relation_best_friend = scope:actor
is_allied_to = scope:actor is_allied_to = scope:actor
is_close_or_extended_family_of = scope:actor is_close_or_extended_family_of = scope:actor
} }
@ -8361,7 +8359,6 @@ mpo_offer_submission_or_ruin = {
ceiling = yes ceiling = yes
} }
} }
# TRAITS/PERSONALITY # TRAITS/PERSONALITY
modifier = { # Ambitious modifier = { # Ambitious
desc = TAKE_THE_VOWS_AMBITIOUS desc = TAKE_THE_VOWS_AMBITIOUS
@ -9861,6 +9858,7 @@ join_confederation_interaction = {
} }
has_trait = denounced has_trait = denounced
has_trait = disinherited has_trait = disinherited
has_trait = adopted_no_inheritance
} }
} }
} }
@ -10306,7 +10304,7 @@ join_confederation_interaction = {
scope:actor = { scope:actor = {
custom_tooltip = join_confederation_recipient_tt custom_tooltip = join_confederation_recipient_tt
custom_tooltip = confederation_defensive_wars_tt custom_tooltip = confederation_defensive_wars_tt
custom_tooltip = unlock_leave_confederation_interaction_tt custom_tooltip = unlock_leave_confederation_decision_tt
} }
} }
if = { if = {

View file

@ -1,12 +1,11 @@
### Apply some impact to the relation between two houses. ### Apply some impact to the relation between two houses.
# #
debug_impact_house_relation_interaction = { debug_impact_house_relation_interaction = {
category = interaction_debug_tgp category = interaction_debug_extra
desc = debug_impact_house_relation_interaction_desc desc = debug_impact_house_relation_interaction_desc
use_diplomatic_range = no use_diplomatic_range = no
ignores_pending_interaction_block = yes ignores_pending_interaction_block = yes
icon = debug_chars icon = debug_chars
common_interaction = yes
is_shown = { is_shown = {
debug_only = yes debug_only = yes
@ -162,10 +161,9 @@ debug_impact_house_relation_interaction = {
debug_spawn_natural_disaster = { debug_spawn_natural_disaster = {
category = interaction_debug_tgp category = interaction_debug_extra
use_diplomatic_range = no use_diplomatic_range = no
ignores_pending_interaction_block = yes ignores_pending_interaction_block = yes
common_interaction = yes
icon = debug_bad icon = debug_bad
auto_accept = yes auto_accept = yes
is_shown = { is_shown = {
@ -248,10 +246,9 @@ debug_spawn_natural_disaster = {
debug_change_bloc_cohesion = { debug_change_bloc_cohesion = {
category = interaction_debug_tgp category = interaction_debug_extra
use_diplomatic_range = no use_diplomatic_range = no
ignores_pending_interaction_block = yes ignores_pending_interaction_block = yes
common_interaction = yes
icon = icon_leave_bloc icon = icon_leave_bloc
auto_accept = yes auto_accept = yes
is_shown = { is_shown = {

File diff suppressed because it is too large Load diff