Bugs fixing

This commit is contained in:
Heidesommer 2026-05-24 05:01:46 -04:00
parent cb926c39aa
commit ebc206bb1c
117 changed files with 59950 additions and 11056 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,153 @@
# Write a book, poetry, fiction, philosophy or governance
### Author Book ###
author_book_decision = {
picture = {
reference = "gfx/interface/illustrations/event_scenes/tgp_study_asia.dds"
}
desc = author_book_decision_desc
sort_order = 100
selection_tooltip = author_book_decision_tooltip
cooldown = { years = 10 }
is_shown = {
culture = { has_cultural_parameter = can_author_books }
}
is_valid_showing_failures_only = {
is_available_adult = yes
}
cost = {
gold = minor_gold_value
}
widget = {
gui = "decision_view_widget_generic_multichoice_with_effects"
controller = decision_option_list_controller
decision_to_second_step_button = "SELECT_ACTION"
show_from_start = yes
item = {
value = poetry
current_description = poetry_book_desc
localization = poetry
icon = "gfx/interface/icons/court_position_task_types/grand_mentor_court_position_task_teach_liege.dds"
is_valid = {
}
ai_chance = {
value = 100
}
}
item = {
value = prose
current_description = prose_book_desc
localization = prose
icon = "gfx/interface/icons/court_position_task_types/court_poet_court_position_task_create_poetry.dds"
is_valid = {
}
ai_chance = {
value = 100
}
}
item = {
value = scholarship
current_description = scholarship_book_desc
localization = scholarship
icon = "gfx/interface/icons/court_position_task_types/guru_teach_learning.dds"
is_valid = {
custom_tooltip = {
text = scholarship.requirements.tt
OR = {
learning >= 15
AND = {
has_trait = confucian_education
has_trait_xp = {
trait = confucian_education
value >= 40
}
}
}
}
}
ai_chance = {
value = 100
}
}
}
effect = {
switch = {
trigger = yes
scope:poetry = {
custom_tooltip = poetry_book_desc
custom_tooltip = poetry_book_effect_desc
custom_tooltip = quickest_book_tt
trigger_event = author_book.0001
show_as_tooltip = {
stress_impact = {
base = minor_stress_impact_gain
lazy = minor_stress_impact_gain
lifestyle_poet = minor_stress_impact_loss #offsets penalty a bit
}
}
}
scope:prose = {
custom_tooltip = prose_book_desc
custom_tooltip = prose_book_effect_desc
if = {
limit = {
NOT = { has_trait = confucian_education }
}
show_as_tooltip = { add_trait = confucian_education }
}
trigger_event = author_book.0004
show_as_tooltip = {
stress_impact = {
base = medium_stress_impact_gain
lazy = minor_stress_impact_gain
journaller = minor_stress_impact_loss #offsets penalty a bit
confucian_education = minor_stress_impact_loss #offsets penalty a bit
}
}
}
scope:scholarship = {
custom_tooltip = scholarship_book_desc
custom_tooltip = scholarship_effect_desc
custom_tooltip = most_time_consuming_book_tt
trigger_event = author_book.0005
show_as_tooltip = {
stress_impact = {
base = major_stress_impact_gain
lazy = minor_stress_impact_gain
journaller = minor_stress_impact_loss #offsets penalty a bit
confucian_education = minor_stress_impact_loss #offsets penalty a bit
}
}
}
}
}
ai_check_interval_by_tier = {
barony = 0
county = 120
duchy = 120
kingdom = 120
empire = 120
hegemony = 120
}
ai_potential = {
short_term_gold >= major_gold_value
}
ai_will_do = {
base = 100
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,855 @@
#Decisions for East Asia
### Restore Mandala Capital ###
restore_mandala_capital_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
}
desc = restore_mandala_capital_decision_desc
selection_tooltip = restore_mandala_capital_decision_tooltip
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
is_shown = {
government_has_flag = government_is_mandala
capital_province.county = { has_county_modifier = mandala_capital_sacked_modifier }
}
is_valid_showing_failures_only = {
is_at_war = no
is_imprisoned = no
NOT = { has_trait = incapable }
}
effect = {
remove_short_term_gold = major_gold_value
capital_province.county = {
remove_county_modifier = mandala_capital_sacked_modifier
add_county_modifier = {
modifier = mandala_capital_restored_modifier
years = 20
}
}
}
ai_potential = {
is_at_war = no
ai_greed < medium_positive_ai_value
ai_should_focus_on_building_in_their_capital = yes
}
ai_will_do = {
base = 20
modifier = {
short_term_gold < major_gold_value
factor = 0
}
}
}
### Adopt Mandala Government ###
convert_to_mandala_government_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
}
decision_group_type = major
desc = convert_to_mandala_government_decision_desc
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
is_shown = {
has_tgp_dlc_trigger = yes
is_landed = yes
has_mandala_culture_trigger = yes
NOT = { government_has_flag = government_is_mandala }
#We have a special decision for Mandala subjects...
trigger_if = {
limit = { is_tributary = yes }
NOT = {
overlord = { government_has_flag = government_is_mandala }
}
}
highest_held_title_tier > tier_barony
}
is_valid = {
trigger_if = {
limit = {
has_legitimacy = yes
dynasty ?= {
NOT = { has_dynasty_perk = tgp_sea_legacy_3 } #Bypasses Tribal Authority Requirement
}
}
legitimacy_level >= 4
}
has_mandala_faith_trigger = yes
is_independent_ruler = yes
# This logic is necessary for the triggers in the options in the subsequent event, or else the player will not get the event
OR = {
any_realm_province = {
OR = {
custom_tooltip = {
text = convert_to_mandala_government_decision_is_temple_citadel_holding_tt
has_holding_type = temple_citadel_holding
}
custom_tooltip = {
text = convert_to_mandala_government_decision_has_no_holding_tt
has_holding = no
}
}
}
any_directly_owned_province = {
custom_tooltip = {
text = convert_to_mandala_government_decision_is_tribal_holding_tt
has_holding_type = tribal_holding
}
}
}
}
is_valid_showing_failures_only = {
custom_tooltip = {
text = not_changed_government_recently_tt
NOT = { has_variable = changed_government_recently }
}
government_is_japanese_trigger = no
}
cost = {
prestige = {
value = 0
if = {
limit = { government_has_flag = government_is_tribal }
add = convert_to_mandala_government_tribal_value
}
else = { add = convert_to_mandala_government_nontribal_value }
#'s cheap!
if = {
limit = { has_character_modifier = divine_happenstance_modifier }
divide = 2
}
}
}
effect = {
#GoK stops really being GoK
gok_government_change_story_end_effect = yes
#Out with the old laws, in with the new
change_to_mandala_government_decree_effect = yes
#No Succession for this character pls
set_variable = {
name = not_subject_to_succession_trials
value = flag:adopted_mandala_government
}
if = {
limit = { var:not_subject_to_succession_trials ?= flag:adopted_mandala_government }
#To prevent 'unused except in loc' errors :catto:
}
show_as_tooltip = {
change_government = mandala_government
}
#Huh, guess you _are_ divine
if = {
limit = { has_variable = vying_for_mandala_divinity }
custom_description_no_bullet = { text = because_of_your_divine_happenstance_tt }
show_as_tooltip = { divine_happenstance_adopt_mandala_effect = yes }
}
if = {
limit = {
culture = {
has_cultural_parameter = mandala_tributaries
}
exists = confederation
}
custom_tooltip = confederates_to_tributaries_tt
}
trigger_event = tgp_east_asia_decision_events.0010
hidden_effect = {
every_vassal = {
trigger_event = {
id = tgp_east_asia_decision_events.0015
days = 3
}
}
}
}
ai_potential = {
has_mandala_culture_trigger = yes
trigger_if = {
limit = { government_has_flag = government_is_tribal }
has_realm_law = tribal_authority_3
prestige >= convert_to_mandala_government_tribal_value
}
trigger_else = {
prestige >= convert_to_mandala_government_nontribal_value
}
trigger_if = {
limit = {
OR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
}
}
primary_title.tier <= tier_duchy
}
primary_title.tier > tier_barony
NOR = {
government_has_flag = government_is_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_mercenary
government_has_flag = government_is_holy_order
government_has_flag = government_is_administrative
government_has_flag = government_is_nomadic
government_has_flag = government_is_herder
government_has_flag = government_is_celestial
government_has_flag = government_is_steppe_admin
government_has_flag = government_is_meritocratic
}
NOT = {
any_owned_story = {
OR = {
story_type = story_greatest_of_khans
story_type = story_mongol_invasion
}
}
}
}
ai_will_do = {
base = 20
modifier = {
NOT = { government_has_flag = government_is_tribal }
add = -15
}
}
}
### Assimilate to Mandala Rule ###
assimilate_to_mandala_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
}
decision_group_type = major
desc = {
first_valid = {
triggered_desc = {
trigger = { government_has_flag = government_is_mandala }
desc = assimilate_to_mandala_decision_faith_desc
}
triggered_desc = {
trigger = { faith = overlord.faith }
desc = assimilate_to_mandala_decision_government_desc
}
desc = assimilate_to_mandala_decision_desc
}
}
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
is_shown = {
has_tgp_dlc_trigger = yes
overlord ?= { government_has_flag = government_is_mandala }
NAND = {
government_has_flag = government_is_mandala
faith = overlord.faith
}
highest_held_title_tier > tier_barony
}
is_valid_showing_failures_only = {
custom_tooltip = {
text = not_changed_government_recently_tt
NOT = { has_variable = changed_government_recently }
}
}
effect = {
#GoK stops really being GoK
gok_government_change_story_end_effect = yes
#No Succession for this character pls
set_variable = {
name = not_subject_to_succession_trials
value = flag:assimilated_to_mandala_government
}
if = {
limit = { var:not_subject_to_succession_trials ?= flag:assimilated_to_mandala_government }
#To prevent 'unused except in loc' errors :catto:
}
#Opinion, if Overlord is AI
overlord = {
if = {
limit = { is_ai = yes }
if = {
limit = { good_devaraja_quality_trigger = yes }
add_opinion = {
target = root
modifier = assimilated_to_devaraja_rule_opinion
opinion = 10
}
}
else_if = {
limit = { middling_devaraja_quality_trigger = yes }
add_opinion = {
target = root
modifier = assimilated_to_devaraja_rule_opinion
opinion = 30
}
}
else_if = {
limit = { poor_devaraja_quality_trigger = yes }
root = {
progress_towards_friend_effect = {
REASON = friend_supported_devaraja
CHARACTER = overlord
OPINION = 0
}
}
add_opinion = {
target = root
modifier = assimilated_to_devaraja_rule_opinion
opinion = 40
}
}
else_if = {
limit = { terrible_devaraja_quality_trigger = yes }
root = {
progress_towards_friend_effect = {
REASON = friend_supported_devaraja
CHARACTER = overlord
OPINION = 0
}
}
add_opinion = {
target = root
modifier = assimilated_to_devaraja_rule_opinion
opinion = 60
}
}
}
}
#Also notify the Devaraja of their Piety gain
mandala_assimilation_effect = yes
if = {
limit = {
NOR = {
faith = overlord.faith
faith.religious_head ?= root
}
}
custom_tooltip = tgp_east_asia_decision_events.0020.close_family_pre_tt
}
#You got in early? Good for you!
if = {
limit = {
overlord = {
OR = {
middling_devaraja_quality_trigger = yes
poor_devaraja_quality_trigger = yes
terrible_devaraja_quality_trigger = yes
}
}
}
if = {
limit = {
overlord = { middling_devaraja_quality_trigger = yes }
}
add_character_flag = assimilation_payout_t1
custom_tooltip = { text = assimilation_payout_t1_tt }
}
else_if = {
limit = {
overlord = { poor_devaraja_quality_trigger = yes }
}
add_character_flag = assimilation_payout_t2
custom_tooltip = { text = assimilation_payout_t2_tt }
}
else_if = {
limit = {
overlord = { terrible_devaraja_quality_trigger = yes }
}
add_character_flag = assimilation_payout_t3
custom_tooltip = { text = assimilation_payout_t3_tt }
}
#Delayed payout event with its own triggers
set_variable = {
name = mandala_assimilation_devaraja
value = overlord
}
set_variable = {
name = mandala_assimilation_devaraja_piety_level
value = overlord.piety_level
}
trigger_event = {
id = tgp_east_asia_decision_events.0100
years = assimilation_payout_years
}
}
#We actually set the government and faith in the event
trigger_event = tgp_east_asia_decision_events.0020
#And vassal(s)
hidden_effect = {
every_vassal = {
trigger_event = {
id = tgp_east_asia_decision_events.0025
days = 3
}
}
}
set_variable = {
name = changed_government_recently
years = 5
}
}
ai_potential = {
this != top_overlord
overlord = { government_has_flag = government_is_mandala }
primary_title.tier > tier_barony
#Keep the tributaries Wanua
trigger_if = {
limit = {
government_has_flag = government_is_wanua
is_independent_ruler = yes
}
overlord.mandala_radiance_value >= 50
}
#... but be more lenient on the Vassals
trigger_if = {
limit = {
government_has_flag = government_is_wanua
is_independent_ruler = no
}
overlord.mandala_radiance_value >= 10
}
NOT = {
any_owned_story = {
OR = {
story_type = story_mongol_invasion
story_type = story_greatest_of_khans
}
}
}
}
ai_will_do = {
base = 20
modifier = {
NOT = { government_has_flag = government_is_tribal }
add = -50
}
modifier = {
overlord = { terrible_devaraja_quality_trigger = yes }
add = -50
}
modifier = {
overlord = { poor_devaraja_quality_trigger = yes }
add = -25
}
modifier = {
overlord = { middling_devaraja_quality_trigger = yes }
add = 25
}
modifier = {
overlord = { good_devaraja_quality_trigger = yes }
add = 25
}
modifier = {
overlord = { great_devaraja_quality_trigger = yes }
add = 50
}
modifier = {
overlord = { exalted_devaraja_quality_trigger = yes }
add = 100
}
opinion_modifier = {
who = root
opinion_target = overlord
multiplier = 1
}
modifier = {
capital_county.title_province = {
NOR = {
has_holding_type = temple_citadel_holding
has_holding_type = church_holding
has_holding_type = castle_holding
}
}
factor = 0
}
}
}
### Adopt Clan Ways ###
mandala_adopt_clan_government_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
}
decision_group_type = major
desc = mandala_adopt_clan_government_decision_desc
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
is_shown = {
has_tgp_dlc_trigger = yes
government_has_flag = government_is_mandala
is_landed = yes
faith.religion = religion:islam_religion
highest_held_title_tier > tier_barony
}
is_valid_showing_failures_only = {
custom_tooltip = {
text = not_changed_government_recently_tt
NOT = { has_variable = changed_government_recently }
}
}
cost = {
piety = {
value = convert_to_mandala_government_nontribal_value
}
}
effect = {
mandala_adopt_clan_government_effect = yes
}
ai_potential = {
government_has_flag = government_is_mandala
faith.religion = religion:islam_religion
piety >= convert_to_mandala_government_nontribal_value
}
ai_will_do = {
base = 20
modifier = {
OR = {
piety_level >= high_piety_level
capital_province = {
OR = {
has_building_with_flag = third_tier_mandala_capital_building
has_building_with_flag = fourth_tier_mandala_capital_building
has_building_with_flag = final_tier_mandala_capital_building
}
}
}
factor = 0
}
}
}
### Perform a Ritual Sacrifice ###
visit_local_shrine_decision = {
picture = {
trigger = {
government_is_japanese_trigger = yes
}
reference = "gfx/interface/illustrations/holding_types/tgp_shinto_temple.dds"
}
picture = {
reference = "gfx/interface/illustrations/event_scenes/tgp_crossroad_inn_asia.dds"
}
desc = visit_local_shrine_decision_desc
selection_tooltip = sacrifice_to_heaven
sort_order = 110
cooldown = { years = 5 }
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
is_shown = {
exists = capital_province
has_tgp_dlc_trigger = yes
highest_held_title_tier >= tier_county
faith = { has_doctrine = doctrine_pilgrimage_local_rites }
trigger_if = { # Allow a Capital exam to be hosted first.
limit = {
is_ai = yes
highest_held_title_tier = tier_hegemony
}
years_from_game_start >= 10
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
location = capital_province
}
effect = {
custom_tooltip = sacrifice_to_heaven
trigger_event = local_rites.1
}
ai_potential = {
is_at_war = no
ai_greed < medium_positive_ai_value
}
ai_will_do = {
base = 20
modifier = {
short_term_gold < minor_gold_value
factor = 0
}
}
}
#One of your subjects has a Mandala Capital and you don't? Well, seize it!
### Seize Mandala Temple Complex ###
seize_mandala_capital_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
}
desc = seize_mandala_capital_decision_desc
selection_tooltip = seize_mandala_capital_decision_tooltip
decision_group_type = major
ai_check_interval = 0
is_shown = {
government_has_flag = government_is_mandala
has_mandala_capital_trigger = no
any_subject = {
is_ai = yes
any_sub_realm_barony = {
kingdom = root.capital_county.kingdom
title_province = {
has_building_with_flag = mandala_capital_building
has_ruined_great_building = no
}
}
}
}
is_valid_showing_failures_only = {
is_imprisoned = no
NOT = { has_trait = incapable }
}
effect = {
random_subject = {
limit = {
is_ai = yes
any_sub_realm_barony = {
kingdom = root.capital_county.kingdom
title_province = {
has_building_with_flag = mandala_capital_building
has_ruined_great_building = no
}
}
}
random_sub_realm_barony = {
limit = {
kingdom = root.capital_county.kingdom
title_province = {
has_building_with_flag = mandala_capital_building
has_ruined_great_building = no
}
}
holder = { save_scope_as = previous_holder }
county = { save_scope_as = target_county }
}
}
create_title_and_vassal_change = {
type = returned
save_scope_as = change
add_claim_on_loss = yes
}
scope:target_county = {
change_title_holder = {
holder = root
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
set_realm_capital = scope:target_county
scope:previous_holder = {
progress_towards_rival_effect = {
REASON = rival_seized_mandala_complex
CHARACTER = root
OPINION = -50
}
}
}
ai_potential = {
always = no
}
ai_will_do = {
base = 0
}
}
create_bunga_mas_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/hindu_ruler.dds"
}
cooldown = { days = standard_commission_artifact_cooldown_time }
sort_order = 151
ai_check_interval = 0 #Not for AI
is_shown = {
#Tease Mandala rulers
trigger_if = {
limit = { is_tributary = no }
government_has_flag = government_is_mandala
}
#... unless you're actually the tributary of a Mandala
trigger_else = {
is_tributary = yes
suzerain = { government_has_flag = government_is_mandala }
}
highest_held_title_tier >= tier_county
exists = capital_province
}
is_valid_showing_failures_only = {
employs_court_position = antiquarian_court_position
is_tributary = yes
}
cost = {
gold = {
value = create_bunga_mas_cost
multiply = primary_title.tier
}
}
effect = {
custom_tooltip = create_bunga_mas_decision_effect
if = {
limit = {
any_court_position_holder = {
type = antiquarian_court_position
}
}
random_court_position_holder = {
type = antiquarian_court_position
save_scope_as = antiquarian
}
}
if = {
limit = {
any_pool_character = {
province = root.capital_province
has_no_particular_noble_roots_trigger = yes
is_available_healthy_ai_adult = yes
NOR = {
exists = inspiration
has_trait = peasant_leader
}
}
}
random_pool_character = {
province = root.capital_province
limit = {
has_no_particular_noble_roots_trigger = yes
is_available_healthy_ai_adult = yes
NOR = {
exists = inspiration
has_trait = peasant_leader
}
}
save_scope_as = local_artisan
hidden_effect = {
add_character_modifier = local_artisan_modifier
}
}
}
else = {
# Artisan Generation
hidden_effect = {
create_character = {
template = local_artisan_template
location = root.capital_province
gender_female_chance = root_faith_dominant_gender_adjusted_female_chance
save_scope_as = local_artisan
}
scope:local_artisan = {
hidden_effect = {
add_character_modifier = local_artisan_modifier
}
}
}
}
hidden_effect = {
if = {
# Conditional exists to avoid false-positives during tooltip generation, but 'local_artisan' should always exist on execution!
limit = { exists = scope:local_artisan }
root = { add_courtier = scope:local_artisan }
scope:local_artisan = {
add_character_flag = local_artisan
}
}
}
#Mandala Creation Aspect
if = {
limit = {
government_has_flag = government_is_mandala
house = { has_house_aspiration_parameter = aspect_of_creation }
is_house_head = yes
}
increment_variable_effect = {
VAR = num_commissioned_artifacts
VAL = 1
}
}
trigger_event = {
id = tgp_east_asia_decision_events.0300
delayed = yes
}
}
ai_potential = {
always = no
}
ai_will_do = {
base = 0
}
}

