character_interactions updated files

This commit is contained in:
Thakia 2026-10-02 18:44:14 -03:00
parent f086d8f7ec
commit d8cc7ae2ea
34 changed files with 21815 additions and 13849 deletions

View file

@ -10,14 +10,16 @@
auto_accept = yes
is_available = {
NOR = {
government_has_flag = government_is_tribal
government_has_flag = government_is_in_steppe
}
}
is_shown = {
scope:actor = {
this = scope:recipient
NOR = {
government_has_flag = government_is_tribal
government_has_flag = government_is_nomadic
government_has_flag = government_is_true_herder
}
}
}
@ -59,65 +61,7 @@
cost = {
treasury_or_gold = {
scope:actor = {
if = {
limit = {
scope:target.county = {
has_variable = was_razed
}
}
add = {
value = 50
desc = BASE
}
}
else_if = {
limit = {
scope:target.county = {
culture = scope:actor.culture
}
}
add = {
value = 200
desc = BASE
}
}
else = {
add = {
value = feudalize_holding_interaction_cost
desc = BASE
}
}
if = {
limit = { # More expensive for admin to make barbarians civilized...
government_has_flag = government_is_administrative
}
add = {
value = feudalize_holding_interaction_cost
multiply = 0.25
desc = has_admin_government
}
if = {
limit = { # Admin get a bonus for high bureaucracy levels
OR = {
has_realm_law = imperial_bureaucracy_2
has_realm_law = imperial_bureaucracy_3
}
}
subtract = {
value = feudalize_holding_interaction_cost
multiply = {
value = 0.1
if = {
limit = {
has_realm_law = imperial_bureaucracy_3
}
add = 0.15
}
}
desc = imperial_bureaucracy
}
}
}
add = feudalize_holding_interaction_cost
}
}
}
@ -127,84 +71,17 @@
send_interface_toast = {
type = event_toast_effect_good
title = feudalize_holding_interaction_notification
right_icon = scope:actor
if = {
limit = {
scope:target.title_province = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
}
if = {
limit = {
OR = {
scope:target.county.culture = scope:actor.culture
scope:target.county = { has_variable = was_razed }
}
}
}
else_if = {
limit = {
OR = {
government_has_flag = government_is_tribal
scope:target.county.culture = { has_same_culture_heritage = scope:actor.culture }
}
}
scope:target.county = {
add_county_modifier = {
modifier = mpo_feudalize_nomadic_land_modifier
years = 5
}
}
}
else = {
scope:target.county = {
add_county_modifier = {
modifier = mpo_feudalize_nomadic_land_modifier
years = 30
}
}
}
# SILK ROAD
scope:target = {
tgp_silk_road_feudalize_holding_effect = yes
}
}
if = {
limit = { exists = scope:target.title_province }
scope:target.title_province = {
set_holding_type = castle_holding
}
}
scope:target ?= {
if = {
limit = {
title_province = {
geographical_region = geographical_region:mpo_region_permafrost
}
}
if = {
limit = { has_county_modifier = mpo_siberian_permafrost_modifier }
remove_county_modifier = mpo_siberian_permafrost_modifier
}
else_if = {
limit = { has_county_modifier = mpo_siberian_permafrost_modifier_bad }
remove_county_modifier = mpo_siberian_permafrost_modifier_bad
}
}
}
scope:target.title_province ?= {
holding_pre_feudalize_effect = yes
set_holding_type = castle_holding
}
}
}
}
# Interaction frequency determined by code, do not change
ai_frequency = 0
# Interaction frequency determined by code, do not set frequency
# Used to determine which holding should be feudalized over another AND how important this AI goal is compared to others, like creating titles and constructing new holdings
ai_will_do = {
@ -224,10 +101,13 @@ tribalize_holding_interaction = {
auto_accept = yes
is_available = {
government_has_flag = government_is_tribal
}
is_shown = {
scope:actor = {
this = scope:recipient
government_has_flag = government_is_tribal
}
}
@ -333,41 +213,17 @@ tribalize_holding_interaction = {
send_interface_toast = {
type = event_toast_effect_good
title = feudalize_holding_interaction_notification
right_icon = scope:actor
if = {
limit = {
OR = {
scope:target.county.culture = scope:actor.culture
scope:target.county = {
has_variable = was_razed
}
}
}
}
else = {
scope:target.county = {
add_county_modifier = {
modifier = mpo_feudalize_nomadic_land_modifier
years = 5
}
}
}
if = {
limit = { exists = scope:target.title_province }
scope:target.title_province = {
set_holding_type = tribal_holding
}
scope:target.title_province ?= {
holding_pre_tribalize_effect = yes
set_holding_type = tribal_holding
}
}
}
}
# Interaction frequency determined by code, do not change
ai_frequency = 0
# Interaction frequency determined by code, do not set frequency
# Used to determine which holding should be feudalized over another AND how important this AI goal is compared to others, like creating titles and constructing new holdings
ai_will_do = {
base = 1500
@ -385,13 +241,27 @@ support_feudalize_tribal_holding_interaction = {
auto_accept = yes
is_shown = {
scope:actor = {
NOR = {
government_has_flag = government_is_tribal
government_has_flag = government_is_nomadic
}
is_available = {
trigger_if = {
limit = { is_ai = yes }
is_adult = yes
# The AI only does this if they have plenty of gold to spare
gold >= { value = feudalize_holding_interaction_cost multiply = 4 }
# Some basic triggers
is_at_war = no
# Piety and Legitimacy, you say... ?
ai_has_pious_builder_personality = yes
NOT = { has_variable = conqueror }
# Warring AI don't do this - They want to spend their gold on war!
ai_has_warlike_personality = no
}
NOR = {
government_has_flag = government_is_tribal
government_has_flag = government_is_nomadic
}
}
is_shown = {
scope:recipient = {
target_is_liege_or_above = scope:actor
NOR = {
@ -401,7 +271,7 @@ support_feudalize_tribal_holding_interaction = {
this != scope:actor
any_held_title = {
tier <= tier_county
title_province = {
title_province ?= {
OR = {
has_holding_type = tribal_holding
has_holding_type = nomad_holding
@ -448,170 +318,22 @@ support_feudalize_tribal_holding_interaction = {
}
cost = {
gold = {
value = 0
treasury_or_gold = {
scope:actor = {
if = {
limit = {
has_treasury = no
}
add = {
value = feudalize_holding_interaction_cost
desc = BASE
}
if = {
limit = { # More expensive for admin to make these barbarians civilized...
government_has_flag = government_is_administrative
}
add = {
value = feudalize_holding_interaction_cost
multiply = 0.25
desc = has_admin_government
}
if = {
limit = { # Admin get a bonus for high bureaucracy levels
OR = {
has_realm_law = imperial_bureaucracy_2
has_realm_law = imperial_bureaucracy_3
}
}
subtract = {
value = feudalize_holding_interaction_cost
multiply = {
value = 0.1
if = {
limit = {
has_realm_law = imperial_bureaucracy_3
}
add = 0.15
}
}
desc = imperial_bureaucracy
}
}
}
}
}
}
treasury = {
value = 0
scope:actor = {
if = {
limit = {
has_treasury = yes
}
add = {
value = feudalize_holding_interaction_cost
desc = BASE
}
if = {
limit = { # More expensive for admin to make these barbarians civilized...
government_has_flag = government_is_administrative
}
add = {
value = feudalize_holding_interaction_cost
multiply = 0.25
desc = has_admin_government
}
if = {
limit = { # Admin get a bonus for high bureaucracy levels
OR = {
has_realm_law = imperial_bureaucracy_2
has_realm_law = imperial_bureaucracy_3
}
}
subtract = {
value = feudalize_holding_interaction_cost
multiply = {
value = 0.1
if = {
limit = {
has_realm_law = imperial_bureaucracy_3
}
add = 0.15
}
}
desc = imperial_bureaucracy
}
}
}
}
add = feudalize_holding_interaction_cost
}
}
}
is_highlighted = {
# Highlight the interaction if we have the gold to spare
scope:actor = {
gold >= {
value = feudalize_holding_interaction_cost
if = {
limit = { # More expensive for admin to convert these... Barbarians...
government_has_flag = government_is_administrative
}
multiply = {
value = 1.25
desc = has_admin_government
}
}
}
treasury_or_gold >= feudalize_holding_interaction_cost
}
}
on_accept = {
scope:recipient = {
# Add some opinion to make it worthwhile
add_opinion = {
target = scope:actor
modifier = grateful_opinion
opinion = 30
}
if = {
limit = {
scope:target.title_province = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
}
if = {
limit = {
OR = {
scope:target.culture = scope:recipient.culture
scope:target = { has_variable = was_razed }
}
}
}
else_if = {
limit = {
OR = {
government_has_flag = government_is_tribal
scope:target.culture = { has_same_culture_heritage = scope:recipient.culture }
}
}
scope:target = {
add_county_modifier = {
modifier = mpo_feudalize_nomadic_land_modifier
years = 5
}
}
}
else = {
scope:target = {
add_county_modifier = {
modifier = mpo_feudalize_nomadic_land_modifier
years = 30
}
}
}
# SILK ROAD
scope:target = {
tgp_silk_road_feudalize_holding_effect = yes
}
}
# Notify actor and recipient
scope:actor = {
if = { #Temple Citadel
@ -623,11 +345,9 @@ support_feudalize_tribal_holding_interaction = {
left_icon = scope:actor
right_icon = scope:target
if = {
limit = { exists = scope:target.title_province }
scope:target.title_province = {
set_holding_type = temple_citadel_holding
}
scope:target.title_province ?= {
holding_pre_feudalize_effect = yes
set_holding_type = temple_citadel_holding
}
mandala_piety_gain_effect = { PIETY_AMOUNT = massive_piety_gain }
add_legitimacy_effect = { LEGITIMACY = medium_legitimacy_gain }
@ -642,11 +362,9 @@ support_feudalize_tribal_holding_interaction = {
right_icon = scope:target
show_as_tooltip = {
if = {
limit = { exists = scope:target.title_province }
scope:target.title_province = {
set_holding_type = temple_citadel_holding
}
scope:target.title_province ?= {
holding_pre_feudalize_effect = yes
set_holding_type = temple_citadel_holding
}
}
}
@ -661,11 +379,9 @@ support_feudalize_tribal_holding_interaction = {
left_icon = scope:actor
right_icon = scope:target
if = {
limit = { exists = scope:target.title_province }
scope:target.title_province = {
set_holding_type = castle_holding
}
scope:target.title_province ?= {
holding_pre_feudalize_effect = yes
set_holding_type = castle_holding
}
add_legitimacy_effect = { LEGITIMACY = medium_legitimacy_gain }
}
@ -679,11 +395,9 @@ support_feudalize_tribal_holding_interaction = {
right_icon = scope:target
show_as_tooltip = {
if = {
limit = { exists = scope:target.title_province }
scope:target.title_province = {
set_holding_type = castle_holding
}
scope:target.title_province ?= {
holding_pre_feudalize_effect = yes
set_holding_type = castle_holding
}
}
}
@ -695,7 +409,7 @@ support_feudalize_tribal_holding_interaction = {
scope:actor = {
# If you are admin, you get some influence for your efforts
if = {
limit = { government_has_flag = government_is_administrative }
limit = { government_has_flag = government_has_influence }
change_influence = medium_influence_gain
}
}
@ -716,19 +430,6 @@ support_feudalize_tribal_holding_interaction = {
max = 10
}
ai_potential = {
# Some basic triggers
is_at_war = no
is_adult = yes
# The AI only does this if they have plenty of gold to spare
gold >= { value = feudalize_holding_interaction_cost multiply = 4 }
# Warring AI don't do this - They want to spend their gold on war!
ai_has_warlike_personality = no
# Piety and Legitimacy, you say... ?
ai_has_pious_builder_personality = yes
NOT = { has_variable = conqueror }
}
ai_will_do = {
base = 25
modifier = {
@ -759,6 +460,9 @@ turn_subject_into_mandala_interaction = {
ai_targets = {
ai_recipients = vassals
}
ai_targets = {
ai_recipients = tributaries
}
ai_target_quick_trigger = {
adult = yes
}
@ -773,6 +477,14 @@ turn_subject_into_mandala_interaction = {
desc = turn_subject_into_mandala_interaction_desc
is_available = {
trigger_if = {
limit = { is_ai = yes }
government_has_flag = government_is_mandala
is_adult = yes
}
}
is_shown = {
scope:actor = { government_has_flag = government_is_mandala }
scope:recipient = {
@ -782,9 +494,9 @@ turn_subject_into_mandala_interaction = {
is_landed = yes
is_ruler = yes
OR = {
liege = scope:actor
liege ?= scope:actor
AND = {
overlord = scope:actor
overlord ?= scope:actor
scope:actor = {
has_realm_law_flag = can_convert_all_subjects_to_mandalas
}
@ -824,9 +536,9 @@ turn_subject_into_mandala_interaction = {
NOT = { scope:actor.diarch ?= scope:recipient }
}
custom_tooltip = {
text = head_of_faith_unable_to_change_government_desc
text = clergy_unable_to_change_government_desc
NOT = {
scope:recipient = { faith.religious_head ?= this }
scope:recipient = { holds_religious_office_trigger = yes }
}
}
}
@ -890,34 +602,28 @@ turn_subject_into_mandala_interaction = {
scope:recipient = { custom_tooltip = demand_mandala_interaction_vassal_refuses }
}
ai_potential = {
government_has_flag = government_is_mandala
is_adult = yes
}
ai_will_do = {
base = 100
modifier = {
factor = 0
scope:recipient = { highest_held_title_tier >= tier_county }
gold >= 300
gold < 300
}
modifier = {
factor = 0
scope:recipient = { highest_held_title_tier >= tier_duchy }
gold >= 600
gold < 600
}
modifier = {
factor = 0
scope:recipient = { highest_held_title_tier >= tier_kingdom }
gold >= 2000
gold < 2000
}
modifier = {
scope:recipient.capital_county.title_province = {
NOR = {
has_holding_type = temple_citadel_holding
has_holding_type = church_holding
has_holding_type = castle_holding
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
factor = 0