ALL THE WAY TO DECISIONS DONE

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

View file

@ -20,9 +20,9 @@ hold_triumph_decision = {
decision_group_type = roman
is_shown = {
has_ep3_dlc_trigger = yes
culture ?= { has_cultural_parameter = holds_triumphs }
is_roman_emperor_trigger = yes
culture = { has_cultural_parameter = holds_triumphs }
has_ep3_dlc_trigger = yes
}
is_valid = {
@ -32,10 +32,7 @@ hold_triumph_decision = {
}
is_valid_showing_failures_only = {
is_alive = yes
is_available_healthy_adult = yes
NOT = { exists = involved_activity }
is_imprisoned = no
}
cost = {
@ -43,7 +40,7 @@ hold_triumph_decision = {
value = 0
if = {
limit = {
NOR = {
NOR = {
has_treasury = yes
has_character_flag = free_triumph_flag
}
@ -1623,7 +1620,7 @@ hold_triumph_decision = {
# }
#
# is_valid_showing_failures_only = {
# NOT = { exists = involved_activity }
# is_in_activity = no
# is_imprisoned = no
# any_powerful_family = { }
# }
@ -1717,18 +1714,17 @@ change_state_faith = {
is_shown = {
has_ep3_dlc_trigger = yes
government_allows = state_faith
exists = primary_title.state_faith
faith != primary_title.state_faith
exists = primary_title.state_rite
rite != primary_title.state_rite
}
is_valid = {
government_allows = state_faith
NOT = { faith ?= top_liege.primary_title.state_faith }
NOT = { rite ?= top_liege.primary_title.state_rite }
}
is_valid_showing_failures_only = {
NOT = { exists = involved_activity }
is_imprisoned = no
is_available = yes
}
cost = {
@ -1798,17 +1794,26 @@ change_state_faith = {
effect = {
hidden_effect = {
primary_title.state_faith = { save_scope_as = old_faith }
root.faith = { save_scope_as = new_faith }
primary_title.state_rite = { save_scope_as = old_rite }
root.rite = { save_scope_as = new_rite }
create_character_memory = { type = changed_state_faith_memory }
scope:new_memory = {
set_variable = {
name = old_rite
value = scope:old_rite
}
set_variable = {
name = new_rite
value = scope:new_rite
}
# Keep old_faith/new_faith for savegame and non-English loc compatibility
set_variable = {
name = old_faith
value = scope:old_faith
value = scope:old_rite.faith
}
set_variable = {
name = new_faith
value = scope:new_faith
value = scope:new_rite.faith
}
set_variable = {
name = title
@ -1817,8 +1822,11 @@ change_state_faith = {
}
}
primary_title = { set_state_faith = root.faith }
capital_county = { set_county_faith = root.faith }
primary_title = {
set_state_rite = root.rite
pam_tenet_popularity_boost_rite_effect = { RITE = state_rite }
}
capital_county = { set_county_rite = root.rite }
# Some vassals who like you the most will convert
every_vassal = {
@ -1828,23 +1836,36 @@ change_state_faith = {
target = root
value >= 30
}
faith != root.faith
rite != root.rite
NOT = { has_vassal_stance = zealot }
is_ai = yes
# Mirror the conversion-rule gates the effect cannot pass
is_adult = yes
NOT = { faith.religious_head ?= this }
pam_is_antipope_trigger = no
}
hidden_effect = {
faith = { save_scope_as = old_faith }
root.faith = { save_scope_as = new_faith }
rite = { save_scope_as = old_rite }
root.rite = { save_scope_as = new_rite }
create_character_memory = { type = adopted_state_faith_memory }
scope:new_memory = {
set_variable = {
name = old_rite
value = scope:old_rite
}
set_variable = {
name = new_rite
value = scope:new_rite
}
# Savegame and non-English loc compatibility; do not rename or remove
set_variable = {
name = old_faith
value = scope:old_faith
value = scope:old_rite.faith
}
set_variable = {
name = new_faith
value = scope:new_faith
value = scope:new_rite.faith
}
set_variable = {
name = title
@ -1853,7 +1874,7 @@ change_state_faith = {
}
}
set_character_faith = root.faith
set_character_rite_with_conversion = root.rite
}
# Opinion malus with Zealot vassals
@ -1861,7 +1882,7 @@ change_state_faith = {
every_vassal = {
vassal_stance = zealot
limit = {
faith != root.faith
rite != root.rite
}
custom = every_zealot_vassal
add_opinion = {
@ -1886,7 +1907,7 @@ change_state_faith = {
ai_potential = {
government_has_flag = government_is_administrative
primary_title.tier >= tier_empire
faith != primary_title.state_faith
rite != primary_title.state_rite
}
ai_will_do = {
@ -1969,43 +1990,51 @@ adopt_state_faith = {
selection_tooltip = adopt_state_faith_decision_selection_tooltip
is_shown = {
top_liege ?= { government_allows = state_faith }
NOT = { rite ?= top_liege.primary_title.state_rite }
exists = top_liege.primary_title.state_rite
has_ep3_dlc_trigger = yes
top_liege = { government_allows = state_faith }
exists = top_liege.primary_title.state_faith
NOT = { faith ?= top_liege.primary_title.state_faith }
}
is_valid = {
top_liege = { government_allows = state_faith }
NOT = { faith ?= top_liege.primary_title.state_faith }
NOT = { rite ?= top_liege.primary_title.state_rite }
}
is_valid_showing_failures_only = {
NOT = {
custom_description = {
text = "is_in_an_activity"
exists = involved_activity
}
}
is_imprisoned = no
is_physically_able_adult = yes
is_in_activity = no
NOT = { faith.religious_head ?= root }
custom_tooltip = {
text = adopt_state_faith_heresy_cooldown_tt
NOT = { has_character_flag = embraced_heresy_recently }
}
}
cost = {}
effect = {
hidden_effect = {
faith = { save_scope_as = old_faith }
top_liege.faith = { save_scope_as = new_faith }
rite = { save_scope_as = old_rite }
top_liege.primary_title.state_rite = { save_scope_as = new_rite }
create_character_memory = { type = adopted_state_faith_memory }
scope:new_memory = {
set_variable = {
name = old_rite
value = scope:old_rite
}
set_variable = {
name = new_rite
value = scope:new_rite
}
# Savegame and non-English loc compatibility; do not rename or remove
set_variable = {
name = old_faith
value = scope:old_faith
value = scope:old_rite.faith
}
set_variable = {
name = new_faith
value = scope:new_faith
value = scope:new_rite.faith
}
set_variable = {
name = title
@ -2014,18 +2043,29 @@ adopt_state_faith = {
}
}
set_character_faith = top_liege.primary_title.state_faith
# Changing rite into another faith costs piety and can fail silently, so we change the faith first
if = {
limit = { NOT = { faith = top_liege.primary_title.state_rite.faith } }
set_character_faith_with_conversion = top_liege.primary_title.state_rite.faith
}
if = {
limit = { NOT = { rite = top_liege.primary_title.state_rite } }
set_character_rite_with_conversion = top_liege.primary_title.state_rite
}
if = {
limit = { NOT = { has_character_flag = adopted_state_faith } }
if = {
limit = { government_has_mechanic = administrative }
limit = { government_has_flag = government_has_influence }
change_influence = monumental_influence_gain
}
add_piety = massive_piety_gain
top_liege = {
if = {
limit = { faith = primary_title.state_faith }
limit = {
rite = primary_title.state_rite
this != root
}
add_opinion = {
target = root
modifier = converted_to_state_faith_opinion
@ -2035,7 +2075,7 @@ adopt_state_faith = {
every_vassal = {
custom = every_governor_of_state_faith
limit = {
faith = top_liege.primary_title.state_faith
rite = top_liege.primary_title.state_rite
this != root
}
add_opinion = {
@ -2050,10 +2090,9 @@ adopt_state_faith = {
}
ai_potential = {
government_has_flag = government_is_administrative
NOT = { has_trait = zealous } # A zealous vassal would presumably not want to change their faith
exists = top_liege.primary_title.state_faith
faith != top_liege.primary_title.state_faith
exists = top_liege.primary_title.state_rite
rite != top_liege.primary_title.state_rite
}
ai_will_do = {
@ -2062,7 +2101,7 @@ adopt_state_faith = {
is_governor = yes
add = 40
}
# Personality
modifier = {
is_governor = yes
@ -2097,39 +2136,39 @@ adopt_state_faith = {
has_trait = stubborn
add = -50
}
# Faith
modifier = { # More likely to switch away from an unreformed faith
faith ?= { has_doctrine_parameter = unreformed }
add = 20
}
modifier = { # Communal Identity make it more likely to adopt faith if they share same culture with the top liege
faith ?= { has_doctrine_parameter = same_culture_conversion_bonus_active }
rite ?= { rite_has_parameter = same_culture_conversion_bonus_active }
culture ?= top_liege.culture
add = 10
}
modifier = { # Some faith are more likely to be abandoned
faith ?= { has_doctrine_parameter = unattractive_for_character_conversions }
rite ?= { rite_has_parameter = unattractive_for_character_conversions }
add = 10
}
modifier = { # Don't adopt the state faith if you have the same faith as the top liege (if the emperor can have this faith, so can we!)
faith = top_liege.faith
modifier = { # Don't adopt the state faith if you have the same rite as the top liege (if the emperor can have this rite, so can we!)
rite = top_liege.rite
top_liege != this
factor = 0
}
# Other
modifier = {
has_vassal_stance = zealot
factor = 0.3
}
# Non-admin vassals only consider converting if their faith hostility is low enough
# Non-admin vassals only consider converting if their rite hostility is low enough
modifier = {
NOT = { government_has_flag = government_is_administrative }
faith ?= {
faith_hostility_level = {
target = root.top_liege.primary_title.state_faith
rite ?= {
rite_hostility_level = {
target = root.top_liege.primary_title.state_rite
value >= faith_hostile_level
}
}
@ -2150,7 +2189,7 @@ found_salon_decision = {
decision_group_type = adventurer
is_shown = {
has_ep3_dlc_trigger = yes
has_playable_adventurer_dlc_trigger = yes
has_trait = violet_poet
NOT = { #You can only do it once.
is_target_in_global_variable_list = {
@ -2372,23 +2411,21 @@ commission_icon_decision = {
cooldown = { days = standard_commission_artifact_cooldown_time }
sort_order = 150
decision_group_type = admin
is_shown = {
has_dlc_feature = roads_to_power
is_landed_or_landless_administrative = yes
is_landed_or_landless_administrative_or_theocratic = yes
OR = {
religion = religion:eastern_orthodox_religion
religion = religion:oriental_orthodox_religion
faith = faith:orthodox
faith ?= faith:orthodox
faiths_are_in_orthodox_christianity_group = { FAITH_1 = faith:orthodox FAITH_2 = root.faith }
}
faith_is_aniconic_trigger = no
has_dlc_feature = roads_to_power
}
is_valid_showing_failures_only = {
trigger_if = {
limit = {
government_has_mechanic = administrative
government_has_flag = government_has_estate
}
domicile ?= {
has_domicile_building_or_higher = temple_monastery_04
@ -2400,6 +2437,7 @@ commission_icon_decision = {
minimum_cost = {
# Matches the cost defined in 00_inspirations.txt
gold = {
root = { save_temporary_scope_as = inspiration_sponsor }
value = basic_fund_inspiration_cost
if = {
limit = { # Estate discount bonus
@ -2412,7 +2450,8 @@ commission_icon_decision = {
widget = {
gui = "decision_view_widget_commission_artifact"
controller = decision_option_list_controller
decision_to_second_step_button = "COMMISSION_ARTIFACT_DECISION_NEXT_STEP_BUTTON"
decision_to_second_step_button = "COMMISSION_ARTIFACT_DECISION_NEXT_STEP_BUTTON"
show_from_start = yes
# Personal Artifacts are always valid to commission
item = {
@ -2586,7 +2625,7 @@ commission_icon_decision = {
empire = 36
hegemony = 36
}
ai_potential = {
is_at_war = no
ai_greed < medium_positive_ai_value
@ -2621,13 +2660,10 @@ embrace_heresy_decision = {
is_adult = yes
top_liege != this
top_liege ?= { is_ai = yes }
top_liege.primary_title.state_faith ?= {
OR = {
NOT = { has_doctrine = eastern_hostility_doctrine }
has_doctrine = heresy_hostility_doctrine #Zoroastrians also get heresies, despite being Eastern.
}
top_liege.primary_title.state_rite.faith ?= {
faith_can_have_heresy_trigger = yes
}
this != top_liege.primary_title.state_faith.religious_head
NOT = { this ?= top_liege.primary_title.state_rite.head_of_rite }
}
is_valid = {
@ -2655,8 +2691,6 @@ embrace_heresy_decision = {
}
is_valid_showing_failures_only = {
NOT = { exists = involved_activity }
is_imprisoned = no
is_available = yes
}
@ -2697,33 +2731,28 @@ push_heresy_as_state_faith = {
is_shown = {
government_allows = state_faith
is_adult = yes
top_liege != this
top_liege ?= { is_ai = yes }
top_liege.primary_title.state_faith ?= {
OR = {
NOT = { has_doctrine = eastern_hostility_doctrine }
has_doctrine = heresy_hostility_doctrine #Zoroastrians also get heresies, despite being Eastern.
}
}
NOR = {
this = top_liege.primary_title.state_faith.religious_head
faith = top_liege.primary_title.state_faith
}
has_variable = heresy_embraced
NOR = {
rite ?= top_liege.primary_title.state_rite
this ?= top_liege.primary_title.state_rite.head_of_rite
}
top_liege.primary_title.state_rite.faith ?= {
faith_can_have_heresy_trigger = yes
}
top_liege ?= { is_ai = yes }
top_liege != this
is_adult = yes
}
is_valid = {
custom_tooltip = {
text = has_embraced_heresy_tt
has_variable = heresy_embraced
faith = var:heresy_embraced
rite = var:heresy_embraced
}
}
is_valid_showing_failures_only = {
NOT = { exists = involved_activity }
is_imprisoned = no
is_available = yes
}
@ -2736,10 +2765,10 @@ push_heresy_as_state_faith = {
effect = {
custom_tooltip = try_to_push_faith_with_emperor_tt
save_scope_as = heretic
scope:heretic.faith = { save_scope_as = heresy }
scope:heretic.rite = { save_scope_as = heresy }
top_liege = {
trigger_event = {
id = ep3_decisions_event.5021
id = ep3_decisions_event.5021
days = 1
}
}
@ -2776,21 +2805,21 @@ establish_silk_production_decision = {
decision_group_type = admin
is_shown = {
has_ep3_dlc_trigger = yes
government_has_mechanic = administrative
domicile ?= {
is_domicile_type = estate
}
has_ep3_dlc_trigger = yes
OR = {
this = house.house_head
AND = {
is_ai = no
house.house_head = top_liege
house.house_head ?= top_liege
}
}
domicile ?= {
is_domicile_type = estate
top_liege ?= {
is_roman_emperor_primary_title_trigger = yes
}
# top_liege ?= {
# is_roman_emperor_primary_title_trigger = yes
## }
NOT = {
house = {
has_house_modifier = ep3_unlocked_silk
@ -2801,7 +2830,7 @@ establish_silk_production_decision = {
is_valid = {
trigger_if = {
limit = { top_liege = this }
# is_roman_emperor_trigger = yes
is_roman_emperor_trigger = yes
OR = {
has_realm_law = imperial_bureaucracy_2
has_realm_law = imperial_bureaucracy_3
@ -2836,7 +2865,8 @@ establish_silk_production_decision = {
}
send_interface_toast = {
type = msg_domicile_building_unlocked
title = unlocked_estate_silk_buildings_t
title = ep3_unlocked_silk
desc = unlocked_estate_silk_buildings_t
}
if = {
limit = {
@ -2889,7 +2919,7 @@ commission_silk_regalia_decision = {
desc = commission_silk_regalia_decision_desc
selection_tooltip = commission_silk_regalia_decision_tooltip
decision_group_type = admin
is_shown = {
has_dlc_feature = roads_to_power
government_has_mechanic = administrative
@ -2905,6 +2935,7 @@ commission_silk_regalia_decision = {
minimum_cost = {
# Matches the cost defined in 00_inspirations.txt
gold = {
root = { save_temporary_scope_as = inspiration_sponsor }
value = basic_fund_inspiration_cost
if = {
limit = { # Estate discount bonus
@ -2987,7 +3018,7 @@ commission_silk_regalia_decision = {
empire = 60
hegemony = 60
}
ai_potential = {
is_at_war = no
ai_greed < medium_positive_ai_value
@ -3017,23 +3048,23 @@ foster_integration_decision = {
desc = foster_integration_decision_desc
selection_tooltip = foster_integration_decision_tooltip
decision_group_type = admin
is_shown = {
has_dlc_feature = roads_to_power
is_adult = yes
this = house.house_head
government_has_mechanic = administrative
domicile ?= {
is_domicile_type = estate
}
exists = top_liege
root.top_liege != root
OR = {
top_liege.primary_title = {
top_liege.primary_title ?= {
NOT = { is_de_jure_liege_or_above_target = root.domicile.domicile_location.county }
}
domicile.domicile_location.county.culture != root.top_liege.culture
}
has_dlc_feature = roads_to_power
is_adult = yes
this = house.house_head
exists = top_liege
}
is_valid = {
@ -3049,10 +3080,7 @@ foster_integration_decision = {
}
is_valid_showing_failures_only = {
NOT = { exists = involved_activity }
is_imprisoned = no
is_available = yes
is_at_war = no
}
cost = {
@ -3105,7 +3133,10 @@ foster_integration_decision = {
}
if = {
limit = {
top_liege = { is_ai = yes }
top_liege = {
is_ai = yes
this != root
}
}
top_liege = {
add_opinion = {
@ -3152,7 +3183,7 @@ foster_integration_decision = {
empire = 36
hegemony = 0
}
ai_potential = {
government_has_mechanic = administrative
exists = top_liege
@ -3187,7 +3218,7 @@ gather_faction_support_decision = {
desc = gather_faction_support_decision_desc
selection_tooltip = gather_faction_support_decision_tooltip
decision_group_type = admin
is_shown = {
has_dlc_feature = roads_to_power
government_has_mechanic = administrative
@ -3213,10 +3244,7 @@ gather_faction_support_decision = {
}
is_valid_showing_failures_only = {
NOT = { exists = involved_activity }
is_imprisoned = no
is_available = yes
is_at_war = no
is_available_at_peace = yes
}
cost = {
@ -3247,7 +3275,7 @@ gather_faction_support_decision = {
empire = 60
hegemony = 0
}
ai_potential = {
government_has_mechanic = administrative
exists = top_liege