View file

@ -0,0 +1,131 @@
##########
#Unify Samhan/Goryeo
### Unite the Husamguk ###
tgp_korea_unify_goryeo_decision = {
picture = {
reference = "gfx/interface/illustrations/activity_splash_screens/tour_arrival_asia_welcome.dds"
}
desc = tgp_korea_unify_goryeo_decision_desc
selection_tooltip = tgp_korea_unify_goryeo_decision_tooltip
decision_group_type = major
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 36
empire = 0
hegemony = 0
}
is_shown = {
has_tgp_dlc_trigger = yes
NOR = {
exists = title:e_goryeo.holder
exists = title:k_yongson_throne.holder
}
culture = {
OR = {
has_cultural_pillar = heritage_korean
has_cultural_pillar = heritage_buyeo
any_parent_culture = {
OR = {
has_cultural_pillar = heritage_korean
has_cultural_pillar = heritage_buyeo
}
}
}
}
NOT = {
is_target_in_global_variable_list = {
name = unavailable_unique_decisions
target = flag:unify_goryeo_decision
}
}
}
is_valid = {
government_allows = administrative
highest_held_title_tier < tier_empire
OR = {
has_title = title:k_silla
has_title = title:k_goguryeo
has_title = title:k_baekje
}
custom_tooltip = {
text = tgp_korea_unify_goryeo_decision_no_other_korean_kingdoms_tt
trigger_if = {
limit = { exists = title:k_silla.holder }
title:k_silla.holder = root
}
trigger_if = {
limit = { exists = title:k_goguryeo.holder }
title:k_goguryeo.holder = root
}
trigger_if = {
limit = { exists = title:k_baekje.holder }
title:k_baekje.holder = root
}
}
completely_controls = title:d_bukgye
completely_controls = title:d_gaeseong
completely_controls = title:d_gyeongju
completely_controls = title:d_chungju
realm_size >= 50
}
is_valid_showing_failures_only = {
is_landed = yes
is_adult = yes
is_available = yes
is_independent_ruler = yes
}
cost = {
piety = {
value = massive_piety_value
}
gold = {
value = 0
if = {
limit = {
has_treasury = no
}
add = massive_gold_value
}
}
treasury = {
value = 0
if = {
limit = {
has_treasury = yes
}
add = massive_gold_value
}
}
}
effect = {
if = {
limit = {
is_ai = no
}
add_achievement_global_variable_effect = {
VARIABLE = achieved_ep4_13_how_its_done_done_done_achievement
VALUE = yes
}
}
#Can only happen once
add_to_global_variable_list = {
name = unavailable_unique_decisions
target = flag:unify_goryeo_decision
}
save_scope_as = king_of_goryeo
show_as_tooltip = { korea_unify_goryeo_reward_effect = yes }
trigger_event = tgp_korea_decision.9101
}
ai_will_do = {
base = 100
}
}

