diff --git a/common/decisions/00_major_decisions_east_europe.txt b/common/decisions/00_major_decisions_east_europe.txt index ced60e693..70cf14066 100644 --- a/common/decisions/00_major_decisions_east_europe.txt +++ b/common/decisions/00_major_decisions_east_europe.txt @@ -12,10 +12,11 @@ # reference = "gfx/interface/illustrations/decisions/decision_realm.dds" # } # decision_group_type = major +# sort_order = 120 # ai_check_interval_by_tier = { # barony = 0 # county = 0 -# duchy = 120 +# duchy = 0 # kingdom = 120 # empire = 120 # hegemony = 120 @@ -118,10 +119,11 @@ # reference = "gfx/interface/illustrations/decisions/decision_realm.dds" # } # decision_group_type = major +# sort_order = 100 # ai_check_interval_by_tier = { # barony = 0 # county = 0 -# duchy = 120 +# duchy = 0 # kingdom = 120 # empire = 120 # hegemony = 120 @@ -143,6 +145,7 @@ # culture = { has_cultural_pillar = heritage_south_slavic } # completely_controls_region = custom_south_slavia #Has de jure Lands # OR = { +# highest_held_title_tier = tier_empire # has_primary_title = title:k_croatia # has_primary_title = title:k_serbia # has_primary_title = title:k_bulgaria @@ -204,10 +207,11 @@ # reference = "gfx/interface/illustrations/decisions/decision_realm.dds" # } # decision_group_type = major +# sort_order = 120 # ai_check_interval_by_tier = { # barony = 0 # county = 0 -# duchy = 120 +# duchy = 0 # kingdom = 120 # empire = 120 # hegemony = 120 @@ -306,6 +310,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" # } # decision_group_type = major +# sort_order = 100 # ai_check_interval_by_tier = { # barony = 0 # county = 0 @@ -501,6 +506,7 @@ # desc = promote_hungarian_settlement_decision_desc # selection_tooltip = promote_hungarian_settlement_decision_tooltip # decision_group_type = major +# sort_order = 100 # ai_goal = yes # # is_shown = { @@ -600,6 +606,7 @@ # desc = revive_magyar_paganism_decision_desc # selection_tooltip = revive_magyar_paganism_decision_tooltip # decision_group_type = major +# sort_order = 100 # ai_check_interval = 0 # # is_shown = { @@ -707,6 +714,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 @@ -765,8 +773,8 @@ # # is_valid = { # #You must have sufficient clout. -# top_liege = this -# +# is_independent_ruler = yes +# highest_held_title_tier = tier_duchy # #You must control the kingdom's heartlands. # has_title = title:d_bosna # has_title = title:d_lower_bosna @@ -855,6 +863,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" # } # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -1017,6 +1026,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" # } # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -1120,6 +1130,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 @@ -1181,6 +1192,7 @@ # #You must control the kingdom's heartlands. # has_title = title:d_latgalia # has_title = title:d_courland +# has_title = title:d_semigallia # has_title = title:d_livonia # completely_controls_region = custom_latvia # } @@ -1245,4 +1257,197 @@ # base = 100 # } #} +# +################################## +## Establish Novgorodian Culture # +################################## +# +#### Establish Novgorodian Culture ### +#establish_novgorodian_culture_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" +# } +# decision_group_type = major +# sort_order = 100 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 120 +# kingdom = 120 +# empire = 120 +# hegemony = 120 +# } +# +# desc = establish_novgorodian_culture_decision_desc +# selection_tooltip = establish_novgorodian_culture_decision_tooltip +# +# is_shown = { +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_formed_novgorodian_decision +# } +# } +# OR = { +# AND = { +# culture ?= culture:ilmenian +# any_sub_realm_county = { +# target_is_de_jure_liege_or_above = title:k_novgorod +# culture ?= culture:russian +# } +# } +# AND = { +# culture ?= culture:russian +# any_sub_realm_county = { +# target_is_de_jure_liege_or_above = title:k_novgorod +# culture ?= culture:ilmenian +# } +# } +# } +# } +# +# is_valid = { +# OR = { +# culture = culture:ilmenian +# culture = culture:russian +# } +# completely_controls = title:d_novgorod +# } +# +# is_valid_showing_failures_only = { +# is_at_war = no +# is_imprisoned = no +# } +# +# effect = { +# hidden_effect = { +# title:d_novgorod = { +# every_in_de_jure_hierarchy = { +# limit = { tier = tier_county } +# add_to_list = novgorodian_counties +# } +# } +# every_sub_realm_title = { +# limit = { +# tier = tier_county +# } +# if = { +# limit = { +# title_province = { geographical_region = custom_novgorod_and_adjacent } +# OR = { +# culture = culture:ilmenian +# culture = culture:russian +# } +# } +# add_to_list = novgorodian_counties +# } +# } +# +# every_in_list = { +# list = novgorodian_counties +# merge_cultures_in_region_effect = { +# OLD_CULTURE_1 = culture:ilmenian +# OLD_CULTURE_2 = culture:russian +# NEW_CULTURE = culture:novgorodian +# REGION = custom_novgorod_and_adjacent +# } +# } +# save_scope_as = founder +# culture:ilmenian = { save_scope_as = old_culture_1 save_scope_as = parent_1 } +# culture:russian = { save_scope_as = old_culture_2 save_scope_as = parent_2 } +# culture:novgorodian = { +# reset_culture_creation_date = yes +# get_all_innovations_from = scope:old_culture_1 +# get_all_innovations_from = scope:old_culture_2 +# save_scope_as = new_culture +# } +# every_player = { +# if = { +# limit = { +# OR = { +# culture = scope:new_culture +# culture = scope:parent_1 +# culture = scope:parent_2 +# } +# } +# trigger_event = { +# id = culture_notification.1011 +# days = 0 +# } +# } +# else_if = { +# limit = { +# in_diplomatic_range = scope:founder +# } +# trigger_event = { +# id = culture_notification.1001 +# days = 0 +# } +# } +# } +# } +# +# set_culture = culture:novgorodian +# add_character_flag = converted_culture_this_lifetime +# hidden_effect = { +# every_in_list = { +# list = novgorodian_counties +# limit = { +# holder.capital_county = { is_in_list = novgorodian_counties } +# } +# holder = { +# add_to_list = mass_melting_pot_list +# every_courtier = { add_to_list = mass_melting_pot_list } +# every_courtier_away = { add_to_list = mass_melting_pot_list } +# } +# every_in_list = { +# list = mass_melting_pot_list +# limit = { +# OR = { +# culture = culture:ilmenian +# culture = culture:russian +# } +# } +# set_culture = culture:novgorodian +# } +# } +# } +# +# show_as_tooltip = { +# custom_tooltip = establish_novgorodian_culture_decision_effect.tt +# culture:novgorodian = { +# get_all_innovations_from = scope:old_culture_1 +# get_all_innovations_from = scope:old_culture_2 +# } +# } +# +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_formed_novgorodian_decision +# } +# } +# +# cost = { +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 0 +# +# modifier = { +# add = 100 +# any_sub_realm_county = { +# percent >= 0.5 +# OR = { +# culture = culture:ilmenian +# culture = culture:russian +# } +# } +# } +# } +#} # \ No newline at end of file diff --git a/common/decisions/00_major_decisions_iberia_north_africa.txt b/common/decisions/00_major_decisions_iberia_north_africa.txt index 2cfc0ee3c..1e3a1691f 100644 --- a/common/decisions/00_major_decisions_iberia_north_africa.txt +++ b/common/decisions/00_major_decisions_iberia_north_africa.txt @@ -4,6 +4,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 110 # ai_check_interval_by_tier = { # barony = 0 # county = 0 @@ -25,6 +26,12 @@ # title:k_portugal = { # is_title_created = no # } +# OR = { +# has_title = title:d_porto +# has_title = title:d_coimbra +# has_title = title:d_beja +# has_title = title:d_algarve +# } # } # # is_valid = { @@ -145,6 +152,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 100 # ai_check_interval_by_tier = { # barony = 0 # county = 0 @@ -265,6 +273,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_realm.dds" # } # decision_group_type = major +# sort_order = 100 # ai_check_interval_by_tier = { # barony = 0 # county = 0 @@ -339,7 +348,10 @@ # } # # is_valid_showing_failures_only = { -# is_landed = yes +# is_capable_adult = yes +# is_imprisoned = no +# top_liege = this +# is_at_war = no # } # # effect = { @@ -384,6 +396,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" # } # decision_group_type = major +# sort_order = 100 # ai_check_interval_by_tier = { # barony = 0 # county = 0 @@ -480,6 +493,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 110 # ai_check_interval_by_tier = { # barony = 0 # county = 0 @@ -535,7 +549,7 @@ # count = all # trigger_if = { # limit = { tier = tier_county } -# development_level >= 10 +# prosperity_level >= 10 # } # trigger_else = { # always = yes @@ -626,6 +640,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 @@ -1219,6 +1234,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" # } # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -1452,6 +1468,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 diff --git a/common/decisions/10_culture_conversion_decisions.txt b/common/decisions/10_culture_conversion_decisions.txt index 29a17795e..8f46fe2fa 100644 --- a/common/decisions/10_culture_conversion_decisions.txt +++ b/common/decisions/10_culture_conversion_decisions.txt @@ -8,6 +8,7 @@ convert_to_local_culture_decision = { is_shown = { is_playable_character = yes + exists = capital_province primary_title.tier > tier_barony culture != capital_province.culture NAND = { diff --git a/common/decisions/30_mongol_invasion_decisions.txt b/common/decisions/30_mongol_invasion_decisions.txt index 842982998..6788b2d2d 100644 --- a/common/decisions/30_mongol_invasion_decisions.txt +++ b/common/decisions/30_mongol_invasion_decisions.txt @@ -193,7 +193,7 @@ # limit = { # government_has_flag = government_is_nomadic # } -# domicile = { +# domicile ?= { # herd >= massive_herd_value # } # } diff --git a/common/decisions/80_major_decisions.txt b/common/decisions/80_major_decisions.txt index 278f1cfc8..bdc37761e 100644 --- a/common/decisions/80_major_decisions.txt +++ b/common/decisions/80_major_decisions.txt @@ -2663,6 +2663,7 @@ found_duchy_decision = { NOR = { government_has_mechanic = administrative government_has_flag = government_is_nomadic + government_has_flag = government_is_republic government_is_japanese_trigger = yes } } diff --git a/common/decisions/80_major_decisions_british_isles.txt b/common/decisions/80_major_decisions_british_isles.txt index a2128aef9..b4d616bca 100644 --- a/common/decisions/80_major_decisions_british_isles.txt +++ b/common/decisions/80_major_decisions_british_isles.txt @@ -1,2 +1,1261 @@ #The culture of the people both high and low is veering towards Celtic - embrace it? -### Reclaim Britannia ### \ No newline at end of file +### Reclaim Britannia ### + +##The culture of the people both high and low is veering towards Celtic - embrace it? +#### Reclaim Britannia ### +#reclaim_britannia_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" +# } +# decision_group_type = major +# sort_order = 100 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 0 +# kingdom = 120 +# empire = 120 +# hegemony = 120 +# } +# +# desc = reclaim_britannia_decision_desc +# +# is_shown = { +# OR = { +# culture ?= { has_cultural_pillar = heritage_goidelic } +# culture ?= { has_cultural_pillar = heritage_brythonic } +# } +# +# is_landed_or_landless_administrative = yes +# any_sub_realm_county = { +# NOR = { +# culture ?= { has_cultural_pillar = heritage_goidelic } +# culture ?= { has_cultural_pillar = heritage_brythonic } +# } +# title_province ?= { geographical_region = world_europe_west_britannia } +# } +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:reclaim_britannia_decision +# } +# } +# } +# +# is_valid = { +# completely_controls_region = world_europe_west_britannia +# +# # You can have no more than 1 powerful vassal with the "wrong" culture +# custom_description = { +# text = reclaim_britannia_custom_decision +# +# trigger_if = { +# limit = { +# any_vassal = { +# is_powerful_vassal = yes +# NOR = { +# culture = { has_cultural_pillar = heritage_goidelic } +# culture = { has_cultural_pillar = heritage_brythonic } +# } +# } +# } +# any_vassal = { +# count <= 1 +# is_powerful_vassal = yes +# NOR = { +# culture = { has_cultural_pillar = heritage_goidelic } +# culture = { has_cultural_pillar = heritage_brythonic } +# } +# } +# } +# } +# } +# +# is_valid_showing_failures_only = { +# is_imprisoned = no +# is_available_adult = yes +# is_at_war = no +# } +# +# effect = { +# gain_heroic_legend_seed_tooltip_effect = yes +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:reclaim_britannia_decision +# } +# show_as_tooltip = { +# reclaim_britannia_decision_effect = yes +# } +# trigger_event = british_isles.0001 +# # Send event to other players +# every_player = { +# limit = { +# this != root +# OR = { +# culture = { has_cultural_pillar = heritage_west_germanic } +# culture = { has_cultural_pillar = heritage_goidelic } +# culture = { has_cultural_pillar = heritage_brythonic } +# has_culture = culture:norman +# } +# } +# trigger_event = british_isles.0002 +# } +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 100 +# } +#} +# +#### Embrace English Culture ### +#embrace_english_culture_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" +# } +# decision_group_type = major +# sort_order = 100 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 0 +# kingdom = 12 +# empire = 12 +# hegemony = 12 +# } +# +# desc = embrace_english_culture_decision_desc +# +# is_shown = { +# culture ?= { +# OR = { +# has_cultural_pillar = heritage_frankish +# any_parent_culture = { +# this = culture:norman +# } +# } +# NOT = { +# this = culture:english +# } +# } +# OR = { +# any_claim = { +# this = title:k_england +# } +# OR = { +# title:k_england = { +# any_in_de_jure_hierarchy = { +# root.primary_title = this +# } +# } +# root.primary_title ?= title:e_britannia +# } +# any_claim = { +# this = title:e_britannia +# } +# } +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:embrace_english_culture_decision +# } +# } +# +# game_start_date < 1178.1.1 +# } +# +# is_valid = { +# custom_description = { +# text = capital_in_england_region_tooltip +# capital_province = { +# geographical_region = custom_england +# } +# } +# has_title = title:k_england +# trigger_if = { +# limit = { +# has_playable_adventurer_dlc_trigger = yes +# } +# OR = { +# custom_description = { +# text = harrying_ended_tooltip +# NOT = { +# has_global_variable = harrying_of_the_north +# } +# } +# custom_description = { +# text = high_pacification_tooltip +# any_owned_story = { +# type = story_cycle_harrying_of_the_north +# var:pacification > var:resistance +# var:pacification > 14 +# var:embrace_culture_decision_counter > 11 +# } +# } +# } +# } +# trigger_if = { +# limit = { +# OR = { +# any_realm_county = { +# culture = culture:english +# } +# culture.culture_head = { +# any_realm_county = { +# culture = culture:english +# } +# } +# culture:english = { +# exists = culture_head +# } +# } +# } +# culture = { +# cultural_acceptance = { +# target = culture:english +# value >= 40 +# } +# } +# } +# trigger_else = { +# culture = { +# cultural_acceptance = { +# target = culture:anglo_saxon +# value >= 40 +# } +# } +# } +# } +# +# is_valid_showing_failures_only = { +# is_imprisoned = no +# is_available_adult = yes +# NOT = { +# government_has_flag = government_is_landless_adventurer +# } +# } +# +# effect = { +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:embrace_english_culture_decision +# } +# show_as_tooltip = { +# embrace_english_culture_effect = yes +# } +# +# trigger_event = british_isles.2001 +# } +# +# ai_potential = { +# is_playable_character = yes +# culture = { +# OR = { +# any_parent_culture = { +# this = culture:norman +# } +# has_cultural_pillar = heritage_frankish +# } +# NOT = { +# this = culture:english +# } +# } +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:embrace_english_culture_decision +# } +# } +# trigger_if = { +# limit = { +# OR = { +# any_realm_county = { +# culture = culture:english +# } +# culture.culture_head = { +# any_realm_county = { +# culture = culture:english +# } +# } +# culture:english = { +# exists = culture_head +# } +# } +# } +# culture = { +# cultural_acceptance = { +# target = culture:english +# value >= 50 +# } +# } +# } +# trigger_else = { +# culture = { +# cultural_acceptance = { +# target = culture:anglo_saxon +# value >= 50 +# } +# } +# } +# } +# +# ai_will_do = { +# base = 100 +# } +#} +# +## Request Laudabiliter - by Flavio +#### Request Claim on Ireland ### +#england_request_laudabiliter_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_misc.dds" +# } +# desc = england_request_laudabiliter_decision_desc +# selection_tooltip = england_request_laudabiliter_decision_tooltip +# decision_group_type = major +# sort_order = 100 +# +# is_shown = { +# highest_held_title_tier >= 4 # Kings and Emperors only. +# government_has_flag = government_is_feudal +# OR = { +# culture ?= { has_cultural_pillar = heritage_frankish } +# culture ?= { has_cultural_pillar = heritage_north_germanic } +# culture ?= { has_cultural_pillar = heritage_west_germanic } +# } +# # The ruler asking it must be a King or Emperor in some way related to Britain. +# OR = { +# has_title = title:k_france +# has_title = title:k_england +# has_title = title:k_scotland +# has_title = title:e_france +# has_title = title:e_britannia +# has_title = title:k_brittany +# has_title = title:k_wales +# } +# any_county_in_region = { +# OR = { +# NOT = { rite = rite:roman_rite } +# holder ?= { +# NOT = { rite = rite:roman_rite } +# } +# } +# region = custom_roman_hibernia +# } +# NOR = { +# # The ruler picking the decision should not already control Ireland. +# completely_controls_region = custom_roman_hibernia +# # Can only do it once. +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_england_requested_laudabiliter +# } +# } +# faith:catholic.religious_head ?= { +# has_title = title:k_papal_state +# } +# root.faith ?= faith:catholic +# is_landed_or_landless_administrative = yes +# } +# +# is_valid = { +# piety_level >= 3 +# root.faith.religious_head = { +# opinion = { +# target = root +# value >= very_high_positive_opinion +# } +# } +# # Must control core territories of England already. +# completely_controls = title:d_bedford +# completely_controls = title:d_hereford +# completely_controls = title:d_lancaster +# completely_controls = title:d_york +# } +# +# is_valid_showing_failures_only = { +# is_capable_adult = yes +# is_imprisoned = no +# top_liege = this +# is_at_war = no +# } +# +# cost = { +# gold = { +# value = 0 +# if = { +# limit = { +# has_treasury = no +# } +# add = 1000 +# } +# } +# treasury = { +# value = 0 +# if = { +# limit = { +# has_treasury = yes +# } +# add = 1000 +# } +# } +# piety = 2000 +# } +# +# effect = { +# show_as_tooltip = { +# house = { +# add_house_modifier = { +# modifier = ireland_laudabiliter_modifier +# years = 100 +# } +# } +# } +# custom_tooltip = laudabiliter_decision_effects_tooltip +# trigger_event = { +# id = british_isles.3001 +# } +# hidden_effect = { +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_england_requested_laudabiliter +# } +# } +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 0 +# kingdom = 48 +# empire = 48 +# hegemony = 0 +# } +# +# ai_will_do = { +# base = 15 +# ai_value_modifier = { +# ai_boldness = 1.0 +# } +# } +#} +# +############################################## +## Negotiate the Danelaw # +## by Linnéa Thimrén & Ewan Cowhig Croft # +############################################## +#### Negotiate the Danelaw ### +#negotiate_the_danelaw_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" +# } +# decision_group_type = major +# sort_order = 110 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 120 +# kingdom = 120 +# empire = 0 +# hegemony = 0 +# } +# +# desc = negotiate_the_danelaw_decision_desc +# +# is_shown = { +# # Cannot have an existing k_england. +# title:k_england = { is_title_created = no } +# # Not repeatable. +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:negotiate_the_danelaw_decision +# } +# } +# # Can only be fired by someone in the Tribal Era (though their rival need not be). +# culture ?= { +# NOT = { has_cultural_era_or_later = culture_era_early_medieval } +# } +# # Must be in the vague region. +# any_held_title = { +# title_tier = county +# title_province ?= { geographical_region = world_europe_west_britannia } +# } +# is_landed_or_landless_administrative = yes +# # Standard filter checks. +# negotiate_the_danelaw_basic_filter_trigger = yes +# } +# +# is_valid = { +# # Some extra standard-ish filtering. +# negotiate_the_danelaw_additional_filter_trigger = yes +# # Should have a decent prestige level. +# prestige_level >= medium_prestige_level +# # Must have a valid opponent to negotiate with. +# custom_description = { +# text = negotiate_the_danelaw.valid_opponent.tt +# any_county_in_region = { +# region = world_europe_west_britannia +# holder = { negotiate_the_danelaw_valid_danelaw_opponent_trigger = yes } +# } +# } +# # And completely control any two duchies within k_england. +# custom_description = { +# text = negotiate_the_danelaw.controlled_duchies.tt +# any_held_title = { +# count >= 2 +# title_tier = duchy +# any_this_title_or_de_jure_above = { this = title:k_england } +# save_temporary_scope_as = de_jure_duchy +# root = { completely_controls = scope:de_jure_duchy } +# } +# } +# # Can only be fired by someone in the Tribal Era (though their rival need not be). +# ## Reshow this here so players know they're on a timer. +# culture = { +# NOT = { has_cultural_era_or_later = culture_era_early_medieval } +# } +# } +# +# is_valid_showing_failures_only = { +# is_imprisoned = no +# is_available_adult = yes +# is_at_war = no +# } +# +# effect = { +# # We can't show the effects in the decision window, since they rely on scopes & the tooltips will error, so just display a preview tooltip instead. +# custom_tooltip = negotiate_the_danelaw.preview.tt +# custom_tooltip = negotiate_the_danelaw.clarification.tt +# trigger_event = british_isles.1011 +# # Notifying other players is handled in the response event for scope:ntd_recipient, since they might reject it. +# hidden_effect = { +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:negotiate_the_danelaw_decision +# } +# } +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 100 +# } +#} +# +#### Integrate English Duchy ### +#negotiate_the_danelaw_integrate_duchies_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" +# } +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 0 +# kingdom = 1 +# empire = 0 +# hegemony = 0 +# } +# +# desc = negotiate_the_danelaw_integrate_duchies_decision_desc +# +# is_shown = { +# # First off, k_england must currently be partitioned. +# exists = global_var:partition_active_danelaw +# # Then, you must be the holder of either k_england or k_danelaw. +# OR = { +# has_title = title:k_england +# has_title = title:k_danelaw +# } +# } +# +# cooldown = { years = 5 } +# +# cost = { prestige = 500 } +# +# is_valid = { +# # Must completely control at least one duchy from the other side. +# trigger_if = { +# limit = { has_title = title:k_england } +# custom_description = { +# text = negotiate_the_danelaw_integrate_duchies_decision.duchies_within_danelaw.tt +# title:k_danelaw = { +# any_in_de_jure_hierarchy = { +# tier = tier_duchy +# save_temporary_scope_as = de_jure_duchy +# root = { completely_controls = scope:de_jure_duchy } +# } +# } +# } +# } +# trigger_if = { +# limit = { has_title = title:k_danelaw } +# custom_description = { +# text = negotiate_the_danelaw_integrate_duchies_decision.duchies_within_england.tt +# title:k_england = { +# any_in_de_jure_hierarchy = { +# tier = tier_duchy +# save_temporary_scope_as = de_jure_duchy +# root = { completely_controls = scope:de_jure_duchy } +# } +# } +# } +# } +# } +# +# is_valid_showing_failures_only = { +# is_imprisoned = no +# is_available_adult = yes +# is_at_war = no +# # Shouldn't ever happen, but just in case, let's avoid the edge-case. +# NAND = { +# has_title = title:k_england +# has_title = title:k_danelaw +# } +# } +# +# effect = { +# # Integrate all valid duchies directly. +# if = { +# limit = { has_title = title:k_england } +# title:k_danelaw = { +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_duchy +# save_temporary_scope_as = de_jure_duchy +# root = { completely_controls = scope:de_jure_duchy } +# } +# add_to_list = negotiate_the_danelaw_integrating_duchies_list +# } +# } +# every_in_list = { +# list = negotiate_the_danelaw_integrating_duchies_list +# set_de_jure_liege_title = title:k_england +# } +# reverse_add_opinion = { +# target = title:k_danelaw.holder +# modifier = angry_opinion +# opinion = -30 +# } +# } +# if = { +# limit = { has_title = title:k_danelaw } +# title:k_england = { +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_duchy +# save_temporary_scope_as = de_jure_duchy +# root = { completely_controls = scope:de_jure_duchy } +# } +# add_to_list = negotiate_the_danelaw_integrating_duchies_list +# } +# } +# every_in_list = { +# list = negotiate_the_danelaw_integrating_duchies_list +# set_de_jure_liege_title = title:k_danelaw +# } +# reverse_add_opinion = { +# target = title:k_england.holder +# modifier = angry_opinion +# opinion = -30 +# } +# } +# # Inform relevant parties. +# ## The major feuding lords first. +# if = { +# limit = { has_title = title:k_england } +# send_interface_message = { +# type = event_generic_good_text +# title = negotiate_the_danelaw_integrate_duchies_decision.danelaw_side.t +# desc = negotiate_the_danelaw_integrate_duchies_decision.danelaw_side.desc +# right_icon = title:k_england.holder +# } +# title:k_danelaw.holder = { +# send_interface_message = { +# type = event_generic_bad_text +# title = negotiate_the_danelaw_integrate_duchies_decision.danelaw_side.t +# desc = negotiate_the_danelaw_integrate_duchies_decision.danelaw_side.desc +# right_icon = title:k_england.holder +# } +# } +# } +# if = { +# limit = { has_title = title:k_danelaw } +# send_interface_message = { +# type = event_generic_good_text +# title = negotiate_the_danelaw_integrate_duchies_decision.england_side.t +# desc = negotiate_the_danelaw_integrate_duchies_decision.england_side.desc +# right_icon = title:k_danelaw.holder +# } +# title:k_england.holder = { +# send_interface_message = { +# type = event_generic_bad_text +# title = negotiate_the_danelaw_integrate_duchies_decision.england_side.t +# desc = negotiate_the_danelaw_integrate_duchies_decision.england_side.desc +# right_icon = title:k_danelaw.holder +# } +# } +# } +# ## But notify any affected players too. +# if = { +# limit = { +# any_in_list = { +# list = negotiate_the_danelaw_integrating_duchies_list +# any_in_de_jure_hierarchy = { +# holder ?= { +# is_ai = no +# NOR = { +# this = title:k_england.holder +# this = title:k_danelaw.holder +# } +# } +# } +# } +# } +# every_in_list = { +# list = negotiate_the_danelaw_integrating_duchies_list +# every_in_de_jure_hierarchy = { +# limit = { +# holder ?= { +# is_ai = no +# NOR = { +# this = title:k_england.holder +# this = title:k_danelaw.holder +# } +# } +# } +# holder = { +# hidden_effect = { +# send_interface_toast = { +# type = event_toast_effect_neutral +# title = negotiate_the_danelaw_integrate_duchies_decision.inform_minor_players.t +# left_icon = title:k_england.holder +# right_icon = title:k_danelaw.holder +# custom_tooltip = negotiate_the_danelaw_integrate_duchies_decision.inform_minor_players.tt +# } +# } +# } +# } +# } +# } +# } +# +# ai_potential = { +# primary_title.tier >= tier_kingdom +# # First off, k_england must currently be partitioned. +# exists = global_var:partition_active_danelaw +# # Then, you must be the holder of either k_england or k_danelaw. +# OR = { +# has_title = title:k_england +# has_title = title:k_danelaw +# } +# } +# +# ai_will_do = { +# base = 100 +# } +#} +# +#### Formalize the Daneland ### +#formalise_the_daneland_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" +# } +# decision_group_type = major +# sort_order = 110 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 0 +# kingdom = 120 +# empire = 120 +# hegemony = 120 +# } +# +# desc = formalise_the_daneland_decision_desc +# +# is_shown = { +# # Has k_danelaw. +# any_held_title = { this = title:k_danelaw } +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:formalise_the_daneland_decision +# } +# } +# } +# +# is_valid = { +# # Should have a decent prestige level. +# prestige_level >= high_prestige_level +# # Must be in a suitably late era & must be past at least a reasonable date. +# culture = { has_cultural_era_or_later = culture_era_high_medieval } +# custom_description = { +# text = formalise_the_daneland_decision.must_be_after_1100.tt +# current_date >= 1100.1.1 +# } +# } +# +# is_valid_showing_failures_only = { +# is_imprisoned = no +# is_available_adult = yes +# is_at_war = no +# } +# +# cost = { prestige = 750 } +# +# effect = { +# # Grab characters for loc & general effects. +# save_scope_as = founder +# ## We want the King of England for portrait effects and such (there'll always be one, else this decision won't be available). +# title:k_england.holder = { save_scope_as = england } +# # Show consequences. +# show_as_tooltip = { formalise_the_daneland_effect = yes } +# # Send notification events. +# ## For scope:founder. +# scope:founder = { trigger_event = british_isles.1061 } +# ## For scope:england. +# scope:england = { trigger_event = british_isles.1062 } +# ## For other players in the region. +# every_player = { +# limit = { +# NOR = { +# this = scope:founder +# this = scope:england +# } +# any_sub_realm_county = { +# title_province = { geographical_region = world_europe_west_britannia } +# } +# } +# trigger_event = british_isles.1063 +# } +# # Mark the decision as completed. +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:formalise_the_daneland_decision +# } +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 100 +# } +#} +# +############################################## +## #Restore Dumnonia to the map # +## by Ewan Cowhig Croft # +############################################## +#### Restore the Kingdom of Cornwall ### +#restore_dumnonia_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" +# } +# decision_group_type = major +# sort_order = 110 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 120 +# kingdom = 0 +# empire = 0 +# hegemony = 0 +# } +# +# desc = restore_dumnonia_decision_desc +# selection_tooltip = restore_dumnonia_decision_tooltip +# +# is_shown = { +# exists = dynasty # Everyone should have a dynasty, but in case they don't... +# OR = { #Must be a culture at least traditionally interlinked with Cornwall. +# culture ?= { has_cultural_pillar = heritage_brythonic } +# dynasty ?= dynasty:1029001 #The Cornish royal house is at it again. +# } +# OR = { +# dynasty ?= dynasty:1029001 #The Cornish royal house is always able to get away with these shenanigans. +# culture ?= culture:cornish #Cornish characters are always able to dream. +# OR = { +# has_title = title:c_devon +# has_title = title:c_cornwall +# has_title = title:d_cornwall +# } +# } +# is_playable_character = yes +# highest_held_title_tier <= tier_duchy +# OR = { +# government_has_flag = government_is_republic +# government_has_mechanic = administrative +# government_has_flag = government_is_feudal +# government_has_flag = government_is_clan +# government_has_flag = government_is_landless_adventurer +# } +# NOT = { #You can only do it once. +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_restored_dumnonia +# } +# } +# OR = { +# government_has_flag = government_is_feudal +# government_has_flag = government_is_republic +# government_has_flag = government_is_clan +# government_has_mechanic = administrative +# government_has_flag = government_is_landless_adventurer +# government_has_flag = government_is_merchant +# } +# highest_held_title_tier <= tier_duchy +# is_ruler = yes +# } +# +# is_valid = { +# top_liege = this +# prestige_level >= very_high_prestige_level +# has_title = title:d_cornwall +# completely_controls = title:d_cornwall +# any_realm_province = { #You must have some realm support for your claims. +# culture = { has_cultural_pillar = heritage_brythonic } +# } +# } +# +# is_valid_showing_failures_only = { +# is_landed = yes +# is_available_adult = yes +# } +# +# effect = { +# show_as_tooltip = { +# restore_dumnonia_decision_scripted_effect = yes +# } +# save_scope_as = founder +# trigger_event = { +# id = british_isles.4001 +# } +# #Notify other players. +# every_player = { +# limit = { +# this != root +# is_within_diplo_range = { CHARACTER = root } +# } +# trigger_event = british_isles.4002 +# } +# hidden_effect = { +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_restored_dumnonia +# } +# set_global_variable = { +# name = flag_restored_dumnonia +# value = root +# } +# } +# } +# +# cost = { +# gold = { +# value = 0 +# if = { +# limit = { +# has_treasury = no +# } +# add = 300 +# } +# } +# treasury = { +# value = 0 +# if = { +# limit = { +# has_treasury = yes +# } +# add = 300 +# } +# } +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 100 +# } +#} +# +############ +## Cumbria # +############ +#form_cumbria_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_castle_view.dds" +# } +# decision_group_type = major +# sort_order = 110 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 120 +# kingdom = 0 +# empire = 0 +# hegemony = 0 +# } +# +# is_shown = { +# highest_held_title_tier = tier_duchy +# culture ?= culture:cumbrian +# NOT = { #You can only do it once. +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_formed_cumbria +# } +# } +# exists = title:k_cumbria +# exists = title:d_cumbria +# } +# +# is_valid = { +# is_independent_ruler = yes +# culture = culture:cumbrian +# prestige_level >= 3 +# completely_controls_region = custom_cumbria +# highest_held_title_tier = tier_duchy +# } +# +# is_valid_showing_failures_only = { +# is_available_adult = yes +# } +# +# effect = { +# hidden_effect = { +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_formed_cumbria +# } +# } +# show_as_tooltip = { +# form_cumbria_decision_scripted_effect = yes +# } +# trigger_event = major_decisions.3500 +# } +# +# cost = { +# gold = { +# value = 300 +# } +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 100 +# } +#} +# +################################# +## Establish Norse-Gael Culture # +################################# +# +#### Establish Norse-Gael Culture ### +#establish_norse_gael_culture_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" +# } +# decision_group_type = major +# sort_order = 100 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 120 +# kingdom = 120 +# empire = 120 +# hegemony = 120 +# } +# +# desc = establish_norse_gael_culture_decision_desc +# selection_tooltip = establish_norse_gael_culture_decision_tooltip +# +# is_shown = { +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_formed_norse_gael_decision +# } +# } +# any_sub_realm_county = { +# OR = { +# target_is_de_jure_liege_or_above = title:d_the_isles +# target_is_de_jure_liege_or_above = title:d_western_isles +# } +# culture ?= culture:gaelic +# } +# culture ?= culture:norse +# } +# +# is_valid = { +# culture = culture:norse +# completely_controls = title:d_the_isles +# completely_controls = title:d_western_isles +# } +# +# is_valid_showing_failures_only = { +# is_at_war = no +# is_imprisoned = no +# } +# +# effect = { +# hidden_effect = { +# title:d_the_isles = { +# every_in_de_jure_hierarchy = { +# limit = { tier = tier_county } +# add_to_list = norse_gael_counties +# } +# } +# title:d_western_isles = { +# every_in_de_jure_hierarchy = { +# limit = { tier = tier_county } +# add_to_list = norse_gael_counties +# } +# } +# every_sub_realm_title = { +# limit = { +# tier = tier_county +# } +# if = { +# limit = { +# title_province = { geographical_region = custom_the_isles_and_adjacent } +# OR = { +# culture = culture:norse +# culture = culture:gaelic +# } +# } +# add_to_list = norse_gael_counties +# } +# } +# +# every_in_list = { +# list = norse_gael_counties +# merge_cultures_in_region_effect = { +# OLD_CULTURE_1 = culture:norse +# OLD_CULTURE_2 = culture:gaelic +# NEW_CULTURE = culture:norse_gael +# REGION = custom_the_isles_and_adjacent +# } +# } +# +# # Notify players the same way a dynamic hybrid culture does (see on_culture_created) +# save_scope_as = founder +# culture:norse = { save_scope_as = old_culture_1 save_scope_as = parent_1 } +# culture:gaelic = { save_scope_as = old_culture_2 save_scope_as = parent_2 } +# culture:norse_gael = { +# reset_culture_creation_date = yes +# get_all_innovations_from = scope:old_culture_1 +# get_all_innovations_from = scope:old_culture_2 +# save_scope_as = new_culture +# } +# every_player = { +# if = { +# limit = { +# OR = { +# culture = scope:new_culture +# culture = scope:parent_1 +# culture = scope:parent_2 +# } +# } +# trigger_event = { +# id = culture_notification.1011 +# days = 0 +# } +# } +# else_if = { +# limit = { +# in_diplomatic_range = scope:founder +# } +# trigger_event = { +# id = culture_notification.1001 +# days = 0 +# } +# } +# } +# } +# +# set_culture = culture:norse_gael +# add_character_flag = converted_culture_this_lifetime +# hidden_effect = { +# every_in_list = { +# list = norse_gael_counties +# limit = { +# holder.capital_county = { is_in_list = norse_gael_counties } +# } +# holder = { +# add_to_list = mass_melting_pot_list +# every_courtier = { add_to_list = mass_melting_pot_list } +# every_courtier_away = { add_to_list = mass_melting_pot_list } +# } +# every_in_list = { +# list = mass_melting_pot_list +# limit = { +# OR = { +# culture = culture:norse +# culture = culture:gaelic +# } +# } +# set_culture = culture:norse_gael +# } +# } +# } +# +# show_as_tooltip = { +# custom_tooltip = establish_norse_gael_culture_decision_effect.tt +# culture:norse_gael = { +# get_all_innovations_from = scope:old_culture_1 +# get_all_innovations_from = scope:old_culture_2 +# } +# } +# +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_formed_norse_gael_decision +# } +# } +# +# cost = { +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 0 +# +# modifier = { +# add = 100 +# any_sub_realm_county = { +# percent >= 0.5 +# culture = culture:gaelic +# } +# } +# } +#} +# \ No newline at end of file diff --git a/common/decisions/80_major_decisions_central_asia.txt b/common/decisions/80_major_decisions_central_asia.txt index d8a6ee181..33c67beff 100644 --- a/common/decisions/80_major_decisions_central_asia.txt +++ b/common/decisions/80_major_decisions_central_asia.txt @@ -130,6 +130,7 @@ # reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_sunder.dds" # } # decision_group_type = major +# sort_order = 120 # desc = establish_bactrian_supremacy_decision_desc # # ai_check_interval_by_tier = { @@ -180,6 +181,7 @@ # government_has_flag = government_is_clan # government_has_mechanic = administrative # government_has_flag = government_is_landless_adventurer +# government_has_flag = government_is_merchant # } # capital_province = { # geographical_region = custom_bactria @@ -251,6 +253,7 @@ # desc = establish_yamagate_in_samarkand_decision_desc # selection_tooltip = establish_yamagate_in_samarkand_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -389,6 +392,7 @@ # desc = break_with_the_old_ways_decision_desc # selection_tooltip = break_with_the_old_ways_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 diff --git a/common/decisions/80_major_decisions_east_asia.txt b/common/decisions/80_major_decisions_east_asia.txt index 1e8fa3e97..bd3592a82 100644 --- a/common/decisions/80_major_decisions_east_asia.txt +++ b/common/decisions/80_major_decisions_east_asia.txt @@ -21,6 +21,7 @@ # desc = form_dai_viet_empire_decision_desc # selection_tooltip = form_dai_viet_empire_decision_tooltip # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 @@ -115,6 +116,7 @@ # desc = form_majapahit_empire_decision_desc # selection_tooltip = form_majapahit_empire_decision_tooltip # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 @@ -263,6 +265,7 @@ # desc = form_ryukyu_empire_decision_desc # selection_tooltip = form_ryukyu_empire_decision_tooltip # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 @@ -357,6 +360,7 @@ # desc = form_siam_kingdom_decision_desc # selection_tooltip = form_siam_kingdom_decision_tooltip # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 @@ -466,6 +470,7 @@ # desc = form_brunei_kingdom_decision_desc # selection_tooltip = form_brunei_kingdom_decision_tooltip # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 @@ -573,6 +578,7 @@ # desc = form_brunei_empire_decision_desc # selection_tooltip = form_brunei_empire_decision_tooltip # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 diff --git a/common/decisions/80_major_decisions_middle_east.txt b/common/decisions/80_major_decisions_middle_east.txt index 5e32654fa..514d9be91 100644 --- a/common/decisions/80_major_decisions_middle_east.txt +++ b/common/decisions/80_major_decisions_middle_east.txt @@ -7,6 +7,7 @@ # desc = create_outremer_empire_decision_desc # selection_tooltip = create_outremer_empire_decision_tooltip # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 @@ -97,6 +98,7 @@ # desc = restore_sunni_caliphate_decision_desc # selection_tooltip = restore_sunni_caliphate_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -165,6 +167,7 @@ # desc = embrace_outremer_culture_decision_desc # selection_tooltip = embrace_outremer_culture_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -288,6 +291,7 @@ # desc = create_israel_kingdom_decision_desc # selection_tooltip = create_israel_kingdom_decision_tooltip # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 @@ -326,7 +330,6 @@ # } # # is_valid_showing_failures_only = { -# is_landed = yes # is_capable_adult = yes # is_imprisoned = no # top_liege = this @@ -371,6 +374,7 @@ # desc = jewish_restore_high_priesthood_decision_desc # selection_tooltip = jewish_restore_high_priesthood_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -591,6 +595,7 @@ # desc = create_armenian_empire_decision_desc # selection_tooltip = create_armenian_empire_decision_tooltip # decision_group_type = major +# sort_order = 120 # # ai_check_interval = 0 # @@ -681,6 +686,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" # } # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 @@ -725,7 +731,6 @@ # is_valid = { # is_independent_ruler = yes # highest_held_title_tier = tier_kingdom -# culture = { has_cultural_pillar = heritage_syriac } # custom_tooltip = { # text = completely_controls_jazira_mesopotamia_tt # completely_controls = title:k_jazira @@ -889,6 +894,8 @@ # NOT = { has_global_variable = created_dar_al_islam } # } # is_valid = { +# # Only for Islamic head of faiths +# faith = { religious_head ?= root } # # The basics # is_independent_ruler = yes # any_held_title = { diff --git a/common/decisions/80_major_decisions_middle_europe.txt b/common/decisions/80_major_decisions_middle_europe.txt index c76176ec0..ee0208337 100644 --- a/common/decisions/80_major_decisions_middle_europe.txt +++ b/common/decisions/80_major_decisions_middle_europe.txt @@ -7,6 +7,7 @@ # desc = form_switzerland_kingdom_decision_desc # selection_tooltip = form_switzerland_kingdom_decision_tooltip # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 @@ -119,6 +120,7 @@ # desc = form_austria_kingdom_decision_desc # selection_tooltip = form_austria_kingdom_decision_tooltip # decision_group_type = major +# sort_order = 110 # ai_goal = yes # # is_shown = { @@ -244,12 +246,13 @@ # desc = reform_carolingian_empire_decision_desc # selection_tooltip = reform_carolingian_empire_decision_tooltip # decision_group_type = major +# sort_order = 130 # # ai_check_interval_by_tier = { # barony = 0 # county = 0 # duchy = 0 -# kingdom = 120 +# kingdom = 0 # empire = 120 # hegemony = 0 # } @@ -271,8 +274,98 @@ # } # # is_valid = { -# prestige_level >= high_prestige_level -# has_title = title:e_france +# OR = { +# prestige_level >= 5 +# trigger_if = { +# limit = { +# has_legitimacy = yes +# } +# legitimacy_level >= 5 +# } +# } +# OR = { +# custom_tooltip = { +# text = carolingian_primary_title_france_check +# primary_title = title:e_france +# } +# custom_tooltip = { +# text = carolingian_primary_title_hre_check +# primary_title = title:e_hre +# } +# } +# # No competing Carolingian emperor may exist — hold them or leave them without a claimant +# trigger_if = { +# limit = { +# title:e_france ?= { +# is_titular = no +# exists = holder +# } +# } +# title:e_france = { +# save_temporary_scope_as = current_title_check +# } +# custom_tooltip = { +# text = carolingian_border_other_empires_check +# OR = { +# has_title = title:e_france +# NOT = { exists = title:e_france.holder } +# } +# } +# } +# trigger_if = { +# limit = { +# title:e_germany ?= { +# is_titular = no +# exists = holder +# } +# } +# title:e_germany = { +# save_temporary_scope_as = current_title_check +# } +# custom_tooltip = { +# text = carolingian_border_other_empires_check +# OR = { +# has_title = title:e_germany +# NOT = { exists = title:e_germany.holder } +# } +# } +# } +# trigger_if = { +# limit = { +# title:e_italy ?= { +# is_titular = no +# exists = holder +# } +# } +# title:e_italy = { +# save_temporary_scope_as = current_title_check +# } +# custom_tooltip = { +# text = carolingian_border_other_empires_check +# OR = { +# has_title = title:e_italy +# NOT = { exists = title:e_italy.holder } +# } +# } +# } +# trigger_if = { +# limit = { +# title:e_hre ?= { +# is_titular = no +# exists = holder +# } +# } +# title:e_hre = { +# save_temporary_scope_as = current_title_check +# } +# custom_tooltip = { +# text = carolingian_border_other_empires_check +# OR = { +# has_title = title:e_hre +# NOT = { exists = title:e_hre.holder } +# } +# } +# } # #All of starting e_france # completely_controls_region = custom_carolingian_francia # #Frisia @@ -296,11 +389,16 @@ # is_at_war = no # } # +# cost = { +# gold = { +# value = 1000 +# } +# } +# # effect = { -# gain_heroic_legend_seed_tooltip_effect = yes # custom_tooltip = reform_carolingian_empire_decision_effect_tooltip # show_as_tooltip = { -# form_carolingian_empire_scripted_effect = yes +# form_carolingian_hegemony_gdp_scripted_effect = yes # } # trigger_event = { # id = middle_europe_decisions.0005 @@ -315,6 +413,7 @@ # value = root # } # } +# gain_heroic_legend_seed_tooltip_effect = yes # } # # ai_potential = { @@ -335,6 +434,7 @@ # desc = unify_burgundy_kingdom_decision_desc # selection_tooltip = unify_burgundy_kingdom_decision_tooltip # decision_group_type = major +# sort_order = 110 # ai_goal = yes # # is_shown = { @@ -423,7 +523,8 @@ # } # # ai_potential = { -# always = yes +# NOT = { exists = title:k_burgundy.holder } +# capital_province ?= { geographical_region = custom_burgundy } # } # # ai_will_do = { @@ -442,6 +543,7 @@ # desc = empower_sicilian_parliament_decision_desc # selection_tooltip = empower_sicilian_parliament_decision_tooltip # decision_group_type = major +# sort_order = 100 # ai_goal = yes # # is_shown = { @@ -472,13 +574,13 @@ # AND = { # completely_controls = title:d_sicily # The Island # title:c_palermo = { -# title_province = { has_special_building = no } +# title_province = { has_special_district = no } # } # } # AND = { # completely_controls = title:d_capua # The Boot # title:c_napoli = { -# title_province = { has_special_building = no } +# title_province = { has_special_district = no } # } # } # } @@ -563,6 +665,7 @@ # desc = promote_gothic_innovations_decision_desc # selection_tooltip = promote_gothic_innovations_decision_tooltip # decision_group_type = major +# sort_order = 100 # ai_goal = yes # # is_shown = { @@ -683,6 +786,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" # } # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 @@ -704,9 +808,10 @@ # exists = title:e_hre.holder #Well, that'd be redundant. # #highest_held_title_tier = tier_empire #Existing emperors likewise should not be giving up their empire. # } -# NOR = { #It doesn't make sense for these competing empires. -# is_roman_emperor_trigger = yes -# mpo_has_gok_mongol_empire_trigger = yes +# OR = { #Government conditions. +# government_has_flag = government_is_feudal +# government_has_flag = government_is_clan +# government_has_mechanic = administrative # } # AND = { #Faith conditions. # this != faith.religious_head #Nice try, Mr. Pope. @@ -970,6 +1075,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_realm.dds" # } # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -1148,6 +1254,195 @@ # } #} # +################################### +## Establish Italo-Norman Culture # +################################### +# +#### Establish Italo-Norman Culture ### +#establish_italo_norman_culture_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" +# } +# decision_group_type = major +# sort_order = 100 +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 120 +# kingdom = 120 +# empire = 120 +# hegemony = 120 +# } +# +# desc = establish_italo_norman_culture_decision_desc +# selection_tooltip = establish_italo_norman_culture_decision_tooltip +# +# is_shown = { +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_formed_italo_norman_decision +# } +# } +# any_sub_realm_county = { +# OR = { +# target_is_de_jure_liege_or_above = title:d_sicily +# target_is_de_jure_liege_or_above = title:d_apulia +# } +# culture ?= culture:sicilian +# } +# culture ?= culture:norman +# } +# +# is_valid = { +# culture = culture:norman +# completely_controls = title:d_sicily +# completely_controls = title:d_apulia +# } +# +# is_valid_showing_failures_only = { +# is_at_war = no +# is_imprisoned = no +# } +# +# effect = { +# hidden_effect = { +# title:d_sicily = { +# every_in_de_jure_hierarchy = { +# limit = { tier = tier_county } +# add_to_list = italo_norman_counties +# } +# } +# title:d_apulia = { +# every_in_de_jure_hierarchy = { +# limit = { tier = tier_county } +# add_to_list = italo_norman_counties +# } +# } +# every_sub_realm_title = { +# limit = { +# tier = tier_county +# } +# if = { +# limit = { +# title_province = { geographical_region = custom_sicily } +# OR = { +# culture = culture:norman +# culture = culture:sicilian +# } +# } +# add_to_list = italo_norman_counties +# } +# } +# +# every_in_list = { +# list = italo_norman_counties +# merge_cultures_in_region_effect = { +# OLD_CULTURE_1 = culture:norman +# OLD_CULTURE_2 = culture:sicilian +# NEW_CULTURE = culture:italo_norman +# REGION = custom_sicily +# } +# } +# +# # Notify players the same way a dynamic hybrid culture does (see on_culture_created) +# save_scope_as = founder +# culture:norman = { save_scope_as = old_culture_1 save_scope_as = parent_1 } +# culture:sicilian = { save_scope_as = old_culture_2 save_scope_as = parent_2 } +# culture:italo_norman = { +# reset_culture_creation_date = yes +# get_all_innovations_from = scope:old_culture_1 +# get_all_innovations_from = scope:old_culture_2 +# save_scope_as = new_culture +# } +# every_player = { +# if = { +# limit = { +# OR = { +# culture = scope:new_culture +# culture = scope:parent_1 +# culture = scope:parent_2 +# } +# } +# trigger_event = { +# id = culture_notification.1011 +# days = 0 +# } +# } +# else_if = { +# limit = { +# in_diplomatic_range = scope:founder +# } +# trigger_event = { +# id = culture_notification.1001 +# days = 0 +# } +# } +# } +# } +# +# # Player changes culture +# set_culture = culture:italo_norman +# add_character_flag = converted_culture_this_lifetime +# hidden_effect = { +# every_in_list = { +# list = italo_norman_counties +# limit = { +# holder.capital_county = { is_in_list = italo_norman_counties } +# } +# holder = { +# add_to_list = mass_melting_pot_list +# every_courtier = { add_to_list = mass_melting_pot_list } +# every_courtier_away = { add_to_list = mass_melting_pot_list } +# } +# every_in_list = { +# list = mass_melting_pot_list +# limit = { +# OR = { +# culture = culture:norman +# culture = culture:sicilian +# } +# } +# set_culture = culture:italo_norman +# } +# } +# } +# +# show_as_tooltip = { +# custom_tooltip = establish_italo_norman_culture_decision_effect.tt +# culture:italo_norman = { +# get_all_innovations_from = scope:old_culture_1 +# get_all_innovations_from = scope:old_culture_2 +# } +# } +# +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_formed_italo_norman_decision +# } +# } +# +# cost = { +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 0 +# +# modifier = { +# add = 100 +# any_sub_realm_county = { +# percent >= 0.5 +# culture = culture:sicilian +# } +# } +# } +#} +# ####################################### ## Establish the Electorate of Saxony # ## by James Beaumont # @@ -1159,6 +1454,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 100 # # ai_check_interval = 0 # @@ -1274,6 +1570,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_castle_view.dds" # } # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 diff --git a/common/decisions/80_major_decisions_roman.txt b/common/decisions/80_major_decisions_roman.txt index 32d522c90..715a21e7b 100644 --- a/common/decisions/80_major_decisions_roman.txt +++ b/common/decisions/80_major_decisions_roman.txt @@ -109,6 +109,7 @@ # selection_tooltip = restore_roman_empire_decision_tooltip # # Deliberately left in the major group rather than the Roman one. # decision_group_type = major +# sort_order = 130 # # ai_check_interval_by_tier = { # barony = 0 @@ -208,6 +209,7 @@ # selection_tooltip = restore_roman_empire_decision_tooltip # # Deliberately left in the major group rather than the Roman one. # decision_group_type = major +# sort_order = 130 # # ai_check_interval_by_tier = { # barony = 0 @@ -314,6 +316,7 @@ # selection_tooltip = form_rum_sultanate_decision_tooltip # # Deliberately left in the major group rather than the Roman one. # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -516,6 +519,7 @@ # desc = set_capital_constantinople_decision_desc # selection_tooltip = set_capital_constantinople_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -606,6 +610,7 @@ # desc = set_capital_rome_decision_desc # selection_tooltip = set_capital_rome_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -639,14 +644,14 @@ # effect = { # if = { #Usurp if not held personally. # limit = { -# NOT = { title:c_roma.holder = { this = root } } +# NOT = { title:c_roma_urbs.holder = { this = root } } # } # create_title_and_vassal_change = { # type = returned # save_scope_as = change # add_claim_on_loss = no # } -# title:c_roma = { +# title:c_roma_urbs = { # change_title_holder = { # holder = root # change = scope:change @@ -655,7 +660,7 @@ # resolve_title_and_vassal_change = scope:change # # } -# set_realm_capital = title:c_roma +# set_realm_capital = title:c_roma_urbs # } # # ai_potential = { @@ -675,6 +680,7 @@ # desc = establish_iconoclast_patriarchate_decision_desc # selection_tooltip = establish_iconoclast_patriarchate_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -736,6 +742,7 @@ # desc = restore_ecumenical_patriarchate_decision_desc # selection_tooltip = restore_ecumenical_patriarchate_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -797,6 +804,7 @@ # desc = restore_papacy_decision_desc # selection_tooltip = restore_papacy_decision_tooltip # decision_group_type = major +# sort_order = 110 # # ai_check_interval_by_tier = { # barony = 0 @@ -867,6 +875,7 @@ # desc = restore_pope_in_rome_decision_desc # selection_tooltip = restore_pope_in_rome_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -985,6 +994,7 @@ # desc = dismantle_papacy_decision_desc # selection_tooltip = dismantle_papacy_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -1070,6 +1080,7 @@ # desc = unify_italian_empire_decision_desc # selection_tooltip = unify_italian_empire_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -1193,6 +1204,7 @@ # completely_controls_region = world_europe_south_italy # #And Lotharingia (the Rhine). # completely_controls = title:d_luxembourg +# completely_controls = title:d_liege # completely_controls = title:d_brabant # completely_controls = title:d_cologne # completely_controls = title:d_upper_lorraine @@ -1235,6 +1247,7 @@ # desc = dismantle_byz_pretender_decision_desc # selection_tooltip = dismantle_byz_pretender_decision_tooltip # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 @@ -1317,6 +1330,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_legitimacy.dds" # } # decision_group_type = major +# sort_order = 100 # # ai_check_interval_by_tier = { # barony = 0 diff --git a/common/decisions/80_major_decisions_south_asia.txt b/common/decisions/80_major_decisions_south_asia.txt index 486227d14..1a455a0d1 100644 --- a/common/decisions/80_major_decisions_south_asia.txt +++ b/common/decisions/80_major_decisions_south_asia.txt @@ -1,13 +1,13 @@ ###DECISIONS LIST### - +# ## #Become Chakravarti #Become Lord/Lady of the Sacred River #Declare Bene Israel #Found the Empire of Hindustan ## - - +# +# ########### ##Become Chakravarti ## by Petter Vilberg @@ -17,6 +17,7 @@ # reference = "gfx/interface/illustrations/decisions/hindu_ruler.dds" # } # decision_group_type = major +# sort_order = 130 # desc = become_chakravarti_decision_desc # # ai_check_interval_by_tier = { @@ -155,6 +156,7 @@ # reference = "gfx/interface/illustrations/decisions/hindu_religious.dds" # } # decision_group_type = major +# sort_order = 100 # ai_check_interval_by_tier = { # barony = 0 # county = 0 @@ -295,6 +297,7 @@ # reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" # } # decision_group_type = major +# sort_order = 110 # # desc = form_bene_israel_decision_desc # selection_tooltip = form_bene_israel_decision_tooltip @@ -414,6 +417,7 @@ # reference = "gfx/interface/illustrations/decisions/hindu_religious.dds" # } # decision_group_type = major +# sort_order = 100 # title = spread_theravada_faith_decision # desc = spread_theravada_faith_decision_desc # confirm_text = spread_theravada_faith_decision_confirm # had to use an override for some reason @@ -521,6 +525,7 @@ # reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_sunder.dds" # } # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 @@ -561,6 +566,7 @@ # government_has_flag = government_is_clan # government_has_mechanic = administrative # government_has_flag = government_is_landless_adventurer +# government_has_flag = government_is_merchant # } # OR = { # highest_held_title_tier <= tier_kingdom diff --git a/common/decisions/dlc_decisions/ep3_decisions.txt b/common/decisions/dlc_decisions/ep3_decisions.txt index f608f668d..6906c4cb5 100644 --- a/common/decisions/dlc_decisions/ep3_decisions.txt +++ b/common/decisions/dlc_decisions/ep3_decisions.txt @@ -2965,7 +2965,12 @@ commission_silk_regalia_decision = { 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 } + if = { + limit = { + NOT = { scope:local_artisan = { is_courtier_of = root } } + } + root = { add_courtier = scope:local_artisan } + } scope:local_artisan = { add_character_flag = local_artisan } diff --git a/common/decisions/dlc_decisions/ep_3/06_ep3_laamp_decisions.txt b/common/decisions/dlc_decisions/ep_3/06_ep3_laamp_decisions.txt index bd76673c3..b4dc152f9 100644 --- a/common/decisions/dlc_decisions/ep_3/06_ep3_laamp_decisions.txt +++ b/common/decisions/dlc_decisions/ep_3/06_ep3_laamp_decisions.txt @@ -50,11 +50,11 @@ become_landless_adventurer_decision = { #DLC check. OR = { AND = { - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes is_ai = no } AND = { - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes OR = { ai_can_valid_to_create_laamp_trigger = yes is_ai = no @@ -510,7 +510,7 @@ wipe_slate_decision = { is_shown = { # DLC check. - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes # Plus, we must have the actual trait. has_trait = gallowsbait } @@ -806,7 +806,7 @@ adopt_a_kennel_dog = { cooldown = { years = 5 } is_shown = { #DLC check. - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes #Standard filter checks. domicile ?= { has_domicile_parameter = camp_unlocks_adopt_a_kennel_dog_decision } NOT = { @@ -878,7 +878,7 @@ treasure_hunting_contract_decision = { is_shown = { #DLC check. - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes any_character_active_contract = { task_contract_type = laamp_treasure_hunting_contract @@ -1218,8 +1218,12 @@ treasure_hunting_contract_decision = { text = treasure_hunting_contract_decision_limit capital_province ?= { OR = { - geographical_region = world_india - geographical_region = world_steppe + geographical_region = world_asia_china + geographical_region = world_burma + geographical_region = world_middle_east_persia + geographical_region = world_steppe_tarim + geographical_region = world_india_bengal + geographical_region = world_india_rajastan } } } @@ -1237,9 +1241,11 @@ treasure_hunting_contract_decision = { text = treasure_hunting_contract_decision_limit capital_province ?= { OR = { - geographical_region = world_india + geographical_region = world_asia_china + geographical_region = world_india_rajastan + geographical_region = world_middle_east_persia + geographical_region = world_steppe_central geographical_region = world_tibet - geographical_region = world_steppe } } } @@ -1257,12 +1263,10 @@ treasure_hunting_contract_decision = { text = treasure_hunting_contract_decision_limit capital_province ?= { OR = { - geographical_region = world_india - geographical_region = world_tibet - geographical_region = world_steppe + geographical_region = world_steppe_central geographical_region = world_europe_east - geographical_region = world_europe_north geographical_region = world_asia_minor + geographical_region = world_siberia } } } @@ -1280,10 +1284,11 @@ treasure_hunting_contract_decision = { text = treasure_hunting_contract_decision_limit capital_province ?= { OR = { - geographical_region = world_india - geographical_region = world_tibet - geographical_region = world_steppe geographical_region = world_asia_china + geographical_region = world_asia_north_east + geographical_region = world_siberia + geographical_region = world_steppe_central + geographical_region = world_steppe_tarim } } } @@ -1568,7 +1573,7 @@ visit_local_settlement_decision = { is_shown = { #DLC check. - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes OR = { has_government = landless_adventurer_government has_government = landless_minority_government } } @@ -1681,7 +1686,7 @@ treasure_map_contract_decision = { is_shown = { #DLC check. - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes any_character_active_contract = { task_contract_type = laamp_treasure_map_contract } any_character_artifact = { has_variable = 1025_treasure_map } } @@ -2426,7 +2431,7 @@ gather_provisions_decision = { is_shown = { #DLC check. - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes OR = { has_government = landless_adventurer_government has_government = landless_minority_government } } @@ -3131,7 +3136,7 @@ butcher_animals_decision = { is_shown = { # DLC check. - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes # Standard filters. OR = { has_government = landless_adventurer_government has_government = landless_minority_government } # Flavour checks. @@ -3285,7 +3290,7 @@ humiliate_the_stooge_decision = { } is_shown = { - has_ep3_dlc_trigger = yes + has_playable_adventurer_dlc_trigger = yes has_government = landless_adventurer_government } diff --git a/common/decisions/dlc_decisions/fp_1/00_fp1_major_decisions.txt b/common/decisions/dlc_decisions/fp_1/00_fp1_major_decisions.txt index 46853c053..b1fccfe66 100644 --- a/common/decisions/dlc_decisions/fp_1/00_fp1_major_decisions.txt +++ b/common/decisions/dlc_decisions/fp_1/00_fp1_major_decisions.txt @@ -20,6 +20,7 @@ # reference = "gfx/interface/illustrations/decisions/fp1_decision_raise_runestone.dds" # } # decision_group_type = major +# sort_order = 120 # # ai_check_interval_by_tier = { # barony = 0 diff --git a/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt b/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt index 3ebf5e04f..530d14fde 100644 --- a/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt +++ b/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt @@ -193,8 +193,8 @@ # base = 100 # } #} - - +# +# ### Promote Persian Scriptures ### #fp3_promote_persian_scripture_decision = { # title = fp3_promote_persian_scripture_decision_name @@ -314,7 +314,6 @@ # has_trait = craven # has_trait = shy # has_relation_lover = root -# has_relation_soulmate = root # is_vassal_of = root # } # } diff --git a/common/decisions/dlc_decisions/mpo/mpo_decisions.txt b/common/decisions/dlc_decisions/mpo/mpo_decisions.txt index 0f27650bd..91bdae1cc 100644 --- a/common/decisions/dlc_decisions/mpo/mpo_decisions.txt +++ b/common/decisions/dlc_decisions/mpo/mpo_decisions.txt @@ -3,8 +3,9 @@ call_for_confederation_decision = { picture = { reference = "gfx/interface/illustrations/decisions/mpo_decision_confederation.dds" } - decision_group_type = major - + decision_group_type = realm + sort_order = 20 + ai_check_interval_by_tier = { barony = 0 county = 8 @@ -20,10 +21,9 @@ call_for_confederation_decision = { is_shown = { highest_held_title_tier <= tier_duchy NOR = { - is_confederation_member = yes has_character_flag = forming_confederation + is_confederation_member = yes } - is_playable_character = yes } is_valid = { @@ -197,6 +197,30 @@ call_for_confederation_decision = { is_playable_character = yes is_confederation_member = no is_alive = yes + trigger_if = { + limit = { + government_has_flag = government_is_nomadic + } + OR = { + has_realm_law = nomadic_authority_1 + has_realm_law = nomadic_authority_2 + } + } + trigger_else = { + OR = { + has_realm_law = tribal_authority_0 + has_realm_law = tribal_authority_1 + has_realm_law = tribal_authority_2 + } + } + NOR = { + has_trait = conqueror + has_trait = greatest_of_khans + has_trait = infirm + } + age >= 6 + is_available = yes + is_migrating = no #Culture friends any_land_neighboring_realm_with_tributaries_owner = { count >= 2 @@ -394,6 +418,12 @@ call_for_confederation_decision = { ### Abandon Confederation ### leave_confederation_decision = { + picture = { + trigger = { + gdp_is_league_member_trigger = yes + } + reference = "gfx/interface/illustrations/decisions/independent.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/mpo_decision_confederation.dds" } @@ -407,11 +437,45 @@ leave_confederation_decision = { hegemony = 0 } - desc = leave_confederation_decision_desc - selection_tooltip = leave_confederation_decision_tooltip + title = { + first_valid = { + triggered_desc = { + trigger = { + gdp_is_league_member_trigger = yes + } + desc = leave_confederation_decision_league + } + desc = leave_confederation_decision + } + } + desc = { + first_valid = { + triggered_desc = { + trigger = { + gdp_is_league_member_trigger = yes + } + desc = leave_confederation_decision_desc_league + } + desc = leave_confederation_decision_desc + } + } + selection_tooltip = { + first_valid = { + triggered_desc = { + trigger = { + gdp_is_league_member_trigger = yes + } + desc = leave_confederation_decision_tooltip_league + } + desc = leave_confederation_decision_tooltip + } + } is_shown = { - confederation ?= { is_house_based = no } + confederation ?= { + is_house_based = no + confederation_type != confederation_type:lombard_league + } } is_valid = { @@ -470,22 +534,7 @@ leave_confederation_decision = { } show_as_tooltip = { root.confederation = { - #Your confederation will survive, it has more members - if = { - limit = { - any_confederation_member = { - count >= 2 - NOT = { - this = root - } - } - } - remove_confederation_member = root - } - #Your confederation is toast - else = { - disband_confederation = yes - } + leave_confederation_membership_effect = { LEAVER = root } } } if = { @@ -496,7 +545,16 @@ leave_confederation_decision = { remove_character_modifier = mpo_confederation_member_modifier } } - custom_tooltip = confederates_lose_opinion_tt + if = { + limit = { + gdp_is_league_member_trigger = yes + } + custom_tooltip = trade_league_member_lose_opinion_tt + } + else = { + custom_tooltip = confederates_lose_opinion_tt + } + save_scope_as = leaver trigger_event = { @@ -516,13 +574,11 @@ leave_confederation_decision = { has_trait = greatest_of_khans has_trait = conqueror is_gurkhan = yes - } - } - any_land_neighboring_realm_with_tributaries_owner = { - any_owned_story = { - OR = { - story_type = story_mongol_invasion - story_type = story_greatest_of_khans + any_owned_story = { + OR = { + story_type = story_mongol_invasion + story_type = story_greatest_of_khans + } } } } @@ -557,15 +613,17 @@ leave_confederation_decision = { base = 0 # PERKS modifier = { # Only member of culture - NOT = { - confederation = { + confederation = { + NOT = { any_confederation_member = { + this = root has_same_culture_as = root } } } confederation = { any_confederation_member = { + this != root culture = { cultural_acceptance = { target = root.culture @@ -581,7 +639,6 @@ leave_confederation_decision = { multiply = -0.5 } } - # MAIN modifier = { #Only member of faith, no pluralism. NOR = { @@ -675,11 +732,9 @@ leave_confederation_decision = { add = 50 } modifier = { #I fought an independence war against confederation member - root = { - exists = var:independence_war_former_liege - var:independence_war_former_liege = { - is_member_of_confederation = root.confederation - } + exists = var:independence_war_former_liege + var:independence_war_former_liege = { + is_member_of_confederation = root.confederation } add = 100 } @@ -697,6 +752,9 @@ leave_confederation_decision = { add = 20 } modifier = { # Isolationist tradition and all members are other culture + trigger = { + gdp_is_league_member_trigger = no + } confederation = { NOT = { any_confederation_member = { @@ -713,6 +771,9 @@ leave_confederation_decision = { add = 50 } modifier = { # Isolationist tradition + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -734,14 +795,10 @@ leave_confederation_decision = { add = 10 } modifier = { #All Bankrupt - NOT = { - confederation = { - any_confederation_member = { - NOT = { - this = root - } - gold <= -1 - } + confederation = { + any_confederation_member = { + this != root + gold <= -1 } } add = 50 @@ -757,10 +814,11 @@ leave_confederation_decision = { } modifier = { # Is the Rightful Liege of recipient trigger = { - confederation = { - any_confederation_member = { - is_rightful_liege_of = root - } + gdp_is_league_member_trigger = no + } + confederation = { + any_confederation_member = { + is_rightful_liege_of = root } } add = -20 @@ -768,13 +826,14 @@ leave_confederation_decision = { modifier = { #No adjacency desc = offer_vassalization_interaction_aibehavior_unconnectedrealm_tt trigger = { - NOT = { - any_land_neighboring_realm_with_tributaries_owner = { - OR = { + gdp_is_league_member_trigger = no + } + NOT = { + any_land_neighboring_realm_with_tributaries_owner = { + OR = { + is_member_of_confederation = root.confederation + suzerain ?= { is_member_of_confederation = root.confederation - suzerain ?= { - is_member_of_confederation = root.confederation - } } } } @@ -784,21 +843,22 @@ leave_confederation_decision = { modifier = { #Distant Realm desc = offer_vassalization_interaction_aibehavior_distantrealm_tt trigger = { - NOR = { - any_land_neighboring_realm_with_tributaries_owner = { - OR = { + gdp_is_league_member_trigger = no + } + NOR = { + any_land_neighboring_realm_with_tributaries_owner = { + OR = { + is_member_of_confederation = root.confederation + suzerain ?= { is_member_of_confederation = root.confederation - suzerain ?= { - is_member_of_confederation = root.confederation - } } } - confederation = { - any_confederation_member = { - this != root - capital_province = { - squared_distance = { target = root.capital_province value < 100000 } - } + } + confederation = { + any_confederation_member = { + this != root + capital_province ?= { + squared_distance = { target = root.capital_province value < 100000 } } } } @@ -808,21 +868,22 @@ leave_confederation_decision = { modifier = { #Remote Realm. desc = offer_vassalization_interaction_aibehavior_remoterealm_tt trigger = { - NOR = { - any_land_neighboring_realm_with_tributaries_owner = { - OR = { + gdp_is_league_member_trigger = no + } + NOR = { + any_land_neighboring_realm_with_tributaries_owner = { + OR = { + is_member_of_confederation = root.confederation + suzerain ?= { is_member_of_confederation = root.confederation - suzerain ?= { - is_member_of_confederation = root.confederation - } } } - confederation = { - any_confederation_member = { - this != root - capital_province = { - squared_distance = { target = root.capital_province value < 200000 } - } + } + confederation = { + any_confederation_member = { + this != root + capital_province ?= { + squared_distance = { target = root.capital_province value < 200000 } } } } @@ -831,6 +892,9 @@ leave_confederation_decision = { } #Military strength higher than any member modifier = { + trigger = { + gdp_is_league_member_trigger = no + } NOT = { confederation = { any_confederation_member = { @@ -845,6 +909,9 @@ leave_confederation_decision = { } #Military strength much higher than any member modifier = { + trigger = { + gdp_is_league_member_trigger = no + } NOT = { confederation = { any_confederation_member = { @@ -864,6 +931,9 @@ leave_confederation_decision = { } #Military strength lower than another member modifier = { + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -876,6 +946,9 @@ leave_confederation_decision = { } #Military strength lower than every other member modifier = { + trigger = { + gdp_is_league_member_trigger = no + } confederation = { NOT = { any_confederation_member = { @@ -892,6 +965,7 @@ leave_confederation_decision = { # MINOR modifier = { #Friend modifier. trigger = { + gdp_is_league_member_trigger = no confederation = { any_confederation_member = { has_relation_friend = root @@ -902,6 +976,7 @@ leave_confederation_decision = { } modifier = { #Best Friend modifier. trigger = { + gdp_is_league_member_trigger = no confederation = { any_confederation_member = { has_relation_best_friend = root @@ -912,6 +987,7 @@ leave_confederation_decision = { } modifier = { #Lover modifier. trigger = { + gdp_is_league_member_trigger = no confederation = { any_confederation_member = { has_relation_lover = root @@ -922,6 +998,7 @@ leave_confederation_decision = { } modifier = { #Soulmate modifier. trigger = { + gdp_is_league_member_trigger = no confederation = { any_confederation_member = { has_relation_soulmate = root @@ -932,6 +1009,7 @@ leave_confederation_decision = { } modifier = { #Rivalry modifier. trigger = { + gdp_is_league_member_trigger = no confederation = { any_confederation_member = { has_relation_rival = root @@ -942,6 +1020,7 @@ leave_confederation_decision = { } modifier = { #Nemesis modifier. trigger = { + gdp_is_league_member_trigger = no confederation = { any_confederation_member = { has_relation_nemesis = root @@ -991,6 +1070,7 @@ leave_confederation_decision = { } modifier = { #Illegitimacy modifier. trigger = { + gdp_is_league_member_trigger = no confederation = { any_confederation_member = { NOT = { @@ -1005,6 +1085,7 @@ leave_confederation_decision = { } has_trait = denounced has_trait = disinherited + has_trait = adopted_no_inheritance } } } @@ -1014,11 +1095,9 @@ leave_confederation_decision = { modifier = { # Conqueror/GoK leaves immediately trigger = { - root = { - OR = { - has_trait = conqueror - has_trait = greatest_of_khans - } + OR = { + has_trait = conqueror + has_trait = greatest_of_khans } } add = 1000 @@ -1026,88 +1105,81 @@ leave_confederation_decision = { modifier = { # Ambitious trigger = { - root = { - has_trait = ambitious - } + has_trait = ambitious + gdp_is_league_member_trigger = no } add = 50 } modifier = { # Paranoid trigger = { - root = { - has_trait = paranoid - } + has_trait = paranoid + gdp_is_league_member_trigger = no } add = 20 } modifier = { # Arrogant trigger = { - root = { - has_trait = arrogant - } + has_trait = arrogant + gdp_is_league_member_trigger = no } add = 25 } modifier = { # Fickle trigger = { - root = { - has_trait = fickle - } + has_trait = fickle + gdp_is_league_member_trigger = no } add = 50 } modifier = { # Greedy trigger = { - root = { - has_trait = greedy - } + has_trait = greedy + gdp_is_league_member_trigger = no } add = 20 } modifier = { # just trigger = { - root = { - has_trait = just - } + has_trait = just + gdp_is_league_member_trigger = no } add = -10 } modifier = { # Trusting trigger = { - root = { - has_trait = trusting - } + has_trait = trusting + gdp_is_league_member_trigger = no } add = -20 } modifier = { # Content trigger = { - root = { - has_trait = content - } + has_trait = content + gdp_is_league_member_trigger = no } add = -50 } modifier = { # Craven trigger = { - root = { - has_trait = craven - } + has_trait = craven + gdp_is_league_member_trigger = no } add = -50 } # OPINION INFLUENCE modifier = { - add = -25 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1121,9 +1193,12 @@ leave_confederation_decision = { } } } + add = -25 } modifier = { - add = -50 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1137,8 +1212,12 @@ leave_confederation_decision = { } } } + add = -50 } modifier = { #Compare Opinion modifier. + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1153,6 +1232,9 @@ leave_confederation_decision = { add = 20 } modifier = { #Compare Opinion modifier. + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1167,6 +1249,9 @@ leave_confederation_decision = { add = 20 } modifier = { #Compare Opinion modifier. + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1181,6 +1266,9 @@ leave_confederation_decision = { add = -20 } modifier = { #Compare Opinion modifier. + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1197,7 +1285,9 @@ leave_confederation_decision = { # LOW LEGITIMACY modifier = { - add = 5 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1206,9 +1296,12 @@ leave_confederation_decision = { has_legitimacy_flag = reduced_vassalization_acceptance } } + add = 5 } modifier = { - add = 10 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1217,9 +1310,12 @@ leave_confederation_decision = { has_legitimacy_flag = very_reduced_vassalization_acceptance } } + add = 10 } modifier = { - add = 20 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1228,11 +1324,14 @@ leave_confederation_decision = { has_legitimacy_flag = massively_reduced_vassalization_acceptance } } + add = 20 } # HIGH LEGITIMACY modifier = { - add = -5 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1241,9 +1340,12 @@ leave_confederation_decision = { has_legitimacy_flag = increased_vassalization_acceptance } } + add = -5 } modifier = { - add = -10 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1252,9 +1354,12 @@ leave_confederation_decision = { has_legitimacy_flag = very_increased_vassalization_acceptance } } + add = -10 } modifier = { - add = -25 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1263,21 +1368,27 @@ leave_confederation_decision = { has_legitimacy_flag = extra_increased_vassalization_acceptance } } + add = -25 } # PRESTIGE modifier = { - add = 25 + trigger = { + gdp_is_league_member_trigger = no + } prestige_level >= 4 + add = 25 } modifier = { - add = 25 + trigger = { + gdp_is_league_member_trigger = no + } prestige_level >= 5 + add = 25 } #CULTURE modifier = { - add = -10 confederation = { NOT = { any_confederation_member = { @@ -1287,9 +1398,12 @@ leave_confederation_decision = { } } } + add = -10 } modifier = { - add = 50 + trigger = { + gdp_is_league_member_trigger = no + } confederation = { NOT = { any_confederation_member = { @@ -1315,19 +1429,16 @@ leave_confederation_decision = { } } } + add = 50 } #Conquerors have no interest in this modifier = { - root = { - has_trait = conqueror - } + has_trait = conqueror add = 500 } modifier = { - root = { - has_trait = greatest_of_khans - } + has_trait = greatest_of_khans add = 500 } @@ -1343,49 +1454,49 @@ leave_confederation_decision = { #No threat to confederate against modifier = { - add = 75 - root = { - NOT = { - confederation_foe_trigger = { CHARACTER = root } - } + trigger = { + gdp_is_league_member_trigger = no } + NOT = { + confederation_foe_trigger = { CHARACTER = root } + } + add = 75 } #Has confederation threat modifier = { - add = -25 - root = { - confederation_foe_trigger = { CHARACTER = root } + trigger = { + gdp_is_league_member_trigger = no } + confederation_foe_trigger = { CHARACTER = root } + add = -25 } #Neighbor is scaring them modifier = { add = -50 - root = { - any_land_neighboring_realm_with_tributaries_owner = { - top_suzerain = { - NOR = { - this = liege - this = top_liege - } - confederation_worthy_foe_strength_ratio_value_root <= 0.25 - NOT = { is_allied_to = root } - OR = { - highest_held_title_tier >= tier_kingdom - faith = { - faith_hostility_level = { - target = root.faith - value >= faith_evil_level - } + any_land_neighboring_realm_with_tributaries_owner = { + top_suzerain = { + NOR = { + this = liege + this = top_liege + } + confederation_worthy_foe_strength_ratio_value_root <= 0.25 + NOT = { is_allied_to = root } + OR = { + highest_held_title_tier >= tier_kingdom + faith = { + faith_hostility_level = { + target = root.faith + value >= faith_evil_level } - has_trait = conqueror - has_trait = greatest_of_khans - any_owned_story = { - OR = { - story_type = story_greatest_of_khans - story_type = story_mongol_invasion - } + } + has_trait = conqueror + has_trait = greatest_of_khans + any_owned_story = { + OR = { + story_type = story_greatest_of_khans + story_type = story_mongol_invasion } } } @@ -1395,40 +1506,41 @@ leave_confederation_decision = { #Neighbor is TERRIFYING them modifier = { - add = -100 - root = { - any_land_neighboring_realm_with_tributaries_owner = { - top_suzerain = { - NOR = { - this = liege - this = top_liege - } - confederation_worthy_foe_strength_ratio_value_root <= 0.1 - NOT = { is_allied_to = root } - OR = { - highest_held_title_tier >= tier_kingdom - faith = { - faith_hostility_level = { - target = root.faith - value >= faith_evil_level - } + any_land_neighboring_realm_with_tributaries_owner = { + top_suzerain = { + NOR = { + this = liege + this = top_liege + } + confederation_worthy_foe_strength_ratio_value_root <= 0.1 + NOT = { is_allied_to = root } + OR = { + highest_held_title_tier >= tier_kingdom + faith = { + faith_hostility_level = { + target = root.faith + value >= faith_evil_level } - has_trait = conqueror - has_trait = greatest_of_khans - any_owned_story = { - OR = { - story_type = story_greatest_of_khans - story_type = story_mongol_invasion - } + } + has_trait = conqueror + has_trait = greatest_of_khans + any_owned_story = { + OR = { + story_type = story_greatest_of_khans + story_type = story_mongol_invasion } } } } } + add = -100 } #You have too many vassals modifier = { + trigger = { + gdp_is_league_member_trigger = no + } save_temporary_scope_as = actor scope:actor.confederation = { any_confederation_member = { @@ -1463,18 +1575,24 @@ leave_confederation_decision = { } modifier = { - add = -50 has_trait = loyal + add = -50 } modifier = { - add = 50 has_trait = disloyal + add = 50 } modifier = { + trigger = { + gdp_is_league_member_trigger = no + } has_trait = infirm add = -10 } modifier = { + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { NOT = { @@ -1487,6 +1605,9 @@ leave_confederation_decision = { } #Confederation has only two modifier = { + trigger = { + gdp_is_league_member_trigger = no + } confederation = { any_confederation_member = { count <= 2 @@ -1497,10 +1618,16 @@ leave_confederation_decision = { } #Doing great and doesn't need confederation modifier = { + trigger = { + gdp_is_league_member_trigger = no + } war_chest_gold >= war_chest_gold_maximum add = 25 } modifier = { + trigger = { + gdp_is_league_member_trigger = no + } NOR = { any_land_neighboring_realm_with_tributaries_owner = { NOT = { is_allied_to = root } @@ -1524,19 +1651,27 @@ leave_confederation_decision = { add = 50 } modifier = { + trigger = { + gdp_is_league_member_trigger = no + } domain_size >= 4 add = 15 } modifier = { + trigger = { + gdp_is_league_member_trigger = no + } domain_size >= 5 add = 20 } modifier = { + trigger = { + gdp_is_league_member_trigger = no + } domain_size >= 6 add = 25 } modifier = { - add = -10 culture = { OR = { has_cultural_pillar = ethos_stoic @@ -1544,9 +1679,9 @@ leave_confederation_decision = { has_cultural_pillar = ethos_egalitarian } } + add = -10 } modifier = { - add = 10 culture = { OR = { has_cultural_pillar = ethos_bellicose @@ -1554,9 +1689,12 @@ leave_confederation_decision = { has_cultural_pillar = ethos_bureaucratic } } + add = 10 } modifier = { - add = 100 + trigger = { + gdp_is_league_member_trigger = no + } ai_energy > low_negative_ai_value ai_boldness > low_negative_ai_value NOR = { @@ -1568,22 +1706,22 @@ leave_confederation_decision = { NOT = { has_character_flag = new_confederate } + add = 100 } #Recent AI confederates should really not take this modifier = { - add = -500 has_character_flag = new_confederate + add = -500 } modifier = { - add = -25 confederation = { any_confederation_member = { is_primary_heir_of = root } } + add = -25 } modifier = { - add = -50 confederation = { any_confederation_member = { root = { @@ -1591,9 +1729,9 @@ leave_confederation_decision = { } } } + add = -50 } modifier = { - add = -25 confederation = { any_confederation_member = { any_spouse = { @@ -1601,17 +1739,17 @@ leave_confederation_decision = { } } } + add = -25 } modifier = { - add = -25 confederation = { any_confederation_member = { is_close_family_of = root } } + add = -25 } modifier = { - add = -20 confederation = { any_confederation_member = { any_spouse = { @@ -1619,9 +1757,9 @@ leave_confederation_decision = { } } } + add = -20 } modifier = { - add = -20 confederation = { any_confederation_member = { any_close_family_member = { @@ -1634,6 +1772,7 @@ leave_confederation_decision = { } } } + add = -20 } modifier = { desc = "BARANGAY_TRADITION_REASON" @@ -1644,6 +1783,13 @@ leave_confederation_decision = { } add = -20 } + #Trade Leagues should be durable + modifier = { + trigger = { + gdp_is_league_member_trigger = yes + } + add = -50 + } } } @@ -1667,17 +1813,20 @@ study_commander_trait_decision = { selection_tooltip = study_commander_trait_decision_tooltip is_shown = { + has_mpo_dlc_trigger = yes government_has_flag = government_is_nomadic is_playable_character = yes is_available_adult = yes - number_of_commander_traits < commander_trait_limit NOR = { has_trait = conqueror has_trait = greatest_of_khans has_character_flag = study_commander_trait_cooldown has_character_flag = is_learning_commander_trait } - has_mpo_dlc_trigger = yes + number_of_commander_traits < commander_trait_limit + domicile ?= { + has_domicile_building_or_higher = mass_warfare_yurt_01 + } } is_valid = { @@ -1754,10 +1903,10 @@ mpo_decision_fertility_dance = { cooldown = { years = 5 } is_shown = { - government_has_flag = government_is_nomadic - is_available_adult = yes - is_landed = yes has_mpo_dlc_trigger = yes + government_has_flag = government_is_nomadic + is_landed = yes + is_available_adult = yes any_sub_realm_county = { uses_county_fertility = yes } @@ -1833,15 +1982,15 @@ mpo_decision_fertility_dance = { } ai_potential = { + has_mpo_dlc_trigger = yes + government_has_flag = government_is_nomadic is_landed = yes is_available_adult = yes is_at_war = no is_incapable = no - any_sub_realm_county = { - uses_county_fertility = yes - county_fertility <= 25 - } piety >= medium_piety_value + employs_court_position = court_astrologer_court_position + any_sub_realm_county = { uses_county_fertility = yes county_fertility <= 25 } } ai_will_do = { @@ -1894,6 +2043,9 @@ mpo_decision_introduce_heir = { count >= 1 } } + domicile ?= { + has_domicile_building_or_higher = family_yurt_01 + } } is_valid = { @@ -1969,7 +2121,6 @@ mpo_decision_introduce_heir = { has_trait = wounded_3 has_trait = infirm has_relation_rival = root - has_relation_nemesis = root exists = involved_activity is_at_war_with = root } @@ -2073,8 +2224,6 @@ mpo_decision_introduce_heir = { } OR = { has_relation_friend = root - has_relation_best_friend = root - has_relation_blood_brother = root AND = { exists = house exists = root.house @@ -2100,8 +2249,6 @@ mpo_decision_introduce_heir = { } OR = { has_relation_friend = root - has_relation_best_friend = root - has_relation_blood_brother = root AND = { exists = house exists = root.house @@ -2189,21 +2336,13 @@ mpo_decision_introduce_heir = { OR = { any_ally = { mpo_valid_heir_friend_trigger = { CHARACTER = root } - OR = { - has_relation_friend = root - has_relation_best_friend = root - has_relation_blood_brother = root - } + has_relation_friend = root } any_vassal = { is_powerful_vassal = yes is_obedient_to = root mpo_valid_heir_friend_trigger = { CHARACTER = root } - OR = { - has_relation_friend = root - has_relation_best_friend = root - has_relation_blood_brother = root - } + has_relation_friend = root } any_relation = { type = friend @@ -2790,6 +2929,21 @@ expand_the_steppe_decision = { } } } + is_valid = { + custom_tooltip = { + text = custom_north_east_asia_expand_steppe_tt + situation:the_great_steppe ?= { + NOT = { + any_situation_sub_region = { + situation_sub_region_has_geographical_region = dlc_mpo_steppe_north_east_asia_expansion + } + } + } + any_realm_province = { + geographical_region = dlc_mpo_steppe_north_east_asia_expansion + } + } + } localization = dlc_mpo_steppe_north_east_asia_expansion icon = "gfx/interface/icons/message_feed/banner.dds" ai_chance = { @@ -2858,22 +3012,25 @@ expand_the_steppe_decision = { } is_shown = { + has_mpo_dlc_trigger = yes + + government_has_flag = government_is_nomadic + any_character_situation = { situation:the_great_steppe ?= this } - government_has_flag = government_is_nomadic - OR = { - great_steppe_not_in_sub_region_trigger = { REGION = world_khorasan } great_steppe_not_in_sub_region_trigger = { REGION = ghw_region_anatolia } great_steppe_not_in_sub_region_trigger = { REGION = custom_eastern_balkans } great_steppe_not_in_sub_region_trigger = { REGION = ghw_region_northern_russia } + great_steppe_not_in_sub_region_trigger = { REGION = ghw_region_southern_russia } great_steppe_not_in_sub_region_trigger = { REGION = custom_hungary } great_steppe_not_in_sub_region_trigger = { REGION = ghw_region_poland } great_steppe_not_in_sub_region_trigger = { REGION = ghw_region_baltic } great_steppe_not_in_sub_region_trigger = { REGION = dlc_mpo_steppe_caucasus_expansion } great_steppe_not_in_sub_region_trigger = { REGION = world_transoxiana } + great_steppe_not_in_sub_region_trigger = { REGION = world_khorasan } great_steppe_not_in_sub_region_trigger = { REGION = dlc_mpo_steppe_persia_expansion } great_steppe_not_in_sub_region_trigger = { REGION = dlc_mpo_steppe_siberia_further_expansion } great_steppe_not_in_sub_region_trigger = { REGION = dlc_mpo_steppe_hexi_tarim_expansion } @@ -2882,10 +3039,7 @@ expand_the_steppe_decision = { great_steppe_not_in_sub_region_trigger = { REGION = dlc_mpo_steppe_north_east_asia_expansion } great_steppe_not_in_sub_region_trigger = { REGION = world_asia_korea } great_steppe_not_in_sub_region_trigger = { REGION = world_asia_japan } - great_steppe_not_in_sub_region_trigger = { REGION = ghw_region_southern_russia } } - - has_mpo_dlc_trigger = yes } is_valid = { @@ -3091,13 +3245,13 @@ develop_fertility_decision = { cooldown = { years = 10 } is_shown = { - government_has_flag = government_is_nomadic OR = { has_trait = diligent has_trait = architect has_trait = lifestyle_surveyor } is_landed = yes + government_has_flag = government_is_nomadic } is_valid_showing_failures_only = { @@ -4624,9 +4778,14 @@ settle_people_decision = { selection_tooltip = settle_people_decision_tooltip is_shown = { + has_mpo_dlc_trigger = yes government_has_flag = government_is_nomadic is_playable_character = yes - has_mpo_dlc_trigger = yes + OR = { + has_realm_law = nomadic_authority_3 + has_realm_law = nomadic_authority_4 + has_realm_law = nomadic_authority_5 + } } is_valid = { @@ -4672,73 +4831,7 @@ settle_people_decision = { } nomad_domicile_refund_effect = yes nomad_convert_herds_to_gold_special_troops_effect = yes - every_sub_realm_county = { - limit = { - title_province = { - NOR = { - has_holding_type = nomad_holding - has_holding_type = herder_holding - } - } - } - add_to_list = potential_new_capitals - } - every_held_title = { - limit = { - tier = tier_county - title_province = { - NOR = { - has_holding_type = nomad_holding - has_holding_type = herder_holding - } - } - } - add_to_list = potential_new_capitals - } - ordered_in_list = { - order_by = development_level - list = potential_new_capitals - save_scope_as = new_capital - } - if = { - limit = { - capital_county = { - title_province = { - NOR = { - has_holding_type = nomad_holding - has_holding_type = herder_holding - } - } - } - } - capital_county = { - save_scope_as = new_capital - } - } - if = { - limit = { - exists = scope:new_capital - capital_county != scope:new_capital - } - if = { - limit = { - scope:new_capital.holder != root - } - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = yes - } - scope:new_capital = { - change_title_holder = { - holder = root - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - set_realm_capital = scope:new_capital - } + take_sub_realm_county_as_new_capital_effect = { EXCLUDE = holding_is_nomad } scope:new_capital.duchy = { save_scope_as = nomad_duchy_for_name } #Should gain target title, if possible if = { @@ -5402,6 +5495,8 @@ settle_people_decision = { } ai_potential = { + government_has_flag = government_is_nomadic + OR = { has_realm_law = nomadic_authority_3 has_realm_law = nomadic_authority_4 has_realm_law = nomadic_authority_5 } NOR = { has_trait = greatest_of_khans has_trait = conqueror @@ -5425,9 +5520,7 @@ settle_people_decision = { # } NOT = { any_sub_realm_county = { - title_province = { - has_holding_type = nomad_holding - } + title_province = { has_holding_type = nomad_holding } } } } @@ -5468,7 +5561,7 @@ settle_people_decision = { } } - # development checks + # prosperity checks modifier = { add = 25 @@ -5478,7 +5571,7 @@ settle_people_decision = { title_province = { NOT = { has_holding_type = nomad_holding } } - development_level >= root.capital_county.development_level + prosperity_level >= root.capital_county.prosperity_level } } @@ -5596,9 +5689,9 @@ step_away_from_the_steppe_decision = { selection_tooltip = step_away_from_the_steppe_decision_tooltip is_shown = { + has_mpo_dlc_trigger = yes government_has_flag = government_is_nomadic is_playable_character = yes - has_mpo_dlc_trigger = yes } is_valid = { @@ -5631,73 +5724,7 @@ step_away_from_the_steppe_decision = { gok_government_change_story_end_effect = yes nomad_domicile_refund_effect = yes nomad_convert_herds_to_gold_special_troops_effect = yes - every_sub_realm_county = { - limit = { - title_province = { - NOR = { - has_holding_type = nomad_holding - has_holding_type = herder_holding - } - } - } - add_to_list = potential_new_capitals - } - every_held_title = { - limit = { - tier = tier_county - title_province = { - NOR = { - has_holding_type = nomad_holding - has_holding_type = herder_holding - } - } - } - add_to_list = potential_new_capitals - } - ordered_in_list = { - order_by = development_level - list = potential_new_capitals - save_scope_as = new_capital - } - if = { - limit = { - capital_county = { - title_province = { - NOR = { - has_holding_type = nomad_holding - has_holding_type = herder_holding - } - } - } - } - capital_county = { - save_scope_as = new_capital - } - } - if = { - limit = { - exists = scope:new_capital - capital_county != scope:new_capital - } - if = { - limit = { - scope:new_capital.holder != root - } - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = yes - } - scope:new_capital = { - change_title_holder = { - holder = root - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - set_realm_capital = scope:new_capital - } + take_sub_realm_county_as_new_capital_effect = { EXCLUDE = holding_is_nomad } every_held_title = { limit = { @@ -5976,6 +6003,8 @@ step_away_from_the_steppe_decision = { } ai_potential = { + government_has_flag = government_is_nomadic + is_at_war = no NOR = { has_trait = greatest_of_khans any_owned_story = { @@ -6002,9 +6031,7 @@ step_away_from_the_steppe_decision = { ## } NOT = { any_sub_realm_county = { - title_province = { - has_holding_type = nomad_holding - } + title_province = { has_holding_type = nomad_holding } } } } @@ -6045,7 +6072,7 @@ step_away_from_the_steppe_decision = { } } - # development checks + # prosperity checks modifier = { add = 25 @@ -6055,7 +6082,7 @@ step_away_from_the_steppe_decision = { title_province = { NOT = { has_holding_type = nomad_holding } } - development_level >= root.capital_county.development_level + prosperity_level >= root.capital_county.prosperity_level } } @@ -6173,10 +6200,13 @@ confederation_kingdom_decision = { is_shown = { is_confederation_member = yes - is_landed = yes - NOT = { exists = confederation.leading_house } - is_playable_character = yes exists = confederation + is_landed = yes + is_playable_character = yes + NOR = { + exists = confederation.leading_house + gdp_is_league_member_trigger = yes + } } is_valid = { @@ -6409,9 +6439,9 @@ settle_the_steppe_decision = { selection_tooltip = settle_the_steppe_decision_tooltip is_shown = { + has_mpo_dlc_trigger = yes government_has_flag = government_is_nomadic is_playable_character = yes - has_mpo_dlc_trigger = yes } is_valid = { @@ -6578,7 +6608,7 @@ settle_the_steppe_decision = { value = domicile.herd } save_scope_value_as = { - name = development_herd_value + name = prosperity_herd_value value = domicile.herd } nomad_domicile_refund_effect = yes @@ -6608,7 +6638,7 @@ settle_the_steppe_decision = { custom_tooltip = nomad_holdings_convert_tt custom_tooltip = nomad_vassals_convert_tt custom_tooltip = buildings_based_on_herd_tt - custom_tooltip = development_based_on_herd_tt + custom_tooltip = prosperity_based_on_herd_tt hidden_effect = { #Nuke tribal authorities. @@ -6632,65 +6662,28 @@ settle_the_steppe_decision = { limit = { has_realm_law = nomadic_authority_5 } remove_realm_law = nomadic_authority_5 } + every_sub_realm_county = { + limit = { + title_province = { + OR = { + has_holding_type = nomad_holding + has_holding_type = herder_holding + } + province_size < nomadic_holding_settle_minimum_province_size + } + } + title_province = { + change_province_size_progress = { + value = nomadic_holding_settle_minimum_province_size + subtract = province_size + } + } + } if = { limit = { scope:become_tribal_decision = yes } - every_sub_realm_county = { - limit = { - title_province = { - OR = { - has_holding_type = nomad_holding - has_holding_type = herder_holding - } - } - } - title_province = { - set_holding_type = tribal_holding - } - add_to_list = holding_conversion - } - change_government = tribal_government - every_vassal_or_below = { - limit = { - has_government = nomad_government - } - #Nuke tribal authorities. - if = { - limit = { has_realm_law = nomadic_authority_1 } - remove_realm_law = nomadic_authority_1 - } - if = { - limit = { has_realm_law = nomadic_authority_2 } - remove_realm_law = nomadic_authority_2 - } - if = { - limit = { has_realm_law = nomadic_authority_3 } - remove_realm_law = nomadic_authority_3 - } - if = { - limit = { has_realm_law = nomadic_authority_4 } - remove_realm_law = nomadic_authority_4 - } - if = { - limit = { has_realm_law = nomadic_authority_5 } - remove_realm_law = nomadic_authority_5 - } - change_government = tribal_government - if = { - limit = { - NOT = { has_realm_law = tribal_authority_1 } - } - add_realm_law_skip_effects = tribal_authority_1 - } - } - #Start off tribal authorities. - if = { - limit = { - NOT = { has_realm_law = tribal_authority_2 } - } - add_realm_law_skip_effects = tribal_authority_2 - } + nomad_convert_realm_to_tribal_effect = yes } if = { limit = { @@ -6857,7 +6850,7 @@ settle_the_steppe_decision = { } while = { limit = { - scope:development_herd_value >= 2000 + scope:prosperity_herd_value >= 2000 } random_sub_realm_county = { weight = { @@ -6877,12 +6870,12 @@ settle_the_steppe_decision = { is_coastal_county = yes } } - change_development_level = 1 + change_prosperity_level = 1 } save_scope_value_as = { - name = development_herd_value + name = prosperity_herd_value value = { - add = scope:development_herd_value + add = scope:prosperity_herd_value subtract = 2000 } } @@ -6891,7 +6884,7 @@ settle_the_steppe_decision = { else = { while = { limit = { - scope:development_herd_value >= 1000 + scope:prosperity_herd_value >= 1000 } random_sub_realm_county = { weight = { @@ -6911,12 +6904,12 @@ settle_the_steppe_decision = { is_coastal_county = yes } } - change_development_level = 1 + change_prosperity_level = 1 } save_scope_value_as = { - name = development_herd_value + name = prosperity_herd_value value = { - add = scope:development_herd_value + add = scope:prosperity_herd_value subtract = 1000 } } @@ -6964,6 +6957,8 @@ become_nomadic_decision = { desc = become_nomadic_decision_desc selection_tooltip = become_nomadic_decision_tooltip + decision_group_type = realm + sort_order = 40 ai_check_interval = 0 diff --git a/common/decisions/dlc_decisions/pam/bulls_decisions.txt b/common/decisions/dlc_decisions/pam/bulls_decisions.txt index ff783b078..c8d5b93fe 100644 --- a/common/decisions/dlc_decisions/pam/bulls_decisions.txt +++ b/common/decisions/dlc_decisions/pam/bulls_decisions.txt @@ -672,6 +672,10 @@ pam_permit_tenet_bull_decision = { factor = anathema_to_faith_ai_weight_factor tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith } } + modifier = { + factor = anathema_to_faith_ai_weight_factor + tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith } + } } save_scope_as = selected_item } @@ -701,6 +705,10 @@ pam_permit_tenet_bull_decision = { factor = anathema_to_faith_ai_weight_factor tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith } } + modifier = { + factor = anathema_to_faith_ai_weight_factor + tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith } + } } save_scope_as = selected_item } diff --git a/common/decisions/dlc_decisions/pam/pam_decisions.txt b/common/decisions/dlc_decisions/pam/pam_decisions.txt index fbc21e85f..409e3d061 100644 --- a/common/decisions/dlc_decisions/pam/pam_decisions.txt +++ b/common/decisions/dlc_decisions/pam/pam_decisions.txt @@ -1852,9 +1852,16 @@ pam_reform_monastic_endowment_decision = { } is_shown = { - exists = top_participant_group:the_christian_church has_pam_dlc_trigger = yes is_ruler = yes + top_participant_group:the_christian_church ?= { + has_participant_group_parameter = the_christian_church_reform_monastic_endowment + } + any_patroned_holy_order = { + leader = { + government_has_flag = government_is_monastic_holy_order + } + } } is_valid = { diff --git a/common/decisions/dlc_decisions/tgp/tgp_japan_decisions.txt b/common/decisions/dlc_decisions/tgp/tgp_japan_decisions.txt index cf7b6d319..7a5970967 100644 --- a/common/decisions/dlc_decisions/tgp/tgp_japan_decisions.txt +++ b/common/decisions/dlc_decisions/tgp/tgp_japan_decisions.txt @@ -2,6 +2,7 @@ #### Establish Sōryō Fief ### #tgp_japan_establish_house_fief_decision = { # decision_group_type = major +# sort_order = 100 # title = tgp_japan_establish_house_fief_decision # desc = tgp_japan_establish_house_fief_decision_desc # selection_tooltip = tgp_japan_establish_house_fief_decision_tooltip @@ -412,6 +413,7 @@ #### Abandon the Bureaucracy ### #tgp_japan_establish_soryo_manor_decision = { # decision_group_type = major +# sort_order = 100 # title = tgp_japan_establish_soryo_manor_decision # desc = tgp_japan_establish_soryo_manor_decision_desc # selection_tooltip = tgp_japan_establish_house_fief_decision_tooltip @@ -556,6 +558,7 @@ #### Establish Sōryō Administration ### #tgp_japan_establish_soryo_administration_decision = { # decision_group_type = major +# sort_order = 100 # title = tgp_japan_establish_soryo_administration_decision # desc = tgp_japan_establish_soryo_administration_decision_desc # selection_tooltip = tgp_japan_establish_soryo_administration_decision_tooltip @@ -646,6 +649,7 @@ #### Formalize [ROOT.Char.GetHouse.GetNameNoTooltip] Shōgunate ### #tgp_japan_become_shogun_decision = { # decision_group_type = major +# sort_order = 100 # title = tgp_japan_become_shogun_decision # desc = tgp_japan_become_shogun_decision_desc # selection_tooltip = tgp_japan_become_shogun_decision_tooltip @@ -734,6 +738,7 @@ #### Restore Direct Imperial Rule ### #tgp_japan_emperor_restoration_decision = { # decision_group_type = major +# sort_order = 100 # title = tgp_japan_emperor_restoration_decision # desc = tgp_japan_emperor_restoration_decision_desc # selection_tooltip = tgp_japan_emperor_restoration_decision_tooltip @@ -864,7 +869,7 @@ # # Descended from an Emperor # custom_tooltip = { # text = tgp_japan_imperial_branch_decision_emperor_ancestor_trigger -# top_liege.primary_title.var:administrative_ui_special_title ?= { +# ceremonial_liege_title ?= { # any_past_holder = { # OR = { # is_parent_of = root @@ -877,7 +882,7 @@ # # Emperor and heirs cannot take this # custom_tooltip = { # text = tgp_japan_imperial_branch_decision_imperial_heir_trigger -# top_liege.primary_title.var:administrative_ui_special_title ?= { +# ceremonial_liege_title ?= { # NOR = { # holder ?= root # any_title_heir = { this = root } @@ -888,7 +893,7 @@ # # is_valid_showing_failures_only = { # is_available_adult = yes -# top_liege.primary_title.var:administrative_ui_special_title.holder ?= { is_available = yes } +# ceremonial_liege ?= { is_available = yes } # # No direct descendant is currently Governor # custom_tooltip = { # text = tgp_japan_establish_house_fief_direct_descendent_position_trigger @@ -905,7 +910,7 @@ # # effect = { # # Find nearest Emperor -# top_liege.primary_title.var:administrative_ui_special_title ?= { +# ceremonial_liege_title ?= { # random_past_holder = { # limit = { is_parent_of = root } # alternative_limit = { is_grandparent_of = root } @@ -926,7 +931,7 @@ # # Filter out dynasties of Emperors further away from you # target_shares_nearest_related_title_holder_trigger = { # COMPARE = scope:nearest_emperor -# TITLE = root.top_liege.primary_title.var:administrative_ui_special_title +# TITLE = root.ceremonial_liege_title # } # house.house_head.top_liege ?= root.top_liege # } @@ -950,7 +955,7 @@ # # Filter out dynasties of Emperors further away from you # target_shares_nearest_related_title_holder_trigger = { # COMPARE = scope:nearest_emperor -# TITLE = root.top_liege.primary_title.var:administrative_ui_special_title +# TITLE = root.ceremonial_liege_title # } # house.house_head.top_liege ?= root.top_liege # } @@ -1041,13 +1046,17 @@ # add = 25 # } # modifier = { -# top_liege.primary_title.var:administrative_ui_special_title = { +# has_trait = adopted_no_inheritance +# add = 25 +# } +# modifier = { +# ceremonial_liege_title = { # any_past_holder = { is_parent_of = root } # } # add = -50 # } # modifier = { -# top_liege.primary_title.var:administrative_ui_special_title = { +# ceremonial_liege_title = { # any_past_holder = { is_grandparent_of = root } # } # add = -25 @@ -1351,8 +1360,11 @@ # } # # ai_potential = { +# religion ?= religion:buddhism_religion +# NOT = { government_has_flag = government_is_mandala } # is_adult = yes # is_at_war = no +# tgp_is_above_retirement_age_trigger = { REALM_OWNER = root } # # Don't step down freely if you don't have any other house members holding a noble_family_title or inherit any held noble_family_title # OR = { # house ?= { @@ -1367,7 +1379,6 @@ # current_heir.house = root.house # } # } -# tgp_is_above_retirement_age_trigger = { REALM_OWNER = root } # } # # ai_will_do = { @@ -1407,6 +1418,7 @@ #### Restore a Yamato Ten'nō ### #tgp_japan_restore_japanese_monarchy_decision = { # decision_group_type = major +# sort_order = 100 # title = tgp_japan_restore_japanese_monarchy_decision # desc = tgp_japan_restore_japanese_monarchy_decision_desc # selection_tooltip = tgp_japan_restore_japanese_monarchy_decision_tooltip @@ -1469,6 +1481,7 @@ #### Restore Ritsuryō Bureaucracy ### #tgp_japan_restore_japanese_government_decision = { # decision_group_type = major +# sort_order = 100 # title = tgp_japan_restore_japanese_government_decision # desc = tgp_japan_restore_japanese_government_decision_desc # selection_tooltip = tgp_japan_restore_japanese_government_decision_tooltip @@ -1541,6 +1554,7 @@ #### Assert Regional Dominion ### #tgp_japan_assert_regional_dominion_government_decision = { # decision_group_type = major +# sort_order = 100 # title = tgp_japan_assert_regional_dominion_government_decision # # desc = { @@ -1736,7 +1750,7 @@ # set_realm_capital = scope:barony.county # title:e_britannia = { set_capital_county = scope:barony.county } # scope:barony.county = { -# change_development_level = medium_development_level_gain +# change_prosperity_level = medium_prosperity_level_gain # add_county_modifier = { # modifier = tgp_moved_shogun_court_modifier # years = 25