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

@ -51,11 +51,11 @@ convert_to_feudalism_liege_converted_decision = {
is_shown = {
government_has_flag = government_is_tribal
liege = {
liege ?= {
OR = {
government_has_flag = government_is_japan_feudal
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
government_has_flag = government_is_japan_feudal
}
}
}
@ -171,14 +171,14 @@ convert_clan_to_feudalism_through_liege_decision = {
is_shown = {
government_has_flag = government_is_clan
top_liege != this
liege = {
liege ?= {
government_has_flag = government_is_feudal
}
top_liege != this
}
is_valid = {
custom_description = {
custom_tooltip = {
text = same_faith_as_liege
OR = {
religion = liege.religion
@ -190,7 +190,7 @@ convert_clan_to_feudalism_through_liege_decision = {
}
}
}
custom_description = {
custom_tooltip = {
text = same_culture_as_liege
OR = {
culture = liege.culture
@ -262,13 +262,13 @@ convert_feudalism_to_clan_through_liege_decision = {
is_shown = {
government_has_flag = government_is_feudal
top_liege != this
liege = {
liege ?= {
government_has_flag = government_is_clan
}
}
is_valid = {
custom_description = {
custom_tooltip = {
text = same_faith_as_liege
OR = {
religion = liege.religion
@ -280,7 +280,7 @@ convert_feudalism_to_clan_through_liege_decision = {
}
}
}
custom_description = {
custom_tooltip = {
text = same_culture_as_liege
OR = {
culture = liege.culture
@ -365,15 +365,13 @@ convert_whole_realm_to_feudalism_decision = {
is_shown = {
government_has_flag = government_is_tribal
OR = {
top_liege = this
AND = {
top_liege != this
liege = {
NOR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
}
trigger_if = {
limit = { top_liege != this }
liege = {
NOR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
government_has_flag = government_is_japan_feudal
}
}
}
@ -445,13 +443,6 @@ convert_whole_realm_to_feudalism_decision = {
}
}
}
trigger_if = {
limit = {
government_has_flag = government_is_wanua
is_ai = yes
}
faith = { has_doctrine = doctrine_monotheist }
}
}
is_valid_showing_failures_only = {
@ -482,7 +473,7 @@ convert_whole_realm_to_feudalism_decision = {
}
ai_potential = {
NOT = { mpo_has_gok_mongol_empire_trigger = yes } #Stop the Mongols from slowing their conquest.
NOT = { mpo_has_gok_mongol_empire_trigger = yes } #Stop the Mongols from slowing their conquest.
}
ai_will_do = {
@ -516,20 +507,20 @@ convert_to_tribalism_decision = {
is_shown = {
is_landed = yes
primary_title.tier >= tier_county
NOT = {
any_held_title = {
title_tier = county
title_province = {
NOT = { has_holding_type = tribal_holding }
}
}
}
OR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_clan
government_has_flag = government_is_mandala
}
NOT = {
any_held_title = {
title_tier = county
title_province ?= {
NOT = { has_holding_type = tribal_holding }
}
}
}
primary_title.tier >= tier_county
}
is_valid = {
@ -693,6 +684,7 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = {
# by (probably) Mathilda Bjarnehed
##################################################
### Consecrate Bloodline ###
declare_bloodline_holy_decision = {
picture = {
trigger = {
@ -844,22 +836,18 @@ strengthen_bloodline_decision = {
is_shown = {
is_lowborn = no
NOT = {
dynasty = {
has_dynasty_modifier = strong_blood
}
}
is_landed = yes
OR = {
has_trait = intellect_good
has_trait = beauty_good
has_trait = physique_good
has_trait = beauty_good
any_child = {
dynasty = root.dynasty
OR = {
has_trait = intellect_good
has_trait = beauty_good
has_trait = physique_good
}
dynasty ?= root.dynasty
}
AND = {
player_heir ?= {
@ -871,7 +859,11 @@ strengthen_bloodline_decision = {
}
}
}
is_landless_adventurer = no
NOT = {
dynasty = {
has_dynasty_modifier = strong_blood
}
}
}
is_valid = {
@ -964,6 +956,13 @@ dynasty_of_many_crowns_decision = {
}
}
highest_held_title_tier >= tier_kingdom
dynasty = {
any_dynasty_member = {
count >= 2
is_independent_ruler = yes
highest_held_title_tier >= tier_kingdom
}
}
}
is_valid = {
@ -1056,6 +1055,7 @@ found_kingdom_decision = {
hegemony = 0
}
desc = found_kingdom_decision_desc
sort_order = 75
is_shown = {
highest_held_title_tier = tier_duchy
@ -1063,9 +1063,49 @@ found_kingdom_decision = {
has_game_rule = off_custom_kingdoms
}
is_landed_or_landless_administrative = yes
NOT = { government_has_flag = government_is_republic }
is_confederation_member = no
}
#Titles outside your realm that you can choose to add
widget = {
gui = "decision_view_widget_option_list_generic"
controller = decision_option_list_controller
decision_to_second_step_button = "CHOOSE_ADDITIONAL_DUCHIES_DECISION_NEXT_STEP_BUTTON"
item = { # Newly-exclaved duchies
value = newly_exclaved_duchies
is_valid = {
custom_tooltip = {
text = consecrate_kingdom_exclave_duchies_available_tt
any_sub_realm_county = {
kingdom = {
any_direct_de_jure_vassal_title = {
pam_custom_kingdom_can_claim_duchy_exclave_trigger = { NEW_KING = root }
}
}
}
}
}
current_description = newly_exclaved_duchies_decision
localization = newly_exclaved_duchies_decision
ai_chance = {
value = 100
}
}
item = { # Only Sub-Realm Duchies
value = only_sub_realm_duchies
is_valid = {
always = yes
}
current_description = only_sub_realm_duchies_decision
localization = only_sub_realm_duchies_decision
ai_chance = {
value = 0
}
}
}
is_valid = {
prestige_level >= 3
top_liege = this
@ -1089,6 +1129,21 @@ found_kingdom_decision = {
has_realm_law = nomadic_authority_3
}
}
trigger_if = {
limit = {
any_held_title = {
tier = tier_duchy
is_landless_type_title = yes
}
}
custom_tooltip = {
text = any_landed_duchy_title_tt
any_held_title = {
tier = tier_duchy
is_landless_type_title = no
}
}
}
}
is_valid_showing_failures_only = {
@ -1118,7 +1173,7 @@ found_kingdom_decision = {
multiply = 0
}
}
prestige = 500
prestige = 750
piety = {
value = 200
if = {
@ -1192,11 +1247,51 @@ found_empire_decision = {
hegemony = 0
}
desc = found_empire_decision_desc
sort_order = 75
#Titles outside your realm that you can choose to add
widget = {
gui = "decision_view_widget_option_list_generic"
controller = decision_option_list_controller
decision_to_second_step_button = "CHOOSE_ADDITIONAL_KINGDOMS_DECISION_NEXT_STEP_BUTTON"
item = { # Newly-exclaved kingdoms
value = newly_exclaved_kingdoms
is_valid = {
custom_tooltip = {
text = consecrate_kingdom_exclave_kingdoms_available_tt
any_sub_realm_county = {
empire = {
any_direct_de_jure_vassal_title = {
pam_custom_empire_can_claim_kingdom_exclave_trigger = { NEW_EMPEROR = root }
}
}
}
}
}
current_description = newly_exclaved_kingdoms_decision
localization = newly_exclaved_kingdoms_decision
ai_chance = {
value = 100
}
}
item = { # Only Sub-Realm Kingdoms
value = only_sub_realm_kingdoms
is_valid = {
always = yes
}
current_description = only_sub_realm_kingdoms_decision
localization = only_sub_realm_kingdoms_decision
ai_chance = {
value = 0
}
}
}
is_shown = {
highest_held_title_tier = tier_kingdom
OR = {
top_liege = this
top_liege ?= this
any_held_title = {
count >= 3
title_tier = kingdom
@ -1256,8 +1351,53 @@ found_empire_decision = {
}
}
trigger_if = {
limit = {
exists = struggle:iberian_struggle
# only display the condition for people from relevant faiths and cultures
struggle:iberian_struggle = {
OR = {
is_culture_involved_in_struggle = root.culture
is_faith_involved_in_struggle = root.faith
}
}
# and living nearby
any_realm_county = {
title_province = {
OR = {
geographical_region = ghw_region_north_africa
geographical_region = world_europe_west
geographical_region = world_europe_south
}
}
}
}
custom_description = {
text = found_empire_decision_not_part_of_iberian_struggle
NOT = {
any_character_struggle = {
is_struggle_type = iberian_struggle
}
}
}
}
rule_title_creation_imperial_power_projection_title_creation_trigger = yes
trigger_if = {
limit = {
any_held_title = {
tier = tier_kingdom
is_landless_type_title = yes
}
}
custom_tooltip = {
text = any_landed_duchy_title_tt
any_held_title = {
tier = tier_kingdom
is_landless_type_title = no
}
}
}
}
is_valid_showing_failures_only = {
@ -1288,7 +1428,7 @@ found_empire_decision = {
multiply = 0
}
}
prestige = 2000
prestige = 2500
piety = {
value = 600
if = {
@ -1383,7 +1523,7 @@ adopt_special_succession_decision = {
special_succession_jirga_trigger = yes
}
AND = {
is_landed_or_landless_administrative = yes
is_landed_or_landless_administrative_or_theocratic = yes
highest_held_title_tier >= tier_kingdom
has_realm_law_flag = partition_succession_law
any_held_title = {
@ -1629,9 +1769,9 @@ accept_cannibalism_decision = {
is_shown = {
is_cannibal_trigger = yes
NOR = { #Snacking on people should be frowned upon
faith = { has_doctrine_parameter = cannibalism_legal }
faith = { has_variable = accepted_cannibalism }
faith.religious_head = root
faith.religious_head ?= root
faith ?= { has_variable = accepted_cannibalism }
rite ?= { rite_has_parameter = cannibalism_legal }
}
}
@ -2116,7 +2256,7 @@ lunatic_building_decision = {
is_shown = {
has_trait = lunatic
has_character_flag = glass_dream
is_landed_or_landless_administrative = yes
is_landed_or_landless_administrative_or_theocratic = yes
exists = capital_province
NOT = {
is_target_in_global_variable_list = {
@ -2126,6 +2266,19 @@ lunatic_building_decision = {
}
}
widget = {
controller = create_holy_order
title_valid = {
trigger_if = {
limit = { exists = this }
title_province = { has_special_district_slot = no }
is_capital_barony = yes
holder = scope:ruler
is_leased_out = no
}
}
}
is_valid = {
prestige_level >= 2
}
@ -2136,10 +2289,8 @@ lunatic_building_decision = {
}
effect = {
scope:barony.title_province = { save_scope_as = lunatic_province }
save_scope_as = builder
root.cp:councillor_court_chaplain = {
save_scope_as = court_chaplain
}
show_as_tooltip = { lunatic_building_decision_effect = yes }
trigger_event = major_decisions.3001
@ -2303,8 +2454,7 @@ repay_loan_decision = {
is_valid_showing_failures_only = {
is_available_quick = {
adult = yes
incapable = no
imprisoned = no
}
custom_tooltip = {
text = repay_loan_decision_afford_any_tt
@ -2759,7 +2909,7 @@ expand_duchy_decision = {
widget = {
controller = create_holy_order
barony_valid = {
title_valid = {
scope:ruler = {
trigger_if = {
limit = {
@ -2801,15 +2951,7 @@ expand_duchy_decision = {
}
is_shown = {
save_temporary_scope_as = root_scope_temporary
highest_held_title_tier >= tier_duchy
OR = {
AND = {
is_ai = no
has_game_rule = on_custom_duchies_player
}
has_game_rule = on_custom_duchies
}
is_landed_or_landless_administrative = yes
NOT = { government_has_flag = government_is_republic }
trigger_if = {
@ -2830,7 +2972,15 @@ expand_duchy_decision = {
save_temporary_scope_as = duchy_title
}
}
scope:duchy_title = {
OR = {
has_game_rule = on_custom_duchies
AND = {
is_ai = no
has_game_rule = on_custom_duchies_player
}
}
save_temporary_scope_as = root_scope_temporary
scope:duchy_title ?= {
any_de_jure_county = {
count < expand_duchy_max_size_value
}
@ -3004,7 +3154,7 @@ set_de_jure_capital_decision = {
}
picture = {
trigger = {
government_is_japanese_trigger = yes
government_is_japanese_trigger = yes
}
reference = "gfx/interface/illustrations/holding_types/tgp_city_japan.dds"
}
@ -3293,24 +3443,8 @@ set_de_jure_capital_decision = {
limit = {
scope:set_duchy_capital = yes
}
}
scope:old_capital ?= {
duchy = { save_scope_as = current_duchy }
title:d_laamp_zolt = {
save_scope_as = placeholder_duchy
}
scope:current_duchy = {
every_de_jure_county = {
limit = {
NOT = { this = root.capital_county }
}
set_de_jure_liege_title = scope:placeholder_duchy
add_to_list = correction_list
}
}
every_in_list = {
list = correction_list
set_de_jure_liege_title = scope:current_duchy
root.capital_barony = {
set_as_duchy_capital = yes
}
}
}