View file

@ -0,0 +1,504 @@
#Decisions for East Asia
### Visit a Silk Road Market ###
visit_silk_road_market_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/tgp_silk_road.dds"
}
desc = visit_silk_road_market_decision_desc
selection_tooltip = visit_silk_road_market_decision_tooltip
cooldown = { years = 10 }
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 240
kingdom = 36
empire = 36
hegemony = 36
}
is_shown = {
OR = {
is_ai = no
any_character_situation = { situation_type = silk_road_situation }
}
has_tgp_dlc_trigger = yes
is_playable_character = yes
#There is no point in showing this decision if you cannot benefit from going at all:
OR = {
silk_road_valid_market_to_visit_trigger = { SUB_REGION = china }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = tibet }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = india }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = central_asia }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
}
}
is_valid = {
is_adult = yes
gold >= major_gold_value
}
is_valid_showing_failures_only = {
is_available_adult = yes
is_playable_character = yes
is_incapable = no
}
widget = {
gui = "decision_view_widget_option_list_generic"
controller = decision_option_list_controller
decision_to_second_step_button = "THE_SILK_ROAD_AWAITS"
show_from_start = yes
# there are six potential silk road markets
item = { # Chang'an
value = c_jingzhao
is_shown = { always = yes }
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_jingzhao = { # Chang'an
any_county_province = { has_building_with_flag = silk_road_node }
}
}
custom_tooltip = {
text = no_available_innovation_at_silk_road_market_desc
silk_road_valid_market_to_visit_trigger = { SUB_REGION = china }
}
}
localization = visit_silk_road_market_decision_changan
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
ai_chance = {
value = 1
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_jingzhao.title_province
value <= squared_distance_small
}
}
}
multiply = 10
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_jingzhao.title_province
value <= squared_distance_large
}
}
}
multiply = 2
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_jingzhao.title_province
value > squared_distance_huge
}
}
}
multiply = 0.1
}
}
}
item = { # Lhasa
value = c_lhasa
is_shown = { always = yes }
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_lhasa = {
any_county_province = { has_building_with_flag = silk_road_node }
}
}
custom_tooltip = {
text = no_available_innovation_at_silk_road_market_desc
silk_road_valid_market_to_visit_trigger = { SUB_REGION = tibet }
}
}
localization = visit_silk_road_market_decision_lhasa
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
ai_chance = {
value = 1
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_lhasa.title_province
value <= squared_distance_small
}
}
}
multiply = 10
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_lhasa.title_province
value <= squared_distance_large
}
}
}
multiply = 2
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_lhasa.title_province
value > squared_distance_huge
}
}
}
multiply = 0.1
}
}
}
item = { # Lahur
value = c_lahur
is_shown = { always = yes }
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_lahur = {
any_county_province = { has_building_with_flag = silk_road_node }
}
}
custom_tooltip = {
text = no_available_innovation_at_silk_road_market_desc
silk_road_valid_market_to_visit_trigger = { SUB_REGION = india }
}
}
localization = visit_silk_road_market_decision_lahur
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
ai_chance = {
value = 1
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_lahur.title_province
value <= squared_distance_small
}
}
}
multiply = 10
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_lahur.title_province
value <= squared_distance_large
}
}
}
multiply = 2
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_lahur.title_province
value > squared_distance_huge
}
}
}
multiply = 0.1
}
}
}
item = { # Dunhuang
value = c_shazhou
is_shown = { always = yes }
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_shazhou = { # Dunhuang
any_county_province = { has_building_with_flag = silk_road_node }
}
}
custom_tooltip = {
text = no_available_innovation_at_silk_road_market_desc
silk_road_valid_market_to_visit_trigger = { SUB_REGION = central_asia }
}
}
localization = visit_silk_road_market_decision_dunhuang
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
ai_chance = {
value = 1
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_shazhou.title_province # Dunhuang
value <= squared_distance_small
}
}
}
multiply = 10
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_shazhou.title_province # Dunhuang
value <= squared_distance_large
}
}
}
multiply = 2
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_shazhou.title_province # Dunhuang
value > squared_distance_huge
}
}
}
multiply = 0.1
}
}
}
item = { # Khiva
value = c_khiva
is_shown = { always = yes }
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_khiva = {
any_county_province = { has_building_with_flag = silk_road_node }
}
}
custom_tooltip = {
text = no_available_innovation_at_silk_road_market_desc
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
}
}
localization = visit_silk_road_market_decision_khiva
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
ai_chance = {
value = 1
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_khiva.title_province
value <= squared_distance_small
}
}
}
multiply = 10
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_khiva.title_province
value <= squared_distance_large
}
}
}
multiply = 2
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_khiva.title_province
value > squared_distance_huge
}
}
}
multiply = 0.1
}
}
}
item = { # Dvin
value = c_dvin
is_shown = { always = yes }
is_valid = {
custom_tooltip = {
text = no_building_at_silk_road_market_desc
title:c_dvin = {
any_county_province = { has_building_with_flag = silk_road_node }
}
}
custom_tooltip = {
text = no_available_innovation_at_silk_road_market_desc
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
}
}
localization = visit_silk_road_market_decision_dvin
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
ai_chance = {
value = 1
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_dvin.title_province
value <= squared_distance_small
}
}
}
multiply = 10
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_dvin.title_province
value <= squared_distance_large
}
}
}
multiply = 2
}
if = {
limit = {
root.location = {
squared_distance = {
target = title:c_dvin.title_province
value > squared_distance_huge
}
}
}
multiply = 0.1
}
}
}
}
effect = {
remove_short_term_gold = major_gold_value
switch = {
trigger = yes
scope:c_dvin = { # Dvin
title:c_dvin = { tgp_silk_road_decision_scope_effect = yes }
}
scope:c_jingzhao = { # Chang'an
title:c_jingzhao = { tgp_silk_road_decision_scope_effect = yes }
}
scope:c_lahur = { # Lahur
title:c_lahur = { tgp_silk_road_decision_scope_effect = yes }
}
scope:c_shazhou = { # Dunhuang
title:c_shazhou = { tgp_silk_road_decision_scope_effect = yes }
}
scope:c_lhasa = { # Lhasa
title:c_lhasa = { tgp_silk_road_decision_scope_effect = yes }
}
scope:c_khiva = { # Khiva
title:c_khiva = { tgp_silk_road_decision_scope_effect = yes }
}
}
if = {
limit = { exists = scope:destination_province }
# EVENTS
if = {
limit = { scope:destination_province = root.location }
trigger_event = { id = tgp_silk_road_events.0010 }
}
else = {
custom_tooltip = travel_silk_road_market_desc
start_travel_plan = {
destination = scope:destination_province
on_arrival_event = tgp_silk_road_events.0010
travel_with_domicile = no
return_trip = yes
on_travel_planner_cancel_on_action = silk_road_market_visit_travel_planner_cancel_on_action # here comes the refund!
players_use_planner = yes
#on_arrival_destinations = last
}
}
if = {
limit = { exists = scope:innovation_temp }
custom_tooltip = potential_innovation_at_silk_road_market_desc
}
custom_tooltip = travel_silk_road_market_innovation_warning_tt
if = {
limit = {
root.location = {
squared_distance = {
target = scope:destination_province
value >= squared_distance_huge
}
}
}
custom_tooltip = travel_silk_road_market_long_tt
}
}
}
ai_potential = {
is_at_war = no
short_term_gold >= major_gold_value
ai_greed > low_positive_ai_value
ai_should_focus_on_building_in_their_capital = yes
}
ai_will_do = {
base = 20
modifier = {
add = 10
root.culture.culture_head = root
}
modifier = {
factor = 0.1
any_character_situation = {
situation:silk_road_situation = this
any_participant_group = {
participant_group_type = silk_road_nomad
participant_group_has_character = ROOT
}
}
}
modifier = {
factor = 0.2
any_character_situation = {
situation:silk_road_situation = this
any_participant_group = {
participant_group_type = silk_road_periphery
participant_group_has_character = ROOT
}
}
}
modifier = {
factor = 0.5
any_character_situation = {
situation:silk_road_situation = this
any_participant_group = {
participant_group_type = silk_road_realm
participant_group_has_character = ROOT
}
}
}
modifier = {
factor = 0
NOR = {
silk_road_valid_market_to_visit_trigger = { SUB_REGION = china }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = tibet }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = india }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = central_asia }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
}
}
}
}

View file

@ -0,0 +1,137 @@
#tgp_divine_reincarnation_decision
### Divine Reincarnation ###
tgp_divine_reincarnation_decision = {
title = tgp_divine_reincarnation_decision
desc = tgp_divine_reincarnation_decision_desc
selection_tooltip = tgp_divine_reincarnation_decision_tooltip
picture = {
reference = "gfx/interface/illustrations/decisions/hindu_religious.dds"
}
sort_order = 120
is_shown = {
is_ai = no
faith = { has_doctrine = tenet_reincarnation }
}
is_valid_showing_failures_only = {
is_at_war = no
is_adult = yes
is_available = yes
custom_tooltip = {
text = tgp_divine_reincarnation_decision_valid_child_tt
any_child = {
is_adult = no
faith = root.faith
NOT = { has_trait = reincarnation }
OR = {
this = root.primary_heir
has_relation_favorite_child = root
}
save_temporary_scope_as = child_check
any_close_or_extended_family_member = {
even_if_dead = yes
is_alive = no
sex_same_as = scope:child_check
OR = {
is_grandparent_of = scope:child_check
AND = {
is_grandparent_of = scope:child_check
any_parent = {
is_alive = no
sex_same_as = scope:child_check
}
}
}
}
}
}
}
cooldown = { years = 15 }
widget = {
gui = "decision_view_widget_option_list_generic"
controller = decision_option_list_controller
decision_to_second_step_button = "SELECT_ACTION"
show_from_start = yes
item = { # Primary Heir
value = primary_heir
is_valid = {
custom_tooltip = {
text = tgp_divine_reincarnation_decision_primary_heir_tt
any_child = {
is_primary_heir_of = root
is_adult = no
faith = root.faith
NOT = { has_trait = reincarnation }
}
}
}
localization = tgp_divine_reincarnation_decision_primary_heir_name
icon = "gfx/interface/icons/message_feed/heir.dds"
ai_chance = {
value = 100
}
}
item = { # Favorite Child
value = favorite_child
is_valid = {
custom_tooltip = {
text = tgp_divine_reincarnation_decision_favorite_child_tt
any_relation = {
type = favorite_child
is_adult = no
faith = root.faith
NOT = { has_trait = reincarnation }
this != root.primary_heir
}
}
}
localization = tgp_divine_reincarnation_decision_favorite_child_name
icon = "gfx/interface/icons/character_interactions/designate_favorite.dds"
ai_chance = {
value = 0
}
}
}
cost = {
piety = massive_piety_value
}
effect = {
trigger_event = tgp_decision_events.0200
}
ai_check_interval_by_tier = {
barony = 0
county = 48
duchy = 48
kingdom = 36
empire = 36
hegemony = 36
}
ai_potential = {
is_at_war = no
is_adult = yes
is_available = yes
any_child = { is_adult = no }
piety >= massive_piety_value
}
ai_will_do = {
base = 50
ai_value_modifier = {
ai_zeal = 0.5
}
modifier = {
any_child = { has_trait = reincarnation }
factor = 0.15
}
}
}

View file

@ -0,0 +1,806 @@
#Decisions for and to Tributaries
tribute_mission_decision_mandala = {
picture = {
reference = "gfx/interface/illustrations/decisions/tgp_projects_mandala_capital.dds"
}
decision_group_type = realm
should_create_alert = { always = yes }
desc = tribute_mission_decision_desc_mandala
cooldown = { years = 5 }
is_shown = {
is_tributary = yes
suzerain = { government_has_flag = government_is_mandala }
}
is_valid_showing_failures_only = {
is_available_adult = yes
NOT = { is_at_war_with = suzerain } #Pretty obvious
OR = {
tribute_mission_decision_generic_trigger = yes
tribute_mission_decision_concubine_trigger = { OVERLORD = suzerain }
tribute_mission_decision_eunuch_trigger = { OVERLORD = suzerain }
has_bunga_mas_tribute_trigger = yes
}
}
widget = {
gui = "decision_view_widget_pay_tribute"
controller = decision_option_list_controller
decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"
item = { # Gold
value = tribute_mission_gold
is_valid = { has_gold_tribute_trigger = yes }
localization = tribute_mission_decision_option_gold
icon = "gfx/interface/icons/message_feed/money.dds"
ai_chance = {
value = 20
if = {
limit = { short_term_gold >= excessive_gold_tribute_value }
add = 20
}
if = {
limit = { short_term_gold >= adequate_gold_tribute_value }
add = 20
}
}
}
item = { # Herd
value = tribute_mission_herd
is_valid = { has_herd_tribute_trigger = yes }
localization = tribute_mission_decision_option_herd
icon = "gfx/interface/icons/icon_herd.dds"
ai_chance = {
value = 20
if = {
limit = {
domicile ?= { herd >= excessive_herd_tribute_value }
}
add = 20
}
if = {
limit = {
domicile ?= { herd >= adequate_herd_tribute_value }
}
add = 20
}
}
}
item = { # Artifact
value = tribute_mission_artifact
is_valid = { has_artifact_tribute_trigger = yes }
localization = tribute_mission_decision_option_artifact
icon = "gfx/interface/icons/message_feed/artifact.dds"
ai_chance = { value = 20 }
}
item = { # Concubine
value = tribute_mission_concubine
is_valid = {
has_concubine_tribute_trigger = yes
can_have_concubines_trigger = { CHAR = suzerain }
}
localization = tribute_mission_decision_option_concubine
icon = "gfx/interface/icons/concubine_icon.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
item = { # Eunuch
value = tribute_mission_eunuch
is_valid = {
has_eunuch_tribute_trigger = yes
can_employ_court_eunuchs_trigger = { CHAR = suzerain }
}
localization = tribute_mission_decision_option_eunuch
icon = "gfx/interface/icons/character_interactions/eunuch.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
item = { # Bunga Mas
value = tribute_mission_bunga_mas
is_valid = { has_bunga_mas_tribute_trigger = yes }
localization = tribute_mission_decision_option_bunga_mas
icon = "gfx/interface/icons/artifact/tgp_artifact_golden_flower.dds"
ai_chance = { value = 100 } #The AI can do it? Do it!
}
}
effect = {
custom_tooltip = tribute_mission_decision_effects_mandala_tt
tribute_mission_decision_effect = { TARGET = suzerain }
}
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 0
}
ai_potential = {
tribute_mission_decision_ai_potential_trigger = { TARGET = suzerain }
}
ai_will_do = {
base = 20
tribute_mission_decision_ai_will_do_modifiers = yes
}
}
tribute_mission_decision_china = {
picture = {
reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds"
}
decision_group_type = realm
should_create_alert = { always = yes }
desc = tribute_mission_decision_desc_china
cooldown = { years = 5 }
is_shown = {
title:h_china ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
}
is_valid_showing_failures_only = {
is_available_adult = yes
NOT = { is_at_war_with = title:h_china.holder } #Pretty obvious
OR = {
tribute_mission_decision_generic_trigger = yes
tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_china.holder }
tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_china.holder }
}
}
widget = {
gui = "decision_view_widget_pay_tribute"
controller = decision_option_list_controller
decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"
item = { # Gold
value = tribute_mission_gold
is_valid = { has_gold_tribute_trigger = yes }
localization = tribute_mission_decision_option_gold
icon = "gfx/interface/icons/message_feed/money.dds"
ai_chance = {
value = 20
if = {
limit = { short_term_gold >= excessive_gold_tribute_value }
add = 20
}
if = {
limit = { short_term_gold >= adequate_gold_tribute_value }
add = 20
}
}
}
item = { # Herd
value = tribute_mission_herd
is_valid = { has_herd_tribute_trigger = yes }
localization = tribute_mission_decision_option_herd
icon = "gfx/interface/icons/icon_herd.dds"
ai_chance = {
value = 20
if = {
limit = {
domicile ?= { herd >= excessive_herd_tribute_value }
}
add = 20
}
if = {
limit = {
domicile ?= { herd >= adequate_herd_tribute_value }
}
add = 20
}
}
}
item = { # Artifact
value = tribute_mission_artifact
is_valid = { has_artifact_tribute_trigger = yes }
localization = tribute_mission_decision_option_artifact
icon = "gfx/interface/icons/message_feed/artifact.dds"
ai_chance = { value = 20 }
}
item = { # Concubine
value = tribute_mission_concubine
is_valid = {
has_concubine_tribute_trigger = yes
title:h_china.holder = { is_adult = yes }
can_have_concubines_trigger = { CHAR = title:h_china.holder }
}
localization = tribute_mission_decision_option_concubine
icon = "gfx/interface/icons/concubine_icon.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
item = { # Eunuch
value = tribute_mission_eunuch
is_valid = {
has_eunuch_tribute_trigger = yes
can_employ_court_eunuchs_trigger = { CHAR = title:h_china.holder }
}
localization = tribute_mission_decision_option_eunuch
icon = "gfx/interface/icons/character_interactions/eunuch.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
}
effect = {
custom_tooltip = tribute_mission_decision_effects_china_tt
tribute_mission_decision_effect = { TARGET = title:h_china.holder }
}
ai_check_interval_by_tier = {
barony = 0
county = 72
duchy = 36
kingdom = 36
empire = 36
hegemony = 0
}
ai_potential = {
exists = title:h_china.holder
tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_china.holder }
}
ai_will_do = {
base = 20
tribute_mission_decision_ai_will_do_modifiers = yes
modifier = {
add = -25
primary_title.tier = tier_kingdom
NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_china.holder } }
}
}
}
tribute_mission_decision_roman_empire = {
picture = {
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
}
decision_group_type = realm
should_create_alert = { always = yes }
desc = tribute_mission_decision_desc_roman_empire
cooldown = { years = 5 }
is_shown = {
title:h_roman_empire ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_roman_empire }
}
is_valid_showing_failures_only = {
is_available_adult = yes
NOT = { is_at_war_with = title:h_roman_empire.holder } #Pretty obvious
OR = {
tribute_mission_decision_generic_trigger = yes
tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_roman_empire.holder }
tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_roman_empire.holder }
}
}
widget = {
gui = "decision_view_widget_pay_tribute"
controller = decision_option_list_controller
decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"
item = { # Gold
value = tribute_mission_gold
is_valid = { has_gold_tribute_trigger = yes }
localization = tribute_mission_decision_option_gold
icon = "gfx/interface/icons/message_feed/money.dds"
ai_chance = {
value = 20
if = {
limit = { short_term_gold >= excessive_gold_tribute_value }
add = 20
}
if = {
limit = { short_term_gold >= adequate_gold_tribute_value }
add = 20
}
}
}
item = { # Herd
value = tribute_mission_herd
is_valid = { has_herd_tribute_trigger = yes }
localization = tribute_mission_decision_option_herd
icon = "gfx/interface/icons/icon_herd.dds"
ai_chance = {
value = 20
if = {
limit = {
domicile ?= { herd >= excessive_herd_tribute_value }
}
add = 20
}
if = {
limit = {
domicile ?= { herd >= adequate_herd_tribute_value }
}
add = 20
}
}
}
item = { # Artifact
value = tribute_mission_artifact
is_valid = { has_artifact_tribute_trigger = yes }
localization = tribute_mission_decision_option_artifact
icon = "gfx/interface/icons/message_feed/artifact.dds"
ai_chance = { value = 20 }
}
item = { # Concubine
value = tribute_mission_concubine
is_valid = {
has_concubine_tribute_trigger = yes
title:h_roman_empire.holder = { is_adult = yes }
can_have_concubines_trigger = { CHAR = title:h_roman_empire.holder }
}
localization = tribute_mission_decision_option_concubine
icon = "gfx/interface/icons/concubine_icon.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
item = { # Eunuch
value = tribute_mission_eunuch
is_valid = {
has_eunuch_tribute_trigger = yes
can_employ_court_eunuchs_trigger = { CHAR = title:h_roman_empire.holder }
}
localization = tribute_mission_decision_option_eunuch
icon = "gfx/interface/icons/character_interactions/eunuch.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
}
effect = {
custom_tooltip = tribute_mission_decision_effects_roman_empire_tt
tribute_mission_decision_effect = { TARGET = title:h_roman_empire.holder }
}
ai_check_interval_by_tier = {
barony = 0
county = 72
duchy = 36
kingdom = 36
empire = 36
hegemony = 0
}
ai_potential = {
exists = title:h_roman_empire.holder
tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_roman_empire.holder }
}
ai_will_do = {
base = 20
tribute_mission_decision_ai_will_do_modifiers = yes
modifier = {
add = -25
primary_title.tier = tier_kingdom
NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_roman_empire.holder } }
}
}
}
tribute_mission_decision_eastern_roman_empire = {
picture = {
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
}
decision_group_type = realm
should_create_alert = { always = yes }
desc = tribute_mission_decision_desc_eastern_roman_empire
cooldown = { years = 5 }
is_shown = {
title:h_eastern_roman_empire ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_eastern_roman_empire }
}
is_valid_showing_failures_only = {
is_available_adult = yes
NOT = { is_at_war_with = title:h_eastern_roman_empire.holder } #Pretty obvious
OR = {
tribute_mission_decision_generic_trigger = yes
tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_eastern_roman_empire.holder }
tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_eastern_roman_empire.holder }
}
}
widget = {
gui = "decision_view_widget_pay_tribute"
controller = decision_option_list_controller
decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"
item = { # Gold
value = tribute_mission_gold
is_valid = { has_gold_tribute_trigger = yes }
localization = tribute_mission_decision_option_gold
icon = "gfx/interface/icons/message_feed/money.dds"
ai_chance = {
value = 20
if = {
limit = { short_term_gold >= excessive_gold_tribute_value }
add = 20
}
if = {
limit = { short_term_gold >= adequate_gold_tribute_value }
add = 20
}
}
}
item = { # Herd
value = tribute_mission_herd
is_valid = { has_herd_tribute_trigger = yes }
localization = tribute_mission_decision_option_herd
icon = "gfx/interface/icons/icon_herd.dds"
ai_chance = {
value = 20
if = {
limit = {
domicile ?= { herd >= excessive_herd_tribute_value }
}
add = 20
}
if = {
limit = {
domicile ?= { herd >= adequate_herd_tribute_value }
}
add = 20
}
}
}
item = { # Artifact
value = tribute_mission_artifact
is_valid = { has_artifact_tribute_trigger = yes }
localization = tribute_mission_decision_option_artifact
icon = "gfx/interface/icons/message_feed/artifact.dds"
ai_chance = { value = 20 }
}
item = { # Concubine
value = tribute_mission_concubine
is_valid = {
has_concubine_tribute_trigger = yes
title:h_eastern_roman_empire.holder = { is_adult = yes }
can_have_concubines_trigger = { CHAR = title:h_eastern_roman_empire.holder }
}
localization = tribute_mission_decision_option_concubine
icon = "gfx/interface/icons/concubine_icon.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
item = { # Eunuch
value = tribute_mission_eunuch
is_valid = {
has_eunuch_tribute_trigger = yes
can_employ_court_eunuchs_trigger = { CHAR = title:h_eastern_roman_empire.holder }
}
localization = tribute_mission_decision_option_eunuch
icon = "gfx/interface/icons/character_interactions/eunuch.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
}
effect = {
custom_tooltip = tribute_mission_decision_effects_eastern_roman_empire_tt
tribute_mission_decision_effect = { TARGET = title:h_eastern_roman_empire.holder }
}
ai_check_interval_by_tier = {
barony = 0
county = 72
duchy = 36
kingdom = 36
empire = 36
hegemony = 0
}
ai_potential = {
exists = title:h_eastern_roman_empire.holder
tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_eastern_roman_empire.holder }
}
ai_will_do = {
base = 20
tribute_mission_decision_ai_will_do_modifiers = yes
modifier = {
add = -25
primary_title.tier = tier_kingdom
NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_eastern_roman_empire.holder } }
}
}
}
tribute_mission_decision_dar_al_islam = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
}
decision_group_type = realm
should_create_alert = { always = yes }
desc = tribute_mission_decision_desc_dar_al_islam
cooldown = { years = 5 }
is_shown = {
title:h_dar_al_islam ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_dar_al_islam }
}
is_valid_showing_failures_only = {
is_available_adult = yes
NOT = { is_at_war_with = title:h_dar_al_islam.holder } #Pretty obvious
OR = {
tribute_mission_decision_generic_trigger = yes
tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_dar_al_islam.holder }
tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_dar_al_islam.holder }
}
}
widget = {
gui = "decision_view_widget_pay_tribute"
controller = decision_option_list_controller
decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"
item = { # Gold
value = tribute_mission_gold
is_valid = { has_gold_tribute_trigger = yes }
localization = tribute_mission_decision_option_gold
icon = "gfx/interface/icons/message_feed/money.dds"
ai_chance = {
value = 20
if = {
limit = { short_term_gold >= excessive_gold_tribute_value }
add = 20
}
if = {
limit = { short_term_gold >= adequate_gold_tribute_value }
add = 20
}
}
}
item = { # Herd
value = tribute_mission_herd
is_valid = { has_herd_tribute_trigger = yes }
localization = tribute_mission_decision_option_herd
icon = "gfx/interface/icons/icon_herd.dds"
ai_chance = {
value = 20
if = {
limit = {
domicile ?= { herd >= excessive_herd_tribute_value }
}
add = 20
}
if = {
limit = {
domicile ?= { herd >= adequate_herd_tribute_value }
}
add = 20
}
}
}
item = { # Artifact
value = tribute_mission_artifact
is_valid = { has_artifact_tribute_trigger = yes }
localization = tribute_mission_decision_option_artifact
icon = "gfx/interface/icons/message_feed/artifact.dds"
ai_chance = { value = 20 }
}
item = { # Concubine
value = tribute_mission_concubine
is_valid = {
has_concubine_tribute_trigger = yes
title:h_dar_al_islam.holder = { is_adult = yes }
can_have_concubines_trigger = { CHAR = title:h_dar_al_islam.holder }
}
localization = tribute_mission_decision_option_concubine
icon = "gfx/interface/icons/concubine_icon.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
item = { # Eunuch
value = tribute_mission_eunuch
is_valid = {
has_eunuch_tribute_trigger = yes
can_employ_court_eunuchs_trigger = { CHAR = title:h_dar_al_islam.holder }
}
localization = tribute_mission_decision_option_eunuch
icon = "gfx/interface/icons/character_interactions/eunuch.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
}
effect = {
custom_tooltip = tribute_mission_decision_effects_dar_al_islam_tt
tribute_mission_decision_effect = { TARGET = title:h_dar_al_islam.holder }
}
ai_check_interval_by_tier = {
barony = 0
county = 72
duchy = 36
kingdom = 36
empire = 36
hegemony = 0
}
ai_potential = {
exists = title:h_dar_al_islam.holder
tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_dar_al_islam.holder }
}
ai_will_do = {
base = 20
tribute_mission_decision_ai_will_do_modifiers = yes
modifier = {
add = -25
primary_title.tier = tier_kingdom
NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_dar_al_islam.holder } }
}
}
}
tribute_mission_decision_india = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
}
decision_group_type = realm
should_create_alert = { always = yes }
desc = tribute_mission_decision_desc_india
cooldown = { years = 5 }
is_shown = {
title:h_india ?= { is_title_created = yes }
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_india }
}
is_valid_showing_failures_only = {
is_available_adult = yes
NOT = { is_at_war_with = title:h_india.holder } #Pretty obvious
OR = {
tribute_mission_decision_generic_trigger = yes
tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_india.holder }
tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_india.holder }
}
}
widget = {
gui = "decision_view_widget_pay_tribute"
controller = decision_option_list_controller
decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON"
item = { # Gold
value = tribute_mission_gold
is_valid = { has_gold_tribute_trigger = yes }
localization = tribute_mission_decision_option_gold
icon = "gfx/interface/icons/message_feed/money.dds"
ai_chance = {
value = 20
if = {
limit = { short_term_gold >= excessive_gold_tribute_value }
add = 20
}
if = {
limit = { short_term_gold >= adequate_gold_tribute_value }
add = 20
}
}
}
item = { # Herd
value = tribute_mission_herd
is_valid = { has_herd_tribute_trigger = yes }
localization = tribute_mission_decision_option_herd
icon = "gfx/interface/icons/icon_herd.dds"
ai_chance = {
value = 20
if = {
limit = {
domicile ?= { herd >= excessive_herd_tribute_value }
}
add = 20
}
if = {
limit = {
domicile ?= { herd >= adequate_herd_tribute_value }
}
add = 20
}
}
}
item = { # Artifact
value = tribute_mission_artifact
is_valid = { has_artifact_tribute_trigger = yes }
localization = tribute_mission_decision_option_artifact
icon = "gfx/interface/icons/message_feed/artifact.dds"
ai_chance = { value = 20 }
}
item = { # Concubine
value = tribute_mission_concubine
is_valid = {
has_concubine_tribute_trigger = yes
title:h_india.holder = { is_adult = yes }
can_have_concubines_trigger = { CHAR = title:h_india.holder }
}
localization = tribute_mission_decision_option_concubine
icon = "gfx/interface/icons/concubine_icon.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
item = { # Eunuch
value = tribute_mission_eunuch
is_valid = {
has_eunuch_tribute_trigger = yes
can_employ_court_eunuchs_trigger = { CHAR = title:h_india.holder }
}
localization = tribute_mission_decision_option_eunuch
icon = "gfx/interface/icons/character_interactions/eunuch.dds"
ai_chance = { value = 50 } #The AI can do it? Do it!
}
}
effect = {
custom_tooltip = tribute_mission_decision_effects_india_tt
tribute_mission_decision_effect = { TARGET = title:h_india.holder }
}
ai_check_interval_by_tier = {
barony = 0
county = 72
duchy = 36
kingdom = 36
empire = 36
hegemony = 0
}
ai_potential = {
exists = title:h_india.holder
tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_india.holder }
}
ai_will_do = {
base = 20
tribute_mission_decision_ai_will_do_modifiers = yes
modifier = {
add = -25
primary_title.tier = tier_kingdom
NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_india.holder } }
}
}
}