From 29b8e19ef608ad29190d242157fd2c370c74c4da Mon Sep 17 00:00:00 2001 From: Heidesommer Date: Tue, 26 May 2026 08:04:35 -0400 Subject: [PATCH] Fixes --- .../council_tasks/00_court_chaplain_tasks.txt | 210 +- .../culture/name_lists/NEOW_rhinelander.txt | 239 + .../00_divinity_custom_loc.txt | 20 +- .../00_pl_custom_loc_extra.txt | 46 +- .../00_ruler_transition_loc.txt | 2 +- .../06_ce1_epidemics_custom_loc.txt | 26 +- common/decisions/10_nomad_other_decisions.txt | 203 +- .../80_major_decisions_middle_east.txt | 4 +- common/flavorization/00_title_holders.txt | 44 +- common/flavorization/NEOW_title_holders.txt | 12 +- common/landed_titles/baltics.txt | 6 +- common/landed_titles/debug_titles.txt | 12 +- common/on_action/death.txt | 372 +- common/on_action/game_start.txt | 3646 +-- common/on_action/title_on_actions.txt | 6 +- common/on_action/yearly_on_actions.txt | 6 +- .../01_province_properties.txt | 4 +- .../doctrine_types/30_core_tenets.txt | 2 +- .../religion/religion_types/NEOW_theomach.txt | 2 +- common/script_values/02_religion_values.txt | 12 +- .../00_mongol_invasion_effects.txt | 25295 ++++++++-------- .../06_dlc_ce1_legend_effects.txt | 8 +- .../00_available_for_events_triggers.txt | 2 +- .../00_building_requirement_triggers.txt | 6 +- .../00_major_decision_triggers.txt | 2 +- .../03_fp2_scripted_triggers.txt | 24 +- common/scripted_triggers/07_ep3_triggers.txt | 80 +- .../10_ach_scripted_triggers.txt | 2 +- common/traits/00_traits.txt | 6 +- .../iberia_north_africa_events.txt | 6 +- .../major_decisions_events.txt | 79 +- .../mpo_greatest_of_khans_events.txt | 8 +- .../roman_restoration_events.txt | 48 +- events/dlc/ep3/ep3_akolouthos_events.txt | 665 +- events/dlc/ep3/ep3_emperor_yearly_3.txt | 3895 +-- events/dlc/ep3/ep3_laamp_events.txt | 2 +- .../fp1_scandinavian_adventurer_events.txt | 257 +- events/dlc/fp1/fp1_yearly_events.txt | 2 +- events/dlc/fp2/fp2_lyonese_monk_events.txt | 9605 +++--- events/dlc/fp2/fp2_other_decision_events.txt | 2 +- events/dlc/fp2/fp2_struggle_events.txt | 812 +- events/dlc/fp2/fp2_yearly_events.txt | 1422 +- events/dlc/fp2/neutral_struggle_events.txt | 729 +- events/dlc/mpo/mpo_jamukha_flavor_events.txt | 901 +- events/dlc/mpo/mpo_nomads_flavour_events.txt | 12 +- events/easteregg_events.txt | 123 +- .../learning_theology_events.txt | 8 +- .../warfare_lifestyle/warhorse_events.txt | 4 +- events/mpo_misc.txt | 6 +- events/test_events/debug.txt | 4 +- .../scripted_illustrations/ingame.txt | 4 +- .../portrait_animations/animations.txt | 16 +- .../portrait_modifiers/01_beards_base.txt | 72 +- .../common/landed_titles/baltics.txt | 8 +- .../english/replace/council_l_english.yml | 20 +- .../NEOW_religion_opinions_l_english.yml | 2 +- .../zz_NEOW_religion_theomach_l_english.yml | 10 +- .../geographical_region.txt | 2 +- 58 files changed, 24636 insertions(+), 24387 deletions(-) create mode 100644 common/culture/name_lists/NEOW_rhinelander.txt diff --git a/common/council_tasks/00_court_chaplain_tasks.txt b/common/council_tasks/00_court_chaplain_tasks.txt index 3fb9ee11..e5251b98 100644 --- a/common/council_tasks/00_court_chaplain_tasks.txt +++ b/common/council_tasks/00_court_chaplain_tasks.txt @@ -320,21 +320,21 @@ task_conversion = { add = court_chaplain_conversion_contextual_bonuses # Faster conversion for certain special doctrines - if = { - limit = { - scope:councillor_liege.faith = { has_doctrine_parameter = adoptionists_attractively_intuitive_theology } - exists = scope:county - OR = { - scope:county.faith.religion = religion:eastern_orthodox_religion - scope:county.faith.religion = religion:catholic_religion - scope:county.faith.religion = religion:protestant_religion - } - } - add = { - value = fp2_lyonese_monk_conversion_bonus_actual_value - desc = fp2_lyonese_monk_faith_conversion_task_desc - } - } +# if = { +# limit = { +# scope:councillor_liege.faith = { has_doctrine_parameter = adoptionists_attractively_intuitive_theology } +# exists = scope:county +# OR = { +# scope:county.faith.religion = religion:eastern_orthodox_religion +# scope:county.faith.religion = religion:catholic_religion +# scope:county.faith.religion = religion:protestant_religion +# } +# } +# add = { +# value = fp2_lyonese_monk_conversion_bonus_actual_value +# desc = fp2_lyonese_monk_faith_conversion_task_desc +# } +# } if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values limit = { @@ -542,96 +542,96 @@ task_conversion = { } } - # Faster conversion for FP2 Hostility ending, if county is in Iberia and faith was involved - if = { - limit = { - exists = scope:councillor.liege.house - scope:councillor.liege.house = { - OR = { - has_house_modifier = fp2_struggle_hostility_house_faith_modifier - has_house_modifier = fp2_struggle_hostility_house_combined_modifier - } - } - any_in_global_list = { - variable = fp2_struggle_ending_faith_list - this = scope:county.faith - } - scope:county.title_province = { geographical_region = world_europe_west_iberia } - } - multiply = { - value = fp2_struggle_hostility_conversion_value - desc = fp2_struggle_hostility_faith_conversion_task_desc - } - } - # Faster conversion of infidels for FP2 Council Toledo Conversion - if = { - limit = { - scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier } - scope:county.religion != scope:councillor.liege.religion - } - multiply = { - value = council_toledo_conversion_modifier_value - desc = council_toledo_conversion_task_desc - } - } - # Faster conversion of heretics for FP2 Council Toledo Heresies - if = { - limit = { - scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier } - scope:county.faith = { - religion = scope:councillor.liege.religion - NOT = { - portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } - } - NOT = { exists = religious_head } - } - } - multiply = { - value = council_toledo_conversion_modifier_value - desc = council_toledo_heresies_task_desc - } - } - - # Faster conversion of Persian counties with the FP3 Promote Persian Scripture decision - if = { - limit = { - scope:councillor.liege = { - has_character_modifier = fp3_promoted_persian_scripture_modifier - is_ai = no #this is so that we don't get AI converting and homogenizing Persia too quickly - } - scope:county.culture = { has_cultural_pillar = heritage_iranian } - } - multiply = { - value = promote_persian_scripture_conversion_modifier_value - desc = fp3_promote_persian_scripture_task_desc - } - } - - # FP3 faster conversion struggle ending rewards - if = { - limit = { - exists = global_var:fp3_struggle_ending_assertion_school - switch = { - trigger = global_var:fp3_struggle_ending_assertion_school - flag:sunni = { - scope:councillor.liege.faith = { has_doctrine = muhammad_succession_sunni_doctrine } - } - flag:shia = { - scope:councillor.liege.faith = { has_doctrine = muhammad_succession_shia_doctrine } - } - flag:muhakkima = { - scope:councillor.liege.faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } - } - flag:zandaqa = { - scope:councillor.liege.faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } - } - } - } - multiply = { - value = fp3_struggle_ending_conversion_modifier_value - desc = fp3_struggle_ending_conversion_modifier_desc - } - } +# # Faster conversion for FP2 Hostility ending, if county is in Iberia and faith was involved +# if = { +# limit = { +# exists = scope:councillor.liege.house +# scope:councillor.liege.house = { +# OR = { +# has_house_modifier = fp2_struggle_hostility_house_faith_modifier +# has_house_modifier = fp2_struggle_hostility_house_combined_modifier +# } +# } +# any_in_global_list = { +# variable = fp2_struggle_ending_faith_list +# this = scope:county.faith +# } +# scope:county.title_province = { geographical_region = world_europe_west_iberia } +# } +# multiply = { +# value = fp2_struggle_hostility_conversion_value +# desc = fp2_struggle_hostility_faith_conversion_task_desc +# } +# } +# # Faster conversion of infidels for FP2 Council Toledo Conversion +# if = { +# limit = { +# scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier } +# scope:county.religion != scope:councillor.liege.religion +# } +# multiply = { +# value = council_toledo_conversion_modifier_value +# desc = council_toledo_conversion_task_desc +# } +# } +# # Faster conversion of heretics for FP2 Council Toledo Heresies +# if = { +# limit = { +# scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier } +# scope:county.faith = { +# religion = scope:councillor.liege.religion +# NOT = { +# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } +# } +# NOT = { exists = religious_head } +# } +# } +# multiply = { +# value = council_toledo_conversion_modifier_value +# desc = council_toledo_heresies_task_desc +# } +# } +# +# # Faster conversion of Persian counties with the FP3 Promote Persian Scripture decision +# if = { +# limit = { +# scope:councillor.liege = { +# has_character_modifier = fp3_promoted_persian_scripture_modifier +# is_ai = no #this is so that we don't get AI converting and homogenizing Persia too quickly +# } +# scope:county.culture = { has_cultural_pillar = heritage_iranian } +# } +# multiply = { +# value = promote_persian_scripture_conversion_modifier_value +# desc = fp3_promote_persian_scripture_task_desc +# } +# } +# +# # FP3 faster conversion struggle ending rewards +# if = { +# limit = { +# exists = global_var:fp3_struggle_ending_assertion_school +# switch = { +# trigger = global_var:fp3_struggle_ending_assertion_school +# flag:sunni = { +# scope:councillor.liege.faith = { has_doctrine = muhammad_succession_sunni_doctrine } +# } +# flag:shia = { +# scope:councillor.liege.faith = { has_doctrine = muhammad_succession_shia_doctrine } +# } +# flag:muhakkima = { +# scope:councillor.liege.faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } +# } +# flag:zandaqa = { +# scope:councillor.liege.faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } +# } +# } +# } +# multiply = { +# value = fp3_struggle_ending_conversion_modifier_value +# desc = fp3_struggle_ending_conversion_modifier_desc +# } +# } # Court events if = { #court.6010 limit = { diff --git a/common/culture/name_lists/NEOW_rhinelander.txt b/common/culture/name_lists/NEOW_rhinelander.txt new file mode 100644 index 00000000..930a7c4b --- /dev/null +++ b/common/culture/name_lists/NEOW_rhinelander.txt @@ -0,0 +1,239 @@ +name_list_NEOW_rhinelander = { + + cadet_dynasty_names = { + "dynn_Schmitz" + "dynn_Becker" + "dynn_Schneider" + "dynn_Schmidt" + "dynn_Klein" + "dynn_Meyer" + "dynn_Weber" + "dynn_Schulte" + "dynn_Fischer" + "dynn_Peters" + "dynn_Eiermann" + "dynn_Ohlinger" + "dynn_Franck" + "dynn_Wander" + "dynn_Endesfelder" + "dynn_Riehm" + "dynn_Scharping" + "dynn_Saftig" + "dynn_Klasen" + "dynn_Bengsch" + "dynn_Grillmeier" + { "dynnp_von" "dynn_Preysing" } + "dynn_Hergenr_o_uml_ther" + "dynn_Schade" + "dynn_P_u_uml_tz" + "dynn_Dockweiler" + "dynn_Kohler" + { "dynnp_von" "dynn_Kleve" } + "dynn_Gross" + "dynn_Rupp" + "dynn_Wagner" + "dynn_Sch_a_uml_fer" + "dynn_Schwarz" + "dynn_Scherer" + "dynn_Braun" + "dynn_Backes" + "dynn_Kr_a_uml_mer" + "dynn_Koch" + "dynn_Herrmann" + "dynn_Ziegler" + "dynn_Recktenwald" + "dynn_Hofmann" + "dynn_Kaiser" + "dynn_Schulz" + "dynn_Fuchs" + "dynn_Baumann" + "dynn_Haas" + "dynn_Jahn" + "dynn_Bonzel" + } + + dynasty_names = { + "dynn_Schmitz" + "dynn_Becker" + "dynn_Schneider" + "dynn_Schmidt" + "dynn_Klein" + "dynn_Meyer" + "dynn_Weber" + "dynn_Schulte" + "dynn_Fischer" + "dynn_Peters" + "dynn_Eiermann" + "dynn_Ohlinger" + "dynn_Franck" + "dynn_Wander" + "dynn_Endesfelder" + "dynn_Riehm" + "dynn_Scharping" + "dynn_Saftig" + "dynn_Klasen" + "dynn_Bengsch" + "dynn_Grillmeier" + { "dynnp_von" "dynn_Preysing" } + "dynn_Hergenr_o_uml_ther" + "dynn_Schade" + "dynn_P_u_uml_tz" + "dynn_Dockweiler" + "dynn_Kohler" + { "dynnp_von" "dynn_Kleve" } + "dynn_Gross" + "dynn_Rupp" + "dynn_Wagner" + "dynn_Sch_a_uml_fer" + "dynn_Schwarz" + "dynn_Scherer" + "dynn_Braun" + "dynn_Backes" + "dynn_Kr_a_uml_mer" + "dynn_Koch" + "dynn_Herrmann" + "dynn_Ziegler" + "dynn_Recktenwald" + "dynn_Hofmann" + "dynn_Kaiser" + "dynn_Schulz" + "dynn_Fuchs" + "dynn_Baumann" + "dynn_Haas" + "dynn_Jahn" + "dynn_Bonzel" + } + + male_names = { + 3 = { + Andreas Anselmo Albrecht Artur + Bernd-Dieter Bruno Benno Bodo + Carl + Detlef Dieter Dietrich + El_i_act_as Emil Erwin Erhard Eduard + Franziskus Friedrich Fritz Ferdinand + G_u_uml_nter Georg-Ludwig Gottschalk Gerhard G_o_uml_tz + Hans-Werner Helmut Hans-Heinrich Holger Hartmut Hans-G_u_nter Hans-J_o_uml_rg + Karl-Heinz Klaus-Dieter + Matthias Marcus + Norbert Nikolaus + Tobias Theodor Timo + Otmar Oskar + Ulrich Uwe + R_u_uml_diger Raimund Raphael + Lutz Lutwin Leonhard Lukas + Jochen + Willibald Wolfram + } + 2 = { + Amand Achim Armin Anton + Bertolt Burkhard + Christfried + Darrell + Eugen Erich Edwin Eberhard + Franz-Josef Franz-Rudolf + Gottfried Gisbert Guntram + Herbert Hans-Josef Hans-Otto Heinz Hermann Hans-Peter Hugo + Karl-Hans Karl-Ludwig Kurt-Julius Konrad-Graf + Marcel + Siegmund + } + 1 = { + Adalbert Alois Alfons Arnold + Benedikt Bernard + Dominic + Engelbert + Gotthilf Gottlieb + Hans-Georg Herward Hans-J_u_uml_rgen Hans-Joachim Hans-Walter Heiko + Klaus Kurt + Rudolf Reinhold + Lowell Lorenz Lothar Leo + Johann-Baptist J_u_uml_rgen Julius + Paulus + Rainer Roman + Sebastian Siegbert + Valentin + Wilfried Wendelin + } + } + female_names = { + 3 = { + Adele Anneliese Anette Anne + B_a_uml_rbel Beate Bianca + Charlotte Christa Christiane Corinna + Daniela + Elena Eleonore Elfriede Elke Eva Eveline + Frieda Friedel Friederike + Gabriela Gisela Gretel + Heidemarie Heiderose Hilde Hildegard + Ilse Irina Irma Irmgard + Janine Johanna Josefa Jutta + Katharina Klaudia Kristina + Liane Liselotte Lydia + Magdalena Margit Marie-Luise Marie-Theresa Marlene Mathilde + Patricia + Regina Rita Rose-Marie + Sandra Sieglinde Silke Stefanie + Thea Theresa Tina + Vanessa Vera Veronika + Waltraud Wilma + } + 2 = { + Anita Anja Alexandra Annegret Antonia + Beatrix Bernadette Brunhilde + Carmen Caroline Christina Cornelia + Dagmar Diana Dorothea + Edeltraut Edith Ella Ellen Erika Evelin + Frida + Gabi Gabriele Gerda Gertraud + Hannelore Heide Helene Henriette + Ina Irene Iris + Jeanette Josefine Juliane + K_a_uml_the Karoline Kornelia + Liesel Laura Lisa Lina Lotte + Margrit Marie-Magdalena Marita Marliese Mechthild Michaela + Natalie + Ottilie + Pauline Pia + Ramona Renate Ruth + Sibylle Silvia Sofie Sonja + Ulrike Ursula + Verena Viktoria + Wiebke + Zita + } + 1 = { + Angelika Annemarie Anne-Rose + Babette Britta + Carina Carol-Ann Constanze + Doris + Edelgard Edeltraud Else Erna Eva-Maria Evelyn + Hanna Heidrun Herta Hilda + Ilka Ilona Isolde + Jessica Judith + Karola Katja + Lieselotte Linda Lucia Luise + Magda Manuela Margareta Margarethe Marie Marta Martina + Nadine Nicole + Rosi Rosina + Tanja + Ulla Uschi Ute + Yvonne + } + } + dynasty_of_location_prefix = "dynnp_von" + + # Chance of male children being named after their paternal or maternal grandfather, or their father. Sum must not exceed 100. + pat_grf_name_chance = 60 + mat_grf_name_chance = 10 + father_name_chance = 10 + + # Chance of female children being named after their paternal or maternal grandmother, or their mother. Sum must not exceed 100. + pat_grm_name_chance = 10 + mat_grm_name_chance = 60 + mother_name_chance = 10 + + + mercenary_names = { + } +} diff --git a/common/customizable_localization/00_divinity_custom_loc.txt b/common/customizable_localization/00_divinity_custom_loc.txt index 10e6f712..f11ce09a 100644 --- a/common/customizable_localization/00_divinity_custom_loc.txt +++ b/common/customizable_localization/00_divinity_custom_loc.txt @@ -979,57 +979,57 @@ GetActualBishopTitle = { text = { trigger = { highest_held_title_tier >= tier_kingdom - faith.religion = faith:hellenic_pagan.religion + faith.religion = faith:megalocratic.religion NOT = { # Required formatting to include male/female check as well as vacancy cp:councillor_court_chaplain ?= { is_female = yes } } } - localization_key = councillor_court_chaplain_hellenism_religion_kingdom + localization_key = councillor_court_chaplain_theomach_religion_kingdom } text = { trigger = { highest_held_title_tier >= tier_kingdom - faith.religion = faith:hellenic_pagan.religion + faith.religion = faith:megalocratic.religion NOT = { # Required formatting to include male/female check as well as vacancy cp:councillor_court_chaplain ?= { is_female = no } } } - localization_key = councillor_court_chaplain_hellenism_religion_kingdom_female + localization_key = councillor_court_chaplain_theomach_religion_kingdom_female } text = { trigger = { highest_held_title_tier >= tier_duchy - faith.religion = faith:hellenic_pagan.religion + faith.religion = faith:megalocratic.religion } - localization_key = councillor_court_chaplain_hellenism_religion_duchy + localization_key = councillor_court_chaplain_theomach_religion_duchy } text = { trigger = { highest_held_title_tier < tier_duchy - faith.religion = faith:hellenic_pagan.religion + faith.religion = faith:megalocratic.religion NOT = { # Required formatting to include male/female check as well as vacancy cp:councillor_court_chaplain ?= { is_female = yes } } } - localization_key = councillor_court_chaplain_hellenism_religion_county + localization_key = councillor_court_chaplain_theomach_religion_county } text = { trigger = { highest_held_title_tier < tier_duchy - faith.religion = faith:hellenic_pagan.religion + faith.religion = faith:megalocratic.religion NOT = { # Required formatting to include male/female check as well as vacancy cp:councillor_court_chaplain ?= { is_female = no } } } - localization_key = councillor_court_chaplain_hellenism_religion_county_female + localization_key = councillor_court_chaplain_theomach_religion_county_female } #Norse diff --git a/common/customizable_localization/00_pl_custom_loc_extra.txt b/common/customizable_localization/00_pl_custom_loc_extra.txt index d77e9284..a205e8a1 100644 --- a/common/customizable_localization/00_pl_custom_loc_extra.txt +++ b/common/customizable_localization/00_pl_custom_loc_extra.txt @@ -64,9 +64,9 @@ # } # text = { # trigger = { -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } -# localization_key = hellenism_religion_adj_feminine_accusative +# localization_key = theomach_religion_adj_feminine_accusative # } # text = { # trigger = { @@ -272,9 +272,9 @@ # } # text = { # trigger = { -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } -# localization_key = hellenism_religion_adj_masculine_ins +# localization_key = theomach_religion_adj_masculine_ins # } # text = { # trigger = { @@ -1283,7 +1283,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_high_god_name @@ -1745,7 +1745,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_health_god_name @@ -2149,7 +2149,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_creator_god_name_cel @@ -2552,7 +2552,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_fertility_god_name_cel @@ -2979,7 +2979,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_wealth_god_name_cel @@ -3410,7 +3410,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_household_god_name_cel @@ -3758,7 +3758,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_fate_god_name_cel @@ -4168,7 +4168,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_knowledge_god_name_cel @@ -4606,7 +4606,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_war_god_name_cel @@ -4982,7 +4982,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_trickster_god_name_cel @@ -5372,7 +5372,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_night_god_name_cel @@ -5758,7 +5758,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_water_god_name_cel @@ -6127,7 +6127,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_witchgod_name_cel @@ -6432,7 +6432,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_death_deity_name_narz @@ -6813,7 +6813,7 @@ # religion_tag = bon_religion # religion_tag = finno_ugric_religion # religion_tag = germanic_religion -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # religion_tag = hinduism_religion # religion_tag = jainism_religion # religion_tag = kushitism_religion @@ -7197,7 +7197,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_religious_text_adj @@ -7475,7 +7475,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_religious_symbol_adj @@ -7833,7 +7833,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_death_deity_name @@ -8178,7 +8178,7 @@ # text = { # trigger = { # -# religion_tag = hellenism_religion +# religion_tag = theomach_religion # } # # localization_key = hellenism_death_deity_name diff --git a/common/customizable_localization/00_ruler_transition_loc.txt b/common/customizable_localization/00_ruler_transition_loc.txt index 2710435c..53056f20 100644 --- a/common/customizable_localization/00_ruler_transition_loc.txt +++ b/common/customizable_localization/00_ruler_transition_loc.txt @@ -205,7 +205,7 @@ DeathMessageIntro = { text = { localization_key = SUCCESSION_EVENT_WINDOW_DEAD_INTRO_HELLENIC_1 trigger = { - faith.religion = faith:hellenic_pagan.religion + faith.religion = faith:megalocratic.religion } } text = { diff --git a/common/customizable_localization/06_ce1_epidemics_custom_loc.txt b/common/customizable_localization/06_ce1_epidemics_custom_loc.txt index 87ebba7d..930346b3 100644 --- a/common/customizable_localization/06_ce1_epidemics_custom_loc.txt +++ b/common/customizable_localization/06_ce1_epidemics_custom_loc.txt @@ -279,12 +279,12 @@ apocalypse_name = { type = character random_valid = yes - text = { - trigger = { - faith.religion = religion:folkgerman_religion - } - localization_key = ragnarok - } +# text = { +# trigger = { +# faith.religion = religion:folkgerman_religion +# } +# localization_key = ragnarok +# } text = { trigger = { @@ -347,11 +347,11 @@ apocalypse_name = { localization_key = doomsday } - text = { - trigger = { - exists = character:easteregg_veronica_pazos - this = character:easteregg_veronica_pazos - } - localization_key = third_impact - } +# text = { +# trigger = { +# exists = character:easteregg_veronica_pazos +# this = character:easteregg_veronica_pazos +# } +# localization_key = third_impact +# } } diff --git a/common/decisions/10_nomad_other_decisions.txt b/common/decisions/10_nomad_other_decisions.txt index 506fa952..56a9acf9 100644 --- a/common/decisions/10_nomad_other_decisions.txt +++ b/common/decisions/10_nomad_other_decisions.txt @@ -310,104 +310,105 @@ summon_fair_courtiers_decision = { } } } -########################################### - ##Create Cossack kingdom Decision## - ## By: Björn S -########################################### - -## The Choice of creating a new culture and kingdom -create_cossack_kingdom_decision = { - picture = { - reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_hostility.dds" - } - desc = create_cossack_kingdom_decision_desc - selection_tooltip = create_cossack_kingdom_decision_tooltip - decision_group_type = adventurer - - -## Player is a landless adventurer or have the veteran adventurer trait + a culture suitable for the area. -## Player also have to have the right cultural heritage. - is_shown = { - is_playable_character = yes - OR = { - is_landless_adventurer = yes - has_trait = adventurer - } - culture = { - OR = { - has_cultural_pillar = heritage_turkic - has_cultural_pillar = heritage_east_slavic - has_cultural_pillar = heritage_west_slavic - has_cultural_pillar = heritage_south_slavic - has_cultural_pillar = heritage_tungusic - } - } -## Not repeatable - NOT = { - is_target_in_global_variable_list = { - name = unavailable_unique_decisions - target = flag:flag_create_cossack_kingdom - } - } - - } - - is_valid = { - prestige_level >= high_prestige_level - has_trait = adventurer - has_government = nomad_government - is_independent_ruler = yes - AND = { - completely_controls = title:d_tana - completely_controls = title:d_don_valley - OR = { - completely_controls = title:d_itil - completely_controls = title:d_red_levedia - completely_controls = title:d_levedia - } - } - } - - cost = { - prestige = 1000 - gold = 300 - } - - - is_valid_showing_failures_only = { - is_landed = yes - is_capable_adult = yes - is_imprisoned = no - } - - - effect = { - show_as_tooltip = { - create_cossack_scripted_effect = yes - } - hidden_effect = { - add_to_global_variable_list = { - name = unavailable_unique_decisions - target = flag:flag_create_cossack_kingdom - } - } - trigger_event = major_decisions.3600 - } - - ai_potential = { - always = yes - } - - ai_will_do = { - base = 100 - } - - ai_check_interval_by_tier = { - barony = 0 - county = 0 - duchy = 120 - kingdom = 0 - empire = 0 - hegemony = 0 - } -} +############################################ +# ##Create Cossack kingdom Decision## +# ## By: Björn S +############################################ +# +### The Choice of creating a new culture and kingdom +#create_cossack_kingdom_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_hostility.dds" +# } +# desc = create_cossack_kingdom_decision_desc +# selection_tooltip = create_cossack_kingdom_decision_tooltip +# decision_group_type = adventurer +# +# +### Player is a landless adventurer or have the veteran adventurer trait + a culture suitable for the area. +### Player also have to have the right cultural heritage. +# is_shown = { +# is_playable_character = yes +# OR = { +# is_landless_adventurer = yes +# has_trait = adventurer +# } +# culture = { +# OR = { +# has_cultural_pillar = heritage_turkic +# has_cultural_pillar = heritage_east_slavic +# has_cultural_pillar = heritage_west_slavic +# has_cultural_pillar = heritage_south_slavic +# has_cultural_pillar = heritage_tungusic +# } +# } +### Not repeatable +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_create_cossack_kingdom +# } +# } +# +# } +# +# is_valid = { +# prestige_level >= high_prestige_level +# has_trait = adventurer +# has_government = nomad_government +# is_independent_ruler = yes +# AND = { +# completely_controls = title:d_tana +# completely_controls = title:d_don_valley +# OR = { +# completely_controls = title:d_itil +# completely_controls = title:d_red_levedia +# completely_controls = title:d_levedia +# } +# } +# } +# +# cost = { +# prestige = 1000 +# gold = 300 +# } +# +# +# is_valid_showing_failures_only = { +# is_landed = yes +# is_capable_adult = yes +# is_imprisoned = no +# } +# +# +# effect = { +# show_as_tooltip = { +# create_cossack_scripted_effect = yes +# } +# hidden_effect = { +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_create_cossack_kingdom +# } +# } +# trigger_event = major_decisions.3600 +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 100 +# } +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 120 +# kingdom = 0 +# empire = 0 +# hegemony = 0 +# } +#} +# \ No newline at end of file diff --git a/common/decisions/80_major_decisions_middle_east.txt b/common/decisions/80_major_decisions_middle_east.txt index 1f6caaf8..4d8b5630 100644 --- a/common/decisions/80_major_decisions_middle_east.txt +++ b/common/decisions/80_major_decisions_middle_east.txt @@ -27,7 +27,7 @@ # capital_province = { geographical_region = world_middle_east } # #Must have the correct religion, and support from the rest of Catholicism. # religion = { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. -# faith = faith:catholic +# faith = faith:roman_catholic # #Exempt Byzantine group: this is such a huge slap in the face to _anyone_ even vaguely in the Greek sphere. # culture = { # NOR = { @@ -301,7 +301,7 @@ # is_shown = { # is_ruler = yes # is_playable_character = yes -# faith.religion = faith:rabbinism.religion +# faith.religion = faith:congregationist.religion # NOT = { # exists = title:k_israel.holder # } diff --git a/common/flavorization/00_title_holders.txt b/common/flavorization/00_title_holders.txt index b416d0ad..88358168 100644 --- a/common/flavorization/00_title_holders.txt +++ b/common/flavorization/00_title_holders.txt @@ -950,7 +950,7 @@ barony_theocracy_germanic_religion = { } priority = 7 holding = church_holding - religions = { folkgerman_religion hellenism_religion taoism_religion zunism_religion } + religions = { folkgerman_religion theomach_religion taoism_religion zunism_religion } } count_theocracy_male_germanic_religion = { type = character @@ -984,7 +984,7 @@ county_theocracy_germanic_religion = { } priority = 18 governments = { theocracy_government } - religions = { folkgerman_religion hellenism_religion taoism_religion zoroastrianism_religion zunism_religion } + religions = { folkgerman_religion theomach_religion taoism_religion zoroastrianism_religion zunism_religion } } king_theocracy_male_germanic_religion = { type = character @@ -996,7 +996,7 @@ king_theocracy_male_germanic_religion = { top_liege = no } governments = { theocracy_government } - religions = { folkgerman_religion hellenism_religion } + religions = { folkgerman_religion theomach_religion } } king_theocracy_female_germanic_religion = { type = character @@ -1008,7 +1008,7 @@ king_theocracy_female_germanic_religion = { top_liege = no } governments = { theocracy_government } - religions = { folkgerman_religion hellenism_religion } + religions = { folkgerman_religion theomach_religion } } emperor_theocracy_male_germanic_religion = { type = character @@ -1020,7 +1020,7 @@ emperor_theocracy_male_germanic_religion = { top_liege = no } governments = { theocracy_government } - religions = { folkgerman_religion hellenism_religion } + religions = { folkgerman_religion theomach_religion } } emperor_theocracy_female_germanic_religion = { type = character @@ -1032,11 +1032,11 @@ emperor_theocracy_female_germanic_religion = { top_liege = no } governments = { theocracy_government } - religions = { folkgerman_religion hellenism_religion } + religions = { folkgerman_religion theomach_religion } } # Hellenism -baron_theocracy_male_hellenism_religion = { +baron_theocracy_male_theomach_religion = { type = character gender = male special = holder @@ -1046,9 +1046,9 @@ baron_theocracy_male_hellenism_religion = { top_liege = no } governments = { theocracy_government } - religions = { hellenism_religion } + religions = { theomach_religion } } -baron_theocracy_female_hellenism_religion = { +baron_theocracy_female_theomach_religion = { type = character gender = female special = holder @@ -1058,9 +1058,9 @@ baron_theocracy_female_hellenism_religion = { top_liege = no } governments = { theocracy_government } - religions = { hellenism_religion } + religions = { theomach_religion } } -count_theocracy_male_hellenism_religion = { +count_theocracy_male_theomach_religion = { type = character gender = male special = holder @@ -1070,9 +1070,9 @@ count_theocracy_male_hellenism_religion = { top_liege = no } governments = { theocracy_government } - religions = { hellenism_religion } + religions = { theomach_religion } } -count_theocracy_female_hellenism_religion = { +count_theocracy_female_theomach_religion = { type = character gender = female special = holder @@ -1082,9 +1082,9 @@ count_theocracy_female_hellenism_religion = { top_liege = no } governments = { theocracy_government } - religions = { hellenism_religion } + religions = { theomach_religion } } -duke_theocracy_male_hellenism_religion = { +duke_theocracy_male_theomach_religion = { type = character gender = male special = holder @@ -1094,9 +1094,9 @@ duke_theocracy_male_hellenism_religion = { top_liege = no } governments = { theocracy_government } - religions = { hellenism_religion } + religions = { theomach_religion } } -duke_theocracy_female_hellenism_religion = { +duke_theocracy_female_theomach_religion = { type = character gender = female special = holder @@ -1106,9 +1106,9 @@ duke_theocracy_female_hellenism_religion = { top_liege = no } governments = { theocracy_government } - religions = { hellenism_religion } + religions = { theomach_religion } } -duchy_theocracy_hellenism_religion = { +duchy_theocracy_theomach_religion = { type = title tier = duchy flavourization_rules = { @@ -1116,7 +1116,7 @@ duchy_theocracy_hellenism_religion = { } priority = 27 governments = { theocracy_government } - religions = { hellenism_religion } + religions = { theomach_religion } } # Hinduism @@ -2050,7 +2050,7 @@ kingdom_theocracy_paganism_religion = { } priority = 47 governments = { theocracy_government } - religions = { paganism_religion hungaric_religion baltic_religion slavic_religion finnic_religion folkgerman_religion hellenism_religion zunism_religion zoroastrianism_religion bon_religion taoism_religion buddhism_religion hinduism_religion jainism_religion judaism_religion } #tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion + religions = { paganism_religion hungaric_religion baltic_religion slavic_religion finnic_religion folkgerman_religion theomach_religion zunism_religion zoroastrianism_religion bon_religion taoism_religion buddhism_religion hinduism_religion jainism_religion judaism_religion } #tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion } emperor_theocracy_male_paganism_religion = { type = character @@ -2084,7 +2084,7 @@ empire_theocracy_paganism_religion = { } priority = 102 governments = { theocracy_government } - religions = { paganism_religion hungaric_religion baltic_religion slavic_religion finnic_religion tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion folkgerman_religion hellenism_religion taoism_religion zunism_religion zoroastrianism_religion judaism_religion } + religions = { paganism_religion hungaric_religion baltic_religion slavic_religion finnic_religion tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion folkgerman_religion theomach_religion taoism_religion zunism_religion zoroastrianism_religion judaism_religion } } # Baltic diff --git a/common/flavorization/NEOW_title_holders.txt b/common/flavorization/NEOW_title_holders.txt index 91404c65..b470f47c 100644 --- a/common/flavorization/NEOW_title_holders.txt +++ b/common/flavorization/NEOW_title_holders.txt @@ -1046,7 +1046,7 @@ king_administrative_female_russian = { # Judex tier = kingdom priority = 106 heritages = { heritage_east_slavic } - governments = { name_list_NEOW_west_russian } + name_lists = { name_list_NEOW_west_russian } } empire_administrative_russian = { # Archonesa @@ -1076,7 +1076,7 @@ emperor_administrative_female_russian = { # Judex tier = empire priority = 106 heritages = { heritage_east_slavic } - governments = { name_list_NEOW_west_russian } + name_lists = { name_list_NEOW_west_russian } } ## Feudal barony_feudal_russian = { # judiacate @@ -1193,7 +1193,7 @@ king_feudal_female_russian = { # Judex tier = kingdom priority = 106 heritages = { heritage_east_slavic } - governments = { name_list_NEOW_west_russian } + name_lists = { name_list_NEOW_west_russian } } empire_feudal_russian = { # Archonesa @@ -1223,7 +1223,7 @@ emperor_feudal_female_russian = { # Judex tier = empire priority = 106 heritages = { heritage_east_slavic } - governments = { name_list_NEOW_west_russian } + name_lists = { name_list_NEOW_west_russian } } ## Mecrenary barony_mercenary_russian = { # judiacate @@ -1340,7 +1340,7 @@ king_mercenary_female_russian = { # Judex tier = kingdom priority = 106 heritages = { heritage_east_slavic } - governments = { name_list_NEOW_west_russian } + name_lists = { name_list_NEOW_west_russian } } empire_mercenary_russian = { # Archonesa @@ -1370,5 +1370,5 @@ emperor_mercenary_female_russian = { # Judex tier = empire priority = 106 heritages = { heritage_east_slavic } - governments = { name_list_NEOW_west_russian } + name_lists = { name_list_NEOW_west_russian } } diff --git a/common/landed_titles/baltics.txt b/common/landed_titles/baltics.txt index b1a7c826..3aabd0c0 100644 --- a/common/landed_titles/baltics.txt +++ b/common/landed_titles/baltics.txt @@ -786,7 +786,7 @@ e_baltic = { k_esthonia = { color = { 20 66 102 } - capital = c_reval + capital = c_harjumaa can_create = { trigger_if = { @@ -809,7 +809,7 @@ e_baltic = { d_esthonia = { color = { 7 53 76 } - capital = c_reval # Kalevan + capital = c_harjumaa # Kalevan c_harjumaa = { color = { 5 36 51 } @@ -955,7 +955,7 @@ e_baltic = { } d_narva = { color = { 38 114 191 } - capital = c_narva + capital = c_ida_viru cultural_names = { name_list_NEOW_swedish = cn_narva diff --git a/common/landed_titles/debug_titles.txt b/common/landed_titles/debug_titles.txt index 39b14e0c..97fbc36e 100644 --- a/common/landed_titles/debug_titles.txt +++ b/common/landed_titles/debug_titles.txt @@ -71,4 +71,14 @@ h_india= { e_japan= { capital = c_thessalonika color = { 230 180 10 } -} \ No newline at end of file +} + +e_byzantium = { + capital = c_thessalonika + color = { 230 180 10 } +} + +k_chrysanthemum_throne = { + capital = c_thessalonika + color = { 230 180 10 } +} diff --git a/common/on_action/death.txt b/common/on_action/death.txt index fc291b48..566af92f 100644 --- a/common/on_action/death.txt +++ b/common/on_action/death.txt @@ -1378,172 +1378,172 @@ on_death = { ep3_laamp_supporter_invalidated_effect = yes # EP3 - Varangian Palace Pillaging - if = { - limit = { - primary_title = title:e_byzantium - OR = { - "number_maa_regiments_of_type(varangian_guards)" >= 1 - number_title_maa_regiments_of_type = { - target = varangian_guards - value >= 1 - } - any_court_position_holder = { - type = akolouthos_court_position - ep3_varangian_trigger = yes - } - } - } - save_scope_as = dead_emperor - if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 0 - value <= 100 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 1 - } - } - } - else_if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 100 - value <= 200 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 2 - } - } - } - else_if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 200 - value <= 300 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 3 - } - } - } - else_if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 300 - value <= 400 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 4 - } - } - } - else_if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 400 - value <= 500 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 5 - } - } - } - else_if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 500 - value <= 600 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 6 - } - } - } - else_if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 600 - value <= 700 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 7 - } - } - } - else_if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 700 - value <= 800 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 8 - } - } - } - else_if = { - limit = { - number_maa_soldiers_of_type = { - target = varangian_guards - value > 800 - value <= 900 - } - } - primary_heir = { - set_variable = { - name = varangian_regiments - value = 9 - } - } - } - else = { - primary_heir = { - set_variable = { - name = varangian_regiments - value = 10 - } - } - } - primary_heir = { - trigger_event = { - id = ep3_emperor_yearly.3000 - days = { 10 20 } - } - } - } +# if = { +# limit = { +# primary_title = title:e_byzantium +# OR = { +# "number_maa_regiments_of_type(varangian_guards)" >= 1 +# number_title_maa_regiments_of_type = { +# target = varangian_guards +# value >= 1 +# } +# any_court_position_holder = { +# type = akolouthos_court_position +# ep3_varangian_trigger = yes +# } +# } +# } +# save_scope_as = dead_emperor +# if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 0 +# value <= 100 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 1 +# } +# } +# } +# else_if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 100 +# value <= 200 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 2 +# } +# } +# } +# else_if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 200 +# value <= 300 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 3 +# } +# } +# } +# else_if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 300 +# value <= 400 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 4 +# } +# } +# } +# else_if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 400 +# value <= 500 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 5 +# } +# } +# } +# else_if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 500 +# value <= 600 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 6 +# } +# } +# } +# else_if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 600 +# value <= 700 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 7 +# } +# } +# } +# else_if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 700 +# value <= 800 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 8 +# } +# } +# } +# else_if = { +# limit = { +# number_maa_soldiers_of_type = { +# target = varangian_guards +# value > 800 +# value <= 900 +# } +# } +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 9 +# } +# } +# } +# else = { +# primary_heir = { +# set_variable = { +# name = varangian_regiments +# value = 10 +# } +# } +# } +# primary_heir = { +# trigger_event = { +# id = ep3_emperor_yearly.3000 +# days = { 10 20 } +# } +# } +# } # EP3 - Grand Ambitions Story Cycle if = { @@ -1714,26 +1714,26 @@ on_death = { mpo_remove_blood_brother_modifiers_effect = yes #Tracking whether Genghis is dead or not - if = { - limit = { - this = character:125501 - } - set_global_variable = genghis_died - if = { - limit = { - NOT = { - any_held_title = { - this = title:e_mongol_empire - } - } - } - set_global_variable = { - name = temujin_failed - value = yes - years = 50 - } - } - } +# if = { +# limit = { +# this = character:125501 +# } +# set_global_variable = genghis_died +# if = { +# limit = { +# NOT = { +# any_held_title = { +# this = title:e_mongol_empire +# } +# } +# } +# set_global_variable = { +# name = temujin_failed +# value = yes +# years = 50 +# } +# } +# } #Greatest of khans stuff should pass to heir during initial war phase if = { limit = { diff --git a/common/on_action/game_start.txt b/common/on_action/game_start.txt index 45601e8f..d8a89326 100644 --- a/common/on_action/game_start.txt +++ b/common/on_action/game_start.txt @@ -2158,7 +2158,7 @@ on_game_start = { limit = { coronation_trigger = yes age >= 12 - NOT = { this = character:1316 } # Heinrich IV was coronated in 1084 +# NOT = { this = character:1316 } # Heinrich IV was coronated in 1084 } save_temporary_scope_as = ruler if = { @@ -2301,16 +2301,16 @@ on_game_start = { } } # - if = { - limit = { - title:k_magyar = { - exists = holder - } - } - title:k_magyar = { - add_title_law = confederation_elective_succession_law - } - } +# if = { +# limit = { +# title:k_magyar = { +# exists = holder +# } +# } +# title:k_magyar = { +# add_title_law = confederation_elective_succession_law +# } +# } ####3UR0P4 T0l3R4NC3###### title:e_europa.holder ?= { every_vassal = { @@ -2497,7 +2497,7 @@ on_game_start_after_lobby = { OR = { culture = culture:sami culture = culture:karelian - culture = culture:samoyed +# culture = culture:samoyed is_ai = no } } @@ -3212,979 +3212,979 @@ on_game_start_after_lobby = { } } - if = { - limit = { - title:h_china.holder ?= top_liege - this != top_liege - } - ### TGP MERIT AND TREASURY HANDOUT ON GAME START ### - if = { - limit = { - culture = { - has_cultural_pillar = heritage_chinese - } - NOR = { - AND = { - has_council_position = councillor_court_chaplain - NOT = { has_title = title:e_minister_of_rites } - } - has_trait = devoted - } - government_has_flag = government_is_celestial - is_faith_dominant_gender = yes - } - save_temporary_scope_as = exam_contender - hidden_effect = { - assign_completed_exams_based_on_merit_effect = yes - } - if = { - limit = { - any_parent = { - OR = { - has_trait = ambitious - has_trait = scholar - has_trait = diligent - has_trait = confucian_education - } - } - NOR = { - has_trait = lazy - has_trait = dull - has_trait = intellect_bad - location.county ?= { - development_level <= bad_development_level - } - } - } - add_character_flag = passed_child_exam - } - if = { # We adjust Merit depending on the dynastic cycle phase - limit = { - situation:dynastic_cycle ?= { - situation_current_phase = situation_dynastic_cycle_phase_stability_advancement - } - } - change_merit = { - value = merit - multiply = 0.1 - } - } - if = { - limit = { - is_ai = no - is_governor_or_admin_count = yes - } - spawn_celestial_governance_contract_effect = yes - } - if = { - limit = { - game_start_date = 867.1.1 - } - title:k_hebei.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_youji.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_daibei.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_guannei.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_viet.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_lingxi.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - } - else_if = { - limit = { - game_start_date = 1066.9.15 - } - title:k_hebei.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_hedong.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_guannei.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_lingxi.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - } - else_if = { - limit = { - game_start_date = 1178.10.1 - } - title:k_huainan.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_shannan.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_xingyuan.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_lingxi.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - title:k_xichuan.holder = { - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - every_vassal = { - limit = { - primary_title.tier >= tier_county - } - hidden_effect = { - vassal_contract_set_obligation_level = { - type = celestial_provinces - level = 3 # Military - } - if = { - limit = { - NOT = { - has_realm_law = celestial_military_appointment_succession_law - } - } - add_realm_law_skip_effects = celestial_military_appointment_succession_law - } - } - } - } - } - } - } - ### Examination pass status and initial wave of governor candidates done after game start, in order to include generated families ### - every_courtier = { - limit = { - is_lowborn = no - culture = { has_cultural_pillar = heritage_chinese } - NOR = { - has_council_position = councillor_court_chaplain - has_trait = devoted - } - government_has_flag = government_is_celestial # courtiers have governments, too! - is_faith_dominant_gender = yes - age >= 30 - static_group_filter = { - group = ai_filter - match = 0.5 - } - } - hidden_effect = { - add_character_flag = passed_provincial_exam - add_character_modifier = { - modifier = tgp_passed_provincial_exam_modifier - } - add_character_flag = passed_metropolitan_exam - add_character_modifier = { - modifier = tgp_passed_metropolitan_exam_modifier - } - change_merit = { - value = county_starting_merit_value - add = age - add = learning - } - } - } - save_scope_as = governor - } - - if = { - limit = { - government_has_flag = government_has_merit - title:h_china.holder != top_liege - } - ### TGP MERITOCRATIC/STEPPE ADMIN SETUP ON GAME START ### - if = { - limit = { - NOR = { - AND = { - has_council_position = councillor_court_chaplain - NOT = { has_title = title:e_minister_of_rites } - } - has_trait = devoted - } - government_has_flag = government_has_merit - is_faith_dominant_gender = yes - } - hidden_effect = { - meritocratic_assign_completed_exams_based_on_merit_effect = yes - } - } - } - - #elder/disciple setup - if = { - limit = { - government_allows = merit - top_overlord != title:h_china.holder - } - if = { - limit = { - top_liege = this - merit_level >= merit_level_expected_kingdom_value - } - add_to_list = elders - } - else_if = { - limit = { - merit_level >= merit_level_expected_duchy_value - } - add_to_list = elders - } - else = { - add_to_list = disciple - } - } +# if = { +# limit = { +# title:h_china.holder ?= top_liege +# this != top_liege +# } +# ### TGP MERIT AND TREASURY HANDOUT ON GAME START ### +# if = { +# limit = { +# culture = { +# has_cultural_pillar = heritage_chinese +# } +# NOR = { +# AND = { +# has_council_position = councillor_court_chaplain +# NOT = { has_title = title:e_minister_of_rites } +# } +# has_trait = devoted +# } +# government_has_flag = government_is_celestial +# is_faith_dominant_gender = yes +# } +# save_temporary_scope_as = exam_contender +# hidden_effect = { +# assign_completed_exams_based_on_merit_effect = yes +# } +# if = { +# limit = { +# any_parent = { +# OR = { +# has_trait = ambitious +# has_trait = scholar +# has_trait = diligent +# has_trait = confucian_education +# } +# } +# NOR = { +# has_trait = lazy +# has_trait = dull +# has_trait = intellect_bad +# location.county ?= { +# development_level <= bad_development_level +# } +# } +# } +# add_character_flag = passed_child_exam +# } +# if = { # We adjust Merit depending on the dynastic cycle phase +# limit = { +# situation:dynastic_cycle ?= { +# situation_current_phase = situation_dynastic_cycle_phase_stability_advancement +# } +# } +# change_merit = { +# value = merit +# multiply = 0.1 +# } +# } +# if = { +# limit = { +# is_ai = no +# is_governor_or_admin_count = yes +# } +# spawn_celestial_governance_contract_effect = yes +# } +# if = { +# limit = { +# game_start_date = 867.1.1 +# } +# title:k_hebei.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_youji.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_daibei.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_guannei.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_viet.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_lingxi.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# } +# else_if = { +# limit = { +# game_start_date = 1066.9.15 +# } +# title:k_hebei.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_hedong.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_guannei.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_lingxi.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# } +# else_if = { +# limit = { +# game_start_date = 1178.10.1 +# } +# title:k_huainan.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_shannan.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_xingyuan.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_lingxi.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# title:k_xichuan.holder = { +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# every_vassal = { +# limit = { +# primary_title.tier >= tier_county +# } +# hidden_effect = { +# vassal_contract_set_obligation_level = { +# type = celestial_provinces +# level = 3 # Military +# } +# if = { +# limit = { +# NOT = { +# has_realm_law = celestial_military_appointment_succession_law +# } +# } +# add_realm_law_skip_effects = celestial_military_appointment_succession_law +# } +# } +# } +# } +# } +# } +# } +# ### Examination pass status and initial wave of governor candidates done after game start, in order to include generated families ### +# every_courtier = { +# limit = { +# is_lowborn = no +# culture = { has_cultural_pillar = heritage_chinese } +# NOR = { +# has_council_position = councillor_court_chaplain +# has_trait = devoted +# } +# government_has_flag = government_is_celestial # courtiers have governments, too! +# is_faith_dominant_gender = yes +# age >= 30 +# static_group_filter = { +# group = ai_filter +# match = 0.5 +# } +# } +# hidden_effect = { +# add_character_flag = passed_provincial_exam +# add_character_modifier = { +# modifier = tgp_passed_provincial_exam_modifier +# } +# add_character_flag = passed_metropolitan_exam +# add_character_modifier = { +# modifier = tgp_passed_metropolitan_exam_modifier +# } +# change_merit = { +# value = county_starting_merit_value +# add = age +# add = learning +# } +# } +# } +# save_scope_as = governor +# } +# +# if = { +# limit = { +# government_has_flag = government_has_merit +# title:h_china.holder != top_liege +# } +# ### TGP MERITOCRATIC/STEPPE ADMIN SETUP ON GAME START ### +# if = { +# limit = { +# NOR = { +# AND = { +# has_council_position = councillor_court_chaplain +# NOT = { has_title = title:e_minister_of_rites } +# } +# has_trait = devoted +# } +# government_has_flag = government_has_merit +# is_faith_dominant_gender = yes +# } +# hidden_effect = { +# meritocratic_assign_completed_exams_based_on_merit_effect = yes +# } +# } +# } +# +# #elder/disciple setup +# if = { +# limit = { +# government_allows = merit +# top_overlord != title:h_china.holder +# } +# if = { +# limit = { +# top_liege = this +# merit_level >= merit_level_expected_kingdom_value +# } +# add_to_list = elders +# } +# else_if = { +# limit = { +# merit_level >= merit_level_expected_duchy_value +# } +# add_to_list = elders +# } +# else = { +# add_to_list = disciple +# } +# } # Sexualities if game rules are default if = { @@ -4264,45 +4264,45 @@ on_game_start_after_lobby = { } } - if = { - limit = { - has_mpo_dlc_trigger = yes - } - #Fully Landlocked Nomad Cultures Setup - every_culture_global = { - limit = { - OR = { - has_cultural_pillar = heritage_mongolic - has_cultural_pillar = heritage_ugro_permian - } - } - add_to_global_variable_list = { - name = fully_landlocked_nomad_cultures - target = this - } - } - add_to_global_variable_list = { - name = fully_landlocked_nomad_cultures - target = culture:kipchak - } - add_to_global_variable_list = { - name = fully_landlocked_nomad_cultures - target = culture:uyghur - } - add_to_global_variable_list = { - name = fully_landlocked_nomad_cultures - target = culture:kirghiz - } - add_to_global_variable_list = { - name = fully_landlocked_nomad_cultures - target = culture:bashkir - } - add_to_global_variable_list = { - name = fully_landlocked_nomad_cultures - target = culture:laktan - } - recalculate_cultural_heads_of_type = herd - } +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# #Fully Landlocked Nomad Cultures Setup +# every_culture_global = { +# limit = { +# OR = { +# has_cultural_pillar = heritage_mongolic +# has_cultural_pillar = heritage_ugro_permian +# } +# } +# add_to_global_variable_list = { +# name = fully_landlocked_nomad_cultures +# target = this +# } +# } +# add_to_global_variable_list = { +# name = fully_landlocked_nomad_cultures +# target = culture:kipchak +# } +# add_to_global_variable_list = { +# name = fully_landlocked_nomad_cultures +# target = culture:uyghur +# } +# add_to_global_variable_list = { +# name = fully_landlocked_nomad_cultures +# target = culture:kirghiz +# } +# add_to_global_variable_list = { +# name = fully_landlocked_nomad_cultures +# target = culture:bashkir +# } +# add_to_global_variable_list = { +# name = fully_landlocked_nomad_cultures +# target = culture:laktan +# } +# recalculate_cultural_heads_of_type = herd +# } ### GAME RULE: VIEW ON SAME-SEX RELATIONS if = { @@ -4369,85 +4369,85 @@ on_game_start_after_lobby = { } ### GAME RULE: RULER OF MUNSTER - if = { - limit = { - game_start_date = 1066.9.15 - has_game_rule = historicity_ruler_of_munster_historical_toirdelbach - } - create_title_and_vassal_change = { - type = conquest - save_scope_as = title_change - } - character:83355 = { - every_held_title = { - title_tier >= county - change_title_holder = { - holder = character:906 - change = scope:title_change - } - } - pay_short_term_gold = { - target = character:83355 - gold = gold - } - } - random_player = { - limit = { this = character:83355 } - set_player_character = character:906 - } - resolve_title_and_vassal_change = scope:title_change - # Since Murchad is back to his historical self, he gets to suck. - character:83355 = { - add_diplomacy_skill = -10 - remove_trait = gregarious - add_trait = craven - # Plus, usurpation rivalry — now Toidelbach has a perfectly good claim to the kingdom and will do a lot more with it than Murchad managed in his 5m in power, but by gameplay terms, this _is_ a usurpation. - set_relation_rival = { - target = character:906 - reason = rival_usurper - } - } - # Alright, let's give Toirdelbach his alliance. - character:906 = { - add_opinion = { - modifier = perk_negotiated_alliance_opinion - target = character:922 - } - reverse_add_opinion = { - modifier = event_negotiated_alliance_opinion - target = character:922 - } - create_alliance = { - target = character:922 - allied_through_owner = character:906 - allied_through_target = character:922 - } - } - } - - ### GAME RULE: DETERMINISTIC CONQUEST - if = { - limit = { - OR = { - NOT = { has_game_rule = historicity_norman_conquest_default_random } - game_rule_rig_norman_conquest_for_hereward_trigger = yes - } - } - set_global_variable = deterministic_conquest_of_england_1066 - # See if we should just teleport our combatants' armies into place. - trigger_event = { - id = game_rule.1151 - trigger_on_next_date = 1066.09.25 - } - trigger_event = { - id = game_rule.1152 - trigger_on_next_date = 1066.10.14 - } - } +# if = { +# limit = { +# game_start_date = 1066.9.15 +# has_game_rule = historicity_ruler_of_munster_historical_toirdelbach +# } +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = title_change +# } +# character:83355 = { +# every_held_title = { +# title_tier >= county +# change_title_holder = { +# holder = character:906 +# change = scope:title_change +# } +# } +# pay_short_term_gold = { +# target = character:83355 +# gold = gold +# } +# } +# random_player = { +# limit = { this = character:83355 } +# set_player_character = character:906 +# } +# resolve_title_and_vassal_change = scope:title_change +# # Since Murchad is back to his historical self, he gets to suck. +# character:83355 = { +# add_diplomacy_skill = -10 +# remove_trait = gregarious +# add_trait = craven +# # Plus, usurpation rivalry — now Toidelbach has a perfectly good claim to the kingdom and will do a lot more with it than Murchad managed in his 5m in power, but by gameplay terms, this _is_ a usurpation. +# set_relation_rival = { +# target = character:906 +# reason = rival_usurper +# } +# } +# # Alright, let's give Toirdelbach his alliance. +# character:906 = { +# add_opinion = { +# modifier = perk_negotiated_alliance_opinion +# target = character:922 +# } +# reverse_add_opinion = { +# modifier = event_negotiated_alliance_opinion +# target = character:922 +# } +# create_alliance = { +# target = character:922 +# allied_through_owner = character:906 +# allied_through_target = character:922 +# } +# } +# } +# +# ### GAME RULE: DETERMINISTIC CONQUEST +# if = { +# limit = { +# OR = { +# NOT = { has_game_rule = historicity_norman_conquest_default_random } +# game_rule_rig_norman_conquest_for_hereward_trigger = yes +# } +# } +# set_global_variable = deterministic_conquest_of_england_1066 +# # See if we should just teleport our combatants' armies into place. +# trigger_event = { +# id = game_rule.1151 +# trigger_on_next_date = 1066.09.25 +# } +# trigger_event = { +# id = game_rule.1152 +# trigger_on_next_date = 1066.10.14 +# } +# } ### 867 - MISC ### # Basileios has just murdered Michael III. - character:1700 ?= { trigger_event = bookmark.0211 } +# character:1700 ?= { trigger_event = bookmark.0211 } ### GAME RULE: EXTRA ADMINS ## We'll be doing some excessive triggers below in a bid to lightly future-proof + error-spam mods less, don't worry about it. @@ -4521,731 +4521,731 @@ on_game_start_after_lobby = { } } - ### ACHIEVEMENT TRACKING FOR STARTING CHARACTERS - if = { - limit = { has_multiple_players = no } - every_player = { - # TGP - if = { - limit = { - government_has_flag = government_is_wanua - } - add_achievement_global_variable_effect = { - VARIABLE = started_ep4_15_humble_beginnings_achievement - VALUE = yes - } - } - if = { - limit = { - has_title = title:k_chrysanthemum_throne - } - add_achievement_global_variable_effect = { - VARIABLE = started_ep4_03_sword_of_japan_achievement - VALUE = yes - } - } - if = { - limit = { - is_landed = no - tgp_is_any_minister = no - } - add_achievement_global_variable_effect = { - VARIABLE = started_ep4_05_grand_governor_achievement - VALUE = yes - } - } - if = { - limit = { - NAND = { - tgp_passed_children_examination = yes - tgp_passed_provincial_examination = yes - tgp_passed_metropolitan_examination = yes - tgp_passed_palace_examination = yes - } - } - add_achievement_global_variable_effect = { - VARIABLE = started_ep4_16_flying_colors_achievement - VALUE = yes - } - } - if = { - limit = { - NOT = { - culture = { - any_known_innovation = { - has_innovation_parameter = silk_road_innovation_parameter - } - } - } - } - add_achievement_global_variable_effect = { - VARIABLE = started_ep4_17_highway_of_ideas_achievement - VALUE = yes - } - } - if = { - limit = { - NOR = { - tgp_passed_children_examination = yes - tgp_passed_provincial_examination = yes - tgp_passed_metropolitan_examination = yes - tgp_passed_palace_examination = yes - } - } - add_achievement_global_variable_effect = { - VARIABLE = started_ep4_19_stamp_of_approval_achievement - VALUE = yes - } - } - # Base Title - if = { - limit = { - exists = character:7757 - this = character:7757 - } - add_achievement_global_variable_effect = { - VARIABLE = started_give_a_dog_a_bone_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:1128 - this = character:1128 - } - add_achievement_global_variable_effect = { - VARIABLE = started_wily_as_the_fox_achievement - VALUE = yes - } - } - if = { - limit = { - OR = { - AND = { - exists = character:108501 - this = character:108501 - } - AND = { - exists = character:107500 - this = character:107500 - } - AND = { - exists = character:107501 - this = character:107501 - } - AND = { - exists = character:108500 - this = character:108500 - } - AND = { - exists = character:109500 - this = character:109500 - } - } - } - add_achievement_global_variable_effect = { - VARIABLE = started_sibling_rivalry_achievement - VALUE = yes - } - } - if = { - limit = { - OR = { - AND = { - exists = character:163108 - this = character:163108 - } - AND = { - exists = character:163110 - this = character:163110 - } - AND = { - exists = character:163111 - this = character:163111 - } - AND = { - exists = character:163112 - this = character:163112 - } - AND = { - exists = character:163119 - this = character:163119 - } - } - } - add_achievement_global_variable_effect = { - VARIABLE = started_blood_eagle_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:6448 - this = character:6448 - } - add_achievement_global_variable_effect = { - VARIABLE = started_kings_to_the_seventh_generation_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:140 - this = character:140 - } - add_achievement_global_variable_effect = { - VARIABLE = started_norman_yoke_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:522 - this = character:522 - } - add_achievement_global_variable_effect = { - VARIABLE = started_royal_dignity_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:40605 - this = character:40605 - } - add_achievement_global_variable_effect = { - VARIABLE = started_land_of_the_rus_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:251187 - this = character:251187 - } - add_achievement_global_variable_effect = { - VARIABLE = started_mother_of_us_all_achievement - VALUE = yes - } - } - if = { # Temüjin - limit = { - has_mpo_dlc_trigger = yes - exists = character:125501 - this = character:125501 - } - add_achievement_global_variable_effect = { - VARIABLE = started_the_stallion_that_mounts_the_world_achievement - VALUE = yes - } - } - if = { - limit = { - government_has_flag = government_is_nomadic - save_temporary_scope_as = nomad_ruler - situation:the_great_steppe ?= { - situation_sub_region:steppe_east = { - situation_sub_region_has_county = scope:nomad_ruler.capital_county - } - } - } - add_achievement_global_variable_effect = { - VARIABLE = started_steppe_by_steppe_achievement - VALUE = yes - } - } - if = { - limit = { - OR = { - culture = { has_cultural_pillar = heritage_iberian } - culture = culture:andalusian - } - OR = { - has_religion = religion:eastern_orthodox_religion - has_religion = religion:catholic_religion - has_religion = religion:protestant_religion - } - } - add_achievement_global_variable_effect = { - VARIABLE = started_reconquista_achievement - VALUE = yes - } - } - if = { - limit = { - culture = culture:irish - capital_province = { geographical_region = custom_ireland } - } - add_achievement_global_variable_effect = { - VARIABLE = started_the_emerald_isle_achievement - VALUE = yes - } - } - if = { - limit = { - OR = { - culture = culture:castilian - culture = culture:basque - culture = culture:portuguese - culture = culture:catalan - culture = culture:andalusian - culture = culture:visigothic - culture = culture:suebi - } - has_religion = religion:islam_religion - capital_province = { geographical_region = world_europe_west_iberia } - } - add_achievement_global_variable_effect = { - VARIABLE = started_al_andalus_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:159137 - this = character:159137 - } - add_achievement_global_variable_effect = { - VARIABLE = started_almost_there_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:109607 - this = character:109607 - } - add_achievement_global_variable_effect = { - VARIABLE = started_last_count_first_king_achievement - VALUE = yes - } - } - if = { - limit = { - exists = character:6878 - this = character:6878 - } - add_achievement_global_variable_effect = { - VARIABLE = started_going_places_achievement - VALUE = yes - } - } - # FP1 - ## far_from_home_achievement - if = { - limit = { - # Starting as a Norse pagan Norse-cultured character. - fp1_achievement_culture_plus_religion_norse_trigger = yes - } - add_achievement_global_variable_effect = { - VARIABLE = started_far_from_home_achievement - VALUE = yes - } - } - ## miklagardariki_achievement - if = { - limit = { - # Starting as a Norse pagan Norse-cultured character. - fp1_achievement_culture_plus_religion_norse_trigger = yes - } - add_achievement_global_variable_effect = { - VARIABLE = started_miklagardariki_achievement - VALUE = yes - } - } - ## canute_the_greater_achievement - add_achievement_global_variable_effect = { - VARIABLE = started_canute_the_greater_achievement - VALUE = yes - } - ## king_of_all_the_isles_achievement - if = { - limit = { - # Starting as a Norse pagan Norse-cultured character. - fp1_achievement_culture_plus_religion_norse_trigger = yes - } - add_achievement_global_variable_effect = { - VARIABLE = started_king_of_all_the_isles_achievement - VALUE = yes - } - } - ## faster_than_the_fox_achievement - if = { - limit = { - # Starting as a Norse pagan Norse-cultured character. - fp1_achievement_culture_plus_religion_norse_trigger = yes - } - add_achievement_global_variable_effect = { - VARIABLE = started_faster_than_the_fox_achievement - VALUE = yes - } - } - ## volva_achievement - if = { - limit = { - # Starting as a Norse pagan Norse-cultured character. - fp1_achievement_culture_plus_religion_norse_trigger = yes - } - add_achievement_global_variable_effect = { - VARIABLE = started_volva_achievement - VALUE = yes - } - } - ## saga_in_stone_achievement - add_achievement_global_variable_effect = { - VARIABLE = started_saga_in_stone_achievement - VALUE = yes - } - ## first_of_the_crusader_kings_achievement - if = { - limit = { - # Starting as a Norse-cultured character. - fp1_achievement_culture_norse_trigger = yes - } - add_achievement_global_variable_effect = { - VARIABLE = started_first_of_the_crusader_kings_achievement - VALUE = yes - } - } - ## vladimirs_second_choice_achievement - if = { - limit = { - # Starting as a Norse pagan Norse or Rus-cultured character. - fp1_achievement_culture_norse_or_rus_trigger = yes - fp1_achievement_religious_norse_trigger = yes - } - add_achievement_global_variable_effect = { - VARIABLE = started_vladimirs_second_choice_achievement - VALUE = yes - } - } - ## a_dangerous_business_achievement - add_achievement_global_variable_effect = { - VARIABLE = started_a_dangerous_business_achievement - VALUE = yes - } - # EP1 - ##1 Patronage - add_achievement_global_variable_effect = { - VARIABLE = started_patronage_achievement - VALUE = yes - } - ##2 Converging Paths - add_achievement_global_variable_effect = { - VARIABLE = started_converging_paths_achievement - VALUE = yes - } - ##3 Changing course - add_achievement_global_variable_effect = { - VARIABLE = started_changing_course_achievement - VALUE = yes - } - ##4 Hoarder - add_achievement_global_variable_effect = { - VARIABLE = started_hoarder_achievement - VALUE = yes - } - ##5 creme de la creme - add_achievement_global_variable_effect = { - VARIABLE = started_creme_de_la_creme_achievement - VALUE = yes - } - ##6 Give it back! - add_achievement_global_variable_effect = { - VARIABLE = started_polyglot_achievement - VALUE = yes - } - ##7 Inspirational - add_achievement_global_variable_effect = { - VARIABLE = started_inspirational_achievement - VALUE = yes - } - ##8 One of a Kind - add_achievement_global_variable_effect = { - VARIABLE = started_one_of_a_kind_achievement - VALUE = yes - } - ##9 True Tolerance - add_achievement_global_variable_effect = { - VARIABLE = started_true_tolerance_achievement - VALUE = yes - } - ##10 Delusions of Grandeur - add_achievement_global_variable_effect = { - VARIABLE = started_delusions_of_grandeur_achievement_achievement - VALUE = yes - } - ##11 Bod Chen Po - if = { - limit = { - this.dynasty = dynasty:105800 - } - add_achievement_global_variable_effect = { - VARIABLE = started_bod_chen_po_achievement - VALUE = yes - } - } - ##12 Turkish Eagle - if = { - limit = { - this != character:3040 # Not Alp Arslan - house = house:house_seljuk # Seljuk - game_start_date < 1067.1.1 # 1066 only, and no Seljuks in 867 - } - add_achievement_global_variable_effect = { - VARIABLE = started_turkish_eagle_achievement - VALUE = yes - } - } - ##13 Rise of the Ghurids - if = { - limit = { - has_title = title:d_ghur - this.dynasty = dynasty:791 #Ghurid - } - add_achievement_global_variable_effect = { - VARIABLE = started_rise_of_the_ghurids_achievement - VALUE = yes - } - } - ##14 Brave and Bold - if = { - limit = { - game_start_date < 868.1.1 - this.dynasty = dynasty:699 #Piast - } - add_achievement_global_variable_effect = { - VARIABLE = started_brave_and_bold_achievement - VALUE = yes - } - } - ##15 Lingua Franca - add_achievement_global_variable_effect = { - VARIABLE = started_lingua_franca_achievement - VALUE = yes - } - ##16 Beta Israel - add_achievement_global_variable_effect = { - VARIABLE = started_beta_israel_achievement - VALUE = yes - } - ## 17 They belong in a museum! - add_achievement_global_variable_effect = { - VARIABLE = started_they_belong_in_a_museum_achievement - VALUE = yes - } - ##18 I made this! - add_achievement_global_variable_effect = { - VARIABLE = started_i_made_this_achievement - VALUE = yes - } - ##19 Nobody Comes to Fika! - add_achievement_global_variable_effect = { - VARIABLE = started_nobody_comes_to_fika_achievement - VALUE = yes - } - ## 20 The True Royal Court - add_achievement_global_variable_effect = { - VARIABLE = started_the_true_royal_court_achievement - VALUE = yes - } - # EP2 - ## 01. The Grandest Tour - add_achievement_global_variable_effect = { - VARIABLE = started_the_grandest_tour_achievement - VALUE = yes - } - ## 02. Your Eternal Reward - add_achievement_global_variable_effect = { - VARIABLE = started_your_eternal_reward_achievement - VALUE = yes - } - ## 03. Imperial March - add_achievement_global_variable_effect = { - VARIABLE = started_imperial_march_achievement - VALUE = yes - } - ## 04. Black Dinner - add_achievement_global_variable_effect = { - VARIABLE = started_black_dinner_achievement - VALUE = yes - } - ## 05. There and Back Again - add_achievement_global_variable_effect = { - VARIABLE = started_there_and_back_again_achievement - VALUE = yes - } - ## 06. The Very Best - add_achievement_global_variable_effect = { - VARIABLE = started_the_very_best_achievement - VALUE = yes - } - ## 07. Like No One Ever Was - add_achievement_global_variable_effect = { - VARIABLE = started_like_no_one_ever_was_achievement - VALUE = yes - } - ## 08. A Thousand and One Night - add_achievement_global_variable_effect = { - VARIABLE = started_a_thousand_and_one_nights_achievement - VALUE = yes - } - ## 09. A Knight's Tale - add_achievement_global_variable_effect = { - VARIABLE = started_a_knights_tale_achievement - VALUE = yes - } - ## 10. Hunting Accident - add_achievement_global_variable_effect = { - VARIABLE = started_hunting_accident_achievement - VALUE = yes - } - ## 11. Lions and Tigers and Bears, Oh My! - add_achievement_global_variable_effect = { - VARIABLE = started_lions_and_tigers_and_bears_oh_my_achievement - VALUE = yes - } - ## 12. Fly, my Pretty! - add_achievement_global_variable_effect = { - VARIABLE = started_fly_my_pretty_achievement - VALUE = yes - } - ## 13. Pathway to Heaven - add_achievement_global_variable_effect = { - VARIABLE = started_pathway_to_heaven_achievement - VALUE = yes - } - ## 14. Sir Lance-a-Lot - add_achievement_global_variable_effect = { - VARIABLE = started_sir_lance_a_lot_achievement - VALUE = yes - } - ## 15. I'm in my Element(s) - add_achievement_global_variable_effect = { - VARIABLE = started_im_in_my_elements_achievement - VALUE = yes - } - ## 16. Ahab - add_achievement_global_variable_effect = { - VARIABLE = started_ahab_achievement - VALUE = yes - } - ## 17. Little William Marshal - add_achievement_global_variable_effect = { - VARIABLE = started_little_william_marshal_achievement - VALUE = 0 - } - add_achievement_global_variable_effect = { - VARIABLE = little_william_marshal_achievement_tally - VALUE = 0 - } - ## 18. A True & Perfect Knight - add_achievement_global_variable_effect = { - VARIABLE = started_a_true_and_perfect_knight_achievement - VALUE = yes - } - ## 19. A.E.I.O.U & Me - if = { - limit = { - # Etichonen, of whom the Hapsburgs are a cadet - we check dynasty rather than house so that an accidental cadet doesn't screw you. - this.house ?= house:house_habsburg - } - add_achievement_global_variable_effect = { - VARIABLE = started_a_e_i_o_u_and_me_achievement - VALUE = yes - } - } - ## 20. The Iron and Golden King - add_achievement_global_variable_effect = { - VARIABLE = started_the_iron_and_golden_king_achievement - VALUE = yes - } - - ### RULER DESIGNER ACHIEVEMENT BLOCKS ### - if = { - limit = { - num_virtuous_traits >= 3 - } - add_achievement_flag_effect = { FLAG = rd_character_blocked_paragon_of_virtue_achievement_flag } - } - if = { - limit = { - any_child = { - count >= 10 - is_alive = yes - } - } - add_achievement_flag_effect = { FLAG = rd_character_blocked_the_succession_is_safe_achievement_flag } - } - if = { - limit = { - any_child = { - has_trait = inbred - } - } - add_achievement_flag_effect = { FLAG = rd_character_blocked_keeping_it_in_the_family_achievement_flag } - } - if = { - limit = { - highest_held_title_tier >= tier_empire - should_be_naked_trigger = yes - } - add_achievement_flag_effect = { FLAG = rd_character_blocked_the_emperors_new_clothes_achievement_flag } - } - if = { - limit = { - is_from_ruler_designer = yes - OR = { - fp1_achievement_culture_norse_trigger = yes - fp1_achievement_religious_norse_trigger = yes - } - } - add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_far_from_home_achievement } - add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_miklagardariki_achievement } - add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_faster_than_the_fox_achievement } - } - if = { - limit = { - any_ruler = { - is_from_ruler_designer = yes - } - } - add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_iberia_or_iberia_achievement } - add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_el_cid_achievement } - add_achievement_global_variable_effect = { - VARIABLE = any_ruler_designed_character_achievement - VALUE = yes - } - } - if = { - limit = { - has_mpo_dlc_trigger = yes - exists = character:125501 - character:125501 = { - is_alive = yes - } - } - character:125501 = { - create_story = story_temujin_flavor - trigger_event = { - days = { 12 30 } - id = mpo_temujin_flavor.0030 # Borte announces she's pregnant - } - } - } - } - } +# ### ACHIEVEMENT TRACKING FOR STARTING CHARACTERS +# if = { +# limit = { has_multiple_players = no } +# every_player = { +# # TGP +# if = { +# limit = { +# government_has_flag = government_is_wanua +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_ep4_15_humble_beginnings_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# has_title = title:k_chrysanthemum_throne +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_ep4_03_sword_of_japan_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# is_landed = no +# tgp_is_any_minister = no +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_ep4_05_grand_governor_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# NAND = { +# tgp_passed_children_examination = yes +# tgp_passed_provincial_examination = yes +# tgp_passed_metropolitan_examination = yes +# tgp_passed_palace_examination = yes +# } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_ep4_16_flying_colors_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# NOT = { +# culture = { +# any_known_innovation = { +# has_innovation_parameter = silk_road_innovation_parameter +# } +# } +# } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_ep4_17_highway_of_ideas_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# NOR = { +# tgp_passed_children_examination = yes +# tgp_passed_provincial_examination = yes +# tgp_passed_metropolitan_examination = yes +# tgp_passed_palace_examination = yes +# } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_ep4_19_stamp_of_approval_achievement +# VALUE = yes +# } +# } +# # Base Title +# if = { +# limit = { +# exists = character:7757 +# this = character:7757 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_give_a_dog_a_bone_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:1128 +# this = character:1128 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_wily_as_the_fox_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# OR = { +# AND = { +# exists = character:108501 +# this = character:108501 +# } +# AND = { +# exists = character:107500 +# this = character:107500 +# } +# AND = { +# exists = character:107501 +# this = character:107501 +# } +# AND = { +# exists = character:108500 +# this = character:108500 +# } +# AND = { +# exists = character:109500 +# this = character:109500 +# } +# } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_sibling_rivalry_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# OR = { +# AND = { +# exists = character:163108 +# this = character:163108 +# } +# AND = { +# exists = character:163110 +# this = character:163110 +# } +# AND = { +# exists = character:163111 +# this = character:163111 +# } +# AND = { +# exists = character:163112 +# this = character:163112 +# } +# AND = { +# exists = character:163119 +# this = character:163119 +# } +# } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_blood_eagle_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:6448 +# this = character:6448 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_kings_to_the_seventh_generation_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:140 +# this = character:140 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_norman_yoke_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:522 +# this = character:522 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_royal_dignity_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:40605 +# this = character:40605 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_land_of_the_rus_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:251187 +# this = character:251187 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_mother_of_us_all_achievement +# VALUE = yes +# } +# } +# if = { # Temüjin +# limit = { +# has_mpo_dlc_trigger = yes +# exists = character:125501 +# this = character:125501 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_the_stallion_that_mounts_the_world_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# save_temporary_scope_as = nomad_ruler +# situation:the_great_steppe ?= { +# situation_sub_region:steppe_east = { +# situation_sub_region_has_county = scope:nomad_ruler.capital_county +# } +# } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_steppe_by_steppe_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# OR = { +# culture = { has_cultural_pillar = heritage_iberian } +# culture = culture:andalusian +# } +# OR = { +# has_religion = religion:eastern_orthodox_religion +# has_religion = religion:catholic_religion +# has_religion = religion:protestant_religion +# } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_reconquista_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# culture = culture:irish +# capital_province = { geographical_region = custom_ireland } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_the_emerald_isle_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# OR = { +# culture = culture:castilian +# culture = culture:basque +# culture = culture:portuguese +# culture = culture:catalan +# culture = culture:andalusian +# culture = culture:visigothic +# culture = culture:suebi +# } +# has_religion = religion:islam_religion +# capital_province = { geographical_region = world_europe_west_iberia } +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_al_andalus_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:159137 +# this = character:159137 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_almost_there_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:109607 +# this = character:109607 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_last_count_first_king_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# exists = character:6878 +# this = character:6878 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_going_places_achievement +# VALUE = yes +# } +# } +# # FP1 +# ## far_from_home_achievement +# if = { +# limit = { +# # Starting as a Norse pagan Norse-cultured character. +# fp1_achievement_culture_plus_religion_norse_trigger = yes +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_far_from_home_achievement +# VALUE = yes +# } +# } +# ## miklagardariki_achievement +# if = { +# limit = { +# # Starting as a Norse pagan Norse-cultured character. +# fp1_achievement_culture_plus_religion_norse_trigger = yes +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_miklagardariki_achievement +# VALUE = yes +# } +# } +# ## canute_the_greater_achievement +# add_achievement_global_variable_effect = { +# VARIABLE = started_canute_the_greater_achievement +# VALUE = yes +# } +# ## king_of_all_the_isles_achievement +# if = { +# limit = { +# # Starting as a Norse pagan Norse-cultured character. +# fp1_achievement_culture_plus_religion_norse_trigger = yes +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_king_of_all_the_isles_achievement +# VALUE = yes +# } +# } +# ## faster_than_the_fox_achievement +# if = { +# limit = { +# # Starting as a Norse pagan Norse-cultured character. +# fp1_achievement_culture_plus_religion_norse_trigger = yes +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_faster_than_the_fox_achievement +# VALUE = yes +# } +# } +# ## volva_achievement +# if = { +# limit = { +# # Starting as a Norse pagan Norse-cultured character. +# fp1_achievement_culture_plus_religion_norse_trigger = yes +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_volva_achievement +# VALUE = yes +# } +# } +# ## saga_in_stone_achievement +# add_achievement_global_variable_effect = { +# VARIABLE = started_saga_in_stone_achievement +# VALUE = yes +# } +# ## first_of_the_crusader_kings_achievement +# if = { +# limit = { +# # Starting as a Norse-cultured character. +# fp1_achievement_culture_norse_trigger = yes +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_first_of_the_crusader_kings_achievement +# VALUE = yes +# } +# } +# ## vladimirs_second_choice_achievement +# if = { +# limit = { +# # Starting as a Norse pagan Norse or Rus-cultured character. +# fp1_achievement_culture_norse_or_rus_trigger = yes +# fp1_achievement_religious_norse_trigger = yes +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_vladimirs_second_choice_achievement +# VALUE = yes +# } +# } +# ## a_dangerous_business_achievement +# add_achievement_global_variable_effect = { +# VARIABLE = started_a_dangerous_business_achievement +# VALUE = yes +# } +# # EP1 +# ##1 Patronage +# add_achievement_global_variable_effect = { +# VARIABLE = started_patronage_achievement +# VALUE = yes +# } +# ##2 Converging Paths +# add_achievement_global_variable_effect = { +# VARIABLE = started_converging_paths_achievement +# VALUE = yes +# } +# ##3 Changing course +# add_achievement_global_variable_effect = { +# VARIABLE = started_changing_course_achievement +# VALUE = yes +# } +# ##4 Hoarder +# add_achievement_global_variable_effect = { +# VARIABLE = started_hoarder_achievement +# VALUE = yes +# } +# ##5 creme de la creme +# add_achievement_global_variable_effect = { +# VARIABLE = started_creme_de_la_creme_achievement +# VALUE = yes +# } +# ##6 Give it back! +# add_achievement_global_variable_effect = { +# VARIABLE = started_polyglot_achievement +# VALUE = yes +# } +# ##7 Inspirational +# add_achievement_global_variable_effect = { +# VARIABLE = started_inspirational_achievement +# VALUE = yes +# } +# ##8 One of a Kind +# add_achievement_global_variable_effect = { +# VARIABLE = started_one_of_a_kind_achievement +# VALUE = yes +# } +# ##9 True Tolerance +# add_achievement_global_variable_effect = { +# VARIABLE = started_true_tolerance_achievement +# VALUE = yes +# } +# ##10 Delusions of Grandeur +# add_achievement_global_variable_effect = { +# VARIABLE = started_delusions_of_grandeur_achievement_achievement +# VALUE = yes +# } +# ##11 Bod Chen Po +# if = { +# limit = { +# this.dynasty = dynasty:105800 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_bod_chen_po_achievement +# VALUE = yes +# } +# } +# ##12 Turkish Eagle +# if = { +# limit = { +# this != character:3040 # Not Alp Arslan +# house = house:house_seljuk # Seljuk +# game_start_date < 1067.1.1 # 1066 only, and no Seljuks in 867 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_turkish_eagle_achievement +# VALUE = yes +# } +# } +# ##13 Rise of the Ghurids +# if = { +# limit = { +# has_title = title:d_ghur +# this.dynasty = dynasty:791 #Ghurid +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_rise_of_the_ghurids_achievement +# VALUE = yes +# } +# } +# ##14 Brave and Bold +# if = { +# limit = { +# game_start_date < 868.1.1 +# this.dynasty = dynasty:699 #Piast +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_brave_and_bold_achievement +# VALUE = yes +# } +# } +# ##15 Lingua Franca +# add_achievement_global_variable_effect = { +# VARIABLE = started_lingua_franca_achievement +# VALUE = yes +# } +# ##16 Beta Israel +# add_achievement_global_variable_effect = { +# VARIABLE = started_beta_israel_achievement +# VALUE = yes +# } +# ## 17 They belong in a museum! +# add_achievement_global_variable_effect = { +# VARIABLE = started_they_belong_in_a_museum_achievement +# VALUE = yes +# } +# ##18 I made this! +# add_achievement_global_variable_effect = { +# VARIABLE = started_i_made_this_achievement +# VALUE = yes +# } +# ##19 Nobody Comes to Fika! +# add_achievement_global_variable_effect = { +# VARIABLE = started_nobody_comes_to_fika_achievement +# VALUE = yes +# } +# ## 20 The True Royal Court +# add_achievement_global_variable_effect = { +# VARIABLE = started_the_true_royal_court_achievement +# VALUE = yes +# } +# # EP2 +# ## 01. The Grandest Tour +# add_achievement_global_variable_effect = { +# VARIABLE = started_the_grandest_tour_achievement +# VALUE = yes +# } +# ## 02. Your Eternal Reward +# add_achievement_global_variable_effect = { +# VARIABLE = started_your_eternal_reward_achievement +# VALUE = yes +# } +# ## 03. Imperial March +# add_achievement_global_variable_effect = { +# VARIABLE = started_imperial_march_achievement +# VALUE = yes +# } +# ## 04. Black Dinner +# add_achievement_global_variable_effect = { +# VARIABLE = started_black_dinner_achievement +# VALUE = yes +# } +# ## 05. There and Back Again +# add_achievement_global_variable_effect = { +# VARIABLE = started_there_and_back_again_achievement +# VALUE = yes +# } +# ## 06. The Very Best +# add_achievement_global_variable_effect = { +# VARIABLE = started_the_very_best_achievement +# VALUE = yes +# } +# ## 07. Like No One Ever Was +# add_achievement_global_variable_effect = { +# VARIABLE = started_like_no_one_ever_was_achievement +# VALUE = yes +# } +# ## 08. A Thousand and One Night +# add_achievement_global_variable_effect = { +# VARIABLE = started_a_thousand_and_one_nights_achievement +# VALUE = yes +# } +# ## 09. A Knight's Tale +# add_achievement_global_variable_effect = { +# VARIABLE = started_a_knights_tale_achievement +# VALUE = yes +# } +# ## 10. Hunting Accident +# add_achievement_global_variable_effect = { +# VARIABLE = started_hunting_accident_achievement +# VALUE = yes +# } +# ## 11. Lions and Tigers and Bears, Oh My! +# add_achievement_global_variable_effect = { +# VARIABLE = started_lions_and_tigers_and_bears_oh_my_achievement +# VALUE = yes +# } +# ## 12. Fly, my Pretty! +# add_achievement_global_variable_effect = { +# VARIABLE = started_fly_my_pretty_achievement +# VALUE = yes +# } +# ## 13. Pathway to Heaven +# add_achievement_global_variable_effect = { +# VARIABLE = started_pathway_to_heaven_achievement +# VALUE = yes +# } +# ## 14. Sir Lance-a-Lot +# add_achievement_global_variable_effect = { +# VARIABLE = started_sir_lance_a_lot_achievement +# VALUE = yes +# } +# ## 15. I'm in my Element(s) +# add_achievement_global_variable_effect = { +# VARIABLE = started_im_in_my_elements_achievement +# VALUE = yes +# } +# ## 16. Ahab +# add_achievement_global_variable_effect = { +# VARIABLE = started_ahab_achievement +# VALUE = yes +# } +# ## 17. Little William Marshal +# add_achievement_global_variable_effect = { +# VARIABLE = started_little_william_marshal_achievement +# VALUE = 0 +# } +# add_achievement_global_variable_effect = { +# VARIABLE = little_william_marshal_achievement_tally +# VALUE = 0 +# } +# ## 18. A True & Perfect Knight +# add_achievement_global_variable_effect = { +# VARIABLE = started_a_true_and_perfect_knight_achievement +# VALUE = yes +# } +# ## 19. A.E.I.O.U & Me +# if = { +# limit = { +# # Etichonen, of whom the Hapsburgs are a cadet - we check dynasty rather than house so that an accidental cadet doesn't screw you. +# this.house ?= house:house_habsburg +# } +# add_achievement_global_variable_effect = { +# VARIABLE = started_a_e_i_o_u_and_me_achievement +# VALUE = yes +# } +# } +# ## 20. The Iron and Golden King +# add_achievement_global_variable_effect = { +# VARIABLE = started_the_iron_and_golden_king_achievement +# VALUE = yes +# } +# +# ### RULER DESIGNER ACHIEVEMENT BLOCKS ### +# if = { +# limit = { +# num_virtuous_traits >= 3 +# } +# add_achievement_flag_effect = { FLAG = rd_character_blocked_paragon_of_virtue_achievement_flag } +# } +# if = { +# limit = { +# any_child = { +# count >= 10 +# is_alive = yes +# } +# } +# add_achievement_flag_effect = { FLAG = rd_character_blocked_the_succession_is_safe_achievement_flag } +# } +# if = { +# limit = { +# any_child = { +# has_trait = inbred +# } +# } +# add_achievement_flag_effect = { FLAG = rd_character_blocked_keeping_it_in_the_family_achievement_flag } +# } +# if = { +# limit = { +# highest_held_title_tier >= tier_empire +# should_be_naked_trigger = yes +# } +# add_achievement_flag_effect = { FLAG = rd_character_blocked_the_emperors_new_clothes_achievement_flag } +# } +# if = { +# limit = { +# is_from_ruler_designer = yes +# OR = { +# fp1_achievement_culture_norse_trigger = yes +# fp1_achievement_religious_norse_trigger = yes +# } +# } +# add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_far_from_home_achievement } +# add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_miklagardariki_achievement } +# add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_faster_than_the_fox_achievement } +# } +# if = { +# limit = { +# any_ruler = { +# is_from_ruler_designer = yes +# } +# } +# add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_iberia_or_iberia_achievement } +# add_to_global_unavailable_achievements_list_effect = { FLAG = flag:rd_character_blocked_el_cid_achievement } +# add_achievement_global_variable_effect = { +# VARIABLE = any_ruler_designed_character_achievement +# VALUE = yes +# } +# } +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# exists = character:125501 +# character:125501 = { +# is_alive = yes +# } +# } +# character:125501 = { +# create_story = story_temujin_flavor +# trigger_event = { +# days = { 12 30 } +# id = mpo_temujin_flavor.0030 # Borte announces she's pregnant +# } +# } +# } +# } +# } ### ACHIEVEMENT (FP3): The Ummayad Strikes Back - every_player = { - if = { - limit = { - dynasty = character:73683.dynasty - location = { geographical_region = world_europe_west_iberia } - } - set_global_variable = fp3_the_umma_strikes_back_achievement_tracker # Is not removed (sad!) - } - } +# every_player = { +# if = { +# limit = { +# dynasty = character:73683.dynasty +# location = { geographical_region = world_europe_west_iberia } +# } +# set_global_variable = fp3_the_umma_strikes_back_achievement_tracker # Is not removed (sad!) +# } +# } ### ACHIEVEMENT: FROM RAGS TO RICHES TO RAGS TO RICHES every_player = { diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index f83cf6cd..ffb1dece 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -3177,7 +3177,7 @@ on_title_gain_usurpation = { } if = { limit = { - government = landless_minority_government + has_government = landless_minority_government exists = liege } create_title_and_vassal_change = { @@ -3265,13 +3265,13 @@ on_title_gain_usurpation = { # scope:new_holder = new holder. on_title_lost = { events = { - british_isles.1033 # Danelaw-England partition calc. + # british_isles.1033 # Danelaw-England partition calc. } effect = { if = { limit = { - government = landless_minority_government + has_government = landless_minority_government exists = liege } create_title_and_vassal_change = { diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index ca098f4c..388651cb 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -363,7 +363,7 @@ yearly_global_pulse = { # # Rabbi Gershom bans polygamy sometime in the 11th century # current_date > "1000.01.01" # # Make sure this hasn't happened already -# faith:rabbinism = { +# faith:congregationist = { # has_doctrine = doctrine_polygamy # NOT = { # has_variable = rabbinicism_accepted_monogamy @@ -1210,7 +1210,7 @@ yearly_playable_pulse = { } if = { limit = { - government = landless_minority_government + has_government = landless_minority_government domicile ?= { OR = { has_domicile_building_or_higher = village_rice_field_05 @@ -1226,7 +1226,7 @@ yearly_playable_pulse = { } else_if = { limit = { - government = landless_minority_government + has_government = landless_minority_government domicile ?= { OR = { has_domicile_building_or_higher = village_rice_field_03 diff --git a/common/province_terrain/01_province_properties.txt b/common/province_terrain/01_province_properties.txt index 19ff202f..b3896d7d 100644 --- a/common/province_terrain/01_province_properties.txt +++ b/common/province_terrain/01_province_properties.txt @@ -9287,7 +9287,7 @@ #### k_esthonia #Estonia ### d_esthonia -## c_reval +## c_harjumaa # b_reval 94 ={ winter_severity_bias = 0.65 @@ -9300,7 +9300,7 @@ 96 ={ winter_severity_bias = 0.65 } -## c_narva +## c_ida_viru # b_narva 98 ={ winter_severity_bias = 0.65 diff --git a/common/religion/doctrine_types/30_core_tenets.txt b/common/religion/doctrine_types/30_core_tenets.txt index 0503d936..8d1c039c 100644 --- a/common/religion/doctrine_types/30_core_tenets.txt +++ b/common/religion/doctrine_types/30_core_tenets.txt @@ -4053,7 +4053,7 @@ piety_cost = faith_tenet_cost_mid is_shown = { - religion_tag = hellenism_religion + religion_tag = theomach_religion } can_pick = { diff --git a/common/religion/religion_types/NEOW_theomach.txt b/common/religion/religion_types/NEOW_theomach.txt index dd3a6276..38433d87 100644 --- a/common/religion/religion_types/NEOW_theomach.txt +++ b/common/religion/religion_types/NEOW_theomach.txt @@ -1,4 +1,4 @@ -theomach = { +theomach_religion = { family = rf_antediluvianist graphical_faith = pagan_gfx doctrine = pagan_hostility_doctrine diff --git a/common/script_values/02_religion_values.txt b/common/script_values/02_religion_values.txt index 0fb29645..51cdbb2b 100644 --- a/common/script_values/02_religion_values.txt +++ b/common/script_values/02_religion_values.txt @@ -1618,7 +1618,7 @@ great_holy_war_target_kingdom_weight = { # Hellenic heartlands else_if = { limit = { - scope:the_faith.religion = religion:hellenism_religion + scope:the_faith.religion = religion:theomach_religion title_capital_county.title_province = { OR = { geographical_region = ghw_region_mainland_greece @@ -1631,7 +1631,7 @@ great_holy_war_target_kingdom_weight = { # Hellenic frontier else_if = { limit = { - scope:the_faith.religion = religion:hellenism_religion + scope:the_faith.religion = religion:theomach_religion title_capital_county.title_province = { OR = { geographical_region = ghw_region_anatolia @@ -1645,7 +1645,7 @@ great_holy_war_target_kingdom_weight = { # Hellenic fringe else_if = { limit = { - scope:the_faith.religion = religion:hellenism_religion + scope:the_faith.religion = religion:theomach_religion title_capital_county.title_province = { OR = { geographical_region = ghw_region_holy_land @@ -2177,7 +2177,7 @@ great_holy_war_target_kingdom_weight = { } # Hellenic Paganism else_if = { - limit = { scope:the_faith.religion = religion:hellenism_religion } + limit = { scope:the_faith.religion = religion:theomach_religion } if = { limit = { title_capital_county = { @@ -2587,7 +2587,7 @@ great_holy_war_target_kingdom_weight = { } # Hellenic Paganism else_if = { - limit = { scope:the_faith.religion = religion:hellenism_religion } + limit = { scope:the_faith.religion = religion:theomach_religion } if = { limit = { title_capital_county = { @@ -2997,7 +2997,7 @@ great_holy_war_target_kingdom_weight = { } # Hellenic Paganism else_if = { - limit = { scope:the_faith.religion = religion:hellenism_religion } + limit = { scope:the_faith.religion = religion:theomach_religion } if = { limit = { title_capital_county = { diff --git a/common/scripted_effects/00_mongol_invasion_effects.txt b/common/scripted_effects/00_mongol_invasion_effects.txt index 279fe623..582edce6 100644 --- a/common/scripted_effects/00_mongol_invasion_effects.txt +++ b/common/scripted_effects/00_mongol_invasion_effects.txt @@ -1,12656 +1,12657 @@ -@creatable_successor_empire_county_threshold = 15 - - -# Give a suitable County to Genghis -give_temujin_land_effect = { - if = { - limit = { - OR = { - is_landed = no - highest_held_title_tier < tier_county - } - } - save_scope_as = genghis_khan - - create_title_and_vassal_change = { - type = conquest - save_scope_as = title_change - add_claim_on_loss = no - } - title:c_khentii = { - change_title_holder = { - holder = scope:genghis_khan - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - capital_county = { change_county_control = 100 } -} - -# A wild Genghis Khan appears! -spawn_temujin_character_effect = { - title:c_khentii.title_province = { - save_scope_as = temujins_birthplace - } - if = { - limit = { - exists = character:125501 - character:125501 = { - is_ai = no - } - } - character:125501 = { - save_scope_as = temujin - } - if = { - limit = { - #The DLC has our own BECOME GENGHIS stuff for players - has_mpo_dlc_trigger = no - } - scope:temujin = { - give_temujin_land_effect = yes - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - - add_trait = greatest_of_khans - form_the_mongol_empire_effect = yes - add_prestige = 25000 - give_nickname = nick_genghis_khan - trigger_event = conqueror.0001 - } - } - else = { - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - trigger_event = conqueror.0001 - } - } - } - else_if = { - limit = { - exists = character:125501 - character:125501 = { is_physically_able_ai_adult = yes } - } - character:125501 = { - save_scope_as = temujin - } - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - - add_trait = greatest_of_khans - give_temujin_land_effect = yes - add_gold = 5000 - add_dread = high_dread - spawn_temujins_court_effect = yes - form_the_mongol_empire_effect = yes - add_prestige = 25000 - if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { has_perk = peacemaker_perk } - } - add_perk = peacemaker_perk - } - remove_trait = education_diplomacy_1 - remove_trait = education_diplomacy_2 - remove_trait = education_diplomacy_3 - remove_trait = education_diplomacy_4 - remove_trait = education_diplomacy_5 - remove_trait = education_intrigue_1 - remove_trait = education_intrigue_2 - remove_trait = education_intrigue_3 - remove_trait = education_intrigue_4 - remove_trait = education_intrigue_5 - remove_trait = education_stewardship_1 - remove_trait = education_stewardship_2 - remove_trait = education_stewardship_3 - remove_trait = education_stewardship_4 - remove_trait = education_stewardship_5 - remove_trait = education_learning_1 - remove_trait = education_learning_2 - remove_trait = education_learning_3 - remove_trait = education_learning_4 - remove_trait = education_learning_5 - remove_trait = education_martial_1 - remove_trait = education_martial_2 - remove_trait = education_martial_3 - remove_trait = education_martial_4 - add_trait = education_martial_5 - add_trait = flexible_leader - add_trait = athletic - if = { - limit = { has_dlc_feature = tours_and_tournaments } - add_trait = tourney_participant - add_random_tiered_trait_track_xp_effect = { - TRAIT = lifestyle_hunter - TRACK = hunter - LEVEL_1 = yes - LEVEL_3 = no - } - add_random_tiered_trait_track_xp_effect = { - TRAIT = tourney_participant - TRACK = horse - LEVEL_1 = yes - LEVEL_3 = yes - } - add_random_tiered_trait_track_xp_effect = { - TRAIT = tourney_participant - TRACK = bow - LEVEL_1 = yes - LEVEL_3 = yes - } - } - dynasty = { - add_dynasty_prestige_level = 5 - add_dynasty_prestige = 10000 - add_dynasty_perk = warfare_legacy_1 - add_dynasty_perk = warfare_legacy_2 - add_dynasty_perk = warfare_legacy_3 - add_dynasty_perk = warfare_legacy_4 - add_dynasty_perk = warfare_legacy_5 - if = { - limit = { - has_dlc_feature = hybridize_culture - } - add_dynasty_perk = ep1_culture_legacy_1 - } - } - give_nickname = nick_genghis_khan - } - } - else_if = { - limit = { - exists = character:125501.dynasty - character:125501.dynasty = { - any_dynasty_member = { - is_ai = no - is_landed = yes - } - } - } - character:125501.dynasty = { - random_dynasty_member = { - limit = { - is_ai = no - is_landed = yes - } - save_scope_as = temujin - } - } - if = { - limit = { has_mpo_dlc_trigger = no } - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - - add_trait = greatest_of_khans - form_the_mongol_empire_effect = yes - add_prestige = 25000 - give_nickname = nick_genghis_khan - trigger_event = conqueror.0001 - } - } - else = { - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - trigger_event = conqueror.0001 - } - } - } - else_if = { - limit = { - exists = character:125501.dynasty - character:125501.dynasty = { - any_dynasty_member = { - is_physically_able_ai_adult = yes - } - } - } - character:125501.dynasty = { - random_dynasty_member = { - limit = { - is_physically_able_ai_adult = yes - is_landed = yes - } - alternative_limit = { - is_physically_able_ai_adult = yes - } - save_scope_as = temujin - } - } - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - - add_trait = greatest_of_khans - give_temujin_land_effect = yes - add_gold = 5000 - add_dread = high_dread - spawn_temujins_court_effect = yes - form_the_mongol_empire_effect = yes - add_prestige = 25000 - if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { has_perk = peacemaker_perk } - } - add_perk = peacemaker_perk - } - remove_trait = education_diplomacy_1 - remove_trait = education_diplomacy_2 - remove_trait = education_diplomacy_3 - remove_trait = education_diplomacy_4 - remove_trait = education_diplomacy_5 - remove_trait = education_intrigue_1 - remove_trait = education_intrigue_2 - remove_trait = education_intrigue_3 - remove_trait = education_intrigue_4 - remove_trait = education_intrigue_5 - remove_trait = education_stewardship_1 - remove_trait = education_stewardship_2 - remove_trait = education_stewardship_3 - remove_trait = education_stewardship_4 - remove_trait = education_stewardship_5 - remove_trait = education_learning_1 - remove_trait = education_learning_2 - remove_trait = education_learning_3 - remove_trait = education_learning_4 - remove_trait = education_learning_5 - remove_trait = education_martial_1 - remove_trait = education_martial_2 - remove_trait = education_martial_3 - remove_trait = education_martial_4 - add_trait = education_martial_5 - add_trait = flexible_leader - add_trait = athletic - if = { - limit = { has_dlc_feature = tours_and_tournaments } - add_trait = tourney_participant - add_random_tiered_trait_track_xp_effect = { - TRAIT = lifestyle_hunter - TRACK = hunter - LEVEL_1 = yes - LEVEL_3 = no - } - add_random_tiered_trait_track_xp_effect = { - TRAIT = tourney_participant - TRACK = horse - LEVEL_1 = yes - LEVEL_3 = yes - } - add_random_tiered_trait_track_xp_effect = { - TRAIT = tourney_participant - TRACK = bow - LEVEL_1 = yes - LEVEL_3 = yes - } - } - dynasty = { - add_dynasty_prestige_level = 5 - add_dynasty_prestige = 10000 - add_dynasty_perk = warfare_legacy_1 - add_dynasty_perk = warfare_legacy_2 - add_dynasty_perk = warfare_legacy_3 - add_dynasty_perk = warfare_legacy_4 - add_dynasty_perk = warfare_legacy_5 - if = { - limit = { - has_dlc_feature = hybridize_culture - } - add_dynasty_perk = ep1_culture_legacy_1 - } - } - give_nickname = nick_genghis_khan - } - } - else_if = { - limit = { - #Generate Temujin if there has BEEN NO Temujin - NOT = { - has_global_variable = temujin_was_born - } - } - if = { - limit = { has_game_rule = inversed_gender_equality } - create_character = { - name = "Borte" # AKA: Genghis Khan's wife - gender = female - location = scope:temujins_birthplace - template = borte_character_template - save_scope_as = temujin - } - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - - add_trait = greatest_of_khans - give_temujin_land_effect = yes - add_gold = 5000 - add_dread = high_dread - spawn_temujins_court_effect = yes - form_the_mongol_empire_effect = yes - add_prestige = 25000 - give_nickname = nick_genghis_khan - if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { has_perk = peacemaker_perk } - } - add_perk = peacemaker_perk - } - dynasty = { - add_dynasty_prestige_level = 5 - add_dynasty_prestige = 10000 - add_dynasty_perk = warfare_legacy_1 - add_dynasty_perk = warfare_legacy_2 - add_dynasty_perk = warfare_legacy_3 - add_dynasty_perk = warfare_legacy_4 - add_dynasty_perk = warfare_legacy_5 - if = { - limit = { - has_dlc_feature = hybridize_culture - } - add_dynasty_perk = ep1_culture_legacy_1 - } - } - } - } - else_if = { - limit = { has_game_rule = full_gender_equality } - random_list = { - #Female Ghengis Khan. - 50 = { - create_character = { - name = "Borte" # AKA: Genghis Khan's wife - gender = female - location = scope:temujins_birthplace - template = borte_character_template - save_scope_as = temujin - } - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - - add_trait = greatest_of_khans - give_temujin_land_effect = yes - add_gold = 5000 - add_dread = high_dread - spawn_temujins_court_effect = yes - form_the_mongol_empire_effect = yes - add_prestige = 25000 - give_nickname = nick_genghis_khan - if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { has_perk = peacemaker_perk } - } - add_perk = peacemaker_perk - } - dynasty = { - add_dynasty_prestige_level = 5 - add_dynasty_prestige = 10000 - add_dynasty_perk = warfare_legacy_1 - add_dynasty_perk = warfare_legacy_2 - add_dynasty_perk = warfare_legacy_3 - add_dynasty_perk = warfare_legacy_4 - add_dynasty_perk = warfare_legacy_5 - if = { - limit = { - has_dlc_feature = hybridize_culture - } - add_dynasty_perk = ep1_culture_legacy_1 - } - } - } - } - #Male Ghengis Khan. - 50 = { - create_character = { - name = "Temujin" # AKA: Genghis Khan - location = scope:temujins_birthplace - template = genghis_khan_character_template - save_scope_as = temujin - } - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - - add_trait = greatest_of_khans - give_temujin_land_effect = yes - add_gold = 5000 - add_dread = high_dread - spawn_temujins_court_effect = yes - form_the_mongol_empire_effect = yes - add_prestige = 25000 - give_nickname = nick_genghis_khan - if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { has_perk = peacemaker_perk } - } - add_perk = peacemaker_perk - } - dynasty = { - add_dynasty_prestige_level = 5 - add_dynasty_prestige = 10000 - add_dynasty_perk = warfare_legacy_1 - add_dynasty_perk = warfare_legacy_2 - add_dynasty_perk = warfare_legacy_3 - add_dynasty_perk = warfare_legacy_4 - add_dynasty_perk = warfare_legacy_5 - if = { - limit = { - has_dlc_feature = hybridize_culture - } - add_dynasty_perk = ep1_culture_legacy_1 - } - } - } - } - } - } - else = { - create_character = { - name = "Temujin" # AKA: Genghis Khan - location = scope:temujins_birthplace - template = genghis_khan_character_template - save_scope_as = temujin - } - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - - add_trait = greatest_of_khans - give_temujin_land_effect = yes - add_gold = 5000 - add_dread = high_dread - spawn_temujins_court_effect = yes - form_the_mongol_empire_effect = yes - add_prestige = 25000 - give_nickname = nick_genghis_khan - if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { has_perk = peacemaker_perk } - } - add_perk = peacemaker_perk - } - dynasty = { - add_dynasty_prestige_level = 5 - add_dynasty_prestige = 10000 - add_dynasty_perk = warfare_legacy_1 - add_dynasty_perk = warfare_legacy_2 - add_dynasty_perk = warfare_legacy_3 - add_dynasty_perk = warfare_legacy_4 - add_dynasty_perk = warfare_legacy_5 - if = { - limit = { - has_dlc_feature = hybridize_culture - } - add_dynasty_perk = ep1_culture_legacy_1 - } - } - } - } - set_global_variable = { - name = temujin_was_born - value = scope:temujin - } - } - #Create a character... but they're random, not Temujin - else = { - create_character = { - location = scope:temujins_birthplace - template = dynamic_genghis_character_template - save_scope_as = temujin - } - scope:temujin = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 15 - } - add_trait = greatest_of_khans - give_temujin_land_effect = yes - add_gold = 5000 - add_dread = high_dread - spawn_dynamic_mongol_court_effect = yes - form_the_mongol_empire_effect = yes - add_prestige = 25000 - give_nickname = nick_genghis_khan - if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { has_perk = peacemaker_perk } - } - add_perk = peacemaker_perk - } - dynasty = { - add_dynasty_prestige_level = 5 - add_dynasty_prestige = 10000 - add_dynasty_perk = warfare_legacy_1 - add_dynasty_perk = warfare_legacy_2 - add_dynasty_perk = warfare_legacy_3 - add_dynasty_perk = warfare_legacy_4 - add_dynasty_perk = warfare_legacy_5 - if = { - limit = { - has_dlc_feature = hybridize_culture - } - add_dynasty_perk = ep1_culture_legacy_1 - } - } - } - } - - if = { - limit = { - scope:temujin = { - is_ai = yes - } - } - if = { - limit = { - situation:dynastic_cycle ?= { - situation_top_has_catalyst = catalyst_event_mongol_empire_appears - } - } - situation:dynastic_cycle = { - trigger_situation_catalyst = { - catalyst = catalyst_event_mongol_empire_appears - character = scope:temujin - } - } - } - #Event for MPO dlc owners - if = { - limit = { - has_mpo_dlc_trigger = yes - } - every_player = { - trigger_event = mpo_greatest_of_khans.1001 #Genghis notification event - } - } - else = { - #Normal event - every_player = { - limit = { - NOT = { - this = scope:temujin - } - } - trigger_event = mongol_invasion.1002 # Mongol Empire spawned notification - } - } - } -} - - -# Form the actual Mongol Empire... -form_the_mongol_empire_effect = { - save_scope_as = mongol_founder - - if = { - limit = { - is_tributary = yes - } - end_tributary = yes - } - if = { - limit = { - is_confederation_member = yes - } - scope:mongol_founder.confederation = { - remove_confederation_member = scope:mongol_founder - } - if = { - limit = { - government_has_flag = government_is_nomadic - } - show_as_tooltip = { - remove_character_modifier = mpo_confederation_member_modifier - } - } - } - - #Create the title - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_mongol_empire = { - change_title_holder = { - holder = scope:mongol_founder - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - - if = { - limit = { - is_independent_ruler = no - } - create_title_and_vassal_change = { - type = independency - save_scope_as = indpendence_change - add_claim_on_loss = no - } - becomes_independent = { - change = scope:indpendence_change - } - resolve_title_and_vassal_change = scope:indpendence_change - } - - if = { - limit = { - capital_county = { - title_province = { - has_holding_type = herder_holding - } - } - } - capital_county = { - title_province = { - set_holding_type = nomad_holding - } - } - } - if = { - limit = { - has_mpo_dlc_trigger = yes - NOT = { - government_has_flag = government_is_nomadic - } - } - change_government = nomad_government - add_trait_force_tooltip = nomadic_philosophy - } - else_if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { - government_has_flag = government_is_tribal - } - } - change_government = tribal_government - } - if = { - limit = { - government_has_flag = government_is_tribal - } - if = { - limit = { has_realm_law = tribal_authority_0 } - remove_realm_law = tribal_authority_0 - } - if = { - limit = { has_realm_law = tribal_authority_1 } - remove_realm_law = tribal_authority_1 - } - if = { - limit = { has_realm_law = tribal_authority_3 } - remove_realm_law = tribal_authority_3 - } - add_realm_law_skip_effects = tribal_authority_2 - - add_realm_law_skip_effects = high_partition_succession_law - } - if = { - limit = { - government_has_flag = government_is_nomadic - } - 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 - } - add_realm_law_skip_effects = nomadic_authority_5 - domicile ?= { - switch = { - trigger = has_domicile_building - yurt_main_01 = { - add_domicile_building = yurt_main_02 - add_domicile_building = yurt_main_03 - add_domicile_building = yurt_main_04 - add_domicile_building = yurt_main_05 - } - yurt_main_02 = { - add_domicile_building = yurt_main_03 - add_domicile_building = yurt_main_04 - add_domicile_building = yurt_main_05 - } - yurt_main_03 = { - add_domicile_building = yurt_main_04 - add_domicile_building = yurt_main_05 - } - yurt_main_04 = { - add_domicile_building = yurt_main_05 - } - } - } - if = { - limit = { - exists = domicile - domicile = { - free_external_domicile_building_slots >= 1 - NOT = { - has_domicile_building_or_higher = mass_warfare_yurt_01 - } - } - } - domicile = { - add_domicile_building = mass_warfare_yurt_01 - add_domicile_building = mass_warfare_yurt_02 - add_domicile_building = mass_warfare_yurt_03 - add_domicile_building = mass_warfare_yurt_04 - } - } - if = { - limit = { - exists = domicile - domicile = { - free_external_domicile_building_slots >= 1 - NOT = { - has_domicile_building_or_higher = character_warfare_yurt_03 - } - } - } - domicile = { - add_domicile_building = character_warfare_yurt_01 - add_domicile_building = character_warfare_yurt_02 - add_domicile_building = character_warfare_yurt_03 - add_domicile_building = character_warfare_yurt_04 - } - } - domicile = { - change_herd = { - add = nomadic_authority_level_5_requirement - } - } - } - - assert_if = { - limit = { NOT = { exists = title:e_mongol_empire } } - text = "Mongol Empire title was not created!" - } - - hidden_effect = { set_primary_title_to = title:e_mongol_empire } - - every_held_title = { - title_tier = empire - limit = { - NOT = { this = title:e_mongol_empire } - } - scope:mongol_founder = { - destroy_title = prev - } - } - - spawn_mongol_troops_effect = yes - - set_global_variable = { - name = mongol_empire_has_spawned - value = yes - } - - #Make sure that Genghis is crowned - #Anointed if he must be anointed - if = { - limit = { - OR = { - has_realm_law = uncrowned - has_realm_law = crowned_king - } - faith = { has_doctrine = doctrine_imperial_anointment } - } - if = { - limit = { - NOT = { - has_game_rule = coronation_laws_off - } - } - add_realm_law = crowned_emperor - } - set_variable = crowned_emperor_var - if = { - limit = { - has_variable = crowned_king_var - } - remove_variable = crowned_king_var - } - } - else_if = { - limit = { - has_realm_law = uncrowned - } - if = { - limit = { - NOT = { - has_game_rule = coronation_laws_off - } - } - add_realm_law = crowned_king - } - set_variable = crowned_king_var - } -} - -# Make sure the Empire has troops... -spawn_mongol_troops_effect = { - if = { - limit = { - has_mpo_dlc_trigger = yes - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = mangudai - stacks = 14 - } - men_at_arms = { - type = heavy_horse_archers - stacks = 10 - } - men_at_arms = { - type = steppe_raiders - stacks = 10 - } - men_at_arms = { - type = nomad_lancers - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = mangudai - stacks = 10 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = steppe_raiders - stacks = 10 - } - men_at_arms = { - type = steppe_raiders - stacks = 10 - } - men_at_arms = { - type = nomad_lancers - stacks = 3 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = mangudai - stacks = 10 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = steppe_raiders - stacks = 10 - } - men_at_arms = { - type = steppe_raiders - stacks = 10 - } - men_at_arms = { - type = nomad_lancers - stacks = 3 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = mangudai - stacks = 10 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = heavy_horse_archers - stacks = 10 - } - men_at_arms = { - type = steppe_raiders - stacks = 10 - } - men_at_arms = { - type = nomad_lancers - stacks = 3 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = horse_archers - stacks = 5 - } - men_at_arms = { - type = steppe_raiders - stacks = 20 - } - men_at_arms = { - type = torch_bearers - stacks = 5 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = horse_archers - stacks = 5 - } - men_at_arms = { - type = steppe_raiders - stacks = 20 - } - men_at_arms = { - type = torch_bearers - stacks = 5 - } - location = capital_province - origin = capital_province - } - } - else = { - spawn_army = { - uses_supply = no - inheritable = no - name = mongol_event_troops - men_at_arms = { - type = horse_archers - stacks = 14 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = armored_horsemen - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = no - name = mongol_event_troops - levies = { - value = 5000 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = armored_horsemen - stacks = 3 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = no - name = mongol_event_troops - levies = { - value = 5000 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = armored_horsemen - stacks = 3 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = no - name = mongol_event_troops - levies = { - value = 5000 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = horse_archers - stacks = 10 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = armored_horsemen - stacks = 3 - } - men_at_arms = { - type = trebuchet - stacks = 5 - } - location = capital_province - origin = capital_province - } - } -} - -spawn_mongol_troops_condensed_effect = { - if = { - limit = { - has_mpo_dlc_trigger = yes - } - spawn_army = { - uses_supply = no - inheritable = no - name = mongol_event_troops - men_at_arms = { - type = horse_archers - stacks = 40 - } - men_at_arms = { - type = steppe_raiders - stacks = 100 - } - men_at_arms = { - type = heavy_horse_archers - stacks = 20 - } - men_at_arms = { - type = mangudai - stacks = 44 - } - men_at_arms = { - type = nomad_lancers - stacks = 14 - } - men_at_arms = { - type = trebuchet - stacks = 25 - } - men_at_arms = { - type = torch_bearers - stacks = 10 - } - location = capital_province - origin = capital_province - } - } - else = { - spawn_army = { - uses_supply = no - inheritable = no - name = mongol_event_troops - levies = { - value = 15000 - } - men_at_arms = { - type = horse_archers - stacks = 74 - } - men_at_arms = { - type = light_horsemen - stacks = 70 - } - men_at_arms = { - type = light_horsemen - stacks = 10 - } - men_at_arms = { - type = armored_horsemen - stacks = 14 - } - men_at_arms = { - type = trebuchet - stacks = 25 - } - location = capital_province - origin = capital_province - } - } -} - -spawn_mongol_successor_state_troops_effect = { - if = { - limit = { - has_mpo_dlc_trigger = yes - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = nomadic_riders - stacks = 7 - } - men_at_arms = { - type = mangudai - stacks = 5 - } - men_at_arms = { - type = steppe_raiders - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 3 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = nomadic_riders - stacks = 7 - } - men_at_arms = { - type = horse_archers - stacks = 5 - } - men_at_arms = { - type = nomad_lancers - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 3 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - men_at_arms = { - type = nomadic_riders - stacks = 7 - } - men_at_arms = { - type = horse_archers - stacks = 5 - } - men_at_arms = { - type = heavy_horse_archers - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 3 - } - location = capital_province - origin = capital_province - } - } - else = { - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - levies = { - value = 1000 - } - men_at_arms = { - type = horse_archers - stacks = 5 - } - men_at_arms = { - type = light_horsemen - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 3 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - levies = { - value = 1000 - } - men_at_arms = { - type = horse_archers - stacks = 5 - } - men_at_arms = { - type = light_horsemen - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 3 - } - location = capital_province - origin = capital_province - } - spawn_army = { - uses_supply = no - inheritable = yes - name = mongol_event_troops - levies = { - value = 1000 - } - men_at_arms = { - type = horse_archers - stacks = 5 - } - men_at_arms = { - type = light_horsemen - stacks = 5 - } - men_at_arms = { - type = trebuchet - stacks = 3 - } - location = capital_province - origin = capital_province - } - } - -} - -### Populating the life of Temujin... -spawn_temujins_court_effect = { - add_character_flag = is_temujin - if = { - limit = { - is_married = no - } - if = { - limit = { - scope:temujin = { is_female = yes } - } - # Create Temujin (husband)... - create_character = { - template = genghis_khan_character_template - name = "Temujin" # Husband of Temujin - employer = scope:temujin - save_scope_as = borte - } - } - else = { - # Create Borte (wife)... - create_character = { - template = borte_character_template - name = "Borte" # Wife of Temujin - gender = female - employer = scope:temujin - save_scope_as = borte - } - } - scope:borte = { - marry = scope:temujin - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - if = { - limit = { - scope:temujin = { is_male = yes } - } - scope:temujin = { save_scope_as = great_khan_family_father } - scope:borte = { save_scope_as = great_khan_family_mother } - } - else = { - scope:temujin = { save_scope_as = great_khan_family_mother } - scope:borte = { save_scope_as = great_khan_family_father } - } - - # Create Jochi (son)... - create_character = { - template = jochi_character_template - name = "Jochi" # (Oldest son of Temujin and Borte) - employer = scope:temujin - mother = scope:great_khan_family_mother - father = scope:great_khan_family_father - save_scope_as = jochi - } - scope:jochi = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - - # Create Tolui (son)... - create_character = { - template = tolui_character_template - name = "Tolui" # (Son of Temujin and Borte) - employer = scope:temujin - mother = scope:great_khan_family_mother - father = scope:great_khan_family_father - save_scope_as = tolui - } - - scope:tolui = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - - # Create Chagatai (son)... - create_character = { - template = chagatai_character_template - name = "Chagatai" # (Son of Temujin and Borte) - employer = scope:temujin - mother = scope:great_khan_family_mother - father = scope:great_khan_family_father - save_scope_as = chagatai - } - - scope:chagatai = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - - #Make it more likely that he gets a good martial education - hidden_effect = { - education_point_acquisition_effect = yes - education_point_acquisition_effect = yes - } - } - - # Create Ögedei (son)... - create_character = { - template = ogodei_character_template - name = "Ogodei" # Ögedei Khan (# Son of Temujin and Borte) - employer = scope:temujin - mother = scope:great_khan_family_mother - father = scope:great_khan_family_father - save_scope_as = ogodei - } - - scope:ogodei = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - - #Make it more likely that he gets a good martial education - hidden_effect = { - education_point_acquisition_effect = yes - education_point_acquisition_effect = yes - } - } - - # Create Altun Begi (Daughter)... - create_character = { - template = altun_begi_character_template - name = "Altun_Begi" # (Daughter of Temujin) - employer = scope:temujin - gender = female - father = scope:great_khan_family_father - save_scope_as = altun_begi - } - - scope:altun_begi = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - } - - # Create Subutai (Commander)... - create_character = { - template = subutai_character_template - name = "Subutai" # (Temujin's Commander of armies) - employer = scope:temujin - save_scope_as = subutai - } - - scope:subutai = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - # Set friendship with Temujin - set_random_friendship_reason = { TARGET = scope:temujin } - } - - # Spawn some generic Bagathurs - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - - # Spawn some captured Han siege engineers - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_siege_engineer - faith = faith:shangqing - culture = culture:han - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_siege_engineer - faith = faith:shangqing - culture = culture:han - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_siege_engineer - faith = faith:shangqing - culture = culture:han - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_siege_engineer - faith = faith:shangqing - culture = culture:han - } -} - -### Populating the life of Temujin... -spawn_dynamic_mongol_court_effect = { - add_character_flag = is_temujin - - if = { - limit = { - scope:temujin = { - is_female = no - } - } - save_scope_as = great_khan_family_father - } - else = { - save_scope_as = great_khan_family_mother - } - if = { - limit = { - exists = scope:great_khan_family_father - } - create_character = { - template = dynamic_genghis_spouse_template - gender = female - employer = scope:temujin - save_scope_as = genghis_spouse - } - scope:genghis_spouse = { - save_scope_as = great_khan_family_mother - } - } - else = { - create_character = { - template = dynamic_genghis_spouse_template - gender = male - employer = scope:temujin - save_scope_as = genghis_spouse - } - scope:genghis_spouse = { - save_scope_as = great_khan_family_father - } - } - scope:genghis_spouse = { - marry = scope:temujin - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - create_character = { - template = dynamic_genghis_child_template - employer = scope:temujin - father = scope:great_khan_family_father - mother = scope:great_khan_family_mother - dynasty = inherit - save_scope_as = genghis_child_1 - } - scope:genghis_child_1 = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - create_character = { - template = dynamic_genghis_child_template - employer = scope:temujin - father = scope:great_khan_family_father - mother = scope:great_khan_family_mother - dynasty = inherit - save_scope_as = genghis_child_2 - } - scope:genghis_child_2 = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - create_character = { - template = dynamic_genghis_child_template - employer = scope:temujin - father = scope:great_khan_family_father - mother = scope:great_khan_family_mother - dynasty = inherit - save_scope_as = genghis_child_3 - } - scope:genghis_child_3 = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - create_character = { - template = dynamic_genghis_child_template - employer = scope:temujin - father = scope:great_khan_family_father - mother = scope:great_khan_family_mother - dynasty = inherit - save_scope_as = genghis_child_4 - } - scope:genghis_child_4 = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - create_character = { - template = dynamic_genghis_child_template - employer = scope:temujin - father = scope:great_khan_family_father - mother = scope:great_khan_family_mother - dynasty = inherit - save_scope_as = genghis_child_5 - } - scope:genghis_child_5 = { - # Make temporarily immune to disease - add_character_flag = { - flag = immune_to_disease - years = 10 - } - } - - recruit_three_nomadic_capital_characters_effect = { - NOMAD_TEMPLATE_CHARACTER = nomadic_commander_template - } - - # Spawn some generic Bagathurs - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_warrior_character - faith = scope:temujin.faith - culture = scope:temujin.culture - } - - # Spawn some captured Han siege engineers - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_siege_engineer - faith = faith:shangqing - culture = culture:han - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_siege_engineer - faith = faith:shangqing - culture = culture:han - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_siege_engineer - faith = faith:shangqing - culture = culture:han - } - create_character = { - gender_female_chance = temujin_soldier_female_chance - employer = scope:temujin - template = new_siege_engineer - faith = faith:shangqing - culture = culture:han - } -} - -### Start war of conquest for the Mongolian heartland -start_wars_for_mongolia_effect = { - save_temporary_scope_as = mongol_conqueror - # Build a list of potential targets - every_neighboring_top_liege_realm_owner = { - limit = { - any_sub_realm_county = { - is_landless_type_title = no - title_province = { geographical_region = special_mongol_empire_start_region } - } - is_landed = yes - } - if = { - limit = { NOT = { is_in_list = top_liege_targets } } - add_to_temporary_list = top_liege_targets - } - } - every_in_list = { - list = top_liege_targets - if = { - limit = { - government_has_flag = government_is_herder - } - create_title_and_vassal_change = { - type = swear_fealty - save_scope_as = change - add_claim_on_loss = no - } - change_liege = { - liege = scope:mongol_conqueror - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - else = { - save_temporary_scope_as = new_war_target - capital_county.empire = { save_temporary_scope_as = war_target_title } - # Declare the war - scope:mongol_conqueror = { - start_war = { - cb = mongol_realm_invasion_war - target = scope:new_war_target.top_liege - target_title = scope:war_target_title - } - } - } - } -} - -# Send subjugation demand effect -send_mongol_subjugation_demand_effect = { - if = { - limit = { - NOT = { is_allied_to = scope:mongol_emperor } - } - trigger_event = { - id = mongol_invasion.2001 - days = { 3 12 } - } - - save_temporary_scope_as = subjugation_offer_recipient - scope:mongol_emperor = { - add_to_variable_list = { - name = subjugation_offer_under_consideration - target = scope:subjugation_offer_recipient - } - } - } - else = { - if = { - limit = { - highest_held_title_tier >= tier_empire - } - trigger_event = { - id = mongol_invasion.2111 - days = { 3 12 } - } - } - else = { - trigger_event = { - id = mongol_invasion.2101 - days = { 3 12 } - } - } - } -} - - -### Mongol war target evaluation and declaration -mongol_war_target_evaluation_and_declaration_effect = { - # Set the Mongol Emperor as reference point - save_scope_as = mongol_emperor - add_character_flag = { - flag = free_mongol_cb - days = 14 - } - # Select a new target - random_neighboring_top_liege_realm_owner = { - limit = { - NOT = { is_allied_to = scope:mongol_emperor } - this != scope:mongol_emperor - top_liege != scope:mongol_emperor - save_temporary_scope_as = truce_check - NOT = { - scope:mongol_emperor = { - any_truce_target = { - this = scope:truce_check - } - } - } -# trigger_if = { # We don't want the Byzantine empire to get annihilated immediately +#@creatable_successor_empire_county_threshold = 15 +# +# +## Give a suitable County to Genghis +#give_temujin_land_effect = { +# if = { +# limit = { +# OR = { +# is_landed = no +# highest_held_title_tier < tier_county +# } +# } +# save_scope_as = genghis_khan +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:c_khentii = { +# change_title_holder = { +# holder = scope:genghis_khan +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# capital_county = { change_county_control = 100 } +#} +# +## A wild Genghis Khan appears! +#spawn_temujin_character_effect = { +# title:c_khentii.title_province = { +# save_scope_as = temujins_birthplace +# } +# if = { +# limit = { +# exists = character:125501 +# character:125501 = { +# is_ai = no +# } +# } +# character:125501 = { +# save_scope_as = temujin +# } +# if = { +# limit = { +# #The DLC has our own BECOME GENGHIS stuff for players +# has_mpo_dlc_trigger = no +# } +# scope:temujin = { +# give_temujin_land_effect = yes +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# +# add_trait = greatest_of_khans +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# give_nickname = nick_genghis_khan +# trigger_event = conqueror.0001 +# } +# } +# else = { +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# trigger_event = conqueror.0001 +# } +# } +# } +# else_if = { +# limit = { +# exists = character:125501 +# character:125501 = { is_physically_able_ai_adult = yes } +# } +# character:125501 = { +# save_scope_as = temujin +# } +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# +# add_trait = greatest_of_khans +# give_temujin_land_effect = yes +# add_gold = 5000 +# add_dread = high_dread +# spawn_temujins_court_effect = yes +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# if = { # limit = { -# OR = { -# has_primary_title = title:e_byzantium -# has_primary_title = title:e_latin_empire +# has_mpo_dlc_trigger = no +# NOT = { has_perk = peacemaker_perk } +# } +# add_perk = peacemaker_perk +# } +# remove_trait = education_diplomacy_1 +# remove_trait = education_diplomacy_2 +# remove_trait = education_diplomacy_3 +# remove_trait = education_diplomacy_4 +# remove_trait = education_diplomacy_5 +# remove_trait = education_intrigue_1 +# remove_trait = education_intrigue_2 +# remove_trait = education_intrigue_3 +# remove_trait = education_intrigue_4 +# remove_trait = education_intrigue_5 +# remove_trait = education_stewardship_1 +# remove_trait = education_stewardship_2 +# remove_trait = education_stewardship_3 +# remove_trait = education_stewardship_4 +# remove_trait = education_stewardship_5 +# remove_trait = education_learning_1 +# remove_trait = education_learning_2 +# remove_trait = education_learning_3 +# remove_trait = education_learning_4 +# remove_trait = education_learning_5 +# remove_trait = education_martial_1 +# remove_trait = education_martial_2 +# remove_trait = education_martial_3 +# remove_trait = education_martial_4 +# add_trait = education_martial_5 +# add_trait = flexible_leader +# add_trait = athletic +# if = { +# limit = { has_dlc_feature = tours_and_tournaments } +# add_trait = tourney_participant +# add_random_tiered_trait_track_xp_effect = { +# TRAIT = lifestyle_hunter +# TRACK = hunter +# LEVEL_1 = yes +# LEVEL_3 = no +# } +# add_random_tiered_trait_track_xp_effect = { +# TRAIT = tourney_participant +# TRACK = horse +# LEVEL_1 = yes +# LEVEL_3 = yes +# } +# add_random_tiered_trait_track_xp_effect = { +# TRAIT = tourney_participant +# TRACK = bow +# LEVEL_1 = yes +# LEVEL_3 = yes +# } +# } +# dynasty = { +# add_dynasty_prestige_level = 5 +# add_dynasty_prestige = 10000 +# add_dynasty_perk = warfare_legacy_1 +# add_dynasty_perk = warfare_legacy_2 +# add_dynasty_perk = warfare_legacy_3 +# add_dynasty_perk = warfare_legacy_4 +# add_dynasty_perk = warfare_legacy_5 +# if = { +# limit = { +# has_dlc_feature = hybridize_culture +# } +# add_dynasty_perk = ep1_culture_legacy_1 +# } +# } +# give_nickname = nick_genghis_khan +# } +# } +# else_if = { +# limit = { +# exists = character:125501.dynasty +# character:125501.dynasty = { +# any_dynasty_member = { +# is_ai = no +# is_landed = yes +# } +# } +# } +# character:125501.dynasty = { +# random_dynasty_member = { +# limit = { +# is_ai = no +# is_landed = yes +# } +# save_scope_as = temujin +# } +# } +# if = { +# limit = { has_mpo_dlc_trigger = no } +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# +# add_trait = greatest_of_khans +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# give_nickname = nick_genghis_khan +# trigger_event = conqueror.0001 +# } +# } +# else = { +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# trigger_event = conqueror.0001 +# } +# } +# } +# else_if = { +# limit = { +# exists = character:125501.dynasty +# character:125501.dynasty = { +# any_dynasty_member = { +# is_physically_able_ai_adult = yes +# } +# } +# } +# character:125501.dynasty = { +# random_dynasty_member = { +# limit = { +# is_physically_able_ai_adult = yes +# is_landed = yes +# } +# alternative_limit = { +# is_physically_able_ai_adult = yes +# } +# save_scope_as = temujin +# } +# } +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# +# add_trait = greatest_of_khans +# give_temujin_land_effect = yes +# add_gold = 5000 +# add_dread = high_dread +# spawn_temujins_court_effect = yes +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# if = { +# limit = { +# has_mpo_dlc_trigger = no +# NOT = { has_perk = peacemaker_perk } +# } +# add_perk = peacemaker_perk +# } +# remove_trait = education_diplomacy_1 +# remove_trait = education_diplomacy_2 +# remove_trait = education_diplomacy_3 +# remove_trait = education_diplomacy_4 +# remove_trait = education_diplomacy_5 +# remove_trait = education_intrigue_1 +# remove_trait = education_intrigue_2 +# remove_trait = education_intrigue_3 +# remove_trait = education_intrigue_4 +# remove_trait = education_intrigue_5 +# remove_trait = education_stewardship_1 +# remove_trait = education_stewardship_2 +# remove_trait = education_stewardship_3 +# remove_trait = education_stewardship_4 +# remove_trait = education_stewardship_5 +# remove_trait = education_learning_1 +# remove_trait = education_learning_2 +# remove_trait = education_learning_3 +# remove_trait = education_learning_4 +# remove_trait = education_learning_5 +# remove_trait = education_martial_1 +# remove_trait = education_martial_2 +# remove_trait = education_martial_3 +# remove_trait = education_martial_4 +# add_trait = education_martial_5 +# add_trait = flexible_leader +# add_trait = athletic +# if = { +# limit = { has_dlc_feature = tours_and_tournaments } +# add_trait = tourney_participant +# add_random_tiered_trait_track_xp_effect = { +# TRAIT = lifestyle_hunter +# TRACK = hunter +# LEVEL_1 = yes +# LEVEL_3 = no +# } +# add_random_tiered_trait_track_xp_effect = { +# TRAIT = tourney_participant +# TRACK = horse +# LEVEL_1 = yes +# LEVEL_3 = yes +# } +# add_random_tiered_trait_track_xp_effect = { +# TRAIT = tourney_participant +# TRACK = bow +# LEVEL_1 = yes +# LEVEL_3 = yes +# } +# } +# dynasty = { +# add_dynasty_prestige_level = 5 +# add_dynasty_prestige = 10000 +# add_dynasty_perk = warfare_legacy_1 +# add_dynasty_perk = warfare_legacy_2 +# add_dynasty_perk = warfare_legacy_3 +# add_dynasty_perk = warfare_legacy_4 +# add_dynasty_perk = warfare_legacy_5 +# if = { +# limit = { +# has_dlc_feature = hybridize_culture +# } +# add_dynasty_perk = ep1_culture_legacy_1 +# } +# } +# give_nickname = nick_genghis_khan +# } +# } +# else_if = { +# limit = { +# #Generate Temujin if there has BEEN NO Temujin +# NOT = { +# has_global_variable = temujin_was_born +# } +# } +# if = { +# limit = { has_game_rule = inversed_gender_equality } +# create_character = { +# name = "Borte" # AKA: Genghis Khan's wife +# gender = female +# location = scope:temujins_birthplace +# template = borte_character_template +# save_scope_as = temujin +# } +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# +# add_trait = greatest_of_khans +# give_temujin_land_effect = yes +# add_gold = 5000 +# add_dread = high_dread +# spawn_temujins_court_effect = yes +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# give_nickname = nick_genghis_khan +# if = { +# limit = { +# has_mpo_dlc_trigger = no +# NOT = { has_perk = peacemaker_perk } +# } +# add_perk = peacemaker_perk +# } +# dynasty = { +# add_dynasty_prestige_level = 5 +# add_dynasty_prestige = 10000 +# add_dynasty_perk = warfare_legacy_1 +# add_dynasty_perk = warfare_legacy_2 +# add_dynasty_perk = warfare_legacy_3 +# add_dynasty_perk = warfare_legacy_4 +# add_dynasty_perk = warfare_legacy_5 +# if = { +# limit = { +# has_dlc_feature = hybridize_culture +# } +# add_dynasty_perk = ep1_culture_legacy_1 # } # } -# OR = { -# current_year >= 1279 # Roughly when the mongols should fracture historically -# scope:mongol_emperor = { -# completely_controls_region = special_mongol_empire_golden_horde_region # Controls all of Russia and the Steppe +# } +# } +# else_if = { +# limit = { has_game_rule = full_gender_equality } +# random_list = { +# #Female Ghengis Khan. +# 50 = { +# create_character = { +# name = "Borte" # AKA: Genghis Khan's wife +# gender = female +# location = scope:temujins_birthplace +# template = borte_character_template +# save_scope_as = temujin # } -# any_realm_county = { # Byzantium is expansionist -# count >= 50 -# title_province = { -# OR = { -# geographical_region = special_mongol_empire_conquest_region_prio_5 -# geographical_region = special_mongol_empire_conquest_region_prio_4 -# geographical_region = special_mongol_empire_conquest_region_prio_3 -# geographical_region = special_mongol_empire_conquest_region_prio_2 -# geographical_region = special_mongol_empire_conquest_region_prio_1 -# geographical_region = special_mongol_empire_conquest_region_prio_1_alpha +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# +# add_trait = greatest_of_khans +# give_temujin_land_effect = yes +# add_gold = 5000 +# add_dread = high_dread +# spawn_temujins_court_effect = yes +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# give_nickname = nick_genghis_khan +# if = { +# limit = { +# has_mpo_dlc_trigger = no +# NOT = { has_perk = peacemaker_perk } +# } +# add_perk = peacemaker_perk +# } +# dynasty = { +# add_dynasty_prestige_level = 5 +# add_dynasty_prestige = 10000 +# add_dynasty_perk = warfare_legacy_1 +# add_dynasty_perk = warfare_legacy_2 +# add_dynasty_perk = warfare_legacy_3 +# add_dynasty_perk = warfare_legacy_4 +# add_dynasty_perk = warfare_legacy_5 +# if = { +# limit = { +# has_dlc_feature = hybridize_culture +# } +# add_dynasty_perk = ep1_culture_legacy_1 +# } +# } +# } +# } +# #Male Ghengis Khan. +# 50 = { +# create_character = { +# name = "Temujin" # AKA: Genghis Khan +# location = scope:temujins_birthplace +# template = genghis_khan_character_template +# save_scope_as = temujin +# } +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# +# add_trait = greatest_of_khans +# give_temujin_land_effect = yes +# add_gold = 5000 +# add_dread = high_dread +# spawn_temujins_court_effect = yes +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# give_nickname = nick_genghis_khan +# if = { +# limit = { +# has_mpo_dlc_trigger = no +# NOT = { has_perk = peacemaker_perk } +# } +# add_perk = peacemaker_perk +# } +# dynasty = { +# add_dynasty_prestige_level = 5 +# add_dynasty_prestige = 10000 +# add_dynasty_perk = warfare_legacy_1 +# add_dynasty_perk = warfare_legacy_2 +# add_dynasty_perk = warfare_legacy_3 +# add_dynasty_perk = warfare_legacy_4 +# add_dynasty_perk = warfare_legacy_5 +# if = { +# limit = { +# has_dlc_feature = hybridize_culture +# } +# add_dynasty_perk = ep1_culture_legacy_1 # } # } # } # } # } - } - weight = { - base = 0 - modifier = { - add = mongol_invasion_target_character_weight - always = yes - } - } - save_temporary_scope_as = next_invasion_target - primary_title = { - save_temporary_scope_as = next_invasion_title_target - } - } - if = { - limit = { - exists = scope:next_invasion_target - } - if = { - limit = { # Declare war on every same-tier count or duke in same empire - scope:next_invasion_target = { - OR = { - highest_held_title_tier = tier_county - highest_held_title_tier = tier_duchy - } - } - } - scope:next_invasion_title_target = { - add_to_temporary_list = all_titles_to_declare_on - empire = { - every_in_de_jure_hierarchy = { # Find all other same-tier titles in same de jure empire - continue = { - tier > tier_county - # Stop searching if you hit the Mongol Emperor's territory at any point - trigger_if = { - limit = { exists = holder } - holder != scope:mongol_emperor - holder.top_liege != scope:mongol_emperor - } - } - limit = { - exists = this - OR = { - tier = tier_county - tier = tier_duchy - } - holder ?= { - top_liege = this - this != scope:mongol_emperor - top_liege != scope:mongol_emperor - NOT = { is_at_war_with = scope:mongol_emperor } - NOT = { is_allied_to = scope:mongol_emperor } - save_temporary_scope_as = truce_check - NOT = { - scope:mongol_emperor = { - any_truce_target = { - this = scope:truce_check - } - } - } - } - } - add_to_temporary_list = all_titles_to_declare_on - } - } - } - every_in_list = { - list = all_titles_to_declare_on - limit = { - holder = { - # An extra check to make sure we haven't snuck any Mongol territory in - this != scope:mongol_emperor - top_liege != scope:mongol_emperor - - # Standard conditions - NOT = { is_at_war_with = scope:mongol_emperor } - NOT = { - is_in_list = has_been_sent_subjugation_offer - } - save_temporary_scope_as = truce_check - } - NOT = { - scope:mongol_emperor = { - any_truce_target = { - this = scope:truce_check - } - } - } - } - - holder = { - add_to_temporary_list = has_been_sent_subjugation_offer - send_mongol_subjugation_demand_effect = yes - } - } - } - else_if = { - limit = { - scope:next_invasion_target = { - highest_held_title_tier < tier_empire - } - } - scope:next_invasion_target = { - send_mongol_subjugation_demand_effect = yes - } - } - else = { # Emperors are not offered ways out - start_war = { - cb = mongol_realm_invasion_war - target = scope:next_invasion_target - target_title = scope:next_invasion_title_target.empire - } - } - } -} - -mongols_devastate_county_effect = { - change_development_level = { - subtract = scope:county.development_level - multiply = 0.5 - floor = yes - } - random = { - chance = 25 - random_county_province = { - limit = { - has_holding = yes - num_buildings >= 2 - } - destroy_random_building_variable_effect = yes - destroy_random_building_effect = yes - } - } - # Silk Road - scope:county = { - tgp_silk_road_mongol_devastation_effect = yes - } -} - - -### MONGOL EMPIRE BREAKUP EFFECTS ### - -### Title creation effects -assign_core_mongol_titles_to_heir_effect = { - save_temporary_scope_as = candidate - - if = { # Check whether everything is grantable - limit = { - NOT = { exists = global_var:handed_out_mongolia_in_mongol_succession } - NOT = { exists = title:e_mongolia.holder } - } - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - - # Create and grant title - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_mongolia = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - # Move de jure back from Mongol Empire to Mongolia - title:e_mongol_empire = { - every_in_de_jure_hierarchy = { - limit = { - tier = tier_kingdom - } - set_de_jure_liege_title = title:e_mongolia - } - } - # Used to check whether e_mongol_empire can be safely destroyed - set_global_variable = { - name = handed_out_mongolia_in_mongol_succession - value = yes - } - } - save_scope_as = mongolia_ruler - add_to_list = candidate_granted_title - - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_mongolia.title_capital_county - } - set_realm_capital = title:e_mongolia.title_capital_county - } - #The primary heir of the Mongol emperor will likely be inheriting big special armies if MPO is active - if = { - limit = { - has_mpo_dlc_trigger = no - NOT = { - is_primary_heir_of = scope:old_mongol_emperor - } - } - spawn_mongol_successor_state_troops_effect = yes - } - if = { - limit = { - government_has_flag = government_is_nomadic - } - domicile = { - change_herd = 5000 - } - } - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - if = { - limit = { - government_has_flag = government_is_nomadic - } - 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_5 } - remove_realm_law = nomadic_authority_5 - } - add_realm_law = nomadic_authority_4 - if = { - limit = { - exists = domicile - domicile = { - free_external_domicile_building_slots >= 1 - NOT = { - has_domicile_building_or_higher = mass_warfare_yurt_01 - } - } - } - domicile = { - add_domicile_building = mass_warfare_yurt_01 - add_domicile_building = mass_warfare_yurt_02 - add_domicile_building = mass_warfare_yurt_03 - } - } - if = { - limit = { - NOT = { government_has_flag = government_allows_nomad_domicile_titles } - NOT = { - any_held_title = { - is_nomad_title = yes - } - } - } - save_scope_as = holder - create_nomad_title = { - name = nomad_title_name - holder = scope:holder - government = nomad_government - save_scope_as = new_nomad_title - } - } - } -} - -grant_mongol_successor_nomadic_bonuses_effect = { - if = { - limit = { - government_has_flag = government_is_nomadic - } - #They might not have a nomadic camp title, create if needed - if = { - limit = { - NOT = { government_has_flag = government_allows_nomad_domicile_titles } - NOT = { - any_held_title = { - is_nomad_title = yes - } - } - } - save_scope_as = holder - create_nomad_title = { - name = nomad_title_name - holder = scope:holder - government = nomad_government - save_scope_as = new_nomad_title - } - } - if = { - limit = { - government_has_flag = government_is_nomadic - } - 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_5 } - remove_realm_law = nomadic_authority_5 - } - add_realm_law = nomadic_authority_4 - if = { - limit = { - exists = domicile - domicile = { - free_external_domicile_building_slots >= 1 - NOT = { - has_domicile_building_or_higher = mass_warfare_yurt_01 - } - } - } - domicile = { - add_domicile_building = mass_warfare_yurt_01 - add_domicile_building = mass_warfare_yurt_02 - add_domicile_building = mass_warfare_yurt_03 - } - } - domicile = { - change_herd = { - value = monumental_herd_value - multiply = 1.5 - } - } - } - } -} - -grant_ilkhanate_effect = { - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_ilkhanate = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = ilkhanate_ruler - } - set_global_variable = { - name = ilkhanate_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_ilkhanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_ilkhanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_ilkhanate.title_capital_county - } - set_realm_capital = title:e_ilkhanate.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_golden_horde_effect = { - debug_log = "Golden Horde about to be created" - debug_log_scopes = no - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_golden_horde = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = golden_horde_ruler - } - - set_global_variable = { - name = golden_horde_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_golden_horde.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_golden_horde.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_golden_horde.title_capital_county - } - set_realm_capital = title:e_golden_horde.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_chagatai_effect = { - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_chagatai = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = chagatai_ruler - } - - set_global_variable = { - name = chagatai_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_chagatai.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_chagatai.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_chagatai.title_capital_county - } - set_realm_capital = title:e_chagatai.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_red_horde_effect = { - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_red_horde = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = red_horde_ruler - } - - set_global_variable = { - name = red_horde_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_red_horde.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_red_horde.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_red_horde.title_capital_county - } - set_realm_capital = title:e_red_horde.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_white_horde_effect = { - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_white_horde = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = white_horde_ruler - } - - set_global_variable = { - name = white_horde_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_white_horde.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_white_horde.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_white_horde.title_capital_county - } - set_realm_capital = title:e_white_horde.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_aarlud_khanate_effect = { - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_aarlud_khanate = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = aarlud_khanate_ruler - } - - set_global_variable = { - name = aarlud_khanate_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_aarlud_khanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_aarlud_khanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_aarlud_khanate.title_capital_county - } - set_realm_capital = title:e_aarlud_khanate.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_togskol_khanate_effect = { - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_togskol_khanate = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = togskol_khanate_ruler - } - - set_global_variable = { - name = togskol_khanate_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_togskol_khanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_togskol_khanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_togskol_khanate.title_capital_county - } - set_realm_capital = title:e_togskol_khanate.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_baruun_khanate_effect = { - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_baruun_khanate = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = baruun_khanate_ruler - } - - set_global_variable = { - name = baruun_khanate_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_baruun_khanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_baruun_khanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_baruun_khanate.title_capital_county - } - set_realm_capital = title:e_baruun_khanate.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_great_yuan_effect = { - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - } - } - #Prefer biggest available chinese empire - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_empire = { - any_this_title_or_de_jure_above = { - this = title:h_china - } - } - } - } - scope:old_mongol_emperor = { - #Prioritize Chinese empire they have the most titles in - ordered_sub_realm_empire = { - order_by = { - every_de_jure_county = { - limit = { - is_landless_type_title = no - holder.top_liege ?= scope:old_mongol_emperor - title_province ?= { - geographical_region = special_mongol_empire_great_yuan_region - } - } - add = 1 - } - } - limit = { - any_this_title_or_de_jure_above = { - this = title:h_china - } - } - random_de_jure_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - } - save_scope_as = county_to_transfer - } - } - } - #Or just any county in Great Yuan region - else = { - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - save_scope_as = county_to_transfer - } - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - - #First - give Hegemony of China if it's empty and Mongols have enough China! - if = { - limit = { - has_tgp_dlc_trigger = yes - NOT = { - exists = title:h_china.holder - } - title:h_china ?= { - any_de_jure_county = { - percent >= claim_mandate_china_county_percentage_value - holder.top_liege = { - OR = { - this = scope:old_mongol_emperor - is_tributary_of_suzerain_or_above = scope:old_mongol_emperor - } - } - } - } - } - title:h_china = { - save_scope_as = great_yuan_title - } - } - #Give appropriate Chinese empire so that they aren't disturbed by a weird Yuan being created - else_if = { - limit = { - scope:old_mongol_emperor = { - any_realm_de_jure_empire = { - any_this_title_or_de_jure_above = { - this = title:h_china - } - OR = { - NOT = { - exists = holder - } - holder = scope:old_mongol_emperor - } - } - } - } - scope:old_mongol_emperor = { - ordered_realm_de_jure_empire = { - order_by = { - every_de_jure_county = { - limit = { - holder.top_liege ?= scope:old_mongol_emperor - title_province ?= { - geographical_region = special_mongol_empire_great_yuan_region - } - } - add = 1 - } - } - limit = { - any_this_title_or_de_jure_above = { - this = title:h_china - } - OR = { - NOT = { - exists = holder - } - holder = scope:old_mongol_emperor - } - } - save_scope_as = great_yuan_title - } - } - } - #Give any Empire in Great Yuan region, I guess that will do - else_if = { - limit = { - scope:old_mongol_emperor = { - any_realm_de_jure_empire = { - any_de_jure_county = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - OR = { - NOT = { - exists = holder - } - holder = scope:old_mongol_emperor - } - } - } - } - scope:old_mongol_emperor = { - ordered_realm_de_jure_empire = { - order_by = { - every_de_jure_county = { - limit = { - holder.top_liege ?= scope:old_mongol_emperor - title_province ?= { - geographical_region = special_mongol_empire_great_yuan_region - } - } - add = 1 - } - } - limit = { - any_de_jure_county = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - OR = { - NOT = { - exists = holder - } - holder = scope:old_mongol_emperor - } - } - save_scope_as = great_yuan_title - } - } - } - #Give Great Yuan title - else = { - title:e_great_yuan = { - save_scope_as = great_yuan_title - } - } - - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - scope:great_yuan_title = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - #Put great yuan under h_china if it was just made - if = { - limit = { - scope:great_yuan_title = title:e_great_yuan - } - title:e_great_yuan = { - set_de_jure_liege_title = title:h_china - } - } - - scope:candidate = { - save_scope_as = great_yuan_ruler - } - - set_global_variable = { - name = great_yuan_handed_out - value = yes - } - - #If Hegemony or Great Yuan created, give appropriate capital for great yuan - if = { - limit = { - scope:great_yuan_title = { - OR = { - this = title:h_china - this = title:e_great_yuan - } - } - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_great_yuan.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_great_yuan.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - # Give the character the appropriate dynamic capital area, if possible - else_if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = scope:great_yuan_title.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = scope:great_yuan_title.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - #If has Hegemony or Great Yuan, set Yuan capital as capital - if = { - limit = { - scope:great_yuan_title = { - OR = { - this = title:h_china - this = title:e_great_yuan - } - } - has_title = title:e_great_yuan.title_capital_county - } - set_realm_capital = title:e_great_yuan.title_capital_county - } - else_if = { - limit = { - has_title = scope:great_yuan_title.title_capital_county - } - set_realm_capital = scope:great_yuan_title.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - - #The Yuan Emperor should get the story that drives him to become Celestial Hegemon, if he isn't already and it's chaos phase - if = { - limit = { - scope:great_yuan_title = { - NOT = { - this = title:h_china - } - } - any_character_situation = { - situation_type = dynastic_cycle - situation_current_phase = situation_dynastic_cycle_phase_chaos - } - } - create_story = story_take_mandate_of_heaven - if = { - limit = { - has_treasury = yes - } - add_treasury = 2000 - } - else = { - add_gold = 2000 - } - } - else = { - create_story = story_conqueror - } - - #Cycle handling - if = { - limit = { - scope:great_yuan_title = title:h_china - } - title:h_china.holder = { tgp_claim_mandate_of_heaven_effect = yes } - } -} - -grant_blue_horde_effect = { - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_blue_horde = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = blue_horde_ruler - } - - set_global_variable = { - name = blue_horde_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_blue_horde.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_blue_horde.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_blue_horde.title_capital_county - } - set_realm_capital = title:e_blue_horde.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -grant_omnod_dalai_khanate_effect = { - - # If the character doesn't hold any titles in the relevant - if = { - limit = { - NOT = { - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - } - } - scope:old_mongol_emperor = { - random_sub_realm_county = { - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - save_scope_as = county_to_transfer - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - scope:county_to_transfer = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - } - create_title_and_vassal_change = { - type = created - save_scope_as = title_change - add_claim_on_loss = no - } - title:e_omnod_dalai_khanate = { - change_title_holder = { - holder = scope:candidate - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:candidate = { - save_scope_as = omnod_dalai_khanate_ruler - } - - set_global_variable = { - name = omnod_dalai_khanate_handed_out - value = yes - } - - # Give the character the appropriate capital area, if possible - if = { - limit = { - scope:old_mongol_emperor = { - any_sub_realm_county = { - duchy = title:e_omnod_dalai_khanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - } - } - scope:old_mongol_emperor = { - every_sub_realm_county = { - limit = { - duchy = title:e_omnod_dalai_khanate.title_capital_county.duchy - NOR = { - holder = scope:candidate - holder = { # Don't steal the player's lands - is_ai = no - } - holder = { - any_liege_or_above = { is_ai = no } - } - } - } - add_to_list = titles_taken - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = title_change - add_claim_on_loss = no - } - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:candidate - change = scope:title_change - take_baronies = yes - } - } - resolve_title_and_vassal_change = scope:title_change - } - every_character_war = { - end_war = white_peace - } - if = { - limit = { - has_title = title:e_omnod_dalai_khanate.title_capital_county - } - set_realm_capital = title:e_omnod_dalai_khanate.title_capital_county - } - else_if = { - limit = { - NOT = { - capital_county.title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - any_held_title = { - title_tier = county - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - } - random_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - scope:candidate = { - set_realm_capital = prev - } - } - } - spawn_mongol_successor_state_troops_effect = yes - add_gold = 1000 - add_dread = 100 - create_story = story_conqueror - grant_mongol_successor_nomadic_bonuses_effect = yes -} - -# Effect to clean up borders a little -pick_up_remaining_counties_effect = { - ### Ilkhanate - if = { - limit = { - NOT = { exists = global_var:ilkhanate_handed_out } - any_in_list = { - list = ilkhanate_counties - count > 0 - } - } - # Try giving them to Chagatai - if = { - limit = { - exists = global_var:chagatai_handed_out - } - every_in_list = { - list = ilkhanate_counties - add_to_list = chagatai_counties - } - } - # Try Red Horde - else_if = { - limit = { - exists = global_var:red_horde_handed_out - } - every_in_list = { - list = ilkhanate_counties - add_to_list = red_horde_counties - } - } - # Try Golden Horde - else_if = { - limit = { - exists = global_var:golden_horde_handed_out - } - every_in_list = { - list = ilkhanate_counties - add_to_list = golden_horde_counties - } - } - # Try Baruun - else_if = { - limit = { - exists = global_var:baruun_khanate_handed_out - } - every_in_list = { - list = ilkhanate_counties - add_to_list = baruun_khanate_counties - } - } - } - ### End Ilkhanate - - ### Golden Horde - if = { - limit = { - NOT = { exists = global_var:golden_horde_handed_out } - any_in_list = { - list = golden_horde_counties - count > 0 - } - } - # Try giving them to White Horde - if = { - limit = { - exists = global_var:white_horde_handed_out - } - every_in_list = { - list = golden_horde_counties - add_to_list = white_horde_counties - } - } - # Try Aarlud Khanate - else_if = { - limit = { - exists = global_var:aarlud_khanate_handed_out - } - every_in_list = { - list = golden_horde_counties - add_to_list = aarlud_khanate_counties - } - } - # Try Chagatai - else_if = { - limit = { - exists = global_var:chagatai_handed_out - } - every_in_list = { - list = golden_horde_counties - add_to_list = chagatai_counties - } - } - # Try Ilkhanate - else_if = { - limit = { - exists = global_var:ilkhanate_handed_out - } - every_in_list = { - list = golden_horde_counties - add_to_list = ilkhanate_counties - } - } - } - ### End Golden Horde - - ### Chagatai - if = { - limit = { - NOT = { exists = global_var:chagatai_handed_out } - any_in_list = { - list = chagatai_counties - count > 0 - } - } - # Try giving them to Golden Horde - if = { - limit = { - exists = global_var:golden_horde_handed_out - } - every_in_list = { - list = chagatai_counties - add_to_list = golden_horde_counties - } - } - # Try Ilkhanate - else_if = { - limit = { - exists = global_var:ilkhanate_handed_out - } - every_in_list = { - list = chagatai_counties - add_to_list = ilkhanate_counties - } - } - #Try Great Yuan - if = { - limit = { - exists = global_var:great_yuan_handed_out - } - every_in_list = { - list = chagatai_counties - add_to_list = great_yuan_counties - } - } - } - ### End Chagatai - - ### Great Yuan - if = { - limit = { - NOT = { exists = global_var:great_yuan_handed_out } - any_in_list = { - list = great_yuan_counties - count > 0 - } - } - # Try giving them to Chagatai - if = { - limit = { - exists = global_var:chagatai_handed_out - } - every_in_list = { - list = great_yuan_counties - add_to_list = chagatai_counties - } - } - # Try Red Horde - else_if = { - limit = { - exists = global_var:red_horde_handed_out - } - every_in_list = { - list = great_yuan_counties - add_to_list = red_horde_counties - } - } - # Try Blue Horde - else_if = { - limit = { - exists = global_var:blue_horde_handed_out - } - every_in_list = { - list = great_yuan_counties - add_to_list = blue_horde_counties - } - } - #Try Omnod Dalai Khanate - if = { - limit = { - exists = global_var:omnod_dalai_khanate_handed_out - } - every_in_list = { - list = great_yuan_counties - add_to_list = omnod_dalai_khanate_counties - } - } - # Try giving them to Golden Horde - if = { - limit = { - exists = global_var:golden_horde_handed_out - } - every_in_list = { - list = great_yuan_counties - add_to_list = golden_horde_counties - } - } - # Try giving them to Ilkhanate - if = { - limit = { - exists = global_var:ilkhanate_handed_out - } - every_in_list = { - list = great_yuan_counties - add_to_list = ilkhanate_counties - } - } - } - ### End Great Yuan - - ### Red Horde - if = { - limit = { - NOT = { exists = global_var:red_horde_handed_out } - any_in_list = { - list = red_horde_counties - count > 0 - } - } - # Try giving them to Ilkhanate - if = { - limit = { - exists = global_var:ilkhanate_handed_out - } - every_in_list = { - list = red_horde_counties - add_to_list = ilkhanate_counties - } - } - # Try Chagatai - else_if = { - limit = { - exists = global_var:chagatai_handed_out - } - every_in_list = { - list = red_horde_counties - add_to_list = chagatai_counties - } - } - #Try Great Yuan - if = { - limit = { - exists = global_var:great_yuan_handed_out - } - every_in_list = { - list = red_horde_counties - add_to_list = great_yuan_counties - } - } - #Try Omnod Dalai Khanate - if = { - limit = { - exists = global_var:omnod_dalai_khanate_handed_out - } - every_in_list = { - list = red_horde_counties - add_to_list = omnod_dalai_khanate_counties - } - } - # Try Baruun - else_if = { - limit = { - exists = global_var:baruun_khanate_handed_out - } - every_in_list = { - list = red_horde_counties - add_to_list = baruun_khanate_counties - } - } - } - ### End Red Horde - - ### White Horde - if = { - limit = { - NOT = { exists = global_var:white_horde_handed_out } - any_in_list = { - list = white_horde_counties - count > 0 - } - } - # Try giving them to Golden Horde - if = { - limit = { - exists = global_var:golden_horde_handed_out - } - every_in_list = { - list = white_horde_counties - add_to_list = golden_horde_counties - } - } - # Try Ilkhanate - else_if = { - limit = { - exists = global_var:ilkhanate_handed_out - } - every_in_list = { - list = white_horde_counties - add_to_list = ilkhanate_counties - } - } - # Try Aarlud Khanate - else_if = { - limit = { - exists = global_var:aarlud_khanate_handed_out - } - every_in_list = { - list = white_horde_counties - add_to_list = aarlud_khanate_counties - } - } - # Try Togskol - else_if = { - limit = { - exists = global_var:togskol_khanate_handed_out - } - every_in_list = { - list = white_horde_counties - add_to_list = togskol_khanate_counties - } - } - # Try Chagatai - else_if = { - limit = { - exists = global_var:chagatai_handed_out - } - every_in_list = { - list = white_horde_counties - add_to_list = chagatai_counties - } - } - } - ### End White Horde - - ### Blue Horde - if = { - limit = { - NOT = { exists = global_var:blue_horde_handed_out } - any_in_list = { - list = blue_horde_counties - count > 0 - } - } - #Try Great Yuan - if = { - limit = { - exists = global_var:great_yuan_handed_out - } - every_in_list = { - list = blue_horde_counties - add_to_list = great_yuan_counties - } - } - #Try Omnod Dalai Khanate - if = { - limit = { - exists = global_var:omnod_dalai_khanate_handed_out - } - every_in_list = { - list = blue_horde_counties - add_to_list = omnod_dalai_khanate_counties - } - } - # Try Chagatai - else_if = { - limit = { - exists = global_var:chagatai_handed_out - } - every_in_list = { - list = blue_horde_counties - add_to_list = chagatai_counties - } - } - # Try giving them to Golden Horde - if = { - limit = { - exists = global_var:golden_horde_handed_out - } - every_in_list = { - list = red_horde_counties - add_to_list = golden_horde_counties - } - } - } - ### End Blue Horde - - ### Omnod Dalai Khanate - if = { - limit = { - NOT = { exists = global_var:omnod_dalai_khanate_handed_out } - any_in_list = { - list = omnod_dalai_khanate_counties - count > 0 - } - } - #Try Great Yuan - if = { - limit = { - exists = global_var:great_yuan_handed_out - } - every_in_list = { - list = omnod_dalai_khanate_counties - add_to_list = great_yuan_counties - } - } - #Try Blue Horde - if = { - limit = { - exists = global_var:blue_horde_handed_out - } - every_in_list = { - list = omnod_dalai_khanate_counties - add_to_list = blue_horde_counties - } - } - #Try Red Horde - if = { - limit = { - exists = global_var:red_horde_handed_out - } - every_in_list = { - list = omnod_dalai_khanate_counties - add_to_list = red_horde_counties - } - } - # Try Ilkhanate - else_if = { - limit = { - exists = global_var:ilkhanate_handed_out - } - every_in_list = { - list = omnod_dalai_khanate_counties - add_to_list = ilkhanate_counties - } - } - # Try Chagatai - else_if = { - limit = { - exists = global_var:chagatai_handed_out - } - every_in_list = { - list = omnod_dalai_khanate_counties - add_to_list = chagatai_counties - } - } - } - ### End Omnod Dalai Khanate - - ### Aarlud Khanate - if = { - limit = { - NOT = { exists = global_var:aarlud_khanate_handed_out } - any_in_list = { - list = aarlud_khanate_counties - count > 0 - } - } - # Try giving them to White Horde - if = { - limit = { - exists = global_var:white_horde_handed_out - } - every_in_list = { - list = aarlud_khanate_counties - add_to_list = white_horde_counties - } - } - # Try Golden Horde - else_if = { - limit = { - exists = global_var:golden_horde_handed_out - } - every_in_list = { - list = aarlud_khanate_counties - add_to_list = golden_horde_counties - } - } - # Try Togskol - else_if = { - limit = { - exists = global_var:togskol_khanate_handed_out - } - every_in_list = { - list = aarlud_khanate_counties - add_to_list = togskol_khanate_counties - } - } - } - ### End Aarlud Khanate - - ### Togskol Khanate - if = { - limit = { - NOT = { exists = global_var:togskol_khanate_handed_out } - any_in_list = { - list = togskol_khanate_counties - count > 0 - } - } - # Try giving them to White Horde - if = { - limit = { - exists = global_var:white_horde_handed_out - } - every_in_list = { - list = togskol_khanate_counties - add_to_list = white_horde_counties - } - } - # Try Aarlud - else_if = { - limit = { - exists = global_var:aarlud_khanate_handed_out - } - every_in_list = { - list = togskol_khanate_counties - add_to_list = aarlud_khanate_counties - } - } - # Try Golden Horde - else_if = { - limit = { - exists = global_var:golden_horde_handed_out - } - every_in_list = { - list = togskol_khanate_counties - add_to_list = golden_horde_counties - } - } - # Try Baruun - else_if = { - limit = { - exists = global_var:baruun_khanate_handed_out - } - every_in_list = { - list = togskol_khanate_counties - add_to_list = baruun_khanate_counties - } - } - } - ### End Togskol Khanate - - ### Baruun Khanate - if = { - limit = { - NOT = { exists = global_var:baruun_khanate_handed_out } - any_in_list = { - list = baruun_khanate_counties - count > 0 - } - } - # Try giving them to Ilkhanate - if = { - limit = { - exists = global_var:ilkhanate_handed_out - } - every_in_list = { - list = baruun_khanate_counties - add_to_list = ilkhanate_counties - } - } - # Try Togskol - else_if = { - limit = { - exists = global_var:togskol_khanate_handed_out - } - every_in_list = { - list = baruun_khanate_counties - add_to_list = togskol_khanate_counties - } - } - # Try Red Horde - else_if = { - limit = { - exists = global_var:red_horde_handed_out - } - every_in_list = { - list = baruun_khanate_counties - add_to_list = red_horde_counties - } - } - #Try Omnod Dalai Khanate - if = { - limit = { - exists = global_var:omnod_dalai_khanate_handed_out - } - every_in_list = { - list = baruun_khanate_counties - add_to_list = omnod_dalai_khanate_counties - } - } - } - ### End Baruun Khanate -} - -# Set up all vassals and assign them flags for the "correct" Khanate -set_correct_mongol_breakup_vassalage_effect = { - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOT = { is_in_list = selected_mongol_heirs } - is_playable_character = yes - highest_held_title_tier >= tier_county - } - debug_log = "Trying to assign correct vassalage placement for:" - debug_log_scopes = no - - save_scope_as = vassal - - # Note: the variables for counting counties is set before checking whether the relevant title will be created, to prevent null-reference errors later - set_global_variable = { - name = ilkhanate_county_count - value = 0 - } - if = { # Count Ilkhanate Counties - limit = { - exists = global_var:ilkhanate_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = ilkhanate_counties - } - scope:vassal = { - change_global_variable = { - name = ilkhanate_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = golden_horde_county_count - value = 0 - } - if = { # Count Golden Horde Counties - limit = { - exists = global_var:golden_horde_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = golden_horde_counties - } - scope:vassal = { - change_global_variable = { - name = golden_horde_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = chagatai_county_count - value = 0 - } - if = { # Count Chagatai Counties - limit = { - exists = global_var:chagatai_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = chagatai_counties - } - scope:vassal = { - change_global_variable = { - name = chagatai_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = great_yuan_county_count - value = 0 - } - if = { # Count Great Yuan Counties - limit = { - exists = global_var:great_yuan_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = great_yuan_counties - } - scope:vassal = { - change_global_variable = { - name = great_yuan_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = red_horde_county_count - value = 0 - } - if = { # Count Red Horde counties - limit = { - exists = global_var:red_horde_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = red_horde_counties - } - scope:vassal = { - change_global_variable = { - name = red_horde_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = white_horde_county_count - value = 0 - } - if = { # Count White Horde counties - limit = { - exists = global_var:white_horde_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = white_horde_counties - } - scope:vassal = { - change_global_variable = { - name = white_horde_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = blue_horde_county_count - value = 0 - } - if = { # Count Blue Horde counties - limit = { - exists = global_var:blue_horde_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = blue_horde_counties - } - scope:vassal = { - change_global_variable = { - name = blue_horde_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = omnod_dalai_khanate_county_count - value = 0 - } - if = { # Count Omnod Dalai Khanate counties - limit = { - exists = global_var:omnod_dalai_khanate_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = omnod_dalai_khanate_counties - } - scope:vassal = { - change_global_variable = { - name = omnod_dalai_khanate_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = aarlud_khanate_county_count - value = 0 - } - if = { # Count Aarlud Khanate counties - limit = { - exists = global_var:aarlud_khanate_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = aarlud_khanate_counties - } - scope:vassal = { - change_global_variable = { - name = aarlud_khanate_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = togskol_khanate_county_count - value = 0 - } - if = { # Count Tögsköl Khanate counties - limit = { - exists = global_var:togskol_khanate_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = togskol_khanate_counties - } - scope:vassal = { - change_global_variable = { - name = togskol_khanate_county_count - add = 1 - } - } - } - } - set_global_variable = { - name = baruun_khanate_county_count - value = 0 - } - if = { # Count Baruun Khanate counties - limit = { - exists = global_var:baruun_khanate_handed_out - } - every_sub_realm_county = { - limit = { - is_in_list = baruun_khanate_counties - } - scope:vassal = { - change_global_variable = { - name = baruun_khanate_county_count - add = 1 - } - } - } - } - # Find any counties not in any lists - set_global_variable = { - name = leftover_mongol_county_count - value = 0 - } - every_sub_realm_county = { - limit = { - trigger_if = { - limit = { exists = global_var:ilkhanate_handed_out } - NOT = { is_in_list = ilkhanate_counties } - } - trigger_if = { - limit = { exists = global_var:golden_horde_handed_out } - NOT = { is_in_list = golden_horde_counties } - } - trigger_if = { - limit = { exists = global_var:chagatai_handed_out } - NOT = { is_in_list = chagatai_counties } - } - trigger_if = { - limit = { exists = global_var:great_yuan_handed_out } - NOT = { is_in_list = great_yuan_counties } - } - trigger_if = { - limit = { exists = global_var:red_horde_handed_out } - NOT = { is_in_list = red_horde_counties } - } - trigger_if = { - limit = { exists = global_var:white_horde_handed_out } - NOT = { is_in_list = white_horde_counties } - } - trigger_if = { - limit = { exists = global_var:aarlud_khanate_handed_out } - NOT = { is_in_list = aarlud_khanate_counties } - } - trigger_if = { - limit = { exists = global_var:togskol_khanate_handed_out } - NOT = { is_in_list = togskol_khanate_counties } - } - trigger_if = { - limit = { exists = global_var:baruun_khanate_handed_out } - NOT = { is_in_list = baruun_khanate_counties } - } - trigger_if = { - limit = { exists = global_var:blue_horde_handed_out } - NOT = { is_in_list = blue_horde_counties } - } - trigger_if = { - limit = { exists = global_var:omnod_dalai_khanate_handed_out } - NOT = { is_in_list = omnod_dalai_khanate_counties } - } - } - scope:vassal = { - change_global_variable = { - name = leftover_mongol_county_count - add = 1 - } - } - } - - ### Mark vassals for the correct liege empire - if = { - limit = { - global_var:leftover_mongol_county_count >= global_var:ilkhanate_county_count - global_var:leftover_mongol_county_count >= global_var:golden_horde_county_count - global_var:leftover_mongol_county_count >= global_var:chagatai_county_count - global_var:leftover_mongol_county_count >= global_var:red_horde_county_count - global_var:leftover_mongol_county_count >= global_var:white_horde_county_count - global_var:leftover_mongol_county_count >= global_var:aarlud_khanate_county_count - global_var:leftover_mongol_county_count >= global_var:togskol_khanate_county_count - global_var:leftover_mongol_county_count >= global_var:baruun_khanate_county_count - global_var:leftover_mongol_county_count >= global_var:great_yuan_county_count - global_var:leftover_mongol_county_count >= global_var:blue_horde_county_count - global_var:leftover_mongol_county_count >= global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_mongolia - } - else_if = { - limit = { - global_var:ilkhanate_county_count > global_var:leftover_mongol_county_count - global_var:ilkhanate_county_count > global_var:golden_horde_county_count - global_var:ilkhanate_county_count > global_var:chagatai_county_count - global_var:ilkhanate_county_count > global_var:red_horde_county_count - global_var:ilkhanate_county_count > global_var:white_horde_county_count - global_var:ilkhanate_county_count > global_var:aarlud_khanate_county_count - global_var:ilkhanate_county_count > global_var:togskol_khanate_county_count - global_var:ilkhanate_county_count > global_var:baruun_khanate_county_count - global_var:ilkhanate_county_count > global_var:great_yuan_county_count - global_var:ilkhanate_county_count > global_var:blue_horde_county_count - global_var:ilkhanate_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_ilkhanate - } - else_if = { - limit = { - global_var:golden_horde_county_count > global_var:leftover_mongol_county_count - global_var:golden_horde_county_count > global_var:ilkhanate_county_count - global_var:golden_horde_county_count > global_var:chagatai_county_count - global_var:golden_horde_county_count > global_var:red_horde_county_count - global_var:golden_horde_county_count > global_var:white_horde_county_count - global_var:golden_horde_county_count > global_var:aarlud_khanate_county_count - global_var:golden_horde_county_count > global_var:togskol_khanate_county_count - global_var:golden_horde_county_count > global_var:baruun_khanate_county_count - global_var:golden_horde_county_count > global_var:great_yuan_county_count - global_var:golden_horde_county_count > global_var:blue_horde_county_count - global_var:golden_horde_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_golden_horde - } - else_if = { - limit = { - global_var:chagatai_county_count > global_var:leftover_mongol_county_count - global_var:chagatai_county_count > global_var:ilkhanate_county_count - global_var:chagatai_county_count > global_var:golden_horde_county_count - global_var:chagatai_county_count > global_var:red_horde_county_count - global_var:chagatai_county_count > global_var:white_horde_county_count - global_var:chagatai_county_count > global_var:aarlud_khanate_county_count - global_var:chagatai_county_count > global_var:togskol_khanate_county_count - global_var:chagatai_county_count > global_var:baruun_khanate_county_count - global_var:chagatai_county_count > global_var:great_yuan_county_count - global_var:chagatai_county_count > global_var:blue_horde_county_count - global_var:chagatai_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_chagatai - } - else_if = { - limit = { - global_var:great_yuan_county_count > global_var:leftover_mongol_county_count - global_var:great_yuan_county_count > global_var:ilkhanate_county_count - global_var:great_yuan_county_count > global_var:chagatai_county_count - global_var:great_yuan_county_count > global_var:golden_horde_county_count - global_var:great_yuan_county_count > global_var:red_horde_county_count - global_var:great_yuan_county_count > global_var:white_horde_county_count - global_var:great_yuan_county_count > global_var:aarlud_khanate_county_count - global_var:great_yuan_county_count > global_var:togskol_khanate_county_count - global_var:great_yuan_county_count > global_var:baruun_khanate_county_count - global_var:great_yuan_county_count > global_var:blue_horde_county_count - global_var:great_yuan_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_great_yuan - } - else_if = { - limit = { - global_var:red_horde_county_count > global_var:leftover_mongol_county_count - global_var:red_horde_county_count > global_var:ilkhanate_county_count - global_var:red_horde_county_count > global_var:golden_horde_county_count - global_var:red_horde_county_count > global_var:chagatai_county_count - global_var:red_horde_county_count > global_var:white_horde_county_count - global_var:red_horde_county_count > global_var:aarlud_khanate_county_count - global_var:red_horde_county_count > global_var:togskol_khanate_county_count - global_var:red_horde_county_count > global_var:baruun_khanate_county_count - global_var:red_horde_county_count > global_var:great_yuan_county_count - global_var:red_horde_county_count > global_var:blue_horde_county_count - global_var:red_horde_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_red_horde - } - else_if = { - limit = { - global_var:white_horde_county_count > global_var:leftover_mongol_county_count - global_var:white_horde_county_count > global_var:ilkhanate_county_count - global_var:white_horde_county_count > global_var:golden_horde_county_count - global_var:white_horde_county_count > global_var:chagatai_county_count - global_var:white_horde_county_count > global_var:red_horde_county_count - global_var:white_horde_county_count > global_var:aarlud_khanate_county_count - global_var:white_horde_county_count > global_var:togskol_khanate_county_count - global_var:white_horde_county_count > global_var:baruun_khanate_county_count - global_var:white_horde_county_count > global_var:great_yuan_county_count - global_var:white_horde_county_count > global_var:blue_horde_county_count - global_var:white_horde_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_white_horde - } - else_if = { - limit = { - global_var:blue_horde_county_count > global_var:leftover_mongol_county_count - global_var:blue_horde_county_count > global_var:ilkhanate_county_count - global_var:blue_horde_county_count > global_var:golden_horde_county_count - global_var:blue_horde_county_count > global_var:chagatai_county_count - global_var:blue_horde_county_count > global_var:red_horde_county_count - global_var:blue_horde_county_count > global_var:white_horde_county_count - global_var:blue_horde_county_count > global_var:white_horde_county_count - global_var:blue_horde_county_count > global_var:togskol_khanate_county_count - global_var:blue_horde_county_count > global_var:baruun_khanate_county_count - global_var:blue_horde_county_count > global_var:great_yuan_county_count - global_var:blue_horde_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_blue_horde - } - else_if = { - limit = { - global_var:omnod_dalai_khanate_county_count > global_var:leftover_mongol_county_count - global_var:omnod_dalai_khanate_county_count > global_var:ilkhanate_county_count - global_var:omnod_dalai_khanate_county_count > global_var:golden_horde_county_count - global_var:omnod_dalai_khanate_county_count > global_var:chagatai_county_count - global_var:omnod_dalai_khanate_county_count > global_var:red_horde_county_count - global_var:omnod_dalai_khanate_county_count > global_var:white_horde_county_count - global_var:omnod_dalai_khanate_county_count > global_var:white_horde_county_count - global_var:omnod_dalai_khanate_county_count > global_var:togskol_khanate_county_count - global_var:omnod_dalai_khanate_county_count > global_var:baruun_khanate_county_count - global_var:omnod_dalai_khanate_county_count > global_var:great_yuan_county_count - global_var:omnod_dalai_khanate_county_count > global_var:blue_horde_county_count - } - add_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - else_if = { - limit = { - global_var:aarlud_khanate_county_count > global_var:leftover_mongol_county_count - global_var:aarlud_khanate_county_count > global_var:ilkhanate_county_count - global_var:aarlud_khanate_county_count > global_var:golden_horde_county_count - global_var:aarlud_khanate_county_count > global_var:chagatai_county_count - global_var:aarlud_khanate_county_count > global_var:red_horde_county_count - global_var:aarlud_khanate_county_count > global_var:white_horde_county_count - global_var:aarlud_khanate_county_count > global_var:togskol_khanate_county_count - global_var:aarlud_khanate_county_count > global_var:baruun_khanate_county_count - global_var:aarlud_khanate_county_count > global_var:great_yuan_county_count - global_var:aarlud_khanate_county_count > global_var:blue_horde_county_count - global_var:aarlud_khanate_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_aarlud_khanate - } - else_if = { - limit = { - global_var:aarlud_khanate_county_count > global_var:leftover_mongol_county_count - global_var:aarlud_khanate_county_count > global_var:ilkhanate_county_count - global_var:aarlud_khanate_county_count > global_var:golden_horde_county_count - global_var:aarlud_khanate_county_count > global_var:chagatai_county_count - global_var:aarlud_khanate_county_count > global_var:red_horde_county_count - global_var:aarlud_khanate_county_count > global_var:white_horde_county_count - global_var:aarlud_khanate_county_count > global_var:togskol_khanate_county_count - global_var:aarlud_khanate_county_count > global_var:baruun_khanate_county_count - global_var:aarlud_khanate_county_count > global_var:great_yuan_county_count - global_var:aarlud_khanate_county_count > global_var:blue_horde_county_count - global_var:aarlud_khanate_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_aarlud_khanate - } - else_if = { - limit = { - global_var:togskol_khanate_county_count > global_var:leftover_mongol_county_count - global_var:togskol_khanate_county_count > global_var:ilkhanate_county_count - global_var:togskol_khanate_county_count > global_var:golden_horde_county_count - global_var:togskol_khanate_county_count > global_var:chagatai_county_count - global_var:togskol_khanate_county_count > global_var:red_horde_county_count - global_var:togskol_khanate_county_count > global_var:white_horde_county_count - global_var:togskol_khanate_county_count > global_var:aarlud_khanate_county_count - global_var:togskol_khanate_county_count > global_var:baruun_khanate_county_count - global_var:togskol_khanate_county_count > global_var:great_yuan_county_count - global_var:togskol_khanate_county_count > global_var:blue_horde_county_count - global_var:togskol_khanate_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_togskol_khanate - } - else_if = { - limit = { - global_var:baruun_khanate_county_count > global_var:leftover_mongol_county_count - global_var:baruun_khanate_county_count > global_var:ilkhanate_county_count - global_var:baruun_khanate_county_count > global_var:golden_horde_county_count - global_var:baruun_khanate_county_count > global_var:chagatai_county_count - global_var:baruun_khanate_county_count > global_var:red_horde_county_count - global_var:baruun_khanate_county_count > global_var:white_horde_county_count - global_var:baruun_khanate_county_count > global_var:aarlud_khanate_county_count - global_var:baruun_khanate_county_count > global_var:togskol_khanate_county_count - global_var:baruun_khanate_county_count > global_var:great_yuan_county_count - global_var:baruun_khanate_county_count > global_var:blue_horde_county_count - global_var:baruun_khanate_county_count > global_var:omnod_dalai_khanate_county_count - } - add_character_flag = should_be_vassalized_by_baruun_khanate - } - else = { - add_character_flag = should_be_vassalized_by_mongolia - } - } - } -} - -# Forcibly shift counties around as appropriate -shift_counties_on_mongol_succession_effect = { - every_in_list = { - list = selected_mongol_heirs - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - exists = global_var:ilkhanate_handed_out - is_in_list = ilkhanate_counties - NOT = { holder = { has_title = title:e_ilkhanate } } - } - add_to_list = ilkhanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = ilkhanate_titles_for_transfer - } - } - } - if = { - limit = { - exists = global_var:golden_horde_handed_out - is_in_list = golden_horde_counties - NOT = { holder = { has_title = title:e_golden_horde } } - } - add_to_list = golden_horde_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = golden_horde_titles_for_transfer - } - } - } - if = { - limit = { - exists = global_var:chagatai_handed_out - is_in_list = chagatai_counties - NOT = { holder = { has_title = title:e_chagatai } } - } - add_to_list = chagatai_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = chagatai_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:great_yuan_handed_out - is_in_list = great_yuan_counties - NOT = { holder = { has_title = scope:great_yuan_title } } - } - add_to_list = great_yuan_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = great_yuan_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:red_horde_handed_out - is_in_list = red_horde_counties - NOT = { holder = { has_title = title:e_red_horde } } - } - add_to_list = red_horde_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = red_horde_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:white_horde_handed_out - is_in_list = white_horde_counties - NOT = { holder = { has_title = title:e_white_horde } } - } - add_to_list = white_horde_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = white_horde_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:blue_horde_handed_out - is_in_list = blue_horde_counties - NOT = { holder = { has_title = title:e_blue_horde } } - } - add_to_list = blue_horde_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = blue_horde_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:omnod_dalai_khanate_handed_out - is_in_list = omnod_dalai_khanate_counties - NOT = { holder = { has_title = title:e_omnod_dalai_khanate } } - } - add_to_list = omnod_dalai_khanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = omnod_dalai_khanate_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:aarlud_khanate_handed_out - is_in_list = aarlud_khanate_counties - NOT = { holder = { has_title = title:e_aarlud_khanate } } - } - add_to_list = aarlud_khanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = aarlud_khanate_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:togskol_khanate_handed_out - is_in_list = togskol_khanate_counties - NOT = { holder = { has_title = title:e_togskol_khanate } } - } - add_to_list = togskol_khanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = togskol_khanate_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:baruun_khanate_handed_out - is_in_list = baruun_khanate_counties - NOT = { holder = { has_title = title:e_baruun_khanate } } - } - add_to_list = baruun_khanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = baruun_khanate_titles_for_transfer - } - } - - } - } - } - scope:old_mongol_emperor = { - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - exists = global_var:ilkhanate_handed_out - is_in_list = ilkhanate_counties - NOT = { holder = { has_title = title:e_ilkhanate } } - } - add_to_list = ilkhanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = ilkhanate_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:golden_horde_handed_out - is_in_list = golden_horde_counties - NOT = { holder = { has_title = title:e_golden_horde } } - } - add_to_list = golden_horde_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = golden_horde_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:chagatai_handed_out - is_in_list = chagatai_counties - NOT = { holder = { has_title = title:e_chagatai } } - } - add_to_list = chagatai_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = chagatai_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:great_yuan_handed_out - is_in_list = great_yuan_counties - NOT = { holder = { has_title = scope:great_yuan_title } } - } - add_to_list = great_yuan_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = great_yuan_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:red_horde_handed_out - is_in_list = red_horde_counties - NOT = { holder = { has_title = title:e_red_horde } } - } - add_to_list = red_horde_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = red_horde_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:white_horde_handed_out - is_in_list = white_horde_counties - NOT = { holder = { has_title = title:e_white_horde } } - } - add_to_list = white_horde_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = white_horde_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:blue_horde_handed_out - is_in_list = blue_horde_counties - NOT = { holder = { has_title = title:e_blue_horde } } - } - add_to_list = blue_horde_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = blue_horde_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:omnod_dalai_khanate_handed_out - is_in_list = omnod_dalai_khanate_counties - NOT = { holder = { has_title = title:e_omnod_dalai_khanate } } - } - add_to_list = omnod_dalai_khanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = omnod_dalai_khanate_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:aarlud_khanate_handed_out - is_in_list = aarlud_khanate_counties - NOT = { holder = { has_title = title:e_aarlud_khanate } } - } - add_to_list = aarlud_khanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = aarlud_khanate_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:togskol_khanate_handed_out - is_in_list = togskol_khanate_counties - NOT = { holder = { has_title = title:e_togskol_khanate } } - } - add_to_list = togskol_khanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = togskol_khanate_titles_for_transfer - } - } - - } - if = { - limit = { - exists = global_var:baruun_khanate_handed_out - is_in_list = baruun_khanate_counties - NOT = { holder = { has_title = title:e_baruun_khanate } } - } - add_to_list = baruun_khanate_titles_for_transfer - # Also mark duchies for transfer if relevant - if = { - limit = { - exists = duchy.holder - holder = duchy.holder - } - duchy = { - add_to_list = baruun_khanate_titles_for_transfer - } - } - - } - } - } - create_title_and_vassal_change = { - type = granted - save_scope_as = mongol_succession - add_claim_on_loss = no - } - - # Ilkhanate - if = { - limit = { - exists = scope:ilkhanate_ruler - } - every_in_list = { - list = ilkhanate_titles_for_transfer - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_ilkhanate - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_succession - } - } - } - } - # Golden Horde - if = { - limit = { - exists = scope:golden_horde_ruler - } - every_in_list = { - list = golden_horde_titles_for_transfer - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_golden_horde - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_succession - } - } - } - } - # Chagatai - if = { - limit = { - exists = scope:chagatai_ruler - } - every_in_list = { - list = chagatai_titles_for_transfer - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_chagatai - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_succession - } - } - } - } - # Great Yuan - if = { - limit = { - exists = scope:great_yuan_ruler - } - every_in_list = { - list = great_yuan_titles_for_transfer - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_great_yuan - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_succession - } - } - } - } - # Red Horde - if = { - limit = { - exists = scope:red_horde_ruler - } - every_in_list = { - list = red_horde_titles_for_transfer - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_red_horde - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_succession - } - } - } - } - # White Horde - if = { - limit = { - exists = scope:white_horde_ruler - } - every_in_list = { - list = white_horde_titles_for_transfer - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_white_horde - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_succession - } - } - } - } - # Blue Horde - if = { - limit = { - exists = scope:blue_horde_ruler - } - every_in_list = { - list = blue_horde_titles_for_transfer - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_blue_horde - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_succession - } - } - } - } - # Omnod Dalai Khanate - if = { - limit = { - exists = scope:omnod_dalai_khanate_ruler - } - every_in_list = { - list = omnod_dalai_khanate_titles_for_transfer - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_succession - } - } - } - } - # Aarlud Khanate - if = { - limit = { - exists = scope:aarlud_khanate_ruler - } - every_in_list = { - list = aarlud_khanate_titles_for_transfer - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_aarlud_khanate - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_succession - } - } - } - } - # Togskol Khanate - if = { - limit = { - exists = scope:togskol_khanate_ruler - } - every_in_list = { - list = togskol_khanate_titles_for_transfer - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_togskol_khanate - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_succession - } - } - } - } - # Baruun Khanate - if = { - limit = { - exists = scope:baruun_khanate_ruler - } - every_in_list = { - list = baruun_khanate_titles_for_transfer - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_succession - } - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_baruun_khanate - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_succession - } - } - } - } - # Mongolia - if = { - limit = { - exists = scope:mongolia_ruler - } - scope:old_mongol_emperor = { - every_vassal_or_below = { - limit = { - has_character_flag = should_be_vassalized_by_mongolia - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_succession - } - } - } - } - - # Extra backup safety - # Ilkhanate - if = { - limit = { - exists = scope:ilkhanate_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_succession - } - } - } - } - # Golden Horde - if = { - limit = { - exists = scope:golden_horde_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_succession - } - } - } - } - # Chagatai - if = { - limit = { - exists = scope:chagatai_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_succession - } - } - } - } - # Great Yuan - if = { - limit = { - exists = scope:great_yuan_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_succession - } - } - } - } - # Red Horde - if = { - limit = { - exists = scope:red_horde_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_succession - } - } - } - } - # White Horde - if = { - limit = { - exists = scope:white_horde_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_succession - } - } - } - } - # Blue Horde - if = { - limit = { - exists = scope:blue_horde_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_succession - } - } - } - } - # Omnod Dalai Khanate - if = { - limit = { - exists = scope:omnod_dalai_khanate_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_succession - } - } - } - } - # Aarlud Khanate - if = { - limit = { - exists = scope:aarlud_khanate_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_succession - } - } - } - } - # Togskol Khanate - if = { - limit = { - exists = scope:togskol_khanate_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_succession - } - } - } - } - # Baruun Khanate - if = { - limit = { - exists = scope:baruun_khanate_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_succession - } - } - } - } - # Mongolia - if = { - limit = { - exists = scope:mongolia_ruler - } - scope:old_mongol_emperor = { - every_vassal = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_succession - } - } - } - } - - resolve_title_and_vassal_change = scope:mongol_succession - - # Extra-extra cleanup - create_title_and_vassal_change = { - type = granted - save_scope_as = mongol_cleanup_succession - add_claim_on_loss = no - } - # Mongolia - if = { - limit = { - exists = scope:mongolia_ruler - } - scope:mongolia_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # Ilkhanate - if = { - limit = { - exists = scope:ilkhanate_ruler - } - scope:ilkhanate_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # Golden Horde - if = { - limit = { - exists = scope:golden_horde_ruler - } - scope:golden_horde_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # Chagatai - if = { - limit = { - exists = scope:chagatai_ruler - } - scope:chagatai_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - - # Great Yuan - if = { - limit = { - exists = scope:great_yuan_ruler - } - scope:great_yuan_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # Red Horde - if = { - limit = { - exists = scope:red_horde_ruler - } - scope:red_horde_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # White Horde - if = { - limit = { - exists = scope:white_horde_ruler - } - scope:white_horde_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - - # Blue Horde - if = { - limit = { - exists = scope:blue_horde_ruler - } - scope:blue_horde_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # Omnod Dalai Khanate - if = { - limit = { - exists = scope:omnod_dalai_khanate_ruler - } - scope:omnod_dalai_khanate_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # Aarlud Khanate - if = { - limit = { - exists = scope:aarlud_khanate_ruler - } - scope:aarlud_khanate_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # Togskol Khanate - if = { - limit = { - exists = scope:togskol_khanate_ruler - } - scope:togskol_khanate_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_liege = { - liege = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - exists = scope:baruun_khanate_ruler - } - change_title_holder = { - holder = scope:baruun_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - # Baruun Khanate - if = { - limit = { - exists = scope:baruun_khanate_ruler - } - scope:mongolia_ruler = { - every_vassal_or_below = { - limit = { - NOR = { - has_character_flag = should_be_vassalized_by_ilkhanate - has_character_flag = should_be_vassalized_by_golden_horde - has_character_flag = should_be_vassalized_by_chagatai - has_character_flag = should_be_vassalized_by_red_horde - has_character_flag = should_be_vassalized_by_white_horde - has_character_flag = should_be_vassalized_by_aarlud_khanate - has_character_flag = should_be_vassalized_by_togskol_khanate - has_character_flag = should_be_vassalized_by_baruun_khanate - has_character_flag = should_be_vassalized_by_mongolia - has_character_flag = should_be_vassalized_by_great_yuan - has_character_flag = should_be_vassalized_by_blue_horde - has_character_flag = should_be_vassalized_by_omnod_dalai_khanate - } - } - if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_liege = { - liege = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_liege = { - liege = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_liege = { - liege = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_liege = { - liege = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_liege = { - liege = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_liege = { - liege = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_liege = { - liege = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_liege = { - liege = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_liege = { - liege = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_liege = { - liege = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - capital_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_liege = { - liege = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - } - every_held_title = { - title_tier = county - limit = { - is_landless_type_title = no - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - exists = scope:ilkhanate_ruler - } - change_title_holder = { - holder = scope:ilkhanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - exists = scope:golden_horde_ruler - } - change_title_holder = { - holder = scope:golden_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - exists = scope:chagatai_ruler - } - change_title_holder = { - holder = scope:chagatai_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - exists = scope:great_yuan_ruler - } - change_title_holder = { - holder = scope:great_yuan_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - exists = scope:red_horde_ruler - } - change_title_holder = { - holder = scope:red_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - exists = scope:white_horde_ruler - } - change_title_holder = { - holder = scope:white_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - exists = scope:blue_horde_ruler - } - change_title_holder = { - holder = scope:blue_horde_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - exists = scope:omnod_dalai_khanate_ruler - } - change_title_holder = { - holder = scope:omnod_dalai_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - exists = scope:aarlud_khanate_ruler - } - change_title_holder = { - holder = scope:aarlud_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - if = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - exists = scope:togskol_khanate_ruler - } - change_title_holder = { - holder = scope:togskol_khanate_ruler - change = scope:mongol_cleanup_succession - } - } - else_if = { - limit = { - title_province = { - NOR = { - geographical_region = special_mongol_empire_ilkhanate_region - geographical_region = special_mongol_empire_golden_horde_region - geographical_region = special_mongol_empire_chagatai_region - geographical_region = special_mongol_empire_red_horde_region - geographical_region = special_mongol_empire_white_horde_region - geographical_region = special_mongol_empire_aarlud_khanate_region - geographical_region = special_mongol_empire_togskol_khanate_region - geographical_region = special_mongol_empire_baruun_khanate_region - geographical_region = special_mongol_empire_great_yuan_region - geographical_region = special_mongol_empire_blue_horde_region - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - exists = scope:mongolia_ruler - } - change_title_holder = { - holder = scope:mongolia_ruler - change = scope:mongol_cleanup_succession - } - } - } - } - } - resolve_title_and_vassal_change = scope:mongol_cleanup_succession - - every_in_list = { # If tengri, switch to an organized faith in your new realm - list = selected_mongol_heirs - limit = { - primary_title.tier = tier_empire - faith = { has_doctrine_parameter = unreformed } - any_sub_realm_county = { - faith = { - NOT = { has_doctrine_parameter = unreformed } - } - } - } - save_scope_as = faith_changer - random_sub_realm_county = { - limit = { - faith = { - NOT = { has_doctrine_parameter = unreformed } - } - } - weight = { - base = 1 - modifier = { - save_temporary_scope_as = county_faith_check - add = mongol_successor_faith_chance - } - } - scope:faith_changer = { - set_character_faith = prev.faith - } - } - } -} - - -### END Title creation effects - -grant_suitable_title_to_candidate_effect = { - save_temporary_scope_as = candidate - - # Runs through available titles and grants an available one - random_list = { - # Ilkhanate - 1 = { - trigger = { - exists = global_var:creatable_ilkhanate - NOT = { exists = global_var:ilkhanate_handed_out } - NOT = { exists = title:e_ilkhanate.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - } - add = 50 - } - } - always = yes - } - grant_ilkhanate_effect = yes - } - # Golden Horde - 1 = { - trigger = { - exists = global_var:creatable_golden_horde - NOT = { exists = global_var:golden_horde_handed_out } - NOT = { exists = title:e_golden_horde.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - } - add = 50 - } - } - always = yes - } - grant_golden_horde_effect = yes - } - # Chagatai - 1 = { - trigger = { - exists = global_var:creatable_chagatai - NOT = { exists = global_var:chagatai_handed_out } - NOT = { exists = title:e_chagatai.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - } - add = 50 - } - } - always = yes - } - grant_chagatai_effect = yes - } - # Great Yuan - 1 = { - trigger = { - exists = global_var:creatable_great_yuan - NOT = { exists = global_var:great_yuan_handed_out } - NOT = { exists = scope:great_yuan_title.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - add = 50 - } - } - always = yes - } - grant_great_yuan_effect = yes - } - # Red Horde - 1 = { - trigger = { - exists = global_var:creatable_red_horde - NOT = { exists = global_var:red_horde_handed_out } - NOT = { exists = title:e_red_horde.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - } - add = 50 - } - } - always = yes - } - grant_red_horde_effect = yes - } - # White Horde - 1 = { - trigger = { - exists = global_var:creatable_white_horde - NOT = { exists = global_var:white_horde_handed_out } - NOT = { exists = title:e_white_horde.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - } - add = 50 - } - } - always = yes - } - grant_white_horde_effect = yes - } - # Blue Horde - 1 = { - trigger = { - exists = global_var:creatable_blue_horde - NOT = { exists = global_var:blue_horde_handed_out } - NOT = { exists = title:e_blue_horde.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - } - add = 50 - } - } - always = yes - } - grant_blue_horde_effect = yes - } - # Omnod Dalai Khanate - 1 = { - trigger = { - exists = global_var:creatable_omnod_dalai_khanate - NOT = { exists = global_var:omnod_dalai_khanate_handed_out } - NOT = { exists = title:e_omnod_dalai_khanate.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - add = 50 - } - } - always = yes - } - grant_omnod_dalai_khanate_effect = yes - } - # Aarlud Khanate - 1 = { - trigger = { - exists = global_var:creatable_aarlud_khanate - NOT = { exists = global_var:aarlud_khanate_handed_out } - NOT = { exists = title:e_aarlud_khanate.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - } - add = 50 - } - } - always = yes - } - grant_aarlud_khanate_effect = yes - } - # Tögsköl Khanate - 1 = { - trigger = { - exists = global_var:creatable_togskol_khanate - NOT = { exists = global_var:togskol_khanate_handed_out } - NOT = { exists = title:e_togskol_khanate.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - } - add = 50 - } - } - always = yes - } - grant_togskol_khanate_effect = yes - } - # Baruun Khanate - 1 = { - trigger = { - exists = global_var:creatable_baruun_khanate - NOT = { exists = global_var:baruun_khanate_handed_out } - NOT = { exists = title:e_baruun_khanate.holder } - } - # Weight the chance by how much territory you hold there - modifier = { - add = { - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - } - add = 50 - } - } - always = yes - } - grant_baruun_khanate_effect = yes - } - } - - # Add to list so we can move related titles around later - add_to_list = candidate_granted_title -} - - -break_up_mongol_empire_effect = { # Intended to run in the Mongol Emperor's scope - save_scope_as = old_mongol_emperor - - every_tributary = { - add_to_list = mongol_tributaries - } - - every_held_title = { # Clean up excess kingdoms - limit = { - is_landless_type_title = no - OR = { - tier = tier_kingdom - tier = tier_duchy - } - } - scope:old_mongol_emperor = { - destroy_title = prev - } - } - - every_character_war = { - limit = { - primary_attacker = scope:old_mongol_emperor - is_white_peace_possible = yes - } - end_war = white_peace - } - - set_global_variable = { - name = number_of_mongol_heir_candidates - value = 0 - } - # Find suitable heir candidates - dynasty = { - every_dynasty_member = { # Every potential khandidate - limit = { - character_gender_can_inherit_from_trigger = { - CHARACTER = scope:old_mongol_emperor - } - is_alive = yes - } - change_global_variable = { - name = number_of_mongol_heir_candidates - add = 1 - } - add_to_list = mongol_heir_candidates - } - } - - # Gather Ilkhanate counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_ilkhanate_region - } - } - add_to_temporary_list = ilkhanate_counties - } - # Gather Golden Horde counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_golden_horde_region - } - } - add_to_temporary_list = golden_horde_counties - } - # Gather Chagatai counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_chagatai_region - } - } - add_to_temporary_list = chagatai_counties - } - # Gather Great Yuan counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_great_yuan_region - } - } - add_to_temporary_list = great_yuan_counties - } - # Gather Red Horde counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_red_horde_region - } - } - add_to_temporary_list = red_horde_counties - } - # Gather White Horde counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_white_horde_region - } - } - add_to_temporary_list = white_horde_counties - } - # Gather Blue Horde counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_blue_horde_region - } - } - add_to_temporary_list = blue_horde_counties - } - # Gather Omnod Dalai Khanate counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_omnod_dalai_khanate_region - } - } - add_to_temporary_list = omnod_dalai_khanate_counties - } - # Gather Aarlud Khanate counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_aarlud_khanate_region - } - } - add_to_temporary_list = aarlud_khanate_counties - } - # Gather Tögsköl Khanate counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_togskol_khanate_region - } - } - add_to_temporary_list = togskol_khanate_counties - } - # Gather Baruun Khanate counties - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = special_mongol_empire_baruun_khanate_region - } - } - add_to_temporary_list = baruun_khanate_counties - } - - # Check which titles are creatable - set_global_variable = { - name = creatable_mongol_successor_states_number - value = 0 - } - # Ilkhanate - if = { - limit = { - any_in_list = { - list = ilkhanate_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Ilkhanate is creatable" - set_global_variable = { - name = creatable_ilkhanate - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Golden Horde - if = { - limit = { - any_in_list = { - list = golden_horde_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Golden Horde is creatable" - set_global_variable = { - name = creatable_golden_horde - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Chagatai - if = { - limit = { - any_in_list = { - list = chagatai_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Chagatai is creatable" - set_global_variable = { - name = creatable_chagatai - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Great Yuan - if = { - limit = { - any_in_list = { - list = great_yuan_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Great Yuan is creatable" - set_global_variable = { - name = creatable_great_yuan - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Red Horde - if = { - limit = { - any_in_list = { - list = red_horde_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Red Horde is creatable" - set_global_variable = { - name = creatable_red_horde - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # White Horde - if = { - limit = { - any_in_list = { - list = white_horde_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "White Horde is creatable" - set_global_variable = { - name = creatable_white_horde - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Blue Horde - if = { - limit = { - any_in_list = { - list = blue_horde_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Blue Horde is creatable" - set_global_variable = { - name = creatable_blue_horde - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Omnod Dalai Khanate - if = { - limit = { - any_in_list = { - list = omnod_dalai_khanate_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Omnod Dalai Khanate is creatable" - set_global_variable = { - name = creatable_omnod_dalai_khanate - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Aarlud Khanate - if = { - limit = { - any_in_list = { - list = aarlud_khanate_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Aarlud is creatable" - set_global_variable = { - name = creatable_aarlud_khanate - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Tögsköl Khanate - if = { - limit = { - any_in_list = { - list = togskol_khanate_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Tögsköl is creatable" - set_global_variable = { - name = creatable_togskol_khanate - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - # Baruun Khanate - if = { - limit = { - any_in_list = { - list = baruun_khanate_counties - count >= @creatable_successor_empire_county_threshold - } - } - debug_log = "Baruun is creatable" - set_global_variable = { - name = creatable_baruun_khanate - value = yes - } - change_global_variable = { - name = creatable_mongol_successor_states_number - add = 1 - } - } - - ordered_in_list = { - list = mongol_heir_candidates - order_by = mongol_breakup_succession_score - max = 15 - - debug_log = "Mongol succession list found:" - debug_log_scopes = yes - - add_to_list = selected_mongol_heirs - add_character_flag = { - flag = mongol_successor_flag - days = 10 - } - } - - # Find the "main" heir - - if = { - limit = { - is_ai = no - player_heir.dynasty ?= dynasty - } - player_heir = { - debug_log = "Found Mongol main heir" - debug_log_scopes = yes - - assign_core_mongol_titles_to_heir_effect = yes - - remove_from_list = selected_mongol_heirs - } - } - else = { - ordered_in_list = { - list = selected_mongol_heirs - order_by = mongol_breakup_succession_score - max = 1 - - debug_log = "Found Mongol main heir" - debug_log_scopes = yes - - assign_core_mongol_titles_to_heir_effect = yes - - remove_from_list = selected_mongol_heirs - } - } - - if = { - limit = { - is_ai = no - player_heir.dynasty ?= dynasty - player_heir = { highest_held_title_tier < tier_empire } - } - player_heir = { - grant_suitable_title_to_candidate_effect = yes - } - } - - # Assign titles to everyone else - ordered_in_list = { - list = selected_mongol_heirs - order_by = mongol_breakup_succession_score - max = global_var:creatable_mongol_successor_states_number - - debug_log = "Found another Mongol Heir" - debug_log_scopes = yes - grant_suitable_title_to_candidate_effect = yes - - debug_log = "Tried granting title to heir" - } - - pick_up_remaining_counties_effect = yes - set_correct_mongol_breakup_vassalage_effect = yes - shift_counties_on_mongol_succession_effect = yes - - # Send notification events - scope:mongolia_ruler = { - save_scope_as = successor_1 - } - - ordered_in_list = { - list = selected_mongol_heirs - order_by = mongol_breakup_succession_score - max = 3 - - if = { - limit = { - NOT = { exists = scope:successor_2 } - } - save_scope_as = successor_2 - } - else_if = { - limit = { - NOT = { exists = scope:successor_3 } - NOT = { - this = scope:successor_2 - } - } - save_scope_as = successor_3 - } - if = { - limit = { - NOT = { exists = scope:successor_4 } - NOR = { - this = scope:successor_2 - this = scope:successor_3 - } - } - save_scope_as = successor_4 - } - } - - every_player = { - trigger_event = { - id = mongol_invasion.1004 - days = 2 # Delay it a little to let effects settle - } - } - - # Cleanup - remove_global_variable = creatable_mongol_successor_states_number - remove_global_variable = number_of_mongol_heir_candidates - remove_global_variable = creatable_ilkhanate - remove_global_variable = creatable_golden_horde - remove_global_variable = creatable_chagatai - remove_global_variable = creatable_great_yuan - remove_global_variable = creatable_red_horde - remove_global_variable = creatable_white_horde - remove_global_variable = creatable_blue_horde - remove_global_variable = creatable_omnod_dalai_khanate - remove_global_variable = creatable_aarlud_khanate - remove_global_variable = creatable_togskol_khanate - remove_global_variable = creatable_baruun_khanate - - # Make sure the Mongol Empire title is destroyed as appropriate - set_global_variable = { - name = mongol_empire_was_broken_up - value = yes - } - scope:successor_1 = { - trigger_event = { - id = mongol_invasion.9999 - days = 1 - } - } - - # Assign appropriate De Jure, so that the successors do not switch away from their empires immediately - if = { - limit = { - exists = scope:chagatai_ruler - } - scope:chagatai_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = chagatai_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:great_yuan_ruler - } - scope:great_yuan_ruler = { - #Should not have dejure reassignment if they got an already existing title - if = { - limit = { - scope:great_yuan_ruler.primary_title = title:e_great_yuan - } - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = great_yuan_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - kingdom.holder = { - OR = { - this = scope:title_assignment - is_vassal_of = scope:title_assignment - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - } - if = { - limit = { - has_dlc_feature = admin_gov - } - convert_great_yuan_to_admin_effect = yes - } - else = { - change_mongol_successor_illegal_government = yes - } - } - } - if = { - limit = { - exists = scope:golden_horde_ruler - } - scope:golden_horde_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = golden_horde_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:ilkhanate_ruler - } - scope:ilkhanate_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = ilkhanate_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:red_horde_ruler - } - scope:red_horde_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = red_horde_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:white_horde_ruler - } - scope:white_horde_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = white_horde_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:blue_horde_ruler - } - scope:blue_horde_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = blue_horde_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:omnod_dalai_khanate_ruler - } - scope:omnod_dalai_khanate_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = omnod_dalai_khanate_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:aarlud_khanate_ruler - } - scope:aarlud_khanate_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = aarlud_khanate_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:togskol_khanate_ruler - } - scope:togskol_khanate_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = togskol_khanatede_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - if = { - limit = { - exists = scope:baruun_khanate_ruler - } - scope:baruun_khanate_ruler = { - add_realm_law_skip_effects = high_partition_succession_law - save_scope_as = title_assignment - every_sub_realm_county = { - limit = { - title_province = { - geographical_region = baruun_khanate_de_jure_region - } - exists = kingdom - OR = { - NOT = { exists = kingdom.holder } - AND = { - exists = kingdom.holder - OR = { - kingdom.holder = scope:title_assignment - kingdom.holder = { - is_vassal_of = scope:title_assignment - } - } - } - } - holder.top_liege = scope:title_assignment - } - if = { - limit = { - NOT = { - kingdom = { - is_in_list = assigned_kingdoms - } - } - } - kingdom = { - set_de_jure_liege_title = scope:title_assignment.primary_title - add_to_list = assigned_kingdoms - } - } - } - change_mongol_successor_illegal_government = yes - } - } - scope:mongolia_ruler = { - #Allocate tributaries of mongol empire or give them independence - trigger_event = { - id = mongol_invasion.3000 - days = 1 - } - #Break off exclaves - trigger_event = { - id = mongol_invasion.3200 - days = 1 - } - } - every_in_list = { - list = selected_mongol_heirs - limit = { - highest_held_title_tier >= tier_empire - NOT = { - this = scope:mongolia_ruler - } - } - #Break off exclaves - trigger_event = { - id = mongol_invasion.3200 - days = 1 - } - } -} - -# Special stuff for player Temüjin, disbursed in event conqueror.0001 -temujin_conqueror_bonuses_effect = { - add_gold = 100 - add_dread = medium_dread - add_prestige = 500 - if = { - limit = { - prestige_level < 2 - } - add_prestige_level = 2 - } - else_if = { - limit = { - prestige_level < 3 - } - add_prestige_level = 1 - } - if = { - limit = { - government_has_flag = government_is_nomadic - } - if = { - limit = { - OR = { - has_realm_law = nomadic_authority_4 - has_realm_law = nomadic_authority_5 - } - } - domicile = { - change_herd = { - add = nomadic_authority_level_2_requirement - } - } - } - else = { - domicile = { - change_herd = { - value = nomadic_authority_level_4_requirement - } - } - } - - if = { - limit = { - NOR = { - has_realm_law = nomadic_authority_5 - has_realm_law = nomadic_authority_4 - } - } - hidden_effect = { - 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 - } - } - add_realm_law_skip_effects = nomadic_authority_4 - } - } - if = { - limit = { - is_decision_on_cooldown = nomad_higher_tier_title_decision - } - remove_decision_cooldown = nomad_higher_tier_title_decision - } - custom_tooltip = temujin_horde_gathers_tt - trigger_event = { - id = mpo_greatest_of_khans.1010 - months = { 3 9 } - } -} - -convert_great_yuan_to_admin_effect = { - save_scope_as = administrative_liege - - #Create cadet branch to ensure you have a domicile - if = { - limit = { - exists = house.house_head - NOT = { - this = house.house_head - } - } - #Create cadet branch - found_cadet_house_decision_effect = { - CHARACTER = scope:administrative_liege - PRESTIGE = 0 - } - house = { - set_coa = scope:administrative_liege.capital_province.barony - } - } - change_to_administrative_effect = yes - - #Direct Vassals who fulfill the tgp_mongol_vassal_will_become_admin criteria are converted. Vassals above 25 opinion always accept - #Vassals are converted as a hierarchy. If a king is converted we convert all who are valid below that king (so his dukes, their counts, and their barons) are all converted. - #If a vassal does not convert (because of not accepting or because they are outside of the de jure empire, etc) then the vassals below them are _not_ converted either. - - #Human vassals are given a choice to convert or not in the ping event, even if powerful or having very good relation. - - hidden_effect = { - save_scope_as = actor - every_vassal = { - limit = { - tgp_mongol_vassal_will_become_admin = yes - } - save_scope_as = recipient - change_to_administrative_effect = yes - every_vassal = { #Everyone below also converts (could be Counts, could be Dukes) - limit = { - tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops - is_ai = yes - } - save_scope_as = recipient - change_to_administrative_effect = yes - every_vassal = { #Everyone below also converts (Could be Counts, could be Barons) - limit = { - tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops - is_ai = yes - } - save_scope_as = recipient - change_to_administrative_effect = yes - every_vassal = { #Everyone below also converts (could be Barons) - limit = { - tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops - is_ai = yes - } - save_scope_as = recipient - change_to_administrative_effect = yes - } - } - } - } - } - - if = { - limit = { - NOT = { - has_character_flag = latin_emp_force_admin_flag - } - top_liege = this - } - add_character_modifier = { - modifier = first_admin_emperor - } - } - - change_influence = 1500 - add_treasury = 2500 - - every_vassal_or_below = { - limit = { - is_ai = no - tgp_mongol_vassal_will_become_admin = yes - } - trigger_event = ep3_decisions_event.4065 - } - if = { - limit = { - exists = capital_county - NOT = { - domicile.domicile_location.county ?= capital_county - } - } - domicile = { - move_domicile = scope:administrative_liege.capital_province - } - } - if = { - limit = { - tgp_use_chinese_naming_trigger = yes - highest_held_title_tier >= tier_empire - primary_title = { - has_custom_title_name = no - } - } - trigger_event = { - id = tgp_dynastic_cycle.9000 - days = 1 - } - } -} - -change_mongol_successor_illegal_government = { - trigger_event = { - id = mongol_invasion.3100 - days = 1 - } -} - -mongol_breakup_purge_mongolia_exclaves_effect = { - save_scope_as = mongol_exclaves_target - - capital_province.county = { - every_connected_county = { # Start off by making a list of all disconnected Counties - invert = yes - max_naval_distance = 2000 - allow_one_county_land_gap = yes - add_to_list = disconnected_counties - } - } - - every_in_list = { - list = disconnected_counties - - limit = { - any_connected_county = { - NOT = { is_in_list = disconnected_counties } - max_naval_distance = 2000 - } - } - add_to_list = cull_naval_connection_counties - } - - while = { - limit = { - any_in_list = { - list = cull_naval_connection_counties - } - } - random_in_list = { - list = cull_naval_connection_counties - - save_scope_as = cull_origin_county - - every_connected_county = { - remove_from_list = cull_naval_connection_counties - remove_from_list = disconnected_counties - } - remove_from_list = cull_naval_connection_counties - remove_from_list = disconnected_counties - } - } - - every_in_list = { - list = disconnected_counties - - limit = { - target_is_de_jure_liege_or_above = scope:mongol_exclaves_target.primary_title - } - add_to_list = cull_de_jure_connection_counties - } - - while = { - limit = { - any_in_list = { - list = cull_de_jure_connection_counties - } - } - random_in_list = { - list = cull_de_jure_connection_counties - - save_scope_as = cull_origin_county - - every_connected_county = { - remove_from_list = cull_de_jure_connection_counties - remove_from_list = disconnected_counties - } - remove_from_list = cull_de_jure_connection_counties - remove_from_list = disconnected_counties - } - } - #Make them vassals if they are de jure vassals of another successor - every_in_list = { # Transfer Kings first - list = disconnected_counties - - limit = { - holder.primary_title = { - tier = tier_kingdom - empire.holder ?= { - OR = { - is_in_list = selected_mongol_heirs - primary_title = title:e_mongolia - } - NOT = { - this = scope:mongol_exclaves_target - } - } - } - NOR = { - holder = scope:mongol_exclaves_target - holder = { - any_sub_realm_title = { - tier = tier_county - NOT = { is_in_list = disconnected_counties } - } - } - } - } - holder = { - create_title_and_vassal_change = { - type = swear_fealty - save_scope_as = change - add_claim_on_loss = no - } - change_liege = { - liege = primary_title.empire.holder - change = scope:change - } - resolve_title_and_vassal_change = scope:change - every_realm_county = { - limit = { - is_in_list = disconnected_counties - } - remove_from_list = disconnected_counties - } - } - } - every_in_list = { # Transfer Dukes second - list = disconnected_counties - - limit = { - holder.primary_title = { - tier = tier_duchy - empire.holder ?= { - OR = { - is_in_list = selected_mongol_heirs - primary_title = title:e_mongolia - } - NOT = { - this = scope:mongol_exclaves_target - } - } - } - NOR = { - holder = scope:mongol_exclaves_target - holder = { - any_sub_realm_title = { - tier = tier_county - NOT = { is_in_list = disconnected_counties } - } - } - } - } - holder = { - create_title_and_vassal_change = { - type = swear_fealty - save_scope_as = change - add_claim_on_loss = no - } - change_liege = { - liege = primary_title.empire.holder - change = scope:change - } - resolve_title_and_vassal_change = scope:change - every_realm_county = { - limit = { - is_in_list = disconnected_counties - } - remove_from_list = disconnected_counties - } - } - } - - every_in_list = { # transfer Counts last - list = disconnected_counties - - limit = { - holder.primary_title = { - tier = tier_county - empire.holder ?= { - OR = { - is_in_list = selected_mongol_heirs - primary_title = title:e_mongolia - } - NOT = { - this = scope:mongol_exclaves_target - } - } - } - NOR = { - holder = scope:mongol_exclaves_target - holder = { - any_sub_realm_title = { - tier = tier_county - NOT = { is_in_list = disconnected_counties } - } - } - } - } - holder = { - create_title_and_vassal_change = { - type = swear_fealty - save_scope_as = change - add_claim_on_loss = no - } - change_liege = { - liege = primary_title.empire.holder - change = scope:change - } - resolve_title_and_vassal_change = scope:change - every_realm_county = { - limit = { - is_in_list = disconnected_counties - } - remove_from_list = disconnected_counties - } - } - } - every_in_list = { # Finally, transfer contiguous areas under someone from the pool - list = disconnected_counties - - limit = { - empire.holder ?= { - OR = { - is_in_list = selected_mongol_heirs - primary_title = title:e_mongolia - } - NOT = { - this = scope:mongol_exclaves_target - } - } - OR = { - holder.top_liege = scope:mongol_exclaves_target - holder = scope:mongol_exclaves_target - } - } - - save_scope_as = county_of_origin - - every_pool_character = { - province = scope:county_of_origin.title_province - limit = { - is_available_adult = yes - } - add_to_list = potential_holders - } - - every_pool_character = { - province = scope:county_of_origin.holder.capital_province - limit = { - is_available_adult = yes - } - add_to_list = potential_holders - } - - if = { - limit = { - NOT = { - any_in_list = { - list = potential_holders - is_available_adult = yes - } - } - } - create_character = { - location = scope:county_of_origin.title_province - culture = scope:county_of_origin.culture - faith = scope:county_of_origin.faith - gender_female_chance = 50 - age = 32 - save_scope_as = backup_character - } - scope:backup_character = { - add_to_list = potential_holders - } - } - - random_in_list = { - list = potential_holders - limit = { - is_available_adult = yes - has_claim_on = scope:county_of_origin - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - culture = scope:county_of_origin.culture - faith = scope:county_of_origin.faith - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - culture = scope:county_of_origin.culture - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - faith = scope:county_of_origin.faith - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - has_claim_on = scope:county_of_origin - } - alternative_limit = { - is_available_adult = yes - culture = scope:county_of_origin.culture - faith = scope:county_of_origin.faith - } - alternative_limit = { - is_available_adult = yes - culture = scope:county_of_origin.culture - } - alternative_limit = { - is_available_adult = yes - faith = scope:county_of_origin.faith - } - alternative_limit = { - is_available_adult = yes - } - - save_scope_as = new_county_holder - add_character_flag = { - flag = domicile_culture_and_faith_check - days = 1 - } - - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - every_in_list = { - list = disconnected_counties - limit = { - OR = { - holder.top_liege = scope:mongol_exclaves_target - holder = scope:mongol_exclaves_target - } - is_connected_to = { - target = scope:county_of_origin - } - NOT ={ - is_connected_to = { - target = scope:mongol_exclaves_target.capital_province.county - } - } - } - change_title_holder = { - holder = scope:new_county_holder - change = scope:change - } - #scope:new_county_holder = { get_title = prev } - } - resolve_title_and_vassal_change = scope:change - - create_title_and_vassal_change = { - type = swear_fealty - save_scope_as = change - add_claim_on_loss = no - } - change_liege = { - liege = primary_title.empire.holder - change = scope:change - } - resolve_title_and_vassal_change = scope:change - # This system should not generate strange-culture nomads - if = { - limit = { - government_has_flag = government_is_nomadic - domicile.domicile_culture != scope:new_county_holder.capital_county.culture - } - domicile = { - set_domicile_culture = scope:new_county_holder.capital_county.culture - } - } - if = { - limit = { - government_has_flag = government_is_nomadic - domicile.domicile_faith != scope:new_county_holder.capital_county.faith - } - domicile = { - set_domicile_faith = scope:new_county_holder.capital_county.faith - } - } - if = { # Just in case they need to create a duchy - limit = { - gold < 500 - } - add_gold = 500 - } - } - remove_from_list = disconnected_counties - } - - #Make the rest independent - every_in_list = { # Release Kings first - list = disconnected_counties - - limit = { - holder.primary_title.tier = tier_kingdom - NOR = { - holder = scope:mongol_exclaves_target - holder = { - any_sub_realm_title = { - tier = tier_county - NOT = { is_in_list = disconnected_counties } - } - } - } - } - holder = { - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - becomes_independent = { - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - } - - every_in_list = { # Release Dukes second - list = disconnected_counties - - limit = { - holder.primary_title.tier = tier_duchy - NOR = { - holder = scope:mongol_exclaves_target - holder = { - any_sub_realm_title = { - tier = tier_county - NOT = { is_in_list = disconnected_counties } - } - } - } - } - holder = { - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - becomes_independent = { - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - } - - every_in_list = { # Release Counts last - list = disconnected_counties - - limit = { - holder.primary_title.tier = tier_county - NOR = { - holder = scope:mongol_exclaves_target - holder = { - any_sub_realm_title = { - tier = tier_county - NOT = { is_in_list = disconnected_counties } - } - } - } - } - holder = { - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - becomes_independent = { - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - } - - every_in_list = { # Finally, release contiguous areas under someone from the pool - list = disconnected_counties - - limit = { - OR = { - holder.top_liege = scope:mongol_exclaves_target - holder = scope:mongol_exclaves_target - } - } - - save_scope_as = county_of_origin - - every_pool_character = { - province = scope:county_of_origin.title_province - limit = { - is_available_adult = yes - } - add_to_list = potential_holders - } - - every_pool_character = { - province = scope:county_of_origin.holder.capital_province - limit = { - is_available_adult = yes - } - add_to_list = potential_holders - } - - if = { - limit = { - NOT = { - any_in_list = { - list = potential_holders - is_available_adult = yes - } - } - } - create_character = { - location = scope:county_of_origin.title_province - culture = scope:county_of_origin.culture - faith = scope:county_of_origin.faith - gender_female_chance = 50 - age = 32 - save_scope_as = backup_character - } - scope:backup_character = { - add_to_list = potential_holders - } - } - - random_in_list = { - list = potential_holders - limit = { - is_available_adult = yes - has_claim_on = scope:county_of_origin - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - culture = scope:county_of_origin.culture - faith = scope:county_of_origin.faith - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - culture = scope:county_of_origin.culture - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - faith = scope:county_of_origin.faith - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - faith = { - has_dominant_ruling_gender = prev - } - } - alternative_limit = { - is_available_adult = yes - has_claim_on = scope:county_of_origin - } - alternative_limit = { - is_available_adult = yes - culture = scope:county_of_origin.culture - faith = scope:county_of_origin.faith - } - alternative_limit = { - is_available_adult = yes - culture = scope:county_of_origin.culture - } - alternative_limit = { - is_available_adult = yes - faith = scope:county_of_origin.faith - } - alternative_limit = { - is_available_adult = yes - } - - save_scope_as = new_county_holder - add_character_flag = { - flag = domicile_culture_and_faith_check - days = 1 - } - #get_title = scope:county_of_origin - - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - every_in_list = { - list = disconnected_counties - limit = { - OR = { - holder.top_liege = scope:mongol_exclaves_target - holder = scope:mongol_exclaves_target - } - is_connected_to = { - target = scope:county_of_origin - } - NOT ={ - is_connected_to = { - target = scope:mongol_exclaves_target.capital_province.county - } - } - } - change_title_holder = { - holder = scope:new_county_holder - change = scope:change - } - #scope:new_county_holder = { get_title = prev } - } - becomes_independent = { - change = scope:change - } - resolve_title_and_vassal_change = scope:change - # This system should not generate strange-culture nomads - if = { - limit = { - government_has_flag = government_is_nomadic - domicile.domicile_culture != scope:new_county_holder.capital_county.culture - } - domicile = { - set_domicile_culture = scope:new_county_holder.capital_county.culture - } - } - if = { - limit = { - government_has_flag = government_is_nomadic - domicile.domicile_faith != scope:new_county_holder.capital_county.faith - } - domicile = { - set_domicile_faith = scope:new_county_holder.capital_county.faith - } - } - if = { # Just in case they need to create a duchy - limit = { - gold < 500 - } - add_gold = 500 - } - } - } -} +# } +# else = { +# create_character = { +# name = "Temujin" # AKA: Genghis Khan +# location = scope:temujins_birthplace +# template = genghis_khan_character_template +# save_scope_as = temujin +# } +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# +# add_trait = greatest_of_khans +# give_temujin_land_effect = yes +# add_gold = 5000 +# add_dread = high_dread +# spawn_temujins_court_effect = yes +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# give_nickname = nick_genghis_khan +# if = { +# limit = { +# has_mpo_dlc_trigger = no +# NOT = { has_perk = peacemaker_perk } +# } +# add_perk = peacemaker_perk +# } +# dynasty = { +# add_dynasty_prestige_level = 5 +# add_dynasty_prestige = 10000 +# add_dynasty_perk = warfare_legacy_1 +# add_dynasty_perk = warfare_legacy_2 +# add_dynasty_perk = warfare_legacy_3 +# add_dynasty_perk = warfare_legacy_4 +# add_dynasty_perk = warfare_legacy_5 +# if = { +# limit = { +# has_dlc_feature = hybridize_culture +# } +# add_dynasty_perk = ep1_culture_legacy_1 +# } +# } +# } +# } +# set_global_variable = { +# name = temujin_was_born +# value = scope:temujin +# } +# } +# #Create a character... but they're random, not Temujin +# else = { +# create_character = { +# location = scope:temujins_birthplace +# template = dynamic_genghis_character_template +# save_scope_as = temujin +# } +# scope:temujin = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 15 +# } +# add_trait = greatest_of_khans +# give_temujin_land_effect = yes +# add_gold = 5000 +# add_dread = high_dread +# spawn_dynamic_mongol_court_effect = yes +# form_the_mongol_empire_effect = yes +# add_prestige = 25000 +# give_nickname = nick_genghis_khan +# if = { +# limit = { +# has_mpo_dlc_trigger = no +# NOT = { has_perk = peacemaker_perk } +# } +# add_perk = peacemaker_perk +# } +# dynasty = { +# add_dynasty_prestige_level = 5 +# add_dynasty_prestige = 10000 +# add_dynasty_perk = warfare_legacy_1 +# add_dynasty_perk = warfare_legacy_2 +# add_dynasty_perk = warfare_legacy_3 +# add_dynasty_perk = warfare_legacy_4 +# add_dynasty_perk = warfare_legacy_5 +# if = { +# limit = { +# has_dlc_feature = hybridize_culture +# } +# add_dynasty_perk = ep1_culture_legacy_1 +# } +# } +# } +# } +# +# if = { +# limit = { +# scope:temujin = { +# is_ai = yes +# } +# } +# if = { +# limit = { +# situation:dynastic_cycle ?= { +# situation_top_has_catalyst = catalyst_event_mongol_empire_appears +# } +# } +# situation:dynastic_cycle = { +# trigger_situation_catalyst = { +# catalyst = catalyst_event_mongol_empire_appears +# character = scope:temujin +# } +# } +# } +# #Event for MPO dlc owners +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# every_player = { +# trigger_event = mpo_greatest_of_khans.1001 #Genghis notification event +# } +# } +# else = { +# #Normal event +# every_player = { +# limit = { +# NOT = { +# this = scope:temujin +# } +# } +# trigger_event = mongol_invasion.1002 # Mongol Empire spawned notification +# } +# } +# } +#} +# +# +## Form the actual Mongol Empire... +#form_the_mongol_empire_effect = { +# save_scope_as = mongol_founder +# +# if = { +# limit = { +# is_tributary = yes +# } +# end_tributary = yes +# } +# if = { +# limit = { +# is_confederation_member = yes +# } +# scope:mongol_founder.confederation = { +# remove_confederation_member = scope:mongol_founder +# } +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# } +# show_as_tooltip = { +# remove_character_modifier = mpo_confederation_member_modifier +# } +# } +# } +# +# #Create the title +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_mongol_empire = { +# change_title_holder = { +# holder = scope:mongol_founder +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# +# if = { +# limit = { +# is_independent_ruler = no +# } +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = indpendence_change +# add_claim_on_loss = no +# } +# becomes_independent = { +# change = scope:indpendence_change +# } +# resolve_title_and_vassal_change = scope:indpendence_change +# } +# +# if = { +# limit = { +# capital_county = { +# title_province = { +# has_holding_type = herder_holding +# } +# } +# } +# capital_county = { +# title_province = { +# set_holding_type = nomad_holding +# } +# } +# } +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# NOT = { +# government_has_flag = government_is_nomadic +# } +# } +# change_government = nomad_government +# add_trait_force_tooltip = nomadic_philosophy +# } +# else_if = { +# limit = { +# has_mpo_dlc_trigger = no +# NOT = { +# government_has_flag = government_is_tribal +# } +# } +# change_government = tribal_government +# } +# if = { +# limit = { +# government_has_flag = government_is_tribal +# } +# if = { +# limit = { has_realm_law = tribal_authority_0 } +# remove_realm_law = tribal_authority_0 +# } +# if = { +# limit = { has_realm_law = tribal_authority_1 } +# remove_realm_law = tribal_authority_1 +# } +# if = { +# limit = { has_realm_law = tribal_authority_3 } +# remove_realm_law = tribal_authority_3 +# } +# add_realm_law_skip_effects = tribal_authority_2 +# +# add_realm_law_skip_effects = high_partition_succession_law +# } +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# } +# 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 +# } +# add_realm_law_skip_effects = nomadic_authority_5 +# domicile ?= { +# switch = { +# trigger = has_domicile_building +# yurt_main_01 = { +# add_domicile_building = yurt_main_02 +# add_domicile_building = yurt_main_03 +# add_domicile_building = yurt_main_04 +# add_domicile_building = yurt_main_05 +# } +# yurt_main_02 = { +# add_domicile_building = yurt_main_03 +# add_domicile_building = yurt_main_04 +# add_domicile_building = yurt_main_05 +# } +# yurt_main_03 = { +# add_domicile_building = yurt_main_04 +# add_domicile_building = yurt_main_05 +# } +# yurt_main_04 = { +# add_domicile_building = yurt_main_05 +# } +# } +# } +# if = { +# limit = { +# exists = domicile +# domicile = { +# free_external_domicile_building_slots >= 1 +# NOT = { +# has_domicile_building_or_higher = mass_warfare_yurt_01 +# } +# } +# } +# domicile = { +# add_domicile_building = mass_warfare_yurt_01 +# add_domicile_building = mass_warfare_yurt_02 +# add_domicile_building = mass_warfare_yurt_03 +# add_domicile_building = mass_warfare_yurt_04 +# } +# } +# if = { +# limit = { +# exists = domicile +# domicile = { +# free_external_domicile_building_slots >= 1 +# NOT = { +# has_domicile_building_or_higher = character_warfare_yurt_03 +# } +# } +# } +# domicile = { +# add_domicile_building = character_warfare_yurt_01 +# add_domicile_building = character_warfare_yurt_02 +# add_domicile_building = character_warfare_yurt_03 +# add_domicile_building = character_warfare_yurt_04 +# } +# } +# domicile = { +# change_herd = { +# add = nomadic_authority_level_5_requirement +# } +# } +# } +# +# assert_if = { +# limit = { NOT = { exists = title:e_mongol_empire } } +# text = "Mongol Empire title was not created!" +# } +# +# hidden_effect = { set_primary_title_to = title:e_mongol_empire } +# +# every_held_title = { +# title_tier = empire +# limit = { +# NOT = { this = title:e_mongol_empire } +# } +# scope:mongol_founder = { +# destroy_title = prev +# } +# } +# +# spawn_mongol_troops_effect = yes +# +# set_global_variable = { +# name = mongol_empire_has_spawned +# value = yes +# } +# +# #Make sure that Genghis is crowned +# #Anointed if he must be anointed +# if = { +# limit = { +# OR = { +# has_realm_law = uncrowned +# has_realm_law = crowned_king +# } +# faith = { has_doctrine = doctrine_imperial_anointment } +# } +# if = { +# limit = { +# NOT = { +# has_game_rule = coronation_laws_off +# } +# } +# add_realm_law = crowned_emperor +# } +# set_variable = crowned_emperor_var +# if = { +# limit = { +# has_variable = crowned_king_var +# } +# remove_variable = crowned_king_var +# } +# } +# else_if = { +# limit = { +# has_realm_law = uncrowned +# } +# if = { +# limit = { +# NOT = { +# has_game_rule = coronation_laws_off +# } +# } +# add_realm_law = crowned_king +# } +# set_variable = crowned_king_var +# } +#} +# +## Make sure the Empire has troops... +#spawn_mongol_troops_effect = { +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = mangudai +# stacks = 14 +# } +# men_at_arms = { +# type = heavy_horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 10 +# } +# men_at_arms = { +# type = nomad_lancers +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = mangudai +# stacks = 10 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 10 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 10 +# } +# men_at_arms = { +# type = nomad_lancers +# stacks = 3 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = mangudai +# stacks = 10 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 10 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 10 +# } +# men_at_arms = { +# type = nomad_lancers +# stacks = 3 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = mangudai +# stacks = 10 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = heavy_horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 10 +# } +# men_at_arms = { +# type = nomad_lancers +# stacks = 3 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 20 +# } +# men_at_arms = { +# type = torch_bearers +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 20 +# } +# men_at_arms = { +# type = torch_bearers +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# } +# else = { +# spawn_army = { +# uses_supply = no +# inheritable = no +# name = mongol_event_troops +# men_at_arms = { +# type = horse_archers +# stacks = 14 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = armored_horsemen +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = no +# name = mongol_event_troops +# levies = { +# value = 5000 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = armored_horsemen +# stacks = 3 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = no +# name = mongol_event_troops +# levies = { +# value = 5000 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = armored_horsemen +# stacks = 3 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = no +# name = mongol_event_troops +# levies = { +# value = 5000 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = armored_horsemen +# stacks = 3 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 5 +# } +# location = capital_province +# origin = capital_province +# } +# } +#} +# +#spawn_mongol_troops_condensed_effect = { +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# spawn_army = { +# uses_supply = no +# inheritable = no +# name = mongol_event_troops +# men_at_arms = { +# type = horse_archers +# stacks = 40 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 100 +# } +# men_at_arms = { +# type = heavy_horse_archers +# stacks = 20 +# } +# men_at_arms = { +# type = mangudai +# stacks = 44 +# } +# men_at_arms = { +# type = nomad_lancers +# stacks = 14 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 25 +# } +# men_at_arms = { +# type = torch_bearers +# stacks = 10 +# } +# location = capital_province +# origin = capital_province +# } +# } +# else = { +# spawn_army = { +# uses_supply = no +# inheritable = no +# name = mongol_event_troops +# levies = { +# value = 15000 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 74 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 70 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 10 +# } +# men_at_arms = { +# type = armored_horsemen +# stacks = 14 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 25 +# } +# location = capital_province +# origin = capital_province +# } +# } +#} +# +#spawn_mongol_successor_state_troops_effect = { +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = nomadic_riders +# stacks = 7 +# } +# men_at_arms = { +# type = mangudai +# stacks = 5 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 3 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = nomadic_riders +# stacks = 7 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = nomad_lancers +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 3 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# men_at_arms = { +# type = nomadic_riders +# stacks = 7 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = heavy_horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 3 +# } +# location = capital_province +# origin = capital_province +# } +# } +# else = { +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# levies = { +# value = 1000 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 3 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# levies = { +# value = 1000 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 3 +# } +# location = capital_province +# origin = capital_province +# } +# spawn_army = { +# uses_supply = no +# inheritable = yes +# name = mongol_event_troops +# levies = { +# value = 1000 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = light_horsemen +# stacks = 5 +# } +# men_at_arms = { +# type = trebuchet +# stacks = 3 +# } +# location = capital_province +# origin = capital_province +# } +# } +# +#} +# +#### Populating the life of Temujin... +#spawn_temujins_court_effect = { +# add_character_flag = is_temujin +# if = { +# limit = { +# is_married = no +# } +# if = { +# limit = { +# scope:temujin = { is_female = yes } +# } +# # Create Temujin (husband)... +# create_character = { +# template = genghis_khan_character_template +# name = "Temujin" # Husband of Temujin +# employer = scope:temujin +# save_scope_as = borte +# } +# } +# else = { +# # Create Borte (wife)... +# create_character = { +# template = borte_character_template +# name = "Borte" # Wife of Temujin +# gender = female +# employer = scope:temujin +# save_scope_as = borte +# } +# } +# scope:borte = { +# marry = scope:temujin +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# if = { +# limit = { +# scope:temujin = { is_male = yes } +# } +# scope:temujin = { save_scope_as = great_khan_family_father } +# scope:borte = { save_scope_as = great_khan_family_mother } +# } +# else = { +# scope:temujin = { save_scope_as = great_khan_family_mother } +# scope:borte = { save_scope_as = great_khan_family_father } +# } +# +# # Create Jochi (son)... +# create_character = { +# template = jochi_character_template +# name = "Jochi" # (Oldest son of Temujin and Borte) +# employer = scope:temujin +# mother = scope:great_khan_family_mother +# father = scope:great_khan_family_father +# save_scope_as = jochi +# } +# scope:jochi = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# +# # Create Tolui (son)... +# create_character = { +# template = tolui_character_template +# name = "Tolui" # (Son of Temujin and Borte) +# employer = scope:temujin +# mother = scope:great_khan_family_mother +# father = scope:great_khan_family_father +# save_scope_as = tolui +# } +# +# scope:tolui = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# +# # Create Chagatai (son)... +# create_character = { +# template = chagatai_character_template +# name = "Chagatai" # (Son of Temujin and Borte) +# employer = scope:temujin +# mother = scope:great_khan_family_mother +# father = scope:great_khan_family_father +# save_scope_as = chagatai +# } +# +# scope:chagatai = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# +# #Make it more likely that he gets a good martial education +# hidden_effect = { +# education_point_acquisition_effect = yes +# education_point_acquisition_effect = yes +# } +# } +# +# # Create Ögedei (son)... +# create_character = { +# template = ogodei_character_template +# name = "Ogodei" # Ögedei Khan (# Son of Temujin and Borte) +# employer = scope:temujin +# mother = scope:great_khan_family_mother +# father = scope:great_khan_family_father +# save_scope_as = ogodei +# } +# +# scope:ogodei = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# +# #Make it more likely that he gets a good martial education +# hidden_effect = { +# education_point_acquisition_effect = yes +# education_point_acquisition_effect = yes +# } +# } +# +# # Create Altun Begi (Daughter)... +# create_character = { +# template = altun_begi_character_template +# name = "Altun_Begi" # (Daughter of Temujin) +# employer = scope:temujin +# gender = female +# father = scope:great_khan_family_father +# save_scope_as = altun_begi +# } +# +# scope:altun_begi = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# } +# +# # Create Subutai (Commander)... +# create_character = { +# template = subutai_character_template +# name = "Subutai" # (Temujin's Commander of armies) +# employer = scope:temujin +# save_scope_as = subutai +# } +# +# scope:subutai = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# # Set friendship with Temujin +# set_random_friendship_reason = { TARGET = scope:temujin } +# } +# +# # Spawn some generic Bagathurs +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# +# # Spawn some captured Han siege engineers +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_siege_engineer +# faith = faith:shangqing +# culture = culture:han +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_siege_engineer +# faith = faith:shangqing +# culture = culture:han +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_siege_engineer +# faith = faith:shangqing +# culture = culture:han +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_siege_engineer +# faith = faith:shangqing +# culture = culture:han +# } +#} +# +#### Populating the life of Temujin... +#spawn_dynamic_mongol_court_effect = { +# add_character_flag = is_temujin +# +# if = { +# limit = { +# scope:temujin = { +# is_female = no +# } +# } +# save_scope_as = great_khan_family_father +# } +# else = { +# save_scope_as = great_khan_family_mother +# } +# if = { +# limit = { +# exists = scope:great_khan_family_father +# } +# create_character = { +# template = dynamic_genghis_spouse_template +# gender = female +# employer = scope:temujin +# save_scope_as = genghis_spouse +# } +# scope:genghis_spouse = { +# save_scope_as = great_khan_family_mother +# } +# } +# else = { +# create_character = { +# template = dynamic_genghis_spouse_template +# gender = male +# employer = scope:temujin +# save_scope_as = genghis_spouse +# } +# scope:genghis_spouse = { +# save_scope_as = great_khan_family_father +# } +# } +# scope:genghis_spouse = { +# marry = scope:temujin +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# create_character = { +# template = dynamic_genghis_child_template +# employer = scope:temujin +# father = scope:great_khan_family_father +# mother = scope:great_khan_family_mother +# dynasty = inherit +# save_scope_as = genghis_child_1 +# } +# scope:genghis_child_1 = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# create_character = { +# template = dynamic_genghis_child_template +# employer = scope:temujin +# father = scope:great_khan_family_father +# mother = scope:great_khan_family_mother +# dynasty = inherit +# save_scope_as = genghis_child_2 +# } +# scope:genghis_child_2 = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# create_character = { +# template = dynamic_genghis_child_template +# employer = scope:temujin +# father = scope:great_khan_family_father +# mother = scope:great_khan_family_mother +# dynasty = inherit +# save_scope_as = genghis_child_3 +# } +# scope:genghis_child_3 = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# create_character = { +# template = dynamic_genghis_child_template +# employer = scope:temujin +# father = scope:great_khan_family_father +# mother = scope:great_khan_family_mother +# dynasty = inherit +# save_scope_as = genghis_child_4 +# } +# scope:genghis_child_4 = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# create_character = { +# template = dynamic_genghis_child_template +# employer = scope:temujin +# father = scope:great_khan_family_father +# mother = scope:great_khan_family_mother +# dynasty = inherit +# save_scope_as = genghis_child_5 +# } +# scope:genghis_child_5 = { +# # Make temporarily immune to disease +# add_character_flag = { +# flag = immune_to_disease +# years = 10 +# } +# } +# +# recruit_three_nomadic_capital_characters_effect = { +# NOMAD_TEMPLATE_CHARACTER = nomadic_commander_template +# } +# +# # Spawn some generic Bagathurs +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_warrior_character +# faith = scope:temujin.faith +# culture = scope:temujin.culture +# } +# +# # Spawn some captured Han siege engineers +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_siege_engineer +# faith = faith:shangqing +# culture = culture:han +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_siege_engineer +# faith = faith:shangqing +# culture = culture:han +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_siege_engineer +# faith = faith:shangqing +# culture = culture:han +# } +# create_character = { +# gender_female_chance = temujin_soldier_female_chance +# employer = scope:temujin +# template = new_siege_engineer +# faith = faith:shangqing +# culture = culture:han +# } +#} +# +#### Start war of conquest for the Mongolian heartland +#start_wars_for_mongolia_effect = { +# save_temporary_scope_as = mongol_conqueror +# # Build a list of potential targets +# every_neighboring_top_liege_realm_owner = { +# limit = { +# any_sub_realm_county = { +# is_landless_type_title = no +# title_province = { geographical_region = special_mongol_empire_start_region } +# } +# is_landed = yes +# } +# if = { +# limit = { NOT = { is_in_list = top_liege_targets } } +# add_to_temporary_list = top_liege_targets +# } +# } +# every_in_list = { +# list = top_liege_targets +# if = { +# limit = { +# government_has_flag = government_is_herder +# } +# create_title_and_vassal_change = { +# type = swear_fealty +# save_scope_as = change +# add_claim_on_loss = no +# } +# change_liege = { +# liege = scope:mongol_conqueror +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# } +# else = { +# save_temporary_scope_as = new_war_target +# capital_county.empire = { save_temporary_scope_as = war_target_title } +# # Declare the war +# scope:mongol_conqueror = { +# start_war = { +# cb = mongol_realm_invasion_war +# target = scope:new_war_target.top_liege +# target_title = scope:war_target_title +# } +# } +# } +# } +#} +# +## Send subjugation demand effect +#send_mongol_subjugation_demand_effect = { +# if = { +# limit = { +# NOT = { is_allied_to = scope:mongol_emperor } +# } +# trigger_event = { +# id = mongol_invasion.2001 +# days = { 3 12 } +# } +# +# save_temporary_scope_as = subjugation_offer_recipient +# scope:mongol_emperor = { +# add_to_variable_list = { +# name = subjugation_offer_under_consideration +# target = scope:subjugation_offer_recipient +# } +# } +# } +# else = { +# if = { +# limit = { +# highest_held_title_tier >= tier_empire +# } +# trigger_event = { +# id = mongol_invasion.2111 +# days = { 3 12 } +# } +# } +# else = { +# trigger_event = { +# id = mongol_invasion.2101 +# days = { 3 12 } +# } +# } +# } +#} +# +# +#### Mongol war target evaluation and declaration +#mongol_war_target_evaluation_and_declaration_effect = { +# # Set the Mongol Emperor as reference point +# save_scope_as = mongol_emperor +# add_character_flag = { +# flag = free_mongol_cb +# days = 14 +# } +# # Select a new target +# random_neighboring_top_liege_realm_owner = { +# limit = { +# NOT = { is_allied_to = scope:mongol_emperor } +# this != scope:mongol_emperor +# top_liege != scope:mongol_emperor +# save_temporary_scope_as = truce_check +# NOT = { +# scope:mongol_emperor = { +# any_truce_target = { +# this = scope:truce_check +# } +# } +# } +## trigger_if = { # We don't want the Byzantine empire to get annihilated immediately +## limit = { +## OR = { +## has_primary_title = title:e_byzantium +## has_primary_title = title:e_latin_empire +## } +## } +## OR = { +## current_year >= 1279 # Roughly when the mongols should fracture historically +## scope:mongol_emperor = { +## completely_controls_region = special_mongol_empire_golden_horde_region # Controls all of Russia and the Steppe +## } +## any_realm_county = { # Byzantium is expansionist +## count >= 50 +## title_province = { +## OR = { +## geographical_region = special_mongol_empire_conquest_region_prio_5 +## geographical_region = special_mongol_empire_conquest_region_prio_4 +## geographical_region = special_mongol_empire_conquest_region_prio_3 +## geographical_region = special_mongol_empire_conquest_region_prio_2 +## geographical_region = special_mongol_empire_conquest_region_prio_1 +## geographical_region = special_mongol_empire_conquest_region_prio_1_alpha +## } +## } +## } +## } +## } +# } +# weight = { +# base = 0 +# modifier = { +# add = mongol_invasion_target_character_weight +# always = yes +# } +# } +# save_temporary_scope_as = next_invasion_target +# primary_title = { +# save_temporary_scope_as = next_invasion_title_target +# } +# } +# if = { +# limit = { +# exists = scope:next_invasion_target +# } +# if = { +# limit = { # Declare war on every same-tier count or duke in same empire +# scope:next_invasion_target = { +# OR = { +# highest_held_title_tier = tier_county +# highest_held_title_tier = tier_duchy +# } +# } +# } +# scope:next_invasion_title_target = { +# add_to_temporary_list = all_titles_to_declare_on +# empire = { +# every_in_de_jure_hierarchy = { # Find all other same-tier titles in same de jure empire +# continue = { +# tier > tier_county +# # Stop searching if you hit the Mongol Emperor's territory at any point +# trigger_if = { +# limit = { exists = holder } +# holder != scope:mongol_emperor +# holder.top_liege != scope:mongol_emperor +# } +# } +# limit = { +# exists = this +# OR = { +# tier = tier_county +# tier = tier_duchy +# } +# holder ?= { +# top_liege = this +# this != scope:mongol_emperor +# top_liege != scope:mongol_emperor +# NOT = { is_at_war_with = scope:mongol_emperor } +# NOT = { is_allied_to = scope:mongol_emperor } +# save_temporary_scope_as = truce_check +# NOT = { +# scope:mongol_emperor = { +# any_truce_target = { +# this = scope:truce_check +# } +# } +# } +# } +# } +# add_to_temporary_list = all_titles_to_declare_on +# } +# } +# } +# every_in_list = { +# list = all_titles_to_declare_on +# limit = { +# holder = { +# # An extra check to make sure we haven't snuck any Mongol territory in +# this != scope:mongol_emperor +# top_liege != scope:mongol_emperor +# +# # Standard conditions +# NOT = { is_at_war_with = scope:mongol_emperor } +# NOT = { +# is_in_list = has_been_sent_subjugation_offer +# } +# save_temporary_scope_as = truce_check +# } +# NOT = { +# scope:mongol_emperor = { +# any_truce_target = { +# this = scope:truce_check +# } +# } +# } +# } +# +# holder = { +# add_to_temporary_list = has_been_sent_subjugation_offer +# send_mongol_subjugation_demand_effect = yes +# } +# } +# } +# else_if = { +# limit = { +# scope:next_invasion_target = { +# highest_held_title_tier < tier_empire +# } +# } +# scope:next_invasion_target = { +# send_mongol_subjugation_demand_effect = yes +# } +# } +# else = { # Emperors are not offered ways out +# start_war = { +# cb = mongol_realm_invasion_war +# target = scope:next_invasion_target +# target_title = scope:next_invasion_title_target.empire +# } +# } +# } +#} +# +#mongols_devastate_county_effect = { +# change_development_level = { +# subtract = scope:county.development_level +# multiply = 0.5 +# floor = yes +# } +# random = { +# chance = 25 +# random_county_province = { +# limit = { +# has_holding = yes +# num_buildings >= 2 +# } +# destroy_random_building_variable_effect = yes +# destroy_random_building_effect = yes +# } +# } +# # Silk Road +# scope:county = { +# tgp_silk_road_mongol_devastation_effect = yes +# } +#} +# +# +#### MONGOL EMPIRE BREAKUP EFFECTS ### +# +#### Title creation effects +#assign_core_mongol_titles_to_heir_effect = { +# save_temporary_scope_as = candidate +# +# if = { # Check whether everything is grantable +# limit = { +# NOT = { exists = global_var:handed_out_mongolia_in_mongol_succession } +# NOT = { exists = title:e_mongolia.holder } +# } +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# +# # Create and grant title +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_mongolia = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# # Move de jure back from Mongol Empire to Mongolia +# title:e_mongol_empire = { +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_kingdom +# } +# set_de_jure_liege_title = title:e_mongolia +# } +# } +# # Used to check whether e_mongol_empire can be safely destroyed +# set_global_variable = { +# name = handed_out_mongolia_in_mongol_succession +# value = yes +# } +# } +# save_scope_as = mongolia_ruler +# add_to_list = candidate_granted_title +# +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_mongolia.title_capital_county +# } +# set_realm_capital = title:e_mongolia.title_capital_county +# } +# #The primary heir of the Mongol emperor will likely be inheriting big special armies if MPO is active +# if = { +# limit = { +# has_mpo_dlc_trigger = no +# NOT = { +# is_primary_heir_of = scope:old_mongol_emperor +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# } +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# } +# domicile = { +# change_herd = 5000 +# } +# } +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# } +# 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_5 } +# remove_realm_law = nomadic_authority_5 +# } +# add_realm_law = nomadic_authority_4 +# if = { +# limit = { +# exists = domicile +# domicile = { +# free_external_domicile_building_slots >= 1 +# NOT = { +# has_domicile_building_or_higher = mass_warfare_yurt_01 +# } +# } +# } +# domicile = { +# add_domicile_building = mass_warfare_yurt_01 +# add_domicile_building = mass_warfare_yurt_02 +# add_domicile_building = mass_warfare_yurt_03 +# } +# } +# if = { +# limit = { +# NOT = { government_has_flag = government_allows_nomad_domicile_titles } +# NOT = { +# any_held_title = { +# is_nomad_title = yes +# } +# } +# } +# save_scope_as = holder +# create_nomad_title = { +# name = nomad_title_name +# holder = scope:holder +# government = nomad_government +# save_scope_as = new_nomad_title +# } +# } +# } +#} +# +#grant_mongol_successor_nomadic_bonuses_effect = { +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# } +# #They might not have a nomadic camp title, create if needed +# if = { +# limit = { +# NOT = { government_has_flag = government_allows_nomad_domicile_titles } +# NOT = { +# any_held_title = { +# is_nomad_title = yes +# } +# } +# } +# save_scope_as = holder +# create_nomad_title = { +# name = nomad_title_name +# holder = scope:holder +# government = nomad_government +# save_scope_as = new_nomad_title +# } +# } +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# } +# 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_5 } +# remove_realm_law = nomadic_authority_5 +# } +# add_realm_law = nomadic_authority_4 +# if = { +# limit = { +# exists = domicile +# domicile = { +# free_external_domicile_building_slots >= 1 +# NOT = { +# has_domicile_building_or_higher = mass_warfare_yurt_01 +# } +# } +# } +# domicile = { +# add_domicile_building = mass_warfare_yurt_01 +# add_domicile_building = mass_warfare_yurt_02 +# add_domicile_building = mass_warfare_yurt_03 +# } +# } +# domicile = { +# change_herd = { +# value = monumental_herd_value +# multiply = 1.5 +# } +# } +# } +# } +#} +# +#grant_ilkhanate_effect = { +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_ilkhanate = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = ilkhanate_ruler +# } +# set_global_variable = { +# name = ilkhanate_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_ilkhanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_ilkhanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_ilkhanate.title_capital_county +# } +# set_realm_capital = title:e_ilkhanate.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_golden_horde_effect = { +# debug_log = "Golden Horde about to be created" +# debug_log_scopes = no +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_golden_horde = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = golden_horde_ruler +# } +# +# set_global_variable = { +# name = golden_horde_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_golden_horde.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_golden_horde.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_golden_horde.title_capital_county +# } +# set_realm_capital = title:e_golden_horde.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_chagatai_effect = { +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_chagatai = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = chagatai_ruler +# } +# +# set_global_variable = { +# name = chagatai_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_chagatai.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_chagatai.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_chagatai.title_capital_county +# } +# set_realm_capital = title:e_chagatai.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_red_horde_effect = { +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_red_horde = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = red_horde_ruler +# } +# +# set_global_variable = { +# name = red_horde_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_red_horde.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_red_horde.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_red_horde.title_capital_county +# } +# set_realm_capital = title:e_red_horde.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_white_horde_effect = { +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_white_horde = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = white_horde_ruler +# } +# +# set_global_variable = { +# name = white_horde_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_white_horde.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_white_horde.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_white_horde.title_capital_county +# } +# set_realm_capital = title:e_white_horde.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_aarlud_khanate_effect = { +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_aarlud_khanate = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = aarlud_khanate_ruler +# } +# +# set_global_variable = { +# name = aarlud_khanate_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_aarlud_khanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_aarlud_khanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_aarlud_khanate.title_capital_county +# } +# set_realm_capital = title:e_aarlud_khanate.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_togskol_khanate_effect = { +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_togskol_khanate = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = togskol_khanate_ruler +# } +# +# set_global_variable = { +# name = togskol_khanate_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_togskol_khanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_togskol_khanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_togskol_khanate.title_capital_county +# } +# set_realm_capital = title:e_togskol_khanate.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_baruun_khanate_effect = { +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_baruun_khanate = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = baruun_khanate_ruler +# } +# +# set_global_variable = { +# name = baruun_khanate_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_baruun_khanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_baruun_khanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_baruun_khanate.title_capital_county +# } +# set_realm_capital = title:e_baruun_khanate.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_great_yuan_effect = { +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# } +# } +# #Prefer biggest available chinese empire +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_empire = { +# any_this_title_or_de_jure_above = { +# this = title:h_china +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# #Prioritize Chinese empire they have the most titles in +# ordered_sub_realm_empire = { +# order_by = { +# every_de_jure_county = { +# limit = { +# is_landless_type_title = no +# holder.top_liege ?= scope:old_mongol_emperor +# title_province ?= { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# add = 1 +# } +# } +# limit = { +# any_this_title_or_de_jure_above = { +# this = title:h_china +# } +# } +# random_de_jure_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# } +# #Or just any county in Great Yuan region +# else = { +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# +# #First - give Hegemony of China if it's empty and Mongols have enough China! +# if = { +# limit = { +# has_tgp_dlc_trigger = yes +# NOT = { +# exists = title:h_china.holder +# } +# title:h_china ?= { +# any_de_jure_county = { +# percent >= claim_mandate_china_county_percentage_value +# holder.top_liege = { +# OR = { +# this = scope:old_mongol_emperor +# is_tributary_of_suzerain_or_above = scope:old_mongol_emperor +# } +# } +# } +# } +# } +# title:h_china = { +# save_scope_as = great_yuan_title +# } +# } +# #Give appropriate Chinese empire so that they aren't disturbed by a weird Yuan being created +# else_if = { +# limit = { +# scope:old_mongol_emperor = { +# any_realm_de_jure_empire = { +# any_this_title_or_de_jure_above = { +# this = title:h_china +# } +# OR = { +# NOT = { +# exists = holder +# } +# holder = scope:old_mongol_emperor +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# ordered_realm_de_jure_empire = { +# order_by = { +# every_de_jure_county = { +# limit = { +# holder.top_liege ?= scope:old_mongol_emperor +# title_province ?= { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# add = 1 +# } +# } +# limit = { +# any_this_title_or_de_jure_above = { +# this = title:h_china +# } +# OR = { +# NOT = { +# exists = holder +# } +# holder = scope:old_mongol_emperor +# } +# } +# save_scope_as = great_yuan_title +# } +# } +# } +# #Give any Empire in Great Yuan region, I guess that will do +# else_if = { +# limit = { +# scope:old_mongol_emperor = { +# any_realm_de_jure_empire = { +# any_de_jure_county = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# OR = { +# NOT = { +# exists = holder +# } +# holder = scope:old_mongol_emperor +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# ordered_realm_de_jure_empire = { +# order_by = { +# every_de_jure_county = { +# limit = { +# holder.top_liege ?= scope:old_mongol_emperor +# title_province ?= { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# add = 1 +# } +# } +# limit = { +# any_de_jure_county = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# OR = { +# NOT = { +# exists = holder +# } +# holder = scope:old_mongol_emperor +# } +# } +# save_scope_as = great_yuan_title +# } +# } +# } +# #Give Great Yuan title +# else = { +# title:e_great_yuan = { +# save_scope_as = great_yuan_title +# } +# } +# +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:great_yuan_title = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# #Put great yuan under h_china if it was just made +# if = { +# limit = { +# scope:great_yuan_title = title:e_great_yuan +# } +# title:e_great_yuan = { +# set_de_jure_liege_title = title:h_china +# } +# } +# +# scope:candidate = { +# save_scope_as = great_yuan_ruler +# } +# +# set_global_variable = { +# name = great_yuan_handed_out +# value = yes +# } +# +# #If Hegemony or Great Yuan created, give appropriate capital for great yuan +# if = { +# limit = { +# scope:great_yuan_title = { +# OR = { +# this = title:h_china +# this = title:e_great_yuan +# } +# } +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_great_yuan.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_great_yuan.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# # Give the character the appropriate dynamic capital area, if possible +# else_if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = scope:great_yuan_title.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = scope:great_yuan_title.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# #If has Hegemony or Great Yuan, set Yuan capital as capital +# if = { +# limit = { +# scope:great_yuan_title = { +# OR = { +# this = title:h_china +# this = title:e_great_yuan +# } +# } +# has_title = title:e_great_yuan.title_capital_county +# } +# set_realm_capital = title:e_great_yuan.title_capital_county +# } +# else_if = { +# limit = { +# has_title = scope:great_yuan_title.title_capital_county +# } +# set_realm_capital = scope:great_yuan_title.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# +# #The Yuan Emperor should get the story that drives him to become Celestial Hegemon, if he isn't already and it's chaos phase +# if = { +# limit = { +# scope:great_yuan_title = { +# NOT = { +# this = title:h_china +# } +# } +# any_character_situation = { +# situation_type = dynastic_cycle +# situation_current_phase = situation_dynastic_cycle_phase_chaos +# } +# } +# create_story = story_take_mandate_of_heaven +# if = { +# limit = { +# has_treasury = yes +# } +# add_treasury = 2000 +# } +# else = { +# add_gold = 2000 +# } +# } +# else = { +# create_story = story_conqueror +# } +# +# #Cycle handling +# if = { +# limit = { +# scope:great_yuan_title = title:h_china +# } +# title:h_china.holder = { tgp_claim_mandate_of_heaven_effect = yes } +# } +#} +# +#grant_blue_horde_effect = { +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_blue_horde = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = blue_horde_ruler +# } +# +# set_global_variable = { +# name = blue_horde_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_blue_horde.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_blue_horde.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_blue_horde.title_capital_county +# } +# set_realm_capital = title:e_blue_horde.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +#grant_omnod_dalai_khanate_effect = { +# +# # If the character doesn't hold any titles in the relevant +# if = { +# limit = { +# NOT = { +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# random_sub_realm_county = { +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# save_scope_as = county_to_transfer +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# scope:county_to_transfer = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# create_title_and_vassal_change = { +# type = created +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# title:e_omnod_dalai_khanate = { +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# +# scope:candidate = { +# save_scope_as = omnod_dalai_khanate_ruler +# } +# +# set_global_variable = { +# name = omnod_dalai_khanate_handed_out +# value = yes +# } +# +# # Give the character the appropriate capital area, if possible +# if = { +# limit = { +# scope:old_mongol_emperor = { +# any_sub_realm_county = { +# duchy = title:e_omnod_dalai_khanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# } +# } +# scope:old_mongol_emperor = { +# every_sub_realm_county = { +# limit = { +# duchy = title:e_omnod_dalai_khanate.title_capital_county.duchy +# NOR = { +# holder = scope:candidate +# holder = { # Don't steal the player's lands +# is_ai = no +# } +# holder = { +# any_liege_or_above = { is_ai = no } +# } +# } +# } +# add_to_list = titles_taken +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = title_change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:candidate +# change = scope:title_change +# take_baronies = yes +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# every_character_war = { +# end_war = white_peace +# } +# if = { +# limit = { +# has_title = title:e_omnod_dalai_khanate.title_capital_county +# } +# set_realm_capital = title:e_omnod_dalai_khanate.title_capital_county +# } +# else_if = { +# limit = { +# NOT = { +# capital_county.title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# any_held_title = { +# title_tier = county +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# } +# random_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# scope:candidate = { +# set_realm_capital = prev +# } +# } +# } +# spawn_mongol_successor_state_troops_effect = yes +# add_gold = 1000 +# add_dread = 100 +# create_story = story_conqueror +# grant_mongol_successor_nomadic_bonuses_effect = yes +#} +# +## Effect to clean up borders a little +#pick_up_remaining_counties_effect = { +# ### Ilkhanate +# if = { +# limit = { +# NOT = { exists = global_var:ilkhanate_handed_out } +# any_in_list = { +# list = ilkhanate_counties +# count > 0 +# } +# } +# # Try giving them to Chagatai +# if = { +# limit = { +# exists = global_var:chagatai_handed_out +# } +# every_in_list = { +# list = ilkhanate_counties +# add_to_list = chagatai_counties +# } +# } +# # Try Red Horde +# else_if = { +# limit = { +# exists = global_var:red_horde_handed_out +# } +# every_in_list = { +# list = ilkhanate_counties +# add_to_list = red_horde_counties +# } +# } +# # Try Golden Horde +# else_if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# } +# every_in_list = { +# list = ilkhanate_counties +# add_to_list = golden_horde_counties +# } +# } +# # Try Baruun +# else_if = { +# limit = { +# exists = global_var:baruun_khanate_handed_out +# } +# every_in_list = { +# list = ilkhanate_counties +# add_to_list = baruun_khanate_counties +# } +# } +# } +# ### End Ilkhanate +# +# ### Golden Horde +# if = { +# limit = { +# NOT = { exists = global_var:golden_horde_handed_out } +# any_in_list = { +# list = golden_horde_counties +# count > 0 +# } +# } +# # Try giving them to White Horde +# if = { +# limit = { +# exists = global_var:white_horde_handed_out +# } +# every_in_list = { +# list = golden_horde_counties +# add_to_list = white_horde_counties +# } +# } +# # Try Aarlud Khanate +# else_if = { +# limit = { +# exists = global_var:aarlud_khanate_handed_out +# } +# every_in_list = { +# list = golden_horde_counties +# add_to_list = aarlud_khanate_counties +# } +# } +# # Try Chagatai +# else_if = { +# limit = { +# exists = global_var:chagatai_handed_out +# } +# every_in_list = { +# list = golden_horde_counties +# add_to_list = chagatai_counties +# } +# } +# # Try Ilkhanate +# else_if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# } +# every_in_list = { +# list = golden_horde_counties +# add_to_list = ilkhanate_counties +# } +# } +# } +# ### End Golden Horde +# +# ### Chagatai +# if = { +# limit = { +# NOT = { exists = global_var:chagatai_handed_out } +# any_in_list = { +# list = chagatai_counties +# count > 0 +# } +# } +# # Try giving them to Golden Horde +# if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# } +# every_in_list = { +# list = chagatai_counties +# add_to_list = golden_horde_counties +# } +# } +# # Try Ilkhanate +# else_if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# } +# every_in_list = { +# list = chagatai_counties +# add_to_list = ilkhanate_counties +# } +# } +# #Try Great Yuan +# if = { +# limit = { +# exists = global_var:great_yuan_handed_out +# } +# every_in_list = { +# list = chagatai_counties +# add_to_list = great_yuan_counties +# } +# } +# } +# ### End Chagatai +# +# ### Great Yuan +# if = { +# limit = { +# NOT = { exists = global_var:great_yuan_handed_out } +# any_in_list = { +# list = great_yuan_counties +# count > 0 +# } +# } +# # Try giving them to Chagatai +# if = { +# limit = { +# exists = global_var:chagatai_handed_out +# } +# every_in_list = { +# list = great_yuan_counties +# add_to_list = chagatai_counties +# } +# } +# # Try Red Horde +# else_if = { +# limit = { +# exists = global_var:red_horde_handed_out +# } +# every_in_list = { +# list = great_yuan_counties +# add_to_list = red_horde_counties +# } +# } +# # Try Blue Horde +# else_if = { +# limit = { +# exists = global_var:blue_horde_handed_out +# } +# every_in_list = { +# list = great_yuan_counties +# add_to_list = blue_horde_counties +# } +# } +# #Try Omnod Dalai Khanate +# if = { +# limit = { +# exists = global_var:omnod_dalai_khanate_handed_out +# } +# every_in_list = { +# list = great_yuan_counties +# add_to_list = omnod_dalai_khanate_counties +# } +# } +# # Try giving them to Golden Horde +# if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# } +# every_in_list = { +# list = great_yuan_counties +# add_to_list = golden_horde_counties +# } +# } +# # Try giving them to Ilkhanate +# if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# } +# every_in_list = { +# list = great_yuan_counties +# add_to_list = ilkhanate_counties +# } +# } +# } +# ### End Great Yuan +# +# ### Red Horde +# if = { +# limit = { +# NOT = { exists = global_var:red_horde_handed_out } +# any_in_list = { +# list = red_horde_counties +# count > 0 +# } +# } +# # Try giving them to Ilkhanate +# if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# } +# every_in_list = { +# list = red_horde_counties +# add_to_list = ilkhanate_counties +# } +# } +# # Try Chagatai +# else_if = { +# limit = { +# exists = global_var:chagatai_handed_out +# } +# every_in_list = { +# list = red_horde_counties +# add_to_list = chagatai_counties +# } +# } +# #Try Great Yuan +# if = { +# limit = { +# exists = global_var:great_yuan_handed_out +# } +# every_in_list = { +# list = red_horde_counties +# add_to_list = great_yuan_counties +# } +# } +# #Try Omnod Dalai Khanate +# if = { +# limit = { +# exists = global_var:omnod_dalai_khanate_handed_out +# } +# every_in_list = { +# list = red_horde_counties +# add_to_list = omnod_dalai_khanate_counties +# } +# } +# # Try Baruun +# else_if = { +# limit = { +# exists = global_var:baruun_khanate_handed_out +# } +# every_in_list = { +# list = red_horde_counties +# add_to_list = baruun_khanate_counties +# } +# } +# } +# ### End Red Horde +# +# ### White Horde +# if = { +# limit = { +# NOT = { exists = global_var:white_horde_handed_out } +# any_in_list = { +# list = white_horde_counties +# count > 0 +# } +# } +# # Try giving them to Golden Horde +# if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# } +# every_in_list = { +# list = white_horde_counties +# add_to_list = golden_horde_counties +# } +# } +# # Try Ilkhanate +# else_if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# } +# every_in_list = { +# list = white_horde_counties +# add_to_list = ilkhanate_counties +# } +# } +# # Try Aarlud Khanate +# else_if = { +# limit = { +# exists = global_var:aarlud_khanate_handed_out +# } +# every_in_list = { +# list = white_horde_counties +# add_to_list = aarlud_khanate_counties +# } +# } +# # Try Togskol +# else_if = { +# limit = { +# exists = global_var:togskol_khanate_handed_out +# } +# every_in_list = { +# list = white_horde_counties +# add_to_list = togskol_khanate_counties +# } +# } +# # Try Chagatai +# else_if = { +# limit = { +# exists = global_var:chagatai_handed_out +# } +# every_in_list = { +# list = white_horde_counties +# add_to_list = chagatai_counties +# } +# } +# } +# ### End White Horde +# +# ### Blue Horde +# if = { +# limit = { +# NOT = { exists = global_var:blue_horde_handed_out } +# any_in_list = { +# list = blue_horde_counties +# count > 0 +# } +# } +# #Try Great Yuan +# if = { +# limit = { +# exists = global_var:great_yuan_handed_out +# } +# every_in_list = { +# list = blue_horde_counties +# add_to_list = great_yuan_counties +# } +# } +# #Try Omnod Dalai Khanate +# if = { +# limit = { +# exists = global_var:omnod_dalai_khanate_handed_out +# } +# every_in_list = { +# list = blue_horde_counties +# add_to_list = omnod_dalai_khanate_counties +# } +# } +# # Try Chagatai +# else_if = { +# limit = { +# exists = global_var:chagatai_handed_out +# } +# every_in_list = { +# list = blue_horde_counties +# add_to_list = chagatai_counties +# } +# } +# # Try giving them to Golden Horde +# if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# } +# every_in_list = { +# list = red_horde_counties +# add_to_list = golden_horde_counties +# } +# } +# } +# ### End Blue Horde +# +# ### Omnod Dalai Khanate +# if = { +# limit = { +# NOT = { exists = global_var:omnod_dalai_khanate_handed_out } +# any_in_list = { +# list = omnod_dalai_khanate_counties +# count > 0 +# } +# } +# #Try Great Yuan +# if = { +# limit = { +# exists = global_var:great_yuan_handed_out +# } +# every_in_list = { +# list = omnod_dalai_khanate_counties +# add_to_list = great_yuan_counties +# } +# } +# #Try Blue Horde +# if = { +# limit = { +# exists = global_var:blue_horde_handed_out +# } +# every_in_list = { +# list = omnod_dalai_khanate_counties +# add_to_list = blue_horde_counties +# } +# } +# #Try Red Horde +# if = { +# limit = { +# exists = global_var:red_horde_handed_out +# } +# every_in_list = { +# list = omnod_dalai_khanate_counties +# add_to_list = red_horde_counties +# } +# } +# # Try Ilkhanate +# else_if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# } +# every_in_list = { +# list = omnod_dalai_khanate_counties +# add_to_list = ilkhanate_counties +# } +# } +# # Try Chagatai +# else_if = { +# limit = { +# exists = global_var:chagatai_handed_out +# } +# every_in_list = { +# list = omnod_dalai_khanate_counties +# add_to_list = chagatai_counties +# } +# } +# } +# ### End Omnod Dalai Khanate +# +# ### Aarlud Khanate +# if = { +# limit = { +# NOT = { exists = global_var:aarlud_khanate_handed_out } +# any_in_list = { +# list = aarlud_khanate_counties +# count > 0 +# } +# } +# # Try giving them to White Horde +# if = { +# limit = { +# exists = global_var:white_horde_handed_out +# } +# every_in_list = { +# list = aarlud_khanate_counties +# add_to_list = white_horde_counties +# } +# } +# # Try Golden Horde +# else_if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# } +# every_in_list = { +# list = aarlud_khanate_counties +# add_to_list = golden_horde_counties +# } +# } +# # Try Togskol +# else_if = { +# limit = { +# exists = global_var:togskol_khanate_handed_out +# } +# every_in_list = { +# list = aarlud_khanate_counties +# add_to_list = togskol_khanate_counties +# } +# } +# } +# ### End Aarlud Khanate +# +# ### Togskol Khanate +# if = { +# limit = { +# NOT = { exists = global_var:togskol_khanate_handed_out } +# any_in_list = { +# list = togskol_khanate_counties +# count > 0 +# } +# } +# # Try giving them to White Horde +# if = { +# limit = { +# exists = global_var:white_horde_handed_out +# } +# every_in_list = { +# list = togskol_khanate_counties +# add_to_list = white_horde_counties +# } +# } +# # Try Aarlud +# else_if = { +# limit = { +# exists = global_var:aarlud_khanate_handed_out +# } +# every_in_list = { +# list = togskol_khanate_counties +# add_to_list = aarlud_khanate_counties +# } +# } +# # Try Golden Horde +# else_if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# } +# every_in_list = { +# list = togskol_khanate_counties +# add_to_list = golden_horde_counties +# } +# } +# # Try Baruun +# else_if = { +# limit = { +# exists = global_var:baruun_khanate_handed_out +# } +# every_in_list = { +# list = togskol_khanate_counties +# add_to_list = baruun_khanate_counties +# } +# } +# } +# ### End Togskol Khanate +# +# ### Baruun Khanate +# if = { +# limit = { +# NOT = { exists = global_var:baruun_khanate_handed_out } +# any_in_list = { +# list = baruun_khanate_counties +# count > 0 +# } +# } +# # Try giving them to Ilkhanate +# if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# } +# every_in_list = { +# list = baruun_khanate_counties +# add_to_list = ilkhanate_counties +# } +# } +# # Try Togskol +# else_if = { +# limit = { +# exists = global_var:togskol_khanate_handed_out +# } +# every_in_list = { +# list = baruun_khanate_counties +# add_to_list = togskol_khanate_counties +# } +# } +# # Try Red Horde +# else_if = { +# limit = { +# exists = global_var:red_horde_handed_out +# } +# every_in_list = { +# list = baruun_khanate_counties +# add_to_list = red_horde_counties +# } +# } +# #Try Omnod Dalai Khanate +# if = { +# limit = { +# exists = global_var:omnod_dalai_khanate_handed_out +# } +# every_in_list = { +# list = baruun_khanate_counties +# add_to_list = omnod_dalai_khanate_counties +# } +# } +# } +# ### End Baruun Khanate +#} +# +## Set up all vassals and assign them flags for the "correct" Khanate +#set_correct_mongol_breakup_vassalage_effect = { +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOT = { is_in_list = selected_mongol_heirs } +# is_playable_character = yes +# highest_held_title_tier >= tier_county +# } +# debug_log = "Trying to assign correct vassalage placement for:" +# debug_log_scopes = no +# +# save_scope_as = vassal +# +# # Note: the variables for counting counties is set before checking whether the relevant title will be created, to prevent null-reference errors later +# set_global_variable = { +# name = ilkhanate_county_count +# value = 0 +# } +# if = { # Count Ilkhanate Counties +# limit = { +# exists = global_var:ilkhanate_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = ilkhanate_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = ilkhanate_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = golden_horde_county_count +# value = 0 +# } +# if = { # Count Golden Horde Counties +# limit = { +# exists = global_var:golden_horde_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = golden_horde_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = golden_horde_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = chagatai_county_count +# value = 0 +# } +# if = { # Count Chagatai Counties +# limit = { +# exists = global_var:chagatai_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = chagatai_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = chagatai_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = great_yuan_county_count +# value = 0 +# } +# if = { # Count Great Yuan Counties +# limit = { +# exists = global_var:great_yuan_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = great_yuan_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = great_yuan_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = red_horde_county_count +# value = 0 +# } +# if = { # Count Red Horde counties +# limit = { +# exists = global_var:red_horde_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = red_horde_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = red_horde_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = white_horde_county_count +# value = 0 +# } +# if = { # Count White Horde counties +# limit = { +# exists = global_var:white_horde_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = white_horde_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = white_horde_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = blue_horde_county_count +# value = 0 +# } +# if = { # Count Blue Horde counties +# limit = { +# exists = global_var:blue_horde_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = blue_horde_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = blue_horde_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = omnod_dalai_khanate_county_count +# value = 0 +# } +# if = { # Count Omnod Dalai Khanate counties +# limit = { +# exists = global_var:omnod_dalai_khanate_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = omnod_dalai_khanate_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = omnod_dalai_khanate_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = aarlud_khanate_county_count +# value = 0 +# } +# if = { # Count Aarlud Khanate counties +# limit = { +# exists = global_var:aarlud_khanate_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = aarlud_khanate_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = aarlud_khanate_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = togskol_khanate_county_count +# value = 0 +# } +# if = { # Count Tögsköl Khanate counties +# limit = { +# exists = global_var:togskol_khanate_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = togskol_khanate_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = togskol_khanate_county_count +# add = 1 +# } +# } +# } +# } +# set_global_variable = { +# name = baruun_khanate_county_count +# value = 0 +# } +# if = { # Count Baruun Khanate counties +# limit = { +# exists = global_var:baruun_khanate_handed_out +# } +# every_sub_realm_county = { +# limit = { +# is_in_list = baruun_khanate_counties +# } +# scope:vassal = { +# change_global_variable = { +# name = baruun_khanate_county_count +# add = 1 +# } +# } +# } +# } +# # Find any counties not in any lists +# set_global_variable = { +# name = leftover_mongol_county_count +# value = 0 +# } +# every_sub_realm_county = { +# limit = { +# trigger_if = { +# limit = { exists = global_var:ilkhanate_handed_out } +# NOT = { is_in_list = ilkhanate_counties } +# } +# trigger_if = { +# limit = { exists = global_var:golden_horde_handed_out } +# NOT = { is_in_list = golden_horde_counties } +# } +# trigger_if = { +# limit = { exists = global_var:chagatai_handed_out } +# NOT = { is_in_list = chagatai_counties } +# } +# trigger_if = { +# limit = { exists = global_var:great_yuan_handed_out } +# NOT = { is_in_list = great_yuan_counties } +# } +# trigger_if = { +# limit = { exists = global_var:red_horde_handed_out } +# NOT = { is_in_list = red_horde_counties } +# } +# trigger_if = { +# limit = { exists = global_var:white_horde_handed_out } +# NOT = { is_in_list = white_horde_counties } +# } +# trigger_if = { +# limit = { exists = global_var:aarlud_khanate_handed_out } +# NOT = { is_in_list = aarlud_khanate_counties } +# } +# trigger_if = { +# limit = { exists = global_var:togskol_khanate_handed_out } +# NOT = { is_in_list = togskol_khanate_counties } +# } +# trigger_if = { +# limit = { exists = global_var:baruun_khanate_handed_out } +# NOT = { is_in_list = baruun_khanate_counties } +# } +# trigger_if = { +# limit = { exists = global_var:blue_horde_handed_out } +# NOT = { is_in_list = blue_horde_counties } +# } +# trigger_if = { +# limit = { exists = global_var:omnod_dalai_khanate_handed_out } +# NOT = { is_in_list = omnod_dalai_khanate_counties } +# } +# } +# scope:vassal = { +# change_global_variable = { +# name = leftover_mongol_county_count +# add = 1 +# } +# } +# } +# +# ### Mark vassals for the correct liege empire +# if = { +# limit = { +# global_var:leftover_mongol_county_count >= global_var:ilkhanate_county_count +# global_var:leftover_mongol_county_count >= global_var:golden_horde_county_count +# global_var:leftover_mongol_county_count >= global_var:chagatai_county_count +# global_var:leftover_mongol_county_count >= global_var:red_horde_county_count +# global_var:leftover_mongol_county_count >= global_var:white_horde_county_count +# global_var:leftover_mongol_county_count >= global_var:aarlud_khanate_county_count +# global_var:leftover_mongol_county_count >= global_var:togskol_khanate_county_count +# global_var:leftover_mongol_county_count >= global_var:baruun_khanate_county_count +# global_var:leftover_mongol_county_count >= global_var:great_yuan_county_count +# global_var:leftover_mongol_county_count >= global_var:blue_horde_county_count +# global_var:leftover_mongol_county_count >= global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_mongolia +# } +# else_if = { +# limit = { +# global_var:ilkhanate_county_count > global_var:leftover_mongol_county_count +# global_var:ilkhanate_county_count > global_var:golden_horde_county_count +# global_var:ilkhanate_county_count > global_var:chagatai_county_count +# global_var:ilkhanate_county_count > global_var:red_horde_county_count +# global_var:ilkhanate_county_count > global_var:white_horde_county_count +# global_var:ilkhanate_county_count > global_var:aarlud_khanate_county_count +# global_var:ilkhanate_county_count > global_var:togskol_khanate_county_count +# global_var:ilkhanate_county_count > global_var:baruun_khanate_county_count +# global_var:ilkhanate_county_count > global_var:great_yuan_county_count +# global_var:ilkhanate_county_count > global_var:blue_horde_county_count +# global_var:ilkhanate_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_ilkhanate +# } +# else_if = { +# limit = { +# global_var:golden_horde_county_count > global_var:leftover_mongol_county_count +# global_var:golden_horde_county_count > global_var:ilkhanate_county_count +# global_var:golden_horde_county_count > global_var:chagatai_county_count +# global_var:golden_horde_county_count > global_var:red_horde_county_count +# global_var:golden_horde_county_count > global_var:white_horde_county_count +# global_var:golden_horde_county_count > global_var:aarlud_khanate_county_count +# global_var:golden_horde_county_count > global_var:togskol_khanate_county_count +# global_var:golden_horde_county_count > global_var:baruun_khanate_county_count +# global_var:golden_horde_county_count > global_var:great_yuan_county_count +# global_var:golden_horde_county_count > global_var:blue_horde_county_count +# global_var:golden_horde_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_golden_horde +# } +# else_if = { +# limit = { +# global_var:chagatai_county_count > global_var:leftover_mongol_county_count +# global_var:chagatai_county_count > global_var:ilkhanate_county_count +# global_var:chagatai_county_count > global_var:golden_horde_county_count +# global_var:chagatai_county_count > global_var:red_horde_county_count +# global_var:chagatai_county_count > global_var:white_horde_county_count +# global_var:chagatai_county_count > global_var:aarlud_khanate_county_count +# global_var:chagatai_county_count > global_var:togskol_khanate_county_count +# global_var:chagatai_county_count > global_var:baruun_khanate_county_count +# global_var:chagatai_county_count > global_var:great_yuan_county_count +# global_var:chagatai_county_count > global_var:blue_horde_county_count +# global_var:chagatai_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_chagatai +# } +# else_if = { +# limit = { +# global_var:great_yuan_county_count > global_var:leftover_mongol_county_count +# global_var:great_yuan_county_count > global_var:ilkhanate_county_count +# global_var:great_yuan_county_count > global_var:chagatai_county_count +# global_var:great_yuan_county_count > global_var:golden_horde_county_count +# global_var:great_yuan_county_count > global_var:red_horde_county_count +# global_var:great_yuan_county_count > global_var:white_horde_county_count +# global_var:great_yuan_county_count > global_var:aarlud_khanate_county_count +# global_var:great_yuan_county_count > global_var:togskol_khanate_county_count +# global_var:great_yuan_county_count > global_var:baruun_khanate_county_count +# global_var:great_yuan_county_count > global_var:blue_horde_county_count +# global_var:great_yuan_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_great_yuan +# } +# else_if = { +# limit = { +# global_var:red_horde_county_count > global_var:leftover_mongol_county_count +# global_var:red_horde_county_count > global_var:ilkhanate_county_count +# global_var:red_horde_county_count > global_var:golden_horde_county_count +# global_var:red_horde_county_count > global_var:chagatai_county_count +# global_var:red_horde_county_count > global_var:white_horde_county_count +# global_var:red_horde_county_count > global_var:aarlud_khanate_county_count +# global_var:red_horde_county_count > global_var:togskol_khanate_county_count +# global_var:red_horde_county_count > global_var:baruun_khanate_county_count +# global_var:red_horde_county_count > global_var:great_yuan_county_count +# global_var:red_horde_county_count > global_var:blue_horde_county_count +# global_var:red_horde_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_red_horde +# } +# else_if = { +# limit = { +# global_var:white_horde_county_count > global_var:leftover_mongol_county_count +# global_var:white_horde_county_count > global_var:ilkhanate_county_count +# global_var:white_horde_county_count > global_var:golden_horde_county_count +# global_var:white_horde_county_count > global_var:chagatai_county_count +# global_var:white_horde_county_count > global_var:red_horde_county_count +# global_var:white_horde_county_count > global_var:aarlud_khanate_county_count +# global_var:white_horde_county_count > global_var:togskol_khanate_county_count +# global_var:white_horde_county_count > global_var:baruun_khanate_county_count +# global_var:white_horde_county_count > global_var:great_yuan_county_count +# global_var:white_horde_county_count > global_var:blue_horde_county_count +# global_var:white_horde_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_white_horde +# } +# else_if = { +# limit = { +# global_var:blue_horde_county_count > global_var:leftover_mongol_county_count +# global_var:blue_horde_county_count > global_var:ilkhanate_county_count +# global_var:blue_horde_county_count > global_var:golden_horde_county_count +# global_var:blue_horde_county_count > global_var:chagatai_county_count +# global_var:blue_horde_county_count > global_var:red_horde_county_count +# global_var:blue_horde_county_count > global_var:white_horde_county_count +# global_var:blue_horde_county_count > global_var:white_horde_county_count +# global_var:blue_horde_county_count > global_var:togskol_khanate_county_count +# global_var:blue_horde_county_count > global_var:baruun_khanate_county_count +# global_var:blue_horde_county_count > global_var:great_yuan_county_count +# global_var:blue_horde_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_blue_horde +# } +# else_if = { +# limit = { +# global_var:omnod_dalai_khanate_county_count > global_var:leftover_mongol_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:ilkhanate_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:golden_horde_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:chagatai_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:red_horde_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:white_horde_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:white_horde_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:togskol_khanate_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:baruun_khanate_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:great_yuan_county_count +# global_var:omnod_dalai_khanate_county_count > global_var:blue_horde_county_count +# } +# add_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# else_if = { +# limit = { +# global_var:aarlud_khanate_county_count > global_var:leftover_mongol_county_count +# global_var:aarlud_khanate_county_count > global_var:ilkhanate_county_count +# global_var:aarlud_khanate_county_count > global_var:golden_horde_county_count +# global_var:aarlud_khanate_county_count > global_var:chagatai_county_count +# global_var:aarlud_khanate_county_count > global_var:red_horde_county_count +# global_var:aarlud_khanate_county_count > global_var:white_horde_county_count +# global_var:aarlud_khanate_county_count > global_var:togskol_khanate_county_count +# global_var:aarlud_khanate_county_count > global_var:baruun_khanate_county_count +# global_var:aarlud_khanate_county_count > global_var:great_yuan_county_count +# global_var:aarlud_khanate_county_count > global_var:blue_horde_county_count +# global_var:aarlud_khanate_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_aarlud_khanate +# } +# else_if = { +# limit = { +# global_var:aarlud_khanate_county_count > global_var:leftover_mongol_county_count +# global_var:aarlud_khanate_county_count > global_var:ilkhanate_county_count +# global_var:aarlud_khanate_county_count > global_var:golden_horde_county_count +# global_var:aarlud_khanate_county_count > global_var:chagatai_county_count +# global_var:aarlud_khanate_county_count > global_var:red_horde_county_count +# global_var:aarlud_khanate_county_count > global_var:white_horde_county_count +# global_var:aarlud_khanate_county_count > global_var:togskol_khanate_county_count +# global_var:aarlud_khanate_county_count > global_var:baruun_khanate_county_count +# global_var:aarlud_khanate_county_count > global_var:great_yuan_county_count +# global_var:aarlud_khanate_county_count > global_var:blue_horde_county_count +# global_var:aarlud_khanate_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_aarlud_khanate +# } +# else_if = { +# limit = { +# global_var:togskol_khanate_county_count > global_var:leftover_mongol_county_count +# global_var:togskol_khanate_county_count > global_var:ilkhanate_county_count +# global_var:togskol_khanate_county_count > global_var:golden_horde_county_count +# global_var:togskol_khanate_county_count > global_var:chagatai_county_count +# global_var:togskol_khanate_county_count > global_var:red_horde_county_count +# global_var:togskol_khanate_county_count > global_var:white_horde_county_count +# global_var:togskol_khanate_county_count > global_var:aarlud_khanate_county_count +# global_var:togskol_khanate_county_count > global_var:baruun_khanate_county_count +# global_var:togskol_khanate_county_count > global_var:great_yuan_county_count +# global_var:togskol_khanate_county_count > global_var:blue_horde_county_count +# global_var:togskol_khanate_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_togskol_khanate +# } +# else_if = { +# limit = { +# global_var:baruun_khanate_county_count > global_var:leftover_mongol_county_count +# global_var:baruun_khanate_county_count > global_var:ilkhanate_county_count +# global_var:baruun_khanate_county_count > global_var:golden_horde_county_count +# global_var:baruun_khanate_county_count > global_var:chagatai_county_count +# global_var:baruun_khanate_county_count > global_var:red_horde_county_count +# global_var:baruun_khanate_county_count > global_var:white_horde_county_count +# global_var:baruun_khanate_county_count > global_var:aarlud_khanate_county_count +# global_var:baruun_khanate_county_count > global_var:togskol_khanate_county_count +# global_var:baruun_khanate_county_count > global_var:great_yuan_county_count +# global_var:baruun_khanate_county_count > global_var:blue_horde_county_count +# global_var:baruun_khanate_county_count > global_var:omnod_dalai_khanate_county_count +# } +# add_character_flag = should_be_vassalized_by_baruun_khanate +# } +# else = { +# add_character_flag = should_be_vassalized_by_mongolia +# } +# } +# } +#} +# +## Forcibly shift counties around as appropriate +#shift_counties_on_mongol_succession_effect = { +# every_in_list = { +# list = selected_mongol_heirs +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# is_in_list = ilkhanate_counties +# NOT = { holder = { has_title = title:e_ilkhanate } } +# } +# add_to_list = ilkhanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = ilkhanate_titles_for_transfer +# } +# } +# } +# if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# is_in_list = golden_horde_counties +# NOT = { holder = { has_title = title:e_golden_horde } } +# } +# add_to_list = golden_horde_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = golden_horde_titles_for_transfer +# } +# } +# } +# if = { +# limit = { +# exists = global_var:chagatai_handed_out +# is_in_list = chagatai_counties +# NOT = { holder = { has_title = title:e_chagatai } } +# } +# add_to_list = chagatai_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = chagatai_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:great_yuan_handed_out +# is_in_list = great_yuan_counties +# NOT = { holder = { has_title = scope:great_yuan_title } } +# } +# add_to_list = great_yuan_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = great_yuan_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:red_horde_handed_out +# is_in_list = red_horde_counties +# NOT = { holder = { has_title = title:e_red_horde } } +# } +# add_to_list = red_horde_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = red_horde_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:white_horde_handed_out +# is_in_list = white_horde_counties +# NOT = { holder = { has_title = title:e_white_horde } } +# } +# add_to_list = white_horde_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = white_horde_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:blue_horde_handed_out +# is_in_list = blue_horde_counties +# NOT = { holder = { has_title = title:e_blue_horde } } +# } +# add_to_list = blue_horde_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = blue_horde_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:omnod_dalai_khanate_handed_out +# is_in_list = omnod_dalai_khanate_counties +# NOT = { holder = { has_title = title:e_omnod_dalai_khanate } } +# } +# add_to_list = omnod_dalai_khanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = omnod_dalai_khanate_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:aarlud_khanate_handed_out +# is_in_list = aarlud_khanate_counties +# NOT = { holder = { has_title = title:e_aarlud_khanate } } +# } +# add_to_list = aarlud_khanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = aarlud_khanate_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:togskol_khanate_handed_out +# is_in_list = togskol_khanate_counties +# NOT = { holder = { has_title = title:e_togskol_khanate } } +# } +# add_to_list = togskol_khanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = togskol_khanate_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:baruun_khanate_handed_out +# is_in_list = baruun_khanate_counties +# NOT = { holder = { has_title = title:e_baruun_khanate } } +# } +# add_to_list = baruun_khanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = baruun_khanate_titles_for_transfer +# } +# } +# +# } +# } +# } +# scope:old_mongol_emperor = { +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# exists = global_var:ilkhanate_handed_out +# is_in_list = ilkhanate_counties +# NOT = { holder = { has_title = title:e_ilkhanate } } +# } +# add_to_list = ilkhanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = ilkhanate_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:golden_horde_handed_out +# is_in_list = golden_horde_counties +# NOT = { holder = { has_title = title:e_golden_horde } } +# } +# add_to_list = golden_horde_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = golden_horde_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:chagatai_handed_out +# is_in_list = chagatai_counties +# NOT = { holder = { has_title = title:e_chagatai } } +# } +# add_to_list = chagatai_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = chagatai_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:great_yuan_handed_out +# is_in_list = great_yuan_counties +# NOT = { holder = { has_title = scope:great_yuan_title } } +# } +# add_to_list = great_yuan_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = great_yuan_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:red_horde_handed_out +# is_in_list = red_horde_counties +# NOT = { holder = { has_title = title:e_red_horde } } +# } +# add_to_list = red_horde_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = red_horde_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:white_horde_handed_out +# is_in_list = white_horde_counties +# NOT = { holder = { has_title = title:e_white_horde } } +# } +# add_to_list = white_horde_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = white_horde_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:blue_horde_handed_out +# is_in_list = blue_horde_counties +# NOT = { holder = { has_title = title:e_blue_horde } } +# } +# add_to_list = blue_horde_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = blue_horde_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:omnod_dalai_khanate_handed_out +# is_in_list = omnod_dalai_khanate_counties +# NOT = { holder = { has_title = title:e_omnod_dalai_khanate } } +# } +# add_to_list = omnod_dalai_khanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = omnod_dalai_khanate_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:aarlud_khanate_handed_out +# is_in_list = aarlud_khanate_counties +# NOT = { holder = { has_title = title:e_aarlud_khanate } } +# } +# add_to_list = aarlud_khanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = aarlud_khanate_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:togskol_khanate_handed_out +# is_in_list = togskol_khanate_counties +# NOT = { holder = { has_title = title:e_togskol_khanate } } +# } +# add_to_list = togskol_khanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = togskol_khanate_titles_for_transfer +# } +# } +# +# } +# if = { +# limit = { +# exists = global_var:baruun_khanate_handed_out +# is_in_list = baruun_khanate_counties +# NOT = { holder = { has_title = title:e_baruun_khanate } } +# } +# add_to_list = baruun_khanate_titles_for_transfer +# # Also mark duchies for transfer if relevant +# if = { +# limit = { +# exists = duchy.holder +# holder = duchy.holder +# } +# duchy = { +# add_to_list = baruun_khanate_titles_for_transfer +# } +# } +# +# } +# } +# } +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = mongol_succession +# add_claim_on_loss = no +# } +# +# # Ilkhanate +# if = { +# limit = { +# exists = scope:ilkhanate_ruler +# } +# every_in_list = { +# list = ilkhanate_titles_for_transfer +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Golden Horde +# if = { +# limit = { +# exists = scope:golden_horde_ruler +# } +# every_in_list = { +# list = golden_horde_titles_for_transfer +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_golden_horde +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Chagatai +# if = { +# limit = { +# exists = scope:chagatai_ruler +# } +# every_in_list = { +# list = chagatai_titles_for_transfer +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_chagatai +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Great Yuan +# if = { +# limit = { +# exists = scope:great_yuan_ruler +# } +# every_in_list = { +# list = great_yuan_titles_for_transfer +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_great_yuan +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Red Horde +# if = { +# limit = { +# exists = scope:red_horde_ruler +# } +# every_in_list = { +# list = red_horde_titles_for_transfer +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_red_horde +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # White Horde +# if = { +# limit = { +# exists = scope:white_horde_ruler +# } +# every_in_list = { +# list = white_horde_titles_for_transfer +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_white_horde +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Blue Horde +# if = { +# limit = { +# exists = scope:blue_horde_ruler +# } +# every_in_list = { +# list = blue_horde_titles_for_transfer +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_blue_horde +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Omnod Dalai Khanate +# if = { +# limit = { +# exists = scope:omnod_dalai_khanate_ruler +# } +# every_in_list = { +# list = omnod_dalai_khanate_titles_for_transfer +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Aarlud Khanate +# if = { +# limit = { +# exists = scope:aarlud_khanate_ruler +# } +# every_in_list = { +# list = aarlud_khanate_titles_for_transfer +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Togskol Khanate +# if = { +# limit = { +# exists = scope:togskol_khanate_ruler +# } +# every_in_list = { +# list = togskol_khanate_titles_for_transfer +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_togskol_khanate +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Baruun Khanate +# if = { +# limit = { +# exists = scope:baruun_khanate_ruler +# } +# every_in_list = { +# list = baruun_khanate_titles_for_transfer +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_succession +# } +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_baruun_khanate +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Mongolia +# if = { +# limit = { +# exists = scope:mongolia_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal_or_below = { +# limit = { +# has_character_flag = should_be_vassalized_by_mongolia +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# +# # Extra backup safety +# # Ilkhanate +# if = { +# limit = { +# exists = scope:ilkhanate_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Golden Horde +# if = { +# limit = { +# exists = scope:golden_horde_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Chagatai +# if = { +# limit = { +# exists = scope:chagatai_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Great Yuan +# if = { +# limit = { +# exists = scope:great_yuan_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Red Horde +# if = { +# limit = { +# exists = scope:red_horde_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # White Horde +# if = { +# limit = { +# exists = scope:white_horde_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Blue Horde +# if = { +# limit = { +# exists = scope:blue_horde_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Omnod Dalai Khanate +# if = { +# limit = { +# exists = scope:omnod_dalai_khanate_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Aarlud Khanate +# if = { +# limit = { +# exists = scope:aarlud_khanate_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Togskol Khanate +# if = { +# limit = { +# exists = scope:togskol_khanate_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Baruun Khanate +# if = { +# limit = { +# exists = scope:baruun_khanate_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# # Mongolia +# if = { +# limit = { +# exists = scope:mongolia_ruler +# } +# scope:old_mongol_emperor = { +# every_vassal = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_succession +# } +# } +# } +# } +# +# resolve_title_and_vassal_change = scope:mongol_succession +# +# # Extra-extra cleanup +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = mongol_cleanup_succession +# add_claim_on_loss = no +# } +# # Mongolia +# if = { +# limit = { +# exists = scope:mongolia_ruler +# } +# scope:mongolia_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # Ilkhanate +# if = { +# limit = { +# exists = scope:ilkhanate_ruler +# } +# scope:ilkhanate_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # Golden Horde +# if = { +# limit = { +# exists = scope:golden_horde_ruler +# } +# scope:golden_horde_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # Chagatai +# if = { +# limit = { +# exists = scope:chagatai_ruler +# } +# scope:chagatai_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# +# # Great Yuan +# if = { +# limit = { +# exists = scope:great_yuan_ruler +# } +# scope:great_yuan_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # Red Horde +# if = { +# limit = { +# exists = scope:red_horde_ruler +# } +# scope:red_horde_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # White Horde +# if = { +# limit = { +# exists = scope:white_horde_ruler +# } +# scope:white_horde_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# +# # Blue Horde +# if = { +# limit = { +# exists = scope:blue_horde_ruler +# } +# scope:blue_horde_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # Omnod Dalai Khanate +# if = { +# limit = { +# exists = scope:omnod_dalai_khanate_ruler +# } +# scope:omnod_dalai_khanate_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # Aarlud Khanate +# if = { +# limit = { +# exists = scope:aarlud_khanate_ruler +# } +# scope:aarlud_khanate_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # Togskol Khanate +# if = { +# limit = { +# exists = scope:togskol_khanate_ruler +# } +# scope:togskol_khanate_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_liege = { +# liege = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# exists = scope:baruun_khanate_ruler +# } +# change_title_holder = { +# holder = scope:baruun_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# # Baruun Khanate +# if = { +# limit = { +# exists = scope:baruun_khanate_ruler +# } +# scope:mongolia_ruler = { +# every_vassal_or_below = { +# limit = { +# NOR = { +# has_character_flag = should_be_vassalized_by_ilkhanate +# has_character_flag = should_be_vassalized_by_golden_horde +# has_character_flag = should_be_vassalized_by_chagatai +# has_character_flag = should_be_vassalized_by_red_horde +# has_character_flag = should_be_vassalized_by_white_horde +# has_character_flag = should_be_vassalized_by_aarlud_khanate +# has_character_flag = should_be_vassalized_by_togskol_khanate +# has_character_flag = should_be_vassalized_by_baruun_khanate +# has_character_flag = should_be_vassalized_by_mongolia +# has_character_flag = should_be_vassalized_by_great_yuan +# has_character_flag = should_be_vassalized_by_blue_horde +# has_character_flag = should_be_vassalized_by_omnod_dalai_khanate +# } +# } +# if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_liege = { +# liege = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_liege = { +# liege = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_liege = { +# liege = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_liege = { +# liege = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_liege = { +# liege = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_liege = { +# liege = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_liege = { +# liege = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_liege = { +# liege = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_liege = { +# liege = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_liege = { +# liege = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# capital_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_liege = { +# liege = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# every_held_title = { +# title_tier = county +# limit = { +# is_landless_type_title = no +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# exists = scope:ilkhanate_ruler +# } +# change_title_holder = { +# holder = scope:ilkhanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# exists = scope:golden_horde_ruler +# } +# change_title_holder = { +# holder = scope:golden_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# exists = scope:chagatai_ruler +# } +# change_title_holder = { +# holder = scope:chagatai_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# exists = scope:great_yuan_ruler +# } +# change_title_holder = { +# holder = scope:great_yuan_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# exists = scope:red_horde_ruler +# } +# change_title_holder = { +# holder = scope:red_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# exists = scope:white_horde_ruler +# } +# change_title_holder = { +# holder = scope:white_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# exists = scope:blue_horde_ruler +# } +# change_title_holder = { +# holder = scope:blue_horde_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# exists = scope:omnod_dalai_khanate_ruler +# } +# change_title_holder = { +# holder = scope:omnod_dalai_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# exists = scope:aarlud_khanate_ruler +# } +# change_title_holder = { +# holder = scope:aarlud_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# if = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# exists = scope:togskol_khanate_ruler +# } +# change_title_holder = { +# holder = scope:togskol_khanate_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# else_if = { +# limit = { +# title_province = { +# NOR = { +# geographical_region = special_mongol_empire_ilkhanate_region +# geographical_region = special_mongol_empire_golden_horde_region +# geographical_region = special_mongol_empire_chagatai_region +# geographical_region = special_mongol_empire_red_horde_region +# geographical_region = special_mongol_empire_white_horde_region +# geographical_region = special_mongol_empire_aarlud_khanate_region +# geographical_region = special_mongol_empire_togskol_khanate_region +# geographical_region = special_mongol_empire_baruun_khanate_region +# geographical_region = special_mongol_empire_great_yuan_region +# geographical_region = special_mongol_empire_blue_horde_region +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# exists = scope:mongolia_ruler +# } +# change_title_holder = { +# holder = scope:mongolia_ruler +# change = scope:mongol_cleanup_succession +# } +# } +# } +# } +# } +# resolve_title_and_vassal_change = scope:mongol_cleanup_succession +# +# every_in_list = { # If tengri, switch to an organized faith in your new realm +# list = selected_mongol_heirs +# limit = { +# primary_title.tier = tier_empire +# faith = { has_doctrine_parameter = unreformed } +# any_sub_realm_county = { +# faith = { +# NOT = { has_doctrine_parameter = unreformed } +# } +# } +# } +# save_scope_as = faith_changer +# random_sub_realm_county = { +# limit = { +# faith = { +# NOT = { has_doctrine_parameter = unreformed } +# } +# } +# weight = { +# base = 1 +# modifier = { +# save_temporary_scope_as = county_faith_check +# add = mongol_successor_faith_chance +# } +# } +# scope:faith_changer = { +# set_character_faith = prev.faith +# } +# } +# } +#} +# +# +#### END Title creation effects +# +#grant_suitable_title_to_candidate_effect = { +# save_temporary_scope_as = candidate +# +# # Runs through available titles and grants an available one +# random_list = { +# # Ilkhanate +# 1 = { +# trigger = { +# exists = global_var:creatable_ilkhanate +# NOT = { exists = global_var:ilkhanate_handed_out } +# NOT = { exists = title:e_ilkhanate.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_ilkhanate_effect = yes +# } +# # Golden Horde +# 1 = { +# trigger = { +# exists = global_var:creatable_golden_horde +# NOT = { exists = global_var:golden_horde_handed_out } +# NOT = { exists = title:e_golden_horde.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_golden_horde_effect = yes +# } +# # Chagatai +# 1 = { +# trigger = { +# exists = global_var:creatable_chagatai +# NOT = { exists = global_var:chagatai_handed_out } +# NOT = { exists = title:e_chagatai.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_chagatai_effect = yes +# } +# # Great Yuan +# 1 = { +# trigger = { +# exists = global_var:creatable_great_yuan +# NOT = { exists = global_var:great_yuan_handed_out } +# NOT = { exists = scope:great_yuan_title.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_great_yuan_effect = yes +# } +# # Red Horde +# 1 = { +# trigger = { +# exists = global_var:creatable_red_horde +# NOT = { exists = global_var:red_horde_handed_out } +# NOT = { exists = title:e_red_horde.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_red_horde_effect = yes +# } +# # White Horde +# 1 = { +# trigger = { +# exists = global_var:creatable_white_horde +# NOT = { exists = global_var:white_horde_handed_out } +# NOT = { exists = title:e_white_horde.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_white_horde_effect = yes +# } +# # Blue Horde +# 1 = { +# trigger = { +# exists = global_var:creatable_blue_horde +# NOT = { exists = global_var:blue_horde_handed_out } +# NOT = { exists = title:e_blue_horde.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_blue_horde_effect = yes +# } +# # Omnod Dalai Khanate +# 1 = { +# trigger = { +# exists = global_var:creatable_omnod_dalai_khanate +# NOT = { exists = global_var:omnod_dalai_khanate_handed_out } +# NOT = { exists = title:e_omnod_dalai_khanate.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_omnod_dalai_khanate_effect = yes +# } +# # Aarlud Khanate +# 1 = { +# trigger = { +# exists = global_var:creatable_aarlud_khanate +# NOT = { exists = global_var:aarlud_khanate_handed_out } +# NOT = { exists = title:e_aarlud_khanate.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_aarlud_khanate_effect = yes +# } +# # Tögsköl Khanate +# 1 = { +# trigger = { +# exists = global_var:creatable_togskol_khanate +# NOT = { exists = global_var:togskol_khanate_handed_out } +# NOT = { exists = title:e_togskol_khanate.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_togskol_khanate_effect = yes +# } +# # Baruun Khanate +# 1 = { +# trigger = { +# exists = global_var:creatable_baruun_khanate +# NOT = { exists = global_var:baruun_khanate_handed_out } +# NOT = { exists = title:e_baruun_khanate.holder } +# } +# # Weight the chance by how much territory you hold there +# modifier = { +# add = { +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# } +# add = 50 +# } +# } +# always = yes +# } +# grant_baruun_khanate_effect = yes +# } +# } +# +# # Add to list so we can move related titles around later +# add_to_list = candidate_granted_title +#} +# +# +#break_up_mongol_empire_effect = { # Intended to run in the Mongol Emperor's scope +# save_scope_as = old_mongol_emperor +# +# every_tributary = { +# add_to_list = mongol_tributaries +# } +# +# every_held_title = { # Clean up excess kingdoms +# limit = { +# is_landless_type_title = no +# OR = { +# tier = tier_kingdom +# tier = tier_duchy +# } +# } +# scope:old_mongol_emperor = { +# destroy_title = prev +# } +# } +# +# every_character_war = { +# limit = { +# primary_attacker = scope:old_mongol_emperor +# is_white_peace_possible = yes +# } +# end_war = white_peace +# } +# +# set_global_variable = { +# name = number_of_mongol_heir_candidates +# value = 0 +# } +# # Find suitable heir candidates +# dynasty = { +# every_dynasty_member = { # Every potential khandidate +# limit = { +# character_gender_can_inherit_from_trigger = { +# CHARACTER = scope:old_mongol_emperor +# } +# is_alive = yes +# } +# change_global_variable = { +# name = number_of_mongol_heir_candidates +# add = 1 +# } +# add_to_list = mongol_heir_candidates +# } +# } +# +# # Gather Ilkhanate counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_ilkhanate_region +# } +# } +# add_to_temporary_list = ilkhanate_counties +# } +# # Gather Golden Horde counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_golden_horde_region +# } +# } +# add_to_temporary_list = golden_horde_counties +# } +# # Gather Chagatai counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_chagatai_region +# } +# } +# add_to_temporary_list = chagatai_counties +# } +# # Gather Great Yuan counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_great_yuan_region +# } +# } +# add_to_temporary_list = great_yuan_counties +# } +# # Gather Red Horde counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_red_horde_region +# } +# } +# add_to_temporary_list = red_horde_counties +# } +# # Gather White Horde counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_white_horde_region +# } +# } +# add_to_temporary_list = white_horde_counties +# } +# # Gather Blue Horde counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_blue_horde_region +# } +# } +# add_to_temporary_list = blue_horde_counties +# } +# # Gather Omnod Dalai Khanate counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_omnod_dalai_khanate_region +# } +# } +# add_to_temporary_list = omnod_dalai_khanate_counties +# } +# # Gather Aarlud Khanate counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_aarlud_khanate_region +# } +# } +# add_to_temporary_list = aarlud_khanate_counties +# } +# # Gather Tögsköl Khanate counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_togskol_khanate_region +# } +# } +# add_to_temporary_list = togskol_khanate_counties +# } +# # Gather Baruun Khanate counties +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = special_mongol_empire_baruun_khanate_region +# } +# } +# add_to_temporary_list = baruun_khanate_counties +# } +# +# # Check which titles are creatable +# set_global_variable = { +# name = creatable_mongol_successor_states_number +# value = 0 +# } +# # Ilkhanate +# if = { +# limit = { +# any_in_list = { +# list = ilkhanate_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Ilkhanate is creatable" +# set_global_variable = { +# name = creatable_ilkhanate +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Golden Horde +# if = { +# limit = { +# any_in_list = { +# list = golden_horde_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Golden Horde is creatable" +# set_global_variable = { +# name = creatable_golden_horde +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Chagatai +# if = { +# limit = { +# any_in_list = { +# list = chagatai_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Chagatai is creatable" +# set_global_variable = { +# name = creatable_chagatai +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Great Yuan +# if = { +# limit = { +# any_in_list = { +# list = great_yuan_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Great Yuan is creatable" +# set_global_variable = { +# name = creatable_great_yuan +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Red Horde +# if = { +# limit = { +# any_in_list = { +# list = red_horde_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Red Horde is creatable" +# set_global_variable = { +# name = creatable_red_horde +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # White Horde +# if = { +# limit = { +# any_in_list = { +# list = white_horde_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "White Horde is creatable" +# set_global_variable = { +# name = creatable_white_horde +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Blue Horde +# if = { +# limit = { +# any_in_list = { +# list = blue_horde_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Blue Horde is creatable" +# set_global_variable = { +# name = creatable_blue_horde +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Omnod Dalai Khanate +# if = { +# limit = { +# any_in_list = { +# list = omnod_dalai_khanate_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Omnod Dalai Khanate is creatable" +# set_global_variable = { +# name = creatable_omnod_dalai_khanate +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Aarlud Khanate +# if = { +# limit = { +# any_in_list = { +# list = aarlud_khanate_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Aarlud is creatable" +# set_global_variable = { +# name = creatable_aarlud_khanate +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Tögsköl Khanate +# if = { +# limit = { +# any_in_list = { +# list = togskol_khanate_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Tögsköl is creatable" +# set_global_variable = { +# name = creatable_togskol_khanate +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# # Baruun Khanate +# if = { +# limit = { +# any_in_list = { +# list = baruun_khanate_counties +# count >= @creatable_successor_empire_county_threshold +# } +# } +# debug_log = "Baruun is creatable" +# set_global_variable = { +# name = creatable_baruun_khanate +# value = yes +# } +# change_global_variable = { +# name = creatable_mongol_successor_states_number +# add = 1 +# } +# } +# +# ordered_in_list = { +# list = mongol_heir_candidates +# order_by = mongol_breakup_succession_score +# max = 15 +# +# debug_log = "Mongol succession list found:" +# debug_log_scopes = yes +# +# add_to_list = selected_mongol_heirs +# add_character_flag = { +# flag = mongol_successor_flag +# days = 10 +# } +# } +# +# # Find the "main" heir +# +# if = { +# limit = { +# is_ai = no +# player_heir.dynasty ?= dynasty +# } +# player_heir = { +# debug_log = "Found Mongol main heir" +# debug_log_scopes = yes +# +# assign_core_mongol_titles_to_heir_effect = yes +# +# remove_from_list = selected_mongol_heirs +# } +# } +# else = { +# ordered_in_list = { +# list = selected_mongol_heirs +# order_by = mongol_breakup_succession_score +# max = 1 +# +# debug_log = "Found Mongol main heir" +# debug_log_scopes = yes +# +# assign_core_mongol_titles_to_heir_effect = yes +# +# remove_from_list = selected_mongol_heirs +# } +# } +# +# if = { +# limit = { +# is_ai = no +# player_heir.dynasty ?= dynasty +# player_heir = { highest_held_title_tier < tier_empire } +# } +# player_heir = { +# grant_suitable_title_to_candidate_effect = yes +# } +# } +# +# # Assign titles to everyone else +# ordered_in_list = { +# list = selected_mongol_heirs +# order_by = mongol_breakup_succession_score +# max = global_var:creatable_mongol_successor_states_number +# +# debug_log = "Found another Mongol Heir" +# debug_log_scopes = yes +# grant_suitable_title_to_candidate_effect = yes +# +# debug_log = "Tried granting title to heir" +# } +# +# pick_up_remaining_counties_effect = yes +# set_correct_mongol_breakup_vassalage_effect = yes +# shift_counties_on_mongol_succession_effect = yes +# +# # Send notification events +# scope:mongolia_ruler = { +# save_scope_as = successor_1 +# } +# +# ordered_in_list = { +# list = selected_mongol_heirs +# order_by = mongol_breakup_succession_score +# max = 3 +# +# if = { +# limit = { +# NOT = { exists = scope:successor_2 } +# } +# save_scope_as = successor_2 +# } +# else_if = { +# limit = { +# NOT = { exists = scope:successor_3 } +# NOT = { +# this = scope:successor_2 +# } +# } +# save_scope_as = successor_3 +# } +# if = { +# limit = { +# NOT = { exists = scope:successor_4 } +# NOR = { +# this = scope:successor_2 +# this = scope:successor_3 +# } +# } +# save_scope_as = successor_4 +# } +# } +# +# every_player = { +# trigger_event = { +# id = mongol_invasion.1004 +# days = 2 # Delay it a little to let effects settle +# } +# } +# +# # Cleanup +# remove_global_variable = creatable_mongol_successor_states_number +# remove_global_variable = number_of_mongol_heir_candidates +# remove_global_variable = creatable_ilkhanate +# remove_global_variable = creatable_golden_horde +# remove_global_variable = creatable_chagatai +# remove_global_variable = creatable_great_yuan +# remove_global_variable = creatable_red_horde +# remove_global_variable = creatable_white_horde +# remove_global_variable = creatable_blue_horde +# remove_global_variable = creatable_omnod_dalai_khanate +# remove_global_variable = creatable_aarlud_khanate +# remove_global_variable = creatable_togskol_khanate +# remove_global_variable = creatable_baruun_khanate +# +# # Make sure the Mongol Empire title is destroyed as appropriate +# set_global_variable = { +# name = mongol_empire_was_broken_up +# value = yes +# } +# scope:successor_1 = { +# trigger_event = { +# id = mongol_invasion.9999 +# days = 1 +# } +# } +# +# # Assign appropriate De Jure, so that the successors do not switch away from their empires immediately +# if = { +# limit = { +# exists = scope:chagatai_ruler +# } +# scope:chagatai_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = chagatai_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:great_yuan_ruler +# } +# scope:great_yuan_ruler = { +# #Should not have dejure reassignment if they got an already existing title +# if = { +# limit = { +# scope:great_yuan_ruler.primary_title = title:e_great_yuan +# } +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = great_yuan_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# kingdom.holder = { +# OR = { +# this = scope:title_assignment +# is_vassal_of = scope:title_assignment +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# } +# if = { +# limit = { +# has_dlc_feature = admin_gov +# } +# convert_great_yuan_to_admin_effect = yes +# } +# else = { +# change_mongol_successor_illegal_government = yes +# } +# } +# } +# if = { +# limit = { +# exists = scope:golden_horde_ruler +# } +# scope:golden_horde_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = golden_horde_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:ilkhanate_ruler +# } +# scope:ilkhanate_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = ilkhanate_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:red_horde_ruler +# } +# scope:red_horde_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = red_horde_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:white_horde_ruler +# } +# scope:white_horde_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = white_horde_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:blue_horde_ruler +# } +# scope:blue_horde_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = blue_horde_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:omnod_dalai_khanate_ruler +# } +# scope:omnod_dalai_khanate_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = omnod_dalai_khanate_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:aarlud_khanate_ruler +# } +# scope:aarlud_khanate_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = aarlud_khanate_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:togskol_khanate_ruler +# } +# scope:togskol_khanate_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = togskol_khanatede_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# if = { +# limit = { +# exists = scope:baruun_khanate_ruler +# } +# scope:baruun_khanate_ruler = { +# add_realm_law_skip_effects = high_partition_succession_law +# save_scope_as = title_assignment +# every_sub_realm_county = { +# limit = { +# title_province = { +# geographical_region = baruun_khanate_de_jure_region +# } +# exists = kingdom +# OR = { +# NOT = { exists = kingdom.holder } +# AND = { +# exists = kingdom.holder +# OR = { +# kingdom.holder = scope:title_assignment +# kingdom.holder = { +# is_vassal_of = scope:title_assignment +# } +# } +# } +# } +# holder.top_liege = scope:title_assignment +# } +# if = { +# limit = { +# NOT = { +# kingdom = { +# is_in_list = assigned_kingdoms +# } +# } +# } +# kingdom = { +# set_de_jure_liege_title = scope:title_assignment.primary_title +# add_to_list = assigned_kingdoms +# } +# } +# } +# change_mongol_successor_illegal_government = yes +# } +# } +# scope:mongolia_ruler = { +# #Allocate tributaries of mongol empire or give them independence +# trigger_event = { +# id = mongol_invasion.3000 +# days = 1 +# } +# #Break off exclaves +# trigger_event = { +# id = mongol_invasion.3200 +# days = 1 +# } +# } +# every_in_list = { +# list = selected_mongol_heirs +# limit = { +# highest_held_title_tier >= tier_empire +# NOT = { +# this = scope:mongolia_ruler +# } +# } +# #Break off exclaves +# trigger_event = { +# id = mongol_invasion.3200 +# days = 1 +# } +# } +#} +# +## Special stuff for player Temüjin, disbursed in event conqueror.0001 +#temujin_conqueror_bonuses_effect = { +# add_gold = 100 +# add_dread = medium_dread +# add_prestige = 500 +# if = { +# limit = { +# prestige_level < 2 +# } +# add_prestige_level = 2 +# } +# else_if = { +# limit = { +# prestige_level < 3 +# } +# add_prestige_level = 1 +# } +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# } +# if = { +# limit = { +# OR = { +# has_realm_law = nomadic_authority_4 +# has_realm_law = nomadic_authority_5 +# } +# } +# domicile = { +# change_herd = { +# add = nomadic_authority_level_2_requirement +# } +# } +# } +# else = { +# domicile = { +# change_herd = { +# value = nomadic_authority_level_4_requirement +# } +# } +# } +# +# if = { +# limit = { +# NOR = { +# has_realm_law = nomadic_authority_5 +# has_realm_law = nomadic_authority_4 +# } +# } +# hidden_effect = { +# 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 +# } +# } +# add_realm_law_skip_effects = nomadic_authority_4 +# } +# } +# if = { +# limit = { +# is_decision_on_cooldown = nomad_higher_tier_title_decision +# } +# remove_decision_cooldown = nomad_higher_tier_title_decision +# } +# custom_tooltip = temujin_horde_gathers_tt +# trigger_event = { +# id = mpo_greatest_of_khans.1010 +# months = { 3 9 } +# } +#} +# +#convert_great_yuan_to_admin_effect = { +# save_scope_as = administrative_liege +# +# #Create cadet branch to ensure you have a domicile +# if = { +# limit = { +# exists = house.house_head +# NOT = { +# this = house.house_head +# } +# } +# #Create cadet branch +# found_cadet_house_decision_effect = { +# CHARACTER = scope:administrative_liege +# PRESTIGE = 0 +# } +# house = { +# set_coa = scope:administrative_liege.capital_province.barony +# } +# } +# change_to_administrative_effect = yes +# +# #Direct Vassals who fulfill the tgp_mongol_vassal_will_become_admin criteria are converted. Vassals above 25 opinion always accept +# #Vassals are converted as a hierarchy. If a king is converted we convert all who are valid below that king (so his dukes, their counts, and their barons) are all converted. +# #If a vassal does not convert (because of not accepting or because they are outside of the de jure empire, etc) then the vassals below them are _not_ converted either. +# +# #Human vassals are given a choice to convert or not in the ping event, even if powerful or having very good relation. +# +# hidden_effect = { +# save_scope_as = actor +# every_vassal = { +# limit = { +# tgp_mongol_vassal_will_become_admin = yes +# } +# save_scope_as = recipient +# change_to_administrative_effect = yes +# every_vassal = { #Everyone below also converts (could be Counts, could be Dukes) +# limit = { +# tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops +# is_ai = yes +# } +# save_scope_as = recipient +# change_to_administrative_effect = yes +# every_vassal = { #Everyone below also converts (Could be Counts, could be Barons) +# limit = { +# tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops +# is_ai = yes +# } +# save_scope_as = recipient +# change_to_administrative_effect = yes +# every_vassal = { #Everyone below also converts (could be Barons) +# limit = { +# tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops +# is_ai = yes +# } +# save_scope_as = recipient +# change_to_administrative_effect = yes +# } +# } +# } +# } +# } +# +# if = { +# limit = { +# NOT = { +# has_character_flag = latin_emp_force_admin_flag +# } +# top_liege = this +# } +# add_character_modifier = { +# modifier = first_admin_emperor +# } +# } +# +# change_influence = 1500 +# add_treasury = 2500 +# +# every_vassal_or_below = { +# limit = { +# is_ai = no +# tgp_mongol_vassal_will_become_admin = yes +# } +# trigger_event = ep3_decisions_event.4065 +# } +# if = { +# limit = { +# exists = capital_county +# NOT = { +# domicile.domicile_location.county ?= capital_county +# } +# } +# domicile = { +# move_domicile = scope:administrative_liege.capital_province +# } +# } +# if = { +# limit = { +# tgp_use_chinese_naming_trigger = yes +# highest_held_title_tier >= tier_empire +# primary_title = { +# has_custom_title_name = no +# } +# } +# trigger_event = { +# id = tgp_dynastic_cycle.9000 +# days = 1 +# } +# } +#} +# +#change_mongol_successor_illegal_government = { +# trigger_event = { +# id = mongol_invasion.3100 +# days = 1 +# } +#} +# +#mongol_breakup_purge_mongolia_exclaves_effect = { +# save_scope_as = mongol_exclaves_target +# +# capital_province.county = { +# every_connected_county = { # Start off by making a list of all disconnected Counties +# invert = yes +# max_naval_distance = 2000 +# allow_one_county_land_gap = yes +# add_to_list = disconnected_counties +# } +# } +# +# every_in_list = { +# list = disconnected_counties +# +# limit = { +# any_connected_county = { +# NOT = { is_in_list = disconnected_counties } +# max_naval_distance = 2000 +# } +# } +# add_to_list = cull_naval_connection_counties +# } +# +# while = { +# limit = { +# any_in_list = { +# list = cull_naval_connection_counties +# } +# } +# random_in_list = { +# list = cull_naval_connection_counties +# +# save_scope_as = cull_origin_county +# +# every_connected_county = { +# remove_from_list = cull_naval_connection_counties +# remove_from_list = disconnected_counties +# } +# remove_from_list = cull_naval_connection_counties +# remove_from_list = disconnected_counties +# } +# } +# +# every_in_list = { +# list = disconnected_counties +# +# limit = { +# target_is_de_jure_liege_or_above = scope:mongol_exclaves_target.primary_title +# } +# add_to_list = cull_de_jure_connection_counties +# } +# +# while = { +# limit = { +# any_in_list = { +# list = cull_de_jure_connection_counties +# } +# } +# random_in_list = { +# list = cull_de_jure_connection_counties +# +# save_scope_as = cull_origin_county +# +# every_connected_county = { +# remove_from_list = cull_de_jure_connection_counties +# remove_from_list = disconnected_counties +# } +# remove_from_list = cull_de_jure_connection_counties +# remove_from_list = disconnected_counties +# } +# } +# #Make them vassals if they are de jure vassals of another successor +# every_in_list = { # Transfer Kings first +# list = disconnected_counties +# +# limit = { +# holder.primary_title = { +# tier = tier_kingdom +# empire.holder ?= { +# OR = { +# is_in_list = selected_mongol_heirs +# primary_title = title:e_mongolia +# } +# NOT = { +# this = scope:mongol_exclaves_target +# } +# } +# } +# NOR = { +# holder = scope:mongol_exclaves_target +# holder = { +# any_sub_realm_title = { +# tier = tier_county +# NOT = { is_in_list = disconnected_counties } +# } +# } +# } +# } +# holder = { +# create_title_and_vassal_change = { +# type = swear_fealty +# save_scope_as = change +# add_claim_on_loss = no +# } +# change_liege = { +# liege = primary_title.empire.holder +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# every_realm_county = { +# limit = { +# is_in_list = disconnected_counties +# } +# remove_from_list = disconnected_counties +# } +# } +# } +# every_in_list = { # Transfer Dukes second +# list = disconnected_counties +# +# limit = { +# holder.primary_title = { +# tier = tier_duchy +# empire.holder ?= { +# OR = { +# is_in_list = selected_mongol_heirs +# primary_title = title:e_mongolia +# } +# NOT = { +# this = scope:mongol_exclaves_target +# } +# } +# } +# NOR = { +# holder = scope:mongol_exclaves_target +# holder = { +# any_sub_realm_title = { +# tier = tier_county +# NOT = { is_in_list = disconnected_counties } +# } +# } +# } +# } +# holder = { +# create_title_and_vassal_change = { +# type = swear_fealty +# save_scope_as = change +# add_claim_on_loss = no +# } +# change_liege = { +# liege = primary_title.empire.holder +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# every_realm_county = { +# limit = { +# is_in_list = disconnected_counties +# } +# remove_from_list = disconnected_counties +# } +# } +# } +# +# every_in_list = { # transfer Counts last +# list = disconnected_counties +# +# limit = { +# holder.primary_title = { +# tier = tier_county +# empire.holder ?= { +# OR = { +# is_in_list = selected_mongol_heirs +# primary_title = title:e_mongolia +# } +# NOT = { +# this = scope:mongol_exclaves_target +# } +# } +# } +# NOR = { +# holder = scope:mongol_exclaves_target +# holder = { +# any_sub_realm_title = { +# tier = tier_county +# NOT = { is_in_list = disconnected_counties } +# } +# } +# } +# } +# holder = { +# create_title_and_vassal_change = { +# type = swear_fealty +# save_scope_as = change +# add_claim_on_loss = no +# } +# change_liege = { +# liege = primary_title.empire.holder +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# every_realm_county = { +# limit = { +# is_in_list = disconnected_counties +# } +# remove_from_list = disconnected_counties +# } +# } +# } +# every_in_list = { # Finally, transfer contiguous areas under someone from the pool +# list = disconnected_counties +# +# limit = { +# empire.holder ?= { +# OR = { +# is_in_list = selected_mongol_heirs +# primary_title = title:e_mongolia +# } +# NOT = { +# this = scope:mongol_exclaves_target +# } +# } +# OR = { +# holder.top_liege = scope:mongol_exclaves_target +# holder = scope:mongol_exclaves_target +# } +# } +# +# save_scope_as = county_of_origin +# +# every_pool_character = { +# province = scope:county_of_origin.title_province +# limit = { +# is_available_adult = yes +# } +# add_to_list = potential_holders +# } +# +# every_pool_character = { +# province = scope:county_of_origin.holder.capital_province +# limit = { +# is_available_adult = yes +# } +# add_to_list = potential_holders +# } +# +# if = { +# limit = { +# NOT = { +# any_in_list = { +# list = potential_holders +# is_available_adult = yes +# } +# } +# } +# create_character = { +# location = scope:county_of_origin.title_province +# culture = scope:county_of_origin.culture +# faith = scope:county_of_origin.faith +# gender_female_chance = 50 +# age = 32 +# save_scope_as = backup_character +# } +# scope:backup_character = { +# add_to_list = potential_holders +# } +# } +# +# random_in_list = { +# list = potential_holders +# limit = { +# is_available_adult = yes +# has_claim_on = scope:county_of_origin +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# culture = scope:county_of_origin.culture +# faith = scope:county_of_origin.faith +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# culture = scope:county_of_origin.culture +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# faith = scope:county_of_origin.faith +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# has_claim_on = scope:county_of_origin +# } +# alternative_limit = { +# is_available_adult = yes +# culture = scope:county_of_origin.culture +# faith = scope:county_of_origin.faith +# } +# alternative_limit = { +# is_available_adult = yes +# culture = scope:county_of_origin.culture +# } +# alternative_limit = { +# is_available_adult = yes +# faith = scope:county_of_origin.faith +# } +# alternative_limit = { +# is_available_adult = yes +# } +# +# save_scope_as = new_county_holder +# add_character_flag = { +# flag = domicile_culture_and_faith_check +# days = 1 +# } +# +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = disconnected_counties +# limit = { +# OR = { +# holder.top_liege = scope:mongol_exclaves_target +# holder = scope:mongol_exclaves_target +# } +# is_connected_to = { +# target = scope:county_of_origin +# } +# NOT ={ +# is_connected_to = { +# target = scope:mongol_exclaves_target.capital_province.county +# } +# } +# } +# change_title_holder = { +# holder = scope:new_county_holder +# change = scope:change +# } +# #scope:new_county_holder = { get_title = prev } +# } +# resolve_title_and_vassal_change = scope:change +# +# create_title_and_vassal_change = { +# type = swear_fealty +# save_scope_as = change +# add_claim_on_loss = no +# } +# change_liege = { +# liege = primary_title.empire.holder +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# # This system should not generate strange-culture nomads +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# domicile.domicile_culture != scope:new_county_holder.capital_county.culture +# } +# domicile = { +# set_domicile_culture = scope:new_county_holder.capital_county.culture +# } +# } +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# domicile.domicile_faith != scope:new_county_holder.capital_county.faith +# } +# domicile = { +# set_domicile_faith = scope:new_county_holder.capital_county.faith +# } +# } +# if = { # Just in case they need to create a duchy +# limit = { +# gold < 500 +# } +# add_gold = 500 +# } +# } +# remove_from_list = disconnected_counties +# } +# +# #Make the rest independent +# every_in_list = { # Release Kings first +# list = disconnected_counties +# +# limit = { +# holder.primary_title.tier = tier_kingdom +# NOR = { +# holder = scope:mongol_exclaves_target +# holder = { +# any_sub_realm_title = { +# tier = tier_county +# NOT = { is_in_list = disconnected_counties } +# } +# } +# } +# } +# holder = { +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = change +# add_claim_on_loss = no +# } +# becomes_independent = { +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# } +# } +# +# every_in_list = { # Release Dukes second +# list = disconnected_counties +# +# limit = { +# holder.primary_title.tier = tier_duchy +# NOR = { +# holder = scope:mongol_exclaves_target +# holder = { +# any_sub_realm_title = { +# tier = tier_county +# NOT = { is_in_list = disconnected_counties } +# } +# } +# } +# } +# holder = { +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = change +# add_claim_on_loss = no +# } +# becomes_independent = { +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# } +# } +# +# every_in_list = { # Release Counts last +# list = disconnected_counties +# +# limit = { +# holder.primary_title.tier = tier_county +# NOR = { +# holder = scope:mongol_exclaves_target +# holder = { +# any_sub_realm_title = { +# tier = tier_county +# NOT = { is_in_list = disconnected_counties } +# } +# } +# } +# } +# holder = { +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = change +# add_claim_on_loss = no +# } +# becomes_independent = { +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# } +# } +# +# every_in_list = { # Finally, release contiguous areas under someone from the pool +# list = disconnected_counties +# +# limit = { +# OR = { +# holder.top_liege = scope:mongol_exclaves_target +# holder = scope:mongol_exclaves_target +# } +# } +# +# save_scope_as = county_of_origin +# +# every_pool_character = { +# province = scope:county_of_origin.title_province +# limit = { +# is_available_adult = yes +# } +# add_to_list = potential_holders +# } +# +# every_pool_character = { +# province = scope:county_of_origin.holder.capital_province +# limit = { +# is_available_adult = yes +# } +# add_to_list = potential_holders +# } +# +# if = { +# limit = { +# NOT = { +# any_in_list = { +# list = potential_holders +# is_available_adult = yes +# } +# } +# } +# create_character = { +# location = scope:county_of_origin.title_province +# culture = scope:county_of_origin.culture +# faith = scope:county_of_origin.faith +# gender_female_chance = 50 +# age = 32 +# save_scope_as = backup_character +# } +# scope:backup_character = { +# add_to_list = potential_holders +# } +# } +# +# random_in_list = { +# list = potential_holders +# limit = { +# is_available_adult = yes +# has_claim_on = scope:county_of_origin +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# culture = scope:county_of_origin.culture +# faith = scope:county_of_origin.faith +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# culture = scope:county_of_origin.culture +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# faith = scope:county_of_origin.faith +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# faith = { +# has_dominant_ruling_gender = prev +# } +# } +# alternative_limit = { +# is_available_adult = yes +# has_claim_on = scope:county_of_origin +# } +# alternative_limit = { +# is_available_adult = yes +# culture = scope:county_of_origin.culture +# faith = scope:county_of_origin.faith +# } +# alternative_limit = { +# is_available_adult = yes +# culture = scope:county_of_origin.culture +# } +# alternative_limit = { +# is_available_adult = yes +# faith = scope:county_of_origin.faith +# } +# alternative_limit = { +# is_available_adult = yes +# } +# +# save_scope_as = new_county_holder +# add_character_flag = { +# flag = domicile_culture_and_faith_check +# days = 1 +# } +# #get_title = scope:county_of_origin +# +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = disconnected_counties +# limit = { +# OR = { +# holder.top_liege = scope:mongol_exclaves_target +# holder = scope:mongol_exclaves_target +# } +# is_connected_to = { +# target = scope:county_of_origin +# } +# NOT ={ +# is_connected_to = { +# target = scope:mongol_exclaves_target.capital_province.county +# } +# } +# } +# change_title_holder = { +# holder = scope:new_county_holder +# change = scope:change +# } +# #scope:new_county_holder = { get_title = prev } +# } +# becomes_independent = { +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# # This system should not generate strange-culture nomads +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# domicile.domicile_culture != scope:new_county_holder.capital_county.culture +# } +# domicile = { +# set_domicile_culture = scope:new_county_holder.capital_county.culture +# } +# } +# if = { +# limit = { +# government_has_flag = government_is_nomadic +# domicile.domicile_faith != scope:new_county_holder.capital_county.faith +# } +# domicile = { +# set_domicile_faith = scope:new_county_holder.capital_county.faith +# } +# } +# if = { # Just in case they need to create a duchy +# limit = { +# gold < 500 +# } +# add_gold = 500 +# } +# } +# } +#} +# \ No newline at end of file diff --git a/common/scripted_effects/06_dlc_ce1_legend_effects.txt b/common/scripted_effects/06_dlc_ce1_legend_effects.txt index 1fe02fe6..7af519be 100644 --- a/common/scripted_effects/06_dlc_ce1_legend_effects.txt +++ b/common/scripted_effects/06_dlc_ce1_legend_effects.txt @@ -1545,7 +1545,7 @@ get_appropriate_ancient_people = { root.culture = { culture_overlaps_geographical_region = custom_roman_full_borders } - religion = religion:hellenism_religion + religion = religion:theomach_religion religion = { AND = { is_in_family = rf_abrahamic @@ -1579,7 +1579,7 @@ get_appropriate_exotic_location = { trigger = { OR = { religion = { is_in_family = rf_abrahamic } - religion = religion:hellenism_religion + religion = religion:theomach_religion culture = { has_cultural_pillar = heritage_byzantine } culture = { has_cultural_pillar = heritage_ancient_greek } culture = { has_cultural_pillar = heritage_latin } @@ -1594,7 +1594,7 @@ get_appropriate_exotic_location = { trigger = { OR = { religion = { is_in_family = rf_abrahamic } - religion = religion:hellenism_religion + religion = religion:theomach_religion culture = { has_cultural_pillar = heritage_byzantine } culture = { has_cultural_pillar = heritage_ancient_greek } culture = { has_cultural_pillar = heritage_latin } @@ -1870,7 +1870,7 @@ generate_religion_descent_effect = { } else_if = { limit = { - $RELIGION$ = religion:hellenism_religion + $RELIGION$ = religion:theomach_religion } generate_godly_descent_seed_support_effect = { FAITH = hellenism diff --git a/common/scripted_triggers/00_available_for_events_triggers.txt b/common/scripted_triggers/00_available_for_events_triggers.txt index 8f607a7d..834de884 100644 --- a/common/scripted_triggers/00_available_for_events_triggers.txt +++ b/common/scripted_triggers/00_available_for_events_triggers.txt @@ -925,7 +925,7 @@ roman_restoration_is_valid_roman_empire_trigger = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion - religion = religion:hellenism_religion #Or Hellenic + religion = religion:theomach_religion #Or Hellenic } NOT = { has_ep3_dlc_trigger = yes } } diff --git a/common/scripted_triggers/00_building_requirement_triggers.txt b/common/scripted_triggers/00_building_requirement_triggers.txt index 4357f25f..c64a5e71 100644 --- a/common/scripted_triggers/00_building_requirement_triggers.txt +++ b/common/scripted_triggers/00_building_requirement_triggers.txt @@ -869,9 +869,9 @@ religious_special_building_exclusion_trigger = { # checks if any special buildin } AND = { # Christian NOR = { - barony.holder.religion:eastern_orthodox_religion - barony.holder.religion:catholic_religion - barony.holder.religion:protestant_religion + barony.holder.religion = religion:eastern_orthodox_religion + barony.holder.religion = religion:catholic_religion + barony.holder.religion = religion:protestant_religion } christian_special_building_trigger = yes } diff --git a/common/scripted_triggers/00_major_decision_triggers.txt b/common/scripted_triggers/00_major_decision_triggers.txt index 4d434ede..e4c07e0e 100644 --- a/common/scripted_triggers/00_major_decision_triggers.txt +++ b/common/scripted_triggers/00_major_decision_triggers.txt @@ -231,7 +231,7 @@ launch_hungarian_migration_misplaced_count_suitable_liege_trigger = { # religion = { # OR = { # is_in_family = rf_abrahamic -# this = religion:hellenism_religion +# this = religion:theomach_religion # } # } # culture = { diff --git a/common/scripted_triggers/03_fp2_scripted_triggers.txt b/common/scripted_triggers/03_fp2_scripted_triggers.txt index 516d9af8..a4ed440a 100644 --- a/common/scripted_triggers/03_fp2_scripted_triggers.txt +++ b/common/scripted_triggers/03_fp2_scripted_triggers.txt @@ -57,18 +57,18 @@ eligible_for_fp2_dynasty_legacies_trigger = { } -is_toledo_ownership_valid_trigger = { - title:c_toledo.holder = { - OR = { - this = root - liege = root - top_liege = root - } - faith = { - portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } - } - } -} +#is_toledo_ownership_valid_trigger = { +# title:c_toledo.holder = { +# OR = { +# this = root +# liege = root +# top_liege = root +# } +# faith = { +# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } +# } +# } +#} ################################################## # Cultural & Regional Triggers diff --git a/common/scripted_triggers/07_ep3_triggers.txt b/common/scripted_triggers/07_ep3_triggers.txt index 7a083c69..b76307bd 100644 --- a/common/scripted_triggers/07_ep3_triggers.txt +++ b/common/scripted_triggers/07_ep3_triggers.txt @@ -36,52 +36,42 @@ is_roman_emperor_primary_title_excluding_byzantium_trigger = { always = no } -#valid_for_byz_emperor_content_trigger = { -# has_ep3_dlc_trigger = yes -# culture = { -# OR = { -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_caucasian -# } -# } -# OR = { -# is_roman_emperor_primary_title_trigger = yes -# AND = { -# culture = { -# OR = { -# this = culture:greek -# any_parent_culture_or_above = { this = culture:greek } -# } -# } -# highest_held_title_tier >= tier_empire -# } -# } -#} +valid_for_byz_emperor_content_trigger = { + has_ep3_dlc_trigger = yes + culture = { + OR = { + has_cultural_pillar = heritage_greek + } + } + OR = { + is_roman_emperor_primary_title_trigger = yes + AND = { + culture = { + has_cultural_pillar = heritage_greek + } + highest_held_title_tier >= tier_empire + } + } +} -#valid_for_byz_governor_content_trigger = { -# has_ep3_dlc_trigger = yes -# is_governor = yes -# top_liege.culture = { -# OR = { -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_caucasian -# } -# } -# top_liege = { -# OR = { -# is_roman_emperor_primary_title_trigger = yes -# AND = { -# culture = { -# OR = { -# this = culture:greek -# any_parent_culture_or_above = { this = culture:greek } -# } -# } -# highest_held_title_tier >= tier_empire -# } -# } -# } -#} +valid_for_byz_governor_content_trigger = { + has_ep3_dlc_trigger = yes + is_governor = yes + top_liege.culture = { + has_cultural_pillar = heritage_greek + } + top_liege = { + OR = { + is_roman_emperor_primary_title_trigger = yes + AND = { + culture = { + has_cultural_pillar = heritage_greek + } + highest_held_title_tier >= tier_empire + } + } + } +} # valid_for_byz_succession_trigger = { is_eunuch_trigger = no diff --git a/common/scripted_triggers/10_ach_scripted_triggers.txt b/common/scripted_triggers/10_ach_scripted_triggers.txt index 25b000ed..3a504450 100644 --- a/common/scripted_triggers/10_ach_scripted_triggers.txt +++ b/common/scripted_triggers/10_ach_scripted_triggers.txt @@ -119,7 +119,7 @@ coronation_proper_artifact_crown_trigger = { this = religion:catholic_religion this = religion:protestant_religion # this = religion:dualism_religion -# this = religion:hellenism_religion +# this = religion:theomach_religion this = religion:judaism_religion # this = religion:kushitism_religion # this = religion:siberian_religion diff --git a/common/traits/00_traits.txt b/common/traits/00_traits.txt index 92abb5c7..a4eae733 100644 --- a/common/traits/00_traits.txt +++ b/common/traits/00_traits.txt @@ -9010,7 +9010,7 @@ faith_warrior = { desc = trait_crusader_germanic } # triggered_desc = { -# trigger = { faith = { religion_tag = hellenism_religion } } +# trigger = { faith = { religion_tag = theomach_religion } } # desc = trait_crusader_hellenism # } triggered_desc = { @@ -14095,13 +14095,13 @@ crusader_king = { } # triggered_desc = { # trigger = { -# faith = { religion_tag = hellenism_religion } +# faith = { religion_tag = theomach_religion } # is_female = yes # } # desc = trait_crusader_king_hellenism_female # } # triggered_desc = { -# trigger = { faith = { religion_tag = hellenism_religion } } +# trigger = { faith = { religion_tag = theomach_religion } } # desc = trait_crusader_king_hellenism_male # } # triggered_desc = { diff --git a/events/decisions_events/iberia_north_africa_events.txt b/events/decisions_events/iberia_north_africa_events.txt index 05af4bb8..693e8486 100644 --- a/events/decisions_events/iberia_north_africa_events.txt +++ b/events/decisions_events/iberia_north_africa_events.txt @@ -2047,7 +2047,7 @@ # location = root.capital_province # gender_female_chance = root_faith_dominant_gender_female_chance # culture = root.culture -# faith = faith:rabbinism +# faith = faith:congregationist # random_traits = yes # trait = education_learning_2 # learning = { 6 12 } @@ -2260,7 +2260,7 @@ # location = root.capital_province # gender_female_chance = root_faith_dominant_gender_female_chance # culture = root.culture -# faith = faith:rabbinism +# faith = faith:congregationist # random_traits = yes # trait = scholar # trait = lifestyle_physician @@ -2543,7 +2543,7 @@ # location = root.capital_province # gender_female_chance = root_faith_dominant_gender_female_chance # culture = root.culture -# faith = faith:rabbinism +# faith = faith:congregationist # random_traits = yes # trait = scholar # trait = diplomatic_court_1 diff --git a/events/decisions_events/major_decisions_events.txt b/events/decisions_events/major_decisions_events.txt index f739f47e..0946e9d3 100644 --- a/events/decisions_events/major_decisions_events.txt +++ b/events/decisions_events/major_decisions_events.txt @@ -1692,42 +1692,43 @@ major_decisions.3500 = { name = major_decisions.3500.a } } - -################### -# Cossack Kingdom # -################### - -#Create Cossack Kingdom -major_decisions.3600 = { - type = character_event - title = major_decisions.3600.t - desc = major_decisions.3600.desc - theme = crown - override_background = council_chamber - - window = big_event_window - - override_effect_2d = { reference = legend_glow } - - left_portrait = { - character = root - animation = sword_coup_degrace - camera = camera_torso_scheme_right_look_right - } - - immediate = { - create_cossack_scripted_effect = yes - } - - option = { - name = major_decisions.3600.a - convert_family_culture_and_notify_vassals_effect = { - OLD_CULTURE = scope:founder_culture - NEW_CULTURE = scope:new_culture - CONVERTER = root - } - } - option = { - name = major_decisions.3600.b - } -} +# +#################### +## Cossack Kingdom # +#################### +# +##Create Cossack Kingdom +#major_decisions.3600 = { +# type = character_event +# title = major_decisions.3600.t +# desc = major_decisions.3600.desc +# theme = crown +# override_background = council_chamber +# +# window = big_event_window +# +# override_effect_2d = { reference = legend_glow } +# +# left_portrait = { +# character = root +# animation = sword_coup_degrace +# camera = camera_torso_scheme_right_look_right +# } +# +# immediate = { +# create_cossack_scripted_effect = yes +# } +# +# option = { +# name = major_decisions.3600.a +# convert_family_culture_and_notify_vassals_effect = { +# OLD_CULTURE = scope:founder_culture +# NEW_CULTURE = scope:new_culture +# CONVERTER = root +# } +# } +# option = { +# name = major_decisions.3600.b +# } +#} +# \ No newline at end of file diff --git a/events/decisions_events/mpo_greatest_of_khans_events.txt b/events/decisions_events/mpo_greatest_of_khans_events.txt index dceca748..f904a35a 100644 --- a/events/decisions_events/mpo_greatest_of_khans_events.txt +++ b/events/decisions_events/mpo_greatest_of_khans_events.txt @@ -1423,10 +1423,10 @@ mpo_greatest_of_khans.0003 = { } } } - modifier = { - factor = 100 - this = character:125501 - } +# modifier = { +# factor = 100 +# this = character:125501 +# } } } option = { diff --git a/events/decisions_events/roman_restoration_events.txt b/events/decisions_events/roman_restoration_events.txt index 0f7d09ac..912b968f 100644 --- a/events/decisions_events/roman_restoration_events.txt +++ b/events/decisions_events/roman_restoration_events.txt @@ -53,7 +53,7 @@ # # Doing it as Hellenics # triggered_desc = { # trigger = { -# faith.religion = faith:hellenic_pagan.religion +# faith.religion = faith:megalocratic.religion # } # desc = roman_restoration.0001.desc.hellenics # } @@ -96,7 +96,7 @@ # # Christians freaking out. # triggered_desc = { # trigger = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # } # desc = roman_restoration.0002.desc.hellenics @@ -125,7 +125,7 @@ # name = { # Regular # trigger = { # NAND = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # } # NOT = { @@ -137,7 +137,7 @@ # name = { # Regular HRE # trigger = { # NAND = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # } # has_title = title:e_hre @@ -146,7 +146,7 @@ # } # name = { # Crazy Hellenics # trigger = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # NOT = { # has_title = title:e_hre @@ -156,7 +156,7 @@ # } # name = { # Crazy Hellenics HRE # trigger = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # has_title = title:e_hre # } @@ -403,7 +403,7 @@ # is_roman_emperor_trigger = yes # OR = { # faith.religion = faith:roman_catholic.religion # Either Christian -# faith.religion = faith:hellenic_pagan.religion # Or Hellenic +# faith.religion = faith:megalocratic.religion # Or Hellenic # } #} # @@ -1019,7 +1019,7 @@ # # Hellenic Roman Empire # triggered_desc = { # trigger = { -# faith.religion = faith:hellenic_pagan.religion +# faith.religion = faith:megalocratic.religion # } # desc = roman_restoration.0024.desc.hellenic # } @@ -1028,7 +1028,7 @@ # trigger = { # NOR = { # faith.religion = faith:roman_catholic.religion -# faith.religion = faith:hellenic_pagan.religion +# faith.religion = faith:megalocratic.religion # } # } # desc = roman_restoration.0024.desc.fallback @@ -2155,7 +2155,7 @@ # # Hellenic Reaction # triggered_desc = { # trigger = { -# root.faith.religion = faith:hellenic_pagan.religion +# root.faith.religion = faith:megalocratic.religion # } # desc = roman_restoration.0130.desc.hellenic # } @@ -2164,7 +2164,7 @@ # trigger = { # NOR = { # root.faith.religion = faith:aqlani.religion -# root.faith.religion = faith:hellenic_pagan.religion +# root.faith.religion = faith:megalocratic.religion # } # } # desc = roman_restoration.0130.desc.fallback @@ -2183,7 +2183,7 @@ # # Current Pope is crucified # triggered_desc = { # trigger = { -# root.faith.religion = faith:hellenic_pagan.religion +# root.faith.religion = faith:megalocratic.religion # } # desc = roman_restoration.0130.desc.pope.crucifixion # } @@ -2205,7 +2205,7 @@ # trigger = { # root.faith = { # OR = { -# religion = faith:hellenic_pagan.religion +# religion = faith:megalocratic.religion # has_doctrine_parameter = human_sacrifice_active # } # } @@ -2241,7 +2241,7 @@ # } # name = { # trigger = { -# faith.religion = faith:hellenic_pagan.religion +# faith.religion = faith:megalocratic.religion # } # text = roman_restoration.0130.a.b # } @@ -2249,7 +2249,7 @@ # trigger = { # NOR = { # faith.religion = faith:aqlani.religion -# faith.religion = faith:hellenic_pagan.religion +# faith.religion = faith:megalocratic.religion # } # } # text = roman_restoration.0130.a.c @@ -2304,7 +2304,7 @@ # trigger = { # scope:scoped_destroyer.faith = { # OR = { -# religion = faith:hellenic_pagan.religion +# religion = faith:megalocratic.religion # has_doctrine_parameter = human_sacrifice_active # } # } @@ -2510,7 +2510,7 @@ # triggered_desc = { # trigger = { # NOT = { -# faith.religion = faith:hellenic_pagan.religion +# faith.religion = faith:megalocratic.religion # } # } # desc = roman_restoration.0001.desc.christians @@ -2518,7 +2518,7 @@ # # Doing it as Hellenics # triggered_desc = { # trigger = { -# faith.religion = faith:hellenic_pagan.religion +# faith.religion = faith:megalocratic.religion # } # desc = roman_restoration.0001.desc.hellenics # } @@ -2586,7 +2586,7 @@ # triggered_desc = { # trigger = { # NOT = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # } # } @@ -2595,7 +2595,7 @@ # # Christians freaking out. # triggered_desc = { # trigger = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # } # desc = roman_restoration.0002.desc.hellenics @@ -2613,7 +2613,7 @@ # name = roman_restoration.0002.a # trigger = { # NOT = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # } # NOR = { @@ -2626,7 +2626,7 @@ # name = roman_restoration.0002.b # trigger = { # NOT = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # } # OR = { @@ -2638,7 +2638,7 @@ # option = { # Crazy Hellenics # name = roman_restoration.0002.c # trigger = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # NOR = { # has_title = title:e_byzantium @@ -2649,7 +2649,7 @@ # option = { # Crazy Hellenics vs Byzantium/HRE # name = roman_restoration.0002.d # trigger = { -# scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion } +# scope:scoped_emperor = { faith.religion = faith:megalocratic.religion } # faith.religion = faith:roman_catholic.religion # OR = { # has_title = title:e_byzantium diff --git a/events/dlc/ep3/ep3_akolouthos_events.txt b/events/dlc/ep3/ep3_akolouthos_events.txt index d6df5224..fe9b2498 100644 --- a/events/dlc/ep3/ep3_akolouthos_events.txt +++ b/events/dlc/ep3/ep3_akolouthos_events.txt @@ -1,332 +1,333 @@ -namespace = ep3_akolouthos_events - -# Varangian-eligible courtier gains Varangian or Varangian gains Loyal -ep3_akolouthos_events.1000 = { - hidden = yes - - trigger = { - OR = { - # A varangian who isn't loyal - any_courtier = { - has_trait = varangian - NOT = { has_trait = loyal } - } - #An eligible Varangian who doesn't have the trait - any_courtier = { - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 1 - any_court_position_holder = { - type = bodyguard_court_position - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - } - modifier = { - add = 1 - any_court_position_holder = { - type = bodyguard_court_position - NOT = { has_trait = loyal } - has_trait = varangian - } - } - modifier = { - add = 1 - any_court_position_holder = { - type = akolouthos_court_position - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - } - } - - immediate = { - random_court_position_holder = { - type = akolouthos_court_position - save_scope_as = akolouthos - } - #Most important that Varangian Akolouthos becomes Varangian - if = { - limit = { - any_court_position_holder = { - type = akolouthos_court_position - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - } - random_court_position_holder = { - type = akolouthos_court_position - limit = { - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - save_scope_as = trait_getter - } - ep3_send_akolouthos_message_varangian = yes - } - #Second-most important: Varangian bodyguard becomes Varangian - else_if = { - limit = { - any_court_position_holder = { - type = bodyguard_court_position - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - } - random_court_position_holder = { - type = bodyguard_court_position - limit = { - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - save_scope_as = trait_getter - } - ep3_send_akolouthos_message_varangian = yes - } - #Then either add loyal to a Varangian bodyguard or to Akolouthos - else_if = { - limit = { - OR = { - any_court_position_holder = { - type = bodyguard_court_position - has_trait = varangian - NOT = { has_trait = loyal } - } - any_court_position_holder = { - type = akolouthos_court_position - has_trait = varangian - NOT = { has_trait = loyal } - } - } - } - random_list = { - #Add loyal to a Varangian bodyguard - 10 = { - trigger = { - any_court_position_holder = { - type = bodyguard_court_position - has_trait = varangian - NOT = { has_trait = loyal } - } - } - random_court_position_holder = { - type = bodyguard_court_position - limit = { - has_trait = varangian - NOT = { has_trait = loyal } - } - save_scope_as = trait_getter - } - ep3_send_akolouthos_message_loyal = yes - } - #Add loyal to a Varangian akolouthos - 10 = { - trigger = { - any_court_position_holder = { - type = akolouthos_court_position - has_trait = varangian - NOT = { has_trait = loyal } - } - } - random_court_position_holder = { - type = akolouthos_court_position - limit = { - has_trait = varangian - NOT = { has_trait = loyal } - } - save_scope_as = trait_getter - } - ep3_send_akolouthos_message_loyal = yes - } - } - } - #Add Varangian to some non-Varangian Varangian - else_if = { - limit = { - any_courtier = { - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - } - random_courtier = { - limit = { - NOT = { has_trait = varangian } - ep3_varangian_trigger = yes - } - save_scope_as = trait_getter - } - ep3_send_akolouthos_message_varangian = yes - } - #Add loyal to some non-bodyguard Varangian - else = { - random_courtier = { - limit = { - has_trait = varangian - NOT = { has_trait = loyal } - } - save_scope_as = trait_getter - } - ep3_send_akolouthos_message_loyal = yes - } - } -} - -# Akolouthos recruits Varangian -ep3_akolouthos_events.1001 = { - hidden = yes - - trigger = { - #Don't really need this if root is swarming in Varangians already - NOT = { - any_courtier_or_guest = { - count >= 8 - ep3_varangian_trigger = yes - } - } - } - - weight_multiplier = { - base = 1 - #Weigh up chances if Varangians are needed to fill posts - modifier = { - add = 1 - NOT = { - any_courtier_or_guest = { - count >= 3 - ep3_varangian_trigger = yes - } - } - } - } - - immediate = { - random_court_position_holder = { - type = akolouthos_court_position - save_scope_as = akolouthos - } - #Find a candidate in the local pool - if = { - limit = { - is_landed = yes - any_pool_character = { - province = root.capital_province - ep3_varangian_trigger = yes - prowess > low_skill_rating - } - } - random_pool_character = { - province = root.capital_province - limit = { - ep3_varangian_trigger = yes - prowess > low_skill_rating - } - save_scope_as = new_varangian - } - scope:new_varangian = { - if = { - limit = { - NOT = { has_trait = varangian } - } - hidden_effect = { - add_trait = varangian - } - } - } - } - #Find a candidate in pools of akolouthos's culture - else_if = { - limit = { - scope:akolouthos = { - ep3_varangian_trigger = yes - } - exists = scope:akolouthos.culture.culture_head - scope:akolouthos.culture.culture_head = { - is_landed = yes - } - any_pool_character = { - province = scope:akolouthos.culture.culture_head.capital_province - ep3_varangian_trigger = yes - prowess >= low_skill_rating - } - } - scope:akolouthos.culture.culture_head = { - save_scope_as = akolouthos_culture_head - } - random_pool_character = { - province = scope:akolouthos_culture_head.capital_province - limit = { - ep3_varangian_trigger = yes - prowess > low_skill_rating - } - save_scope_as = new_varangian - } - scope:new_varangian = { - if = { - limit = { - NOT = { has_trait = varangian } - } - hidden_effect = { - add_trait = varangian - } - } - } - } - #Create a candidate - else_if = { - limit = { - scope:akolouthos = { - ep3_varangian_trigger = yes - } - } - create_character = { - template = varangian_template - location = root.location - culture = scope:akolouthos.culture - faith = scope:akolouthos.faith - dynasty = none - save_scope_as = new_varangian - } - } - else_if = { - limit = { - current_date < 990 - } - #Norse - create_character = { - template = varangian_template - location = root.location - culture = culture:norse - faith = root.faith - dynasty = none - save_scope_as = new_varangian - } - } - else = { - #Anglo-Saxon - create_character = { - template = varangian_template - location = root.location - culture = culture:anglo_saxon - faith = root.faith - dynasty = none - save_scope_as = new_varangian - } - } - send_interface_message = { - type = event_martial_good_with_text - title = ep3_akolouthos_events.1001 - desc = ep3_akolouthos_events.1001_notification_tooltip - tooltip = akolouthos_effect_tooltip - left_icon = scope:new_varangian - right_icon = scope:akolouthos - add_courtier = scope:new_varangian - } - } -} +#namespace = ep3_akolouthos_events +# +## Varangian-eligible courtier gains Varangian or Varangian gains Loyal +#ep3_akolouthos_events.1000 = { +# hidden = yes +# +# trigger = { +# OR = { +# # A varangian who isn't loyal +# any_courtier = { +# has_trait = varangian +# NOT = { has_trait = loyal } +# } +# #An eligible Varangian who doesn't have the trait +# any_courtier = { +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# } +# } +# +# weight_multiplier = { +# base = 1 +# modifier = { +# add = 1 +# any_court_position_holder = { +# type = bodyguard_court_position +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# } +# modifier = { +# add = 1 +# any_court_position_holder = { +# type = bodyguard_court_position +# NOT = { has_trait = loyal } +# has_trait = varangian +# } +# } +# modifier = { +# add = 1 +# any_court_position_holder = { +# type = akolouthos_court_position +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# } +# } +# +# immediate = { +# random_court_position_holder = { +# type = akolouthos_court_position +# save_scope_as = akolouthos +# } +# #Most important that Varangian Akolouthos becomes Varangian +# if = { +# limit = { +# any_court_position_holder = { +# type = akolouthos_court_position +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# } +# random_court_position_holder = { +# type = akolouthos_court_position +# limit = { +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# save_scope_as = trait_getter +# } +# ep3_send_akolouthos_message_varangian = yes +# } +# #Second-most important: Varangian bodyguard becomes Varangian +# else_if = { +# limit = { +# any_court_position_holder = { +# type = bodyguard_court_position +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# } +# random_court_position_holder = { +# type = bodyguard_court_position +# limit = { +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# save_scope_as = trait_getter +# } +# ep3_send_akolouthos_message_varangian = yes +# } +# #Then either add loyal to a Varangian bodyguard or to Akolouthos +# else_if = { +# limit = { +# OR = { +# any_court_position_holder = { +# type = bodyguard_court_position +# has_trait = varangian +# NOT = { has_trait = loyal } +# } +# any_court_position_holder = { +# type = akolouthos_court_position +# has_trait = varangian +# NOT = { has_trait = loyal } +# } +# } +# } +# random_list = { +# #Add loyal to a Varangian bodyguard +# 10 = { +# trigger = { +# any_court_position_holder = { +# type = bodyguard_court_position +# has_trait = varangian +# NOT = { has_trait = loyal } +# } +# } +# random_court_position_holder = { +# type = bodyguard_court_position +# limit = { +# has_trait = varangian +# NOT = { has_trait = loyal } +# } +# save_scope_as = trait_getter +# } +# ep3_send_akolouthos_message_loyal = yes +# } +# #Add loyal to a Varangian akolouthos +# 10 = { +# trigger = { +# any_court_position_holder = { +# type = akolouthos_court_position +# has_trait = varangian +# NOT = { has_trait = loyal } +# } +# } +# random_court_position_holder = { +# type = akolouthos_court_position +# limit = { +# has_trait = varangian +# NOT = { has_trait = loyal } +# } +# save_scope_as = trait_getter +# } +# ep3_send_akolouthos_message_loyal = yes +# } +# } +# } +# #Add Varangian to some non-Varangian Varangian +# else_if = { +# limit = { +# any_courtier = { +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# } +# random_courtier = { +# limit = { +# NOT = { has_trait = varangian } +# ep3_varangian_trigger = yes +# } +# save_scope_as = trait_getter +# } +# ep3_send_akolouthos_message_varangian = yes +# } +# #Add loyal to some non-bodyguard Varangian +# else = { +# random_courtier = { +# limit = { +# has_trait = varangian +# NOT = { has_trait = loyal } +# } +# save_scope_as = trait_getter +# } +# ep3_send_akolouthos_message_loyal = yes +# } +# } +#} +# +## Akolouthos recruits Varangian +#ep3_akolouthos_events.1001 = { +# hidden = yes +# +# trigger = { +# #Don't really need this if root is swarming in Varangians already +# NOT = { +# any_courtier_or_guest = { +# count >= 8 +# ep3_varangian_trigger = yes +# } +# } +# } +# +# weight_multiplier = { +# base = 1 +# #Weigh up chances if Varangians are needed to fill posts +# modifier = { +# add = 1 +# NOT = { +# any_courtier_or_guest = { +# count >= 3 +# ep3_varangian_trigger = yes +# } +# } +# } +# } +# +# immediate = { +# random_court_position_holder = { +# type = akolouthos_court_position +# save_scope_as = akolouthos +# } +# #Find a candidate in the local pool +# if = { +# limit = { +# is_landed = yes +# any_pool_character = { +# province = root.capital_province +# ep3_varangian_trigger = yes +# prowess > low_skill_rating +# } +# } +# random_pool_character = { +# province = root.capital_province +# limit = { +# ep3_varangian_trigger = yes +# prowess > low_skill_rating +# } +# save_scope_as = new_varangian +# } +# scope:new_varangian = { +# if = { +# limit = { +# NOT = { has_trait = varangian } +# } +# hidden_effect = { +# add_trait = varangian +# } +# } +# } +# } +# #Find a candidate in pools of akolouthos's culture +# else_if = { +# limit = { +# scope:akolouthos = { +# ep3_varangian_trigger = yes +# } +# exists = scope:akolouthos.culture.culture_head +# scope:akolouthos.culture.culture_head = { +# is_landed = yes +# } +# any_pool_character = { +# province = scope:akolouthos.culture.culture_head.capital_province +# ep3_varangian_trigger = yes +# prowess >= low_skill_rating +# } +# } +# scope:akolouthos.culture.culture_head = { +# save_scope_as = akolouthos_culture_head +# } +# random_pool_character = { +# province = scope:akolouthos_culture_head.capital_province +# limit = { +# ep3_varangian_trigger = yes +# prowess > low_skill_rating +# } +# save_scope_as = new_varangian +# } +# scope:new_varangian = { +# if = { +# limit = { +# NOT = { has_trait = varangian } +# } +# hidden_effect = { +# add_trait = varangian +# } +# } +# } +# } +# #Create a candidate +# else_if = { +# limit = { +# scope:akolouthos = { +# ep3_varangian_trigger = yes +# } +# } +# create_character = { +# template = varangian_template +# location = root.location +# culture = scope:akolouthos.culture +# faith = scope:akolouthos.faith +# dynasty = none +# save_scope_as = new_varangian +# } +# } +# else_if = { +# limit = { +# current_date < 990 +# } +# #Norse +# create_character = { +# template = varangian_template +# location = root.location +# culture = culture:norse +# faith = root.faith +# dynasty = none +# save_scope_as = new_varangian +# } +# } +# else = { +# #Anglo-Saxon +# create_character = { +# template = varangian_template +# location = root.location +# culture = culture:anglo_saxon +# faith = root.faith +# dynasty = none +# save_scope_as = new_varangian +# } +# } +# send_interface_message = { +# type = event_martial_good_with_text +# title = ep3_akolouthos_events.1001 +# desc = ep3_akolouthos_events.1001_notification_tooltip +# tooltip = akolouthos_effect_tooltip +# left_icon = scope:new_varangian +# right_icon = scope:akolouthos +# add_courtier = scope:new_varangian +# } +# } +#} +# \ No newline at end of file diff --git a/events/dlc/ep3/ep3_emperor_yearly_3.txt b/events/dlc/ep3/ep3_emperor_yearly_3.txt index 352ed6d0..3ef50ea5 100644 --- a/events/dlc/ep3/ep3_emperor_yearly_3.txt +++ b/events/dlc/ep3/ep3_emperor_yearly_3.txt @@ -1,1947 +1,1948 @@ -namespace = ep3_emperor_yearly - -############################ -# EP3 Admin Emperor Events # -# by Jason Cantalini # -# 3000 - 3500 # -############################ - -# Byzantine-only: your Varangians loot the palace after succession - -ep3_emperor_yearly.3000 = { - type = character_event - title = ep3_emperor_yearly.3000.t - desc = { - desc = ep3_emperor_yearly.3000.desc - first_valid = { - triggered_desc = { - trigger = { - scope:varangian_leader = { - is_courtier_of = root - } - } - desc = ep3_emperor_yearly.3000.desc_leader - } - desc = ep3_emperor_yearly.3000.desc_no_leader - } - } - theme = emperor - override_background = { reference = throne_room } - left_portrait = { - character = root - animation = disapproval - } - right_portrait = { - character = scope:varangian_leader - animation = celebrate_axe - camera = camera_event_very_left - } - lower_right_portrait = { - character = scope:varangian_2 - } - lower_left_portrait = { - character = scope:varangian_3 - } - lower_center_portrait = { - character = scope:dead_emperor - } - - trigger = { - has_ep3_dlc_trigger = yes - primary_title = { has_variable = founded_varangian_guard } - } - - immediate = { - save_scope_as = root_scope - #Choose which malus to use - random_list = { - #Artifact is damaged - 10 = { - trigger = { - any_character_artifact = { - artifact_durability > 45 - } - } - add_character_flag = malus_broken_artifact - random_character_artifact = { - limit = { - artifact_durability > 45 - } - save_scope_as = broken_artifact - } - save_scope_value_as = { - name = varangian_gold - value = { - value = 0 - add = { - value = var:varangian_regiments - multiply = 30 - } - } - } - } - #Artifact is stolen - 10 = { - trigger = { - any_character_artifact = { - artifact_wealth_quality_average_value < 20 - } - } - random_character_artifact = { - limit = { - artifact_wealth_quality_average_value < 20 - } - save_scope_as = stolen_artifact - } - add_character_flag = malus_stolen_artifact - save_scope_value_as = { - name = varangian_gold - value = { - value = 0 - add = { - value = var:varangian_regiments - multiply = 30 - } - } - } - } - ##Court grandeur lost - 10 = { - trigger = { - has_royal_court = yes - has_dlc_feature = royal_court - } - add_character_flag = malus_court_grandeur - save_scope_value_as = { - name = varangian_gold - value = { - value = 0 - add = { - value = var:varangian_regiments - multiply = 30 - } - } - } - } - ##Gold is lost - 10 = { - save_scope_value_as = { - name = varangian_gold - value = { - value = 0 - add = { - value = var:varangian_regiments - multiply = 50 - } - } - } - } - } - - #Choose which bonus to give a refuser - random_list = { - 5 = { - trigger = { - is_adult = yes - } - add_character_flag = refuse_bonus_dread - } - 10 = { - add_character_flag = refuse_bonus_prestige - } - 5 = { - add_character_flag = refuse_bonus_opinion - } - } - - #Choose which bonus to give an accepter - random_list = { - 10 = { - trigger = { - max_number_maa_soldiers_of_base_type = { - type = heavy_infantry - value >= 300 - } - } - add_character_flag = accept_bonus_heavy_infantry - } - 10 = { - add_character_flag = accept_bonus_scheme_resist - } - 10 = { - add_character_flag = accept_bonus_army - } - 10 = { - add_character_flag = accept_bonus_legitimacy - } - } - - #Save a first Varangian to be the boss - if = { - limit = { - any_court_position_holder = { - type = akolouthos_court_position - ep3_varangian_trigger = yes - is_available = yes - } - } - random_court_position_holder = { - type = akolouthos_court_position - save_scope_as = varangian_leader - } - } - else_if = { - limit = { - any_court_position_holder = { - type = bodyguard_court_position - ep3_varangian_trigger = yes - is_available = yes - } - } - random_court_position_holder = { - type = bodyguard_court_position - limit = { - ep3_varangian_trigger = yes - is_available = yes - } - save_scope_as = varangian_leader - } - } - else_if = { - limit = { - any_courtier = { - ep3_varangian_trigger = yes - is_available_adult = yes - } - } - random_courtier = { - limit = { - ep3_varangian_trigger = yes - is_available_adult = yes - } - save_scope_as = varangian_leader - } - } - else_if = { - limit = { - current_date < 1066 - } - #Norse - create_character = { - template = varangian_template - location = root.location - culture = culture:norse - faith = root.faith - dynasty = none - save_scope_as = varangian_leader - } - scope:varangian_leader = { - add_character_flag = need_military_outfit - } - hidden_effect = { add_visiting_courtier = scope:varangian_leader } - } - else = { - #Anglo-Saxon - create_character = { - template = varangian_template - location = root.location - culture = culture:anglo_saxon - faith = root.faith - dynasty = none - save_scope_as = varangian_leader - } - scope:varangian_leader = { - add_character_flag = need_military_outfit - } - hidden_effect = { add_visiting_courtier = scope:varangian_leader } - } - #Save another Varangian - if = { - limit = { - exists = scope:varangian_leader - any_court_position_holder = { - type = bodyguard_court_position - ep3_varangian_trigger = yes - is_available = yes - this != scope:varangian_leader - } - } - random_court_position_holder = { - type = bodyguard_court_position - limit = { - ep3_varangian_trigger = yes - is_available = yes - this != scope:varangian_leader - } - save_scope_as = varangian_2 - } - } - else_if = { - limit = { - exists = scope:varangian_leader - any_courtier = { - ep3_varangian_trigger = yes - is_available_adult = yes - this != scope:varangian_leader - } - } - random_courtier = { - limit = { - ep3_varangian_trigger = yes - is_available_adult = yes - this != scope:varangian_leader - } - save_scope_as = varangian_2 - } - } - #Save a third - if = { - limit = { - exists = scope:varangian_leader - exists = scope:varangian_2 - any_court_position_holder = { - type = bodyguard_court_position - ep3_varangian_trigger = yes - is_available = yes - NOR = { - this = scope:varangian_leader - this = scope:varangian_2 - } - } - } - random_court_position_holder = { - type = bodyguard_court_position - limit = { - ep3_varangian_trigger = yes - is_available = yes - NOR = { - this = scope:varangian_leader - this = scope:varangian_2 - } - } - save_scope_as = varangian_3 - } - } - else_if = { - limit = { - exists = scope:varangian_leader - exists = scope:varangian_2 - any_courtier = { - ep3_varangian_trigger = yes - is_available_adult = yes - NOR = { - this = scope:varangian_leader - this = scope:varangian_2 - } - } - } - random_courtier = { - limit = { - ep3_varangian_trigger = yes - is_available_adult = yes - NOR = { - this = scope:varangian_leader - this = scope:varangian_2 - } - } - save_scope_as = varangian_3 - } - } - } - - #Have the Akolouthos seize some of the spoils - option = { - name = ep3_emperor_yearly.3000.a - flavor = ep3_emperor_yearly.3000.a.flavor - trigger = { - employs_court_position = akolouthos_court_position - any_court_position_holder = { - type = akolouthos_court_position - aptitude = { - court_position = akolouthos_court_position - value >= 3 - } - } - } - add_internal_flag = special - custom_tooltip = akolouthos_aptitude_option_unlock - - #Random refuse bonus effect - if = { - limit = { - has_character_flag = refuse_bonus_prestige - } - if = { - limit = { - var:varangian_regiments >= 7 - } - add_prestige = massive_prestige_gain - } - else_if = { - limit = { - var:varangian_regiments >= 4 - } - add_prestige = major_prestige_gain - } - else = { - add_prestige = medium_prestige_gain - } - } - if = { - limit = { - has_character_flag = refuse_bonus_dread - } - if = { - limit = { - var:varangian_regiments >= 7 - } - add_dread = major_dread_gain - add_prestige = major_prestige_gain - } - else_if = { - limit = { - var:varangian_regiments >= 4 - } - add_dread = medium_dread_gain - add_prestige = medium_prestige_gain - } - else = { - add_dread = minor_dread_gain - add_prestige = minor_prestige_gain - } - } - if = { - limit = { - has_character_flag = refuse_bonus_opinion - } - if = { - limit = { - var:varangian_regiments >= 7 - } - every_vassal = { - custom = every_parochial_vassal - add_opinion = { - modifier = respect_opinion - opinion = 30 - target = root - } - } - add_prestige = major_prestige_gain - } - else_if = { - limit = { - var:varangian_regiments >= 4 - } - every_vassal = { - custom = every_parochial_vassal - add_opinion = { - modifier = respect_opinion - opinion = 20 - target = root - } - } - add_prestige = medium_prestige_gain - } - else = { - every_vassal = { - custom = every_parochial_vassal - add_opinion = { - modifier = respect_opinion - opinion = 10 - target = root - } - } - add_prestige = minor_prestige_gain - } - } - change_influence = medium_influence_gain - - remove_treasury_or_gold = { - value = { - value = 0 - add = { - value = scope:varangian_gold - multiply = 0.4 - } - } - } - #Negative heavy inf and scheme resistance modifier - add_character_modifier = { - modifier = disrespected_varangians_modifier - years = 10 - } - if = { - limit = { - scope:varangian_leader = { - is_courtier_of = root - } - } - if = { - limit = { - scope:varangian_leader = { has_trait = loyal } - } - scope:varangian_leader = { remove_trait = loyal } - reverse_add_opinion = { - target = scope:varangian_leader - modifier = angry_opinion - opinion = -20 - } - } - else = { - reverse_add_opinion = { - target = scope:varangian_leader - modifier = hate_opinion - opinion = -40 - } - } - } - if = { - limit = { - exists = scope:varangian_2 - } - if = { - limit = { - scope:varangian_2 = { has_trait = loyal } - } - scope:varangian_2 = { remove_trait = loyal } - reverse_add_opinion = { - target = scope:varangian_2 - modifier = angry_opinion - opinion = -20 - } - } - else = { - reverse_add_opinion = { - target = scope:varangian_2 - modifier = hate_opinion - opinion = -40 - } - } - } - if = { - limit = { - exists = scope:varangian_3 - } - if = { - limit = { - scope:varangian_3 = { has_trait = loyal } - } - scope:varangian_3 = { remove_trait = loyal } - reverse_add_opinion = { - target = scope:varangian_3 - modifier = angry_opinion - opinion = -20 - } - } - else = { - reverse_add_opinion = { - target = scope:varangian_3 - modifier = hate_opinion - opinion = -40 - } - } - } - #Apply randomized_malus - if = { - limit = { - has_character_flag = malus_court_grandeur - var:varangian_regiments >= 7 - } - change_current_court_grandeur = minor_court_grandeur_loss - } - if = { - limit = { - has_character_flag = malus_broken_artifact - var:varangian_regiments >= 7 - } - scope:broken_artifact = { - add_durability = -20 - } - } - if = { - limit = { - NOT = { - scope:varangian_leader = { - is_courtier_of = root - } - } - } - hidden_effect = { - scope:varangian_leader = { move_to_pool = yes } - } - } - - stress_impact = { - craven = medium_stress_impact_gain - paranoid = medium_stress_impact_gain - generous = medium_stress_impact_gain - content = minor_stress_impact_gain - just = minor_stress_impact_gain - } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_greed = 1 - ai_boldness = 1 - } - modifier = { - factor = 0 - OR = { - has_trait = craven - has_trait = paranoid - has_trait = generous - has_trait = content - has_trait = just - } - } - modifier = { - factor = 3 - short_term_gold <= 300 - } - modifier = { - factor = 0.5 - OR = { - has_trait = content - has_trait = just - } - } - } - } - #Chastise the Varangians - option = { - trigger = { - age >= 12 - } - name = ep3_emperor_yearly.3000.b - flavor = ep3_emperor_yearly.3000.b.flavor - #Random refuse bonus effect - if = { - limit = { - has_character_flag = refuse_bonus_prestige - } - if = { - limit = { - var:varangian_regiments >= 7 - } - add_prestige = massive_prestige_gain - } - else_if = { - limit = { - var:varangian_regiments >= 4 - } - add_prestige = major_prestige_gain - } - else = { - add_prestige = medium_prestige_gain - } - } - if = { - limit = { - has_character_flag = refuse_bonus_dread - } - if = { - limit = { - var:varangian_regiments >= 7 - } - add_dread = major_dread_gain - add_prestige = major_prestige_gain - } - else_if = { - limit = { - var:varangian_regiments >= 4 - } - add_dread = medium_dread_gain - add_prestige = medium_prestige_gain - } - else = { - add_dread = minor_dread_gain - add_prestige = minor_prestige_gain - } - } - if = { - limit = { - has_character_flag = refuse_bonus_opinion - } - if = { - limit = { - var:varangian_regiments >= 7 - } - every_vassal = { - custom = every_parochial_vassal - add_opinion = { - modifier = respect_opinion - opinion = 30 - target = root - } - } - add_prestige = major_prestige_gain - } - else_if = { - limit = { - var:varangian_regiments >= 4 - } - every_vassal = { - custom = every_parochial_vassal - add_opinion = { - modifier = respect_opinion - opinion = 20 - target = root - } - } - add_prestige = medium_prestige_gain - } - else = { - every_vassal = { - custom = every_parochial_vassal - add_opinion = { - modifier = respect_opinion - opinion = 10 - target = root - } - } - add_prestige = minor_prestige_gain - } - } - - if = { - limit = { - var:varangian_regiments > 0 - } - remove_long_term_gold = { - value = scope:varangian_gold - } - } - - #show custom payout tooltip - if = { - limit = { - exists = scope:varangian_3 - } - custom_tooltip = major_gold_to_varangians_tooltip - } - else_if = { - limit = { - exists = scope:varangian_2 - } - custom_tooltip = medium_gold_to_varangians_tooltip - } - else_if = { - limit = { - scope:varangian_leader = { - is_courtier_of = root - } - } - custom_tooltip = minor_gold_to_varangians_tooltip - } - - if = { - limit = { - scope:varangian_leader = { - is_courtier_of = root - } - } - if = { - limit = { - scope:varangian_leader = { has_trait = loyal } - } - scope:varangian_leader = { remove_trait = loyal } - } - else = { - reverse_add_opinion = { - target = scope:varangian_leader - modifier = angry_opinion - opinion = -20 - } - } - hidden_effect = { - pay_long_term_gold = { - target = scope:varangian_leader - gold = 25 - } - } - } - if = { - limit = { - exists = scope:varangian_2 - } - if = { - limit = { - scope:varangian_2 = { has_trait = loyal } - } - scope:varangian_2 = { remove_trait = loyal } - } - else = { - reverse_add_opinion = { - target = scope:varangian_2 - modifier = angry_opinion - opinion = -20 - } - } - hidden_effect = { - pay_long_term_gold = { - target = scope:varangian_2 - gold = 25 - } - } - } - if = { - limit = { - exists = scope:varangian_3 - } - if = { - limit = { - scope:varangian_3 = { has_trait = loyal } - } - scope:varangian_3 = { remove_trait = loyal } - } - else = { - reverse_add_opinion = { - target = scope:varangian_3 - modifier = angry_opinion - opinion = -20 - } - } - hidden_effect = { - pay_long_term_gold = { - target = scope:varangian_3 - gold = 25 - } - } - } - #Negative heavy inf and scheme resistance modifier - add_character_modifier = { - modifier = disrespected_varangians_modifier - years = 10 - } - #Apply randomized_malus - ep3_palace_looting_random_malus_effect = yes - - if = { - limit = { - NOT = { - scope:varangian_leader = { - is_courtier_of = root - } - } - } - hidden_effect = { - scope:varangian_leader = { move_to_pool = yes } - } - } - - stress_impact = { - craven = medium_stress_impact_gain - paranoid = medium_stress_impact_gain - generous = minor_stress_impact_gain - content = minor_stress_impact_gain - just = miniscule_stress_impact_gain - } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_vengefulness = 1 - } - modifier = { - factor = 0 - OR = { - has_trait = craven - has_trait = paranoid - has_trait = generous - has_trait = content - } - } - modifier = { - factor = 0.5 - OR = { - has_trait = generous - has_trait = content - has_trait = just - } - } - } - } - #It's just tradition - option = { - name = ep3_emperor_yearly.3000.c - flavor = ep3_emperor_yearly.3000.c.flavor - if = { - limit = { - has_character_flag = accept_bonus_legitimacy - } - if = { - limit = { - var:varangian_regiments >= 7 - } - add_legitimacy = major_legitimacy_gain - } - else_if = { - limit = { - var:varangian_regiments >= 3 - } - add_legitimacy = medium_legitimacy_gain - } - else = { - add_legitimacy = minor_legitimacy_gain - } - } - if = { - limit = { - has_character_flag = accept_bonus_heavy_infantry - } - if = { - limit = { - var:varangian_regiments >= 7 - } - add_character_modifier = { - modifier = loyal_varangians_modifier - years = 10 - } - add_legitimacy = medium_legitimacy_gain - } - else_if = { - limit = { - var:varangian_regiments >= 3 - } - add_character_modifier = { - modifier = loyal_varangians_modifier - years = 10 - } - add_legitimacy = miniscule_legitimacy_gain - } - else = { - add_character_modifier = { - modifier = loyal_varangians_modifier - years = 10 - } - } - } - if = { - limit = { - has_character_flag = accept_bonus_scheme_resist - } - if = { - limit = { - var:varangian_regiments >= 7 - } - add_character_modifier = { - modifier = attentive_varangians_modifier - years = 10 - } - add_legitimacy = medium_legitimacy_gain - } - else_if = { - limit = { - var:varangian_regiments >= 3 - } - add_character_modifier = { - modifier = attentive_varangians_modifier - years = 10 - } - add_legitimacy = miniscule_legitimacy_gain - } - else = { - add_character_modifier = { - modifier = attentive_varangians_modifier - years = 10 - } - } - } - if = { - limit = { - has_character_flag = accept_bonus_army - } - if = { - limit = { - var:varangian_regiments >= 7 - } - spawn_army = { - name = eager_varangian_army - levies = 600 - men_at_arms = { - type = varangian_guards - stacks = 4 - } - location = root.capital_province - uses_supply = yes - inheritable = no - } - } - else_if = { - limit = { - var:varangian_regiments >= 3 - } - spawn_army = { - name = eager_varangian_army - levies = 300 - men_at_arms = { - type = varangian_guards - stacks = 2 - } - location = root.capital_province - uses_supply = yes - inheritable = no - } - } - else = { - spawn_army = { - name = eager_varangian_army - levies = 100 - men_at_arms = { - type = varangian_guards - stacks = 1 - } - location = root.capital_province - uses_supply = yes - inheritable = no - } - } - } - - if = { - limit = { - var:varangian_regiments > 0 - } - remove_long_term_gold = { - value = scope:varangian_gold - } - } - - - #show custom payout tooltip - if = { - limit = { - exists = scope:varangian_3 - } - custom_tooltip = major_gold_to_varangians_tooltip - } - else_if = { - limit = { - exists = scope:varangian_2 - } - custom_tooltip = medium_gold_to_varangians_tooltip - } - else_if = { - limit = { - scope:varangian_leader = { - is_courtier_of = root - } - } - custom_tooltip = minor_gold_to_varangians_tooltip - } - - if = { - limit = { - scope:varangian_leader = { - is_courtier_of = root - } - } - reverse_add_opinion = { - target = scope:varangian_leader - modifier = loyalty_opinion - opinion = 60 - } - hidden_effect = { - pay_long_term_gold = { - target = scope:varangian_leader - gold = 25 - } - } - } - if = { - limit = { - exists = scope:varangian_2 - } - reverse_add_opinion = { - target = scope:varangian_2 - modifier = loyalty_opinion - opinion = 60 - } - hidden_effect = { - pay_long_term_gold = { - target = scope:varangian_2 - gold = 25 - } - } - } - if = { - limit = { - exists = scope:varangian_3 - } - reverse_add_opinion = { - target = scope:varangian_3 - modifier = loyalty_opinion - opinion = 60 - } - hidden_effect = { - pay_long_term_gold = { - target = scope:varangian_3 - gold = 25 - } - } - } - - #Apply randomized_malus - ep3_palace_looting_random_malus_effect = yes - - stress_impact = { - generous = miniscule_stress_impact_loss - paranoid = minor_stress_impact_loss - greedy = medium_stress_impact_gain - vengeful = medium_stress_impact_gain - arrogant = minor_stress_impact_gain - arbitrary = minor_stress_impact_gain - } - ai_chance = { - base = 200 - ai_value_modifier = { - ai_greed = -0.5 - ai_boldness = -0.5 - ai_vengefulness = -1 - } - modifier = { - factor = 0 - OR = { - has_trait = greedy - has_trait = vengeful - has_trait = arrogant - has_trait = arbitrary - } - } - modifier = { - factor = 0.5 - OR = { - has_trait = arrogant - has_trait = arbitrary - } - } - } - } - after = { - if = { - limit = { - scope:varangian_leader = { - has_character_flag = need_military_outfit - } - } - scope:varangian_leader = { - remove_character_flag = need_military_outfit - } - } - if = { - limit = { - has_character_flag = malus_broken_artifact - } - remove_character_flag = malus_broken_artifact - } - if = { - limit = { - has_character_flag = malus_stolen_artifact - } - remove_character_flag = malus_stolen_artifact - } - if = { - limit = { - has_character_flag = malus_court_grandeur - } - remove_character_flag = malus_court_grandeur - } - if = { - limit = { - has_character_flag = refuse_bonus_dread - } - remove_character_flag = refuse_bonus_dread - } - if = { - limit = { - has_character_flag = refuse_bonus_opinion - } - remove_character_flag = refuse_bonus_opinion - } - if = { - limit = { - has_character_flag = refuse_bonus_prestige - } - remove_character_flag = refuse_bonus_prestige - } - if = { - limit = { - has_character_flag = accept_bonus_heavy_infantry - } - remove_character_flag = accept_bonus_heavy_infantry - } - if = { - limit = { - has_character_flag = accept_bonus_scheme_resist - } - remove_character_flag = accept_bonus_scheme_resist - } - if = { - limit = { - has_character_flag = accept_bonus_army - } - remove_character_flag = accept_bonus_army - } - if = { - limit = { - has_character_flag = accept_bonus_legitimacy - } - remove_character_flag = accept_bonus_legitimacy - } - } -} - -#Byzantine emperor sends fireships to defend the strait of Marmara -ep3_emperor_yearly.3010 = { - hidden = yes - - trigger = { - #province is strait of Marmara - scope:army.location = { - OR = { - this = province:947 - this = province:950 - this = province:948 - this = province:8667 - this = province:8668 - this = province:8665 - } - } - #A lot of jank would be introduced by multiplayer and armies continuing to move, unpaused - has_multiple_players = no - title:c_byzantion = { has_county_modifier = defensive_fire_dromons_modifier } - NOT = { has_character_flag = used_fire_dromons } - #this event is really going to f up the enemy army in a way no player will appreciate - is_ai = yes - - #Is it at war with powerful ruler whose capital is Constantinople - any_war_enemy = { - is_landed = yes - capital_county = title:c_byzantion - capital_province = { is_occupied = no } - culture = { - OR = { - this = culture:greek - any_parent_culture_or_above = { this = culture:greek } - } - } - } - } - - immediate = { - save_scope_as = invader - scope:army.army_commander ?= { save_scope_as = invading_commander } - random_war_enemy = { - limit = { - is_landed = yes - capital_county = title:c_byzantion - capital_province = { is_occupied = no } - culture = { - OR = { - this = culture:greek - any_parent_culture_or_above = { this = culture:greek } - } - } - } - save_scope_as = marmara_defender - } - scope:marmara_defender = { - trigger_event = ep3_emperor_yearly.3011 - } - } -} - -ep3_emperor_yearly.3011 = { - type = character_event - title = ep3_emperor_yearly.3011.t - desc = { - desc = ep3_emperor_yearly.3011.intro - first_valid = { - triggered_desc = { - trigger = { - scope:invader = { - this = scope:invading_commander - } - } - desc = ep3_emperor_yearly.3011.liege_attacking - } - desc = ep3_emperor_yearly.3011.commander_attacking - } - desc = ep3_emperor_yearly.3011.desc - triggered_desc = { - trigger = { - knows_language = language_greek - OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - } - desc = ep3_emperor_yearly.3011.kyrie_eleison - } - } - theme = war - override_background = { reference = ep3_constantinople } - left_portrait = { - character = scope:city_defender - animation = survey - camera = camera_event_left_away - } - lower_right_portrait = { - character = scope:invading_commander - } - - immediate = { - #perspective character for event window - if = { - limit = { - is_available = yes - } - save_scope_as = city_defender - } - else_if = { - limit = { - cp:councillor_marshal ?= { - is_available = yes - } - } - cp:councillor_marshal = { - save_scope_as = city_defender - } - } - else_if = { - limit = { - OR = { - has_diarchy_type = temporary_regency - has_diarchy_type = regency - } - diarch = { - is_available = yes - } - } - diarch = { save_scope_as = city_defender } - } - else = { - save_scope_as = city_defender - } - scope:city_defender = { - add_character_flag = need_military_outfit - } - scope:invader = { - if = { - limit = { - any_knight = { - is_in_army = yes - this != scope:invading_commander - } - } - random_knight = { - limit = { - is_in_army = yes - this != scope:invading_commander - } - save_scope_as = knight_1 - } - } - if = { - limit = { - any_knight = { - is_in_army = yes - NOR = { - this = scope:knight_1 - this = scope:invading_commander - } - } - } - random_knight = { - limit = { - is_in_army = yes - NOR = { - this = scope:knight_1 - this = scope:invading_commander - } - } - save_scope_as = knight_2 - } - } - if = { - limit = { - any_knight = { - is_in_army = yes - NOR = { - this = scope:knight_1 - this = scope:knight_2 - this = scope:invading_commander - } - } - } - random_knight = { - limit = { - is_in_army = yes - NOR = { - this = scope:knight_1 - this = scope:knight_2 - this = scope:invading_commander - } - } - save_scope_as = knight_3 - } - } - if = { - limit = { - any_knight = { - is_in_army = yes - NOR = { - this = scope:knight_1 - this = scope:knight_2 - this = scope:knight_3 - this = scope:invading_commander - } - } - } - random_knight = { - limit = { - is_in_army = yes - NOR = { - this = scope:knight_1 - this = scope:knight_2 - this = scope:knight_3 - this = scope:invading_commander - } - } - save_scope_as = knight_4 - } - } - if = { - limit = { - any_knight = { - is_in_army = yes - NOR = { - this = scope:knight_1 - this = scope:knight_2 - this = scope:knight_3 - this = scope:knight_4 - this = scope:invading_commander - } - } - } - random_knight = { - limit = { - is_in_army = yes - NOR = { - this = scope:knight_1 - this = scope:knight_2 - this = scope:knight_3 - this = scope:knight_4 - this = scope:invading_commander - } - } - save_scope_as = knight_5 - } - } - } - } - #Use the greek fire ships - option = { - name = ep3_emperor_yearly.3011.a - add_character_flag = { - flag = used_fire_dromons - days = 30 - } - custom_tooltip = unable_to_use_fire_ships_tooltip - scope:city_defender = { - duel = { - skill = martial - target = scope:invading_commander - 35 = { #Your fleet ruins the enemy - desc = ep3_emperor_yearly.3011.a.success - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -34 - } - modifier = { - has_trait = forder - add = 20 - } - modifier = { - highest_held_title_tier >= tier_empire - - add = 10 - } - modifier = { - scope:army = { - army_size <= 1000 - } - add = 10 - } - modifier = { - scope:army = { - #Big enough army to actually siege the city - army_size < 2500 - } - add = 10 - } - modifier = { - scope:invading_commander = { - has_trait = reckless - } - add = 10 - } - modifier = { - has_trait = reckless - add = 10 - } - modifier = { - has_trait = aggressive_attacker - add = 10 - } - modifier = { - has_trait = military_engineer - add = 10 - } - modifier = { - scope:invading_commander = { - has_trait = aggressive_attacker - } - add = 10 - } - modifier = { - province:496 = { - has_building_or_higher = curtain_walls_01 - } - add = 5 - } - modifier = { - province:496 = { - has_building_or_higher = curtain_walls_03 - } - add = 5 - } - modifier = { - province:496 = { - has_building_or_higher = curtain_walls_05 - } - add = 5 - } - modifier = { - province:496 = { - has_building_or_higher = curtain_walls_07 - } - add = 5 - } - modifier = { - province:496 = { - has_building_or_higher = common_tradeport_01 - } - add = 5 - } - modifier = { - province:496 = { - has_building_or_higher = common_tradeport_03 - } - add = 5 - } - modifier = { - province:496 = { - has_building_or_higher = common_tradeport_05 - } - add = 5 - } - modifier = { - province:496 = { - has_building_or_higher = common_tradeport_07 - } - add = 5 - } - show_as_tooltip = { ep3_greek_fire_success_effect = yes } - root = { add_character_flag = successful_greek_fire_attack } - } - 50 = { #Your fleet does some damage - desc = ep3_emperor_yearly.3011.a.fail - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - modifier = { - has_trait = forder - add = 40 - } - modifier = { - scope:army = { - #Big enough army to actually siege the city - army_size < 2500 - } - add = 20 - } - modifier = { - scope:army = { - army_size <= 1000 - } - add = 20 - } - modifier = { - scope:invading_commander = { - has_trait = reckless - } - add = 20 - } - modifier = { - scope:invading_commander = { - has_trait = aggressive_attacker - } - add = 10 - } - modifier = { - has_trait = aggressive_attacker - add = 20 - } - modifier = { - has_trait = military_engineer - add = 20 - } - modifier = { - province:496 = { - has_building_or_higher = curtain_walls_01 - } - add = 10 - } - modifier = { - province:496 = { - has_building_or_higher = curtain_walls_03 - } - add = 10 - } - modifier = { - province:496 = { - has_building_or_higher = curtain_walls_05 - } - add = 10 - } - modifier = { - province:496 = { - has_building_or_higher = curtain_walls_07 - } - add = 10 - } - modifier = { - province:496 = { - has_building_or_higher = common_tradeport_01 - } - add = 10 - } - modifier = { - province:496 = { - has_building_or_higher = common_tradeport_03 - } - add = 10 - } - modifier = { - province:496 = { - has_building_or_higher = common_tradeport_05 - } - add = 10 - } - modifier = { - province:496 = { - has_building_or_higher = common_tradeport_07 - } - add = 10 - } - show_as_tooltip = { ep3_greek_fire_fail_effect = yes } - root = { add_character_flag = failed_greek_fire_attack } - } - 15 = { #Your fleet does a little damage and... ruins themselves - desc = ep3_emperor_yearly.3011.a.critical_fail - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -14 - } - modifier = { - scope:invading_commander = { - has_trait = forder - } - add = 40 - } - modifier = { - scope:invading_commander = { - has_trait = organizer - } - add = 20 - } - modifier = { - scope:invading_commander = { - has_trait = cautious_leader - } - add = 20 - } - modifier = { - has_trait = cautious_leader - add = 20 - } - - modifier = { - scope:army = { - army_size >= 5000 - } - add = 20 - } - modifier = { - scope:army = { - army_size >= 10000 - } - add = 20 - } - show_as_tooltip = { ep3_greek_fire_crit_fail_effect = yes } - root = { add_character_flag = crit_failed_greek_fire_attack } - } - } - } - trigger_event = ep3_emperor_yearly.3012 - stress_impact = { - compassionate = medium_stress_impact_gain - cautious_leader = medium_stress_impact_gain - patient = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_vengefulness = 1 - ai_boldness = 1 - } - modifier = { - add = 20 - scope:city_defender = { - martial >= high_skill_rating - } - } - modifier = { - add = 20 - scope:invading_commander = { - martial <= high_skill_rating - } - } - modifier = { - factor = 0.5 - OR = { - has_trait = compassionate - has_trait = cautious_leader - } - } - modifier = { - factor = 2 - scope:army = { - army_size >= 4000 - } - } - modifier = { - factor = 2 - scope:army = { - army_size >= 7000 - } - } - } - } - #Don't attack - option = { - name = ep3_emperor_yearly.3011.b - if = { - limit = { - scope:army = { - #Big enough army to actually siege the city - army_size >= 4000 - } - } - add_prestige = medium_prestige_loss - } - else_if = { - limit = { - scope:army = { - army_size >= 3000 - } - } - add_prestige = minor_prestige_loss - } - else = { - add_prestige = miniscule_prestige_loss - } - stress_impact = { - vengeful = medium_stress_impact_gain - wrathful = medium_stress_impact_gain - sadistic = miniscule_stress_impact_gain - reckless = minor_stress_impact_gain - brave = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_energy = -1 - ai_boldness = -1 - } - modifier = { - add = 20 - scope:city_defender = { - martial < decent_skill_rating - } - } - modifier = { - add = 20 - scope:invading_commander = { - martial > very_high_skill_rating - } - } - modifier = { - factor = 0.5 - OR = { - has_trait = wrathful - has_trait = vengeful - has_trait = reckless - has_trait = brave - } - } - modifier = { - factor = 2 - scope:army = { - army_size <= 2000 - } - } - modifier = { - factor = 2 - scope:army = { - army_size < 1000 - } - } - } - } - after = { - scope:city_defender = { remove_character_flag = need_military_outfit } - } -} - -ep3_emperor_yearly.3012 = { - type = character_event - title = ep3_emperor_yearly.3012.t - desc = { - desc = ep3_emperor_yearly.3012.intro - #Triggered desc based on success - first_valid = { - triggered_desc = { - trigger = { - has_character_flag = successful_greek_fire_attack - } - desc = ep3_emperor_yearly.3012.attack_success - } - triggered_desc = { - trigger = { - has_character_flag = failed_greek_fire_attack - } - desc = ep3_emperor_yearly.3012.attack_fail - } - triggered_desc = { - trigger = { - has_character_flag = crit_failed_greek_fire_attack - } - desc = ep3_emperor_yearly.3012.attack_crit_fail - } - } - } - theme = war - override_background = { reference = ocean } - widget = { - gui = "event_window_widget_vfx_heavy_smoke" - container = "foreground_shader_vfx_container" - } - right_portrait = { - character = scope:invading_commander - triggered_animation = { - trigger = { - root = { has_character_flag = successful_greek_fire_attack } - } - animation = sword_yield_start - } - triggered_animation = { - trigger = { - root = { has_character_flag = failed_greek_fire_attack } - } - animation = fear - } - triggered_animation = { - trigger = { - root = { has_character_flag = crit_failed_greek_fire_attack } - } - animation = sword_coup_degrace - } - } - - immediate = { - play_music_cue = "mx_cue_war_declared" - #show effect as tooltip here - create_character_memory = { - type = endured_greek_fire_memory - participants = { - attacker = root - } - } - } - - option = { - name = { - trigger = { has_character_flag = successful_greek_fire_attack } - text = ep3_emperor_yearly.3012.a_success - } - name = { - trigger = { has_character_flag = failed_greek_fire_attack } - text = ep3_emperor_yearly.3012.a_fail - } - name = { - trigger = { has_character_flag = crit_failed_greek_fire_attack } - text = ep3_emperor_yearly.3012.a_crit_fail - } - - if = { - limit = { has_character_flag = successful_greek_fire_attack - } - ep3_greek_fire_success_effect = yes - } - if = { - limit = { - has_character_flag = failed_greek_fire_attack - } - ep3_greek_fire_fail_effect = yes - } - if = { - limit = { - has_character_flag = crit_failed_greek_fire_attack - } - ep3_greek_fire_crit_fail_effect = yes - } - #Apply memory to invading commander? - if = { - limit = { - has_character_flag = successful_greek_fire_attack - } - stress_impact = { - sadistic = medium_stress_impact_loss - paranoid = minor_stress_impact_loss - vengeful = medium_stress_impact_loss - callous = minor_stress_impact_loss - } - } - } - after = { - if = { - limit = { has_character_flag = successful_greek_fire_attack - } - remove_character_flag = successful_greek_fire_attack - } - if = { - limit = { - has_character_flag = failed_greek_fire_attack - } - remove_character_flag = failed_greek_fire_attack - } - if = { - limit = { - has_character_flag = crit_failed_greek_fire_attack - } - remove_character_flag = crit_failed_greek_fire_attack - } - } -} +#namespace = ep3_emperor_yearly +# +############################# +## EP3 Admin Emperor Events # +## by Jason Cantalini # +## 3000 - 3500 # +############################# +# +## Byzantine-only: your Varangians loot the palace after succession +# +#ep3_emperor_yearly.3000 = { +# type = character_event +# title = ep3_emperor_yearly.3000.t +# desc = { +# desc = ep3_emperor_yearly.3000.desc +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:varangian_leader = { +# is_courtier_of = root +# } +# } +# desc = ep3_emperor_yearly.3000.desc_leader +# } +# desc = ep3_emperor_yearly.3000.desc_no_leader +# } +# } +# theme = emperor +# override_background = { reference = throne_room } +# left_portrait = { +# character = root +# animation = disapproval +# } +# right_portrait = { +# character = scope:varangian_leader +# animation = celebrate_axe +# camera = camera_event_very_left +# } +# lower_right_portrait = { +# character = scope:varangian_2 +# } +# lower_left_portrait = { +# character = scope:varangian_3 +# } +# lower_center_portrait = { +# character = scope:dead_emperor +# } +# +# trigger = { +# has_ep3_dlc_trigger = yes +# primary_title = { has_variable = founded_varangian_guard } +# } +# +# immediate = { +# save_scope_as = root_scope +# #Choose which malus to use +# random_list = { +# #Artifact is damaged +# 10 = { +# trigger = { +# any_character_artifact = { +# artifact_durability > 45 +# } +# } +# add_character_flag = malus_broken_artifact +# random_character_artifact = { +# limit = { +# artifact_durability > 45 +# } +# save_scope_as = broken_artifact +# } +# save_scope_value_as = { +# name = varangian_gold +# value = { +# value = 0 +# add = { +# value = var:varangian_regiments +# multiply = 30 +# } +# } +# } +# } +# #Artifact is stolen +# 10 = { +# trigger = { +# any_character_artifact = { +# artifact_wealth_quality_average_value < 20 +# } +# } +# random_character_artifact = { +# limit = { +# artifact_wealth_quality_average_value < 20 +# } +# save_scope_as = stolen_artifact +# } +# add_character_flag = malus_stolen_artifact +# save_scope_value_as = { +# name = varangian_gold +# value = { +# value = 0 +# add = { +# value = var:varangian_regiments +# multiply = 30 +# } +# } +# } +# } +# ##Court grandeur lost +# 10 = { +# trigger = { +# has_royal_court = yes +# has_dlc_feature = royal_court +# } +# add_character_flag = malus_court_grandeur +# save_scope_value_as = { +# name = varangian_gold +# value = { +# value = 0 +# add = { +# value = var:varangian_regiments +# multiply = 30 +# } +# } +# } +# } +# ##Gold is lost +# 10 = { +# save_scope_value_as = { +# name = varangian_gold +# value = { +# value = 0 +# add = { +# value = var:varangian_regiments +# multiply = 50 +# } +# } +# } +# } +# } +# +# #Choose which bonus to give a refuser +# random_list = { +# 5 = { +# trigger = { +# is_adult = yes +# } +# add_character_flag = refuse_bonus_dread +# } +# 10 = { +# add_character_flag = refuse_bonus_prestige +# } +# 5 = { +# add_character_flag = refuse_bonus_opinion +# } +# } +# +# #Choose which bonus to give an accepter +# random_list = { +# 10 = { +# trigger = { +# max_number_maa_soldiers_of_base_type = { +# type = heavy_infantry +# value >= 300 +# } +# } +# add_character_flag = accept_bonus_heavy_infantry +# } +# 10 = { +# add_character_flag = accept_bonus_scheme_resist +# } +# 10 = { +# add_character_flag = accept_bonus_army +# } +# 10 = { +# add_character_flag = accept_bonus_legitimacy +# } +# } +# +# #Save a first Varangian to be the boss +# if = { +# limit = { +# any_court_position_holder = { +# type = akolouthos_court_position +# ep3_varangian_trigger = yes +# is_available = yes +# } +# } +# random_court_position_holder = { +# type = akolouthos_court_position +# save_scope_as = varangian_leader +# } +# } +# else_if = { +# limit = { +# any_court_position_holder = { +# type = bodyguard_court_position +# ep3_varangian_trigger = yes +# is_available = yes +# } +# } +# random_court_position_holder = { +# type = bodyguard_court_position +# limit = { +# ep3_varangian_trigger = yes +# is_available = yes +# } +# save_scope_as = varangian_leader +# } +# } +# else_if = { +# limit = { +# any_courtier = { +# ep3_varangian_trigger = yes +# is_available_adult = yes +# } +# } +# random_courtier = { +# limit = { +# ep3_varangian_trigger = yes +# is_available_adult = yes +# } +# save_scope_as = varangian_leader +# } +# } +# else_if = { +# limit = { +# current_date < 1066 +# } +# #Norse +# create_character = { +# template = varangian_template +# location = root.location +# culture = culture:norse +# faith = root.faith +# dynasty = none +# save_scope_as = varangian_leader +# } +# scope:varangian_leader = { +# add_character_flag = need_military_outfit +# } +# hidden_effect = { add_visiting_courtier = scope:varangian_leader } +# } +# else = { +# #Anglo-Saxon +# create_character = { +# template = varangian_template +# location = root.location +# culture = culture:anglo_saxon +# faith = root.faith +# dynasty = none +# save_scope_as = varangian_leader +# } +# scope:varangian_leader = { +# add_character_flag = need_military_outfit +# } +# hidden_effect = { add_visiting_courtier = scope:varangian_leader } +# } +# #Save another Varangian +# if = { +# limit = { +# exists = scope:varangian_leader +# any_court_position_holder = { +# type = bodyguard_court_position +# ep3_varangian_trigger = yes +# is_available = yes +# this != scope:varangian_leader +# } +# } +# random_court_position_holder = { +# type = bodyguard_court_position +# limit = { +# ep3_varangian_trigger = yes +# is_available = yes +# this != scope:varangian_leader +# } +# save_scope_as = varangian_2 +# } +# } +# else_if = { +# limit = { +# exists = scope:varangian_leader +# any_courtier = { +# ep3_varangian_trigger = yes +# is_available_adult = yes +# this != scope:varangian_leader +# } +# } +# random_courtier = { +# limit = { +# ep3_varangian_trigger = yes +# is_available_adult = yes +# this != scope:varangian_leader +# } +# save_scope_as = varangian_2 +# } +# } +# #Save a third +# if = { +# limit = { +# exists = scope:varangian_leader +# exists = scope:varangian_2 +# any_court_position_holder = { +# type = bodyguard_court_position +# ep3_varangian_trigger = yes +# is_available = yes +# NOR = { +# this = scope:varangian_leader +# this = scope:varangian_2 +# } +# } +# } +# random_court_position_holder = { +# type = bodyguard_court_position +# limit = { +# ep3_varangian_trigger = yes +# is_available = yes +# NOR = { +# this = scope:varangian_leader +# this = scope:varangian_2 +# } +# } +# save_scope_as = varangian_3 +# } +# } +# else_if = { +# limit = { +# exists = scope:varangian_leader +# exists = scope:varangian_2 +# any_courtier = { +# ep3_varangian_trigger = yes +# is_available_adult = yes +# NOR = { +# this = scope:varangian_leader +# this = scope:varangian_2 +# } +# } +# } +# random_courtier = { +# limit = { +# ep3_varangian_trigger = yes +# is_available_adult = yes +# NOR = { +# this = scope:varangian_leader +# this = scope:varangian_2 +# } +# } +# save_scope_as = varangian_3 +# } +# } +# } +# +# #Have the Akolouthos seize some of the spoils +# option = { +# name = ep3_emperor_yearly.3000.a +# flavor = ep3_emperor_yearly.3000.a.flavor +# trigger = { +# employs_court_position = akolouthos_court_position +# any_court_position_holder = { +# type = akolouthos_court_position +# aptitude = { +# court_position = akolouthos_court_position +# value >= 3 +# } +# } +# } +# add_internal_flag = special +# custom_tooltip = akolouthos_aptitude_option_unlock +# +# #Random refuse bonus effect +# if = { +# limit = { +# has_character_flag = refuse_bonus_prestige +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# add_prestige = massive_prestige_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 4 +# } +# add_prestige = major_prestige_gain +# } +# else = { +# add_prestige = medium_prestige_gain +# } +# } +# if = { +# limit = { +# has_character_flag = refuse_bonus_dread +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# add_dread = major_dread_gain +# add_prestige = major_prestige_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 4 +# } +# add_dread = medium_dread_gain +# add_prestige = medium_prestige_gain +# } +# else = { +# add_dread = minor_dread_gain +# add_prestige = minor_prestige_gain +# } +# } +# if = { +# limit = { +# has_character_flag = refuse_bonus_opinion +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# every_vassal = { +# custom = every_parochial_vassal +# add_opinion = { +# modifier = respect_opinion +# opinion = 30 +# target = root +# } +# } +# add_prestige = major_prestige_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 4 +# } +# every_vassal = { +# custom = every_parochial_vassal +# add_opinion = { +# modifier = respect_opinion +# opinion = 20 +# target = root +# } +# } +# add_prestige = medium_prestige_gain +# } +# else = { +# every_vassal = { +# custom = every_parochial_vassal +# add_opinion = { +# modifier = respect_opinion +# opinion = 10 +# target = root +# } +# } +# add_prestige = minor_prestige_gain +# } +# } +# change_influence = medium_influence_gain +# +# remove_treasury_or_gold = { +# value = { +# value = 0 +# add = { +# value = scope:varangian_gold +# multiply = 0.4 +# } +# } +# } +# #Negative heavy inf and scheme resistance modifier +# add_character_modifier = { +# modifier = disrespected_varangians_modifier +# years = 10 +# } +# if = { +# limit = { +# scope:varangian_leader = { +# is_courtier_of = root +# } +# } +# if = { +# limit = { +# scope:varangian_leader = { has_trait = loyal } +# } +# scope:varangian_leader = { remove_trait = loyal } +# reverse_add_opinion = { +# target = scope:varangian_leader +# modifier = angry_opinion +# opinion = -20 +# } +# } +# else = { +# reverse_add_opinion = { +# target = scope:varangian_leader +# modifier = hate_opinion +# opinion = -40 +# } +# } +# } +# if = { +# limit = { +# exists = scope:varangian_2 +# } +# if = { +# limit = { +# scope:varangian_2 = { has_trait = loyal } +# } +# scope:varangian_2 = { remove_trait = loyal } +# reverse_add_opinion = { +# target = scope:varangian_2 +# modifier = angry_opinion +# opinion = -20 +# } +# } +# else = { +# reverse_add_opinion = { +# target = scope:varangian_2 +# modifier = hate_opinion +# opinion = -40 +# } +# } +# } +# if = { +# limit = { +# exists = scope:varangian_3 +# } +# if = { +# limit = { +# scope:varangian_3 = { has_trait = loyal } +# } +# scope:varangian_3 = { remove_trait = loyal } +# reverse_add_opinion = { +# target = scope:varangian_3 +# modifier = angry_opinion +# opinion = -20 +# } +# } +# else = { +# reverse_add_opinion = { +# target = scope:varangian_3 +# modifier = hate_opinion +# opinion = -40 +# } +# } +# } +# #Apply randomized_malus +# if = { +# limit = { +# has_character_flag = malus_court_grandeur +# var:varangian_regiments >= 7 +# } +# change_current_court_grandeur = minor_court_grandeur_loss +# } +# if = { +# limit = { +# has_character_flag = malus_broken_artifact +# var:varangian_regiments >= 7 +# } +# scope:broken_artifact = { +# add_durability = -20 +# } +# } +# if = { +# limit = { +# NOT = { +# scope:varangian_leader = { +# is_courtier_of = root +# } +# } +# } +# hidden_effect = { +# scope:varangian_leader = { move_to_pool = yes } +# } +# } +# +# stress_impact = { +# craven = medium_stress_impact_gain +# paranoid = medium_stress_impact_gain +# generous = medium_stress_impact_gain +# content = minor_stress_impact_gain +# just = minor_stress_impact_gain +# } +# ai_chance = { +# base = 50 +# ai_value_modifier = { +# ai_greed = 1 +# ai_boldness = 1 +# } +# modifier = { +# factor = 0 +# OR = { +# has_trait = craven +# has_trait = paranoid +# has_trait = generous +# has_trait = content +# has_trait = just +# } +# } +# modifier = { +# factor = 3 +# short_term_gold <= 300 +# } +# modifier = { +# factor = 0.5 +# OR = { +# has_trait = content +# has_trait = just +# } +# } +# } +# } +# #Chastise the Varangians +# option = { +# trigger = { +# age >= 12 +# } +# name = ep3_emperor_yearly.3000.b +# flavor = ep3_emperor_yearly.3000.b.flavor +# #Random refuse bonus effect +# if = { +# limit = { +# has_character_flag = refuse_bonus_prestige +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# add_prestige = massive_prestige_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 4 +# } +# add_prestige = major_prestige_gain +# } +# else = { +# add_prestige = medium_prestige_gain +# } +# } +# if = { +# limit = { +# has_character_flag = refuse_bonus_dread +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# add_dread = major_dread_gain +# add_prestige = major_prestige_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 4 +# } +# add_dread = medium_dread_gain +# add_prestige = medium_prestige_gain +# } +# else = { +# add_dread = minor_dread_gain +# add_prestige = minor_prestige_gain +# } +# } +# if = { +# limit = { +# has_character_flag = refuse_bonus_opinion +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# every_vassal = { +# custom = every_parochial_vassal +# add_opinion = { +# modifier = respect_opinion +# opinion = 30 +# target = root +# } +# } +# add_prestige = major_prestige_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 4 +# } +# every_vassal = { +# custom = every_parochial_vassal +# add_opinion = { +# modifier = respect_opinion +# opinion = 20 +# target = root +# } +# } +# add_prestige = medium_prestige_gain +# } +# else = { +# every_vassal = { +# custom = every_parochial_vassal +# add_opinion = { +# modifier = respect_opinion +# opinion = 10 +# target = root +# } +# } +# add_prestige = minor_prestige_gain +# } +# } +# +# if = { +# limit = { +# var:varangian_regiments > 0 +# } +# remove_long_term_gold = { +# value = scope:varangian_gold +# } +# } +# +# #show custom payout tooltip +# if = { +# limit = { +# exists = scope:varangian_3 +# } +# custom_tooltip = major_gold_to_varangians_tooltip +# } +# else_if = { +# limit = { +# exists = scope:varangian_2 +# } +# custom_tooltip = medium_gold_to_varangians_tooltip +# } +# else_if = { +# limit = { +# scope:varangian_leader = { +# is_courtier_of = root +# } +# } +# custom_tooltip = minor_gold_to_varangians_tooltip +# } +# +# if = { +# limit = { +# scope:varangian_leader = { +# is_courtier_of = root +# } +# } +# if = { +# limit = { +# scope:varangian_leader = { has_trait = loyal } +# } +# scope:varangian_leader = { remove_trait = loyal } +# } +# else = { +# reverse_add_opinion = { +# target = scope:varangian_leader +# modifier = angry_opinion +# opinion = -20 +# } +# } +# hidden_effect = { +# pay_long_term_gold = { +# target = scope:varangian_leader +# gold = 25 +# } +# } +# } +# if = { +# limit = { +# exists = scope:varangian_2 +# } +# if = { +# limit = { +# scope:varangian_2 = { has_trait = loyal } +# } +# scope:varangian_2 = { remove_trait = loyal } +# } +# else = { +# reverse_add_opinion = { +# target = scope:varangian_2 +# modifier = angry_opinion +# opinion = -20 +# } +# } +# hidden_effect = { +# pay_long_term_gold = { +# target = scope:varangian_2 +# gold = 25 +# } +# } +# } +# if = { +# limit = { +# exists = scope:varangian_3 +# } +# if = { +# limit = { +# scope:varangian_3 = { has_trait = loyal } +# } +# scope:varangian_3 = { remove_trait = loyal } +# } +# else = { +# reverse_add_opinion = { +# target = scope:varangian_3 +# modifier = angry_opinion +# opinion = -20 +# } +# } +# hidden_effect = { +# pay_long_term_gold = { +# target = scope:varangian_3 +# gold = 25 +# } +# } +# } +# #Negative heavy inf and scheme resistance modifier +# add_character_modifier = { +# modifier = disrespected_varangians_modifier +# years = 10 +# } +# #Apply randomized_malus +# ep3_palace_looting_random_malus_effect = yes +# +# if = { +# limit = { +# NOT = { +# scope:varangian_leader = { +# is_courtier_of = root +# } +# } +# } +# hidden_effect = { +# scope:varangian_leader = { move_to_pool = yes } +# } +# } +# +# stress_impact = { +# craven = medium_stress_impact_gain +# paranoid = medium_stress_impact_gain +# generous = minor_stress_impact_gain +# content = minor_stress_impact_gain +# just = miniscule_stress_impact_gain +# } +# ai_chance = { +# base = 50 +# ai_value_modifier = { +# ai_vengefulness = 1 +# } +# modifier = { +# factor = 0 +# OR = { +# has_trait = craven +# has_trait = paranoid +# has_trait = generous +# has_trait = content +# } +# } +# modifier = { +# factor = 0.5 +# OR = { +# has_trait = generous +# has_trait = content +# has_trait = just +# } +# } +# } +# } +# #It's just tradition +# option = { +# name = ep3_emperor_yearly.3000.c +# flavor = ep3_emperor_yearly.3000.c.flavor +# if = { +# limit = { +# has_character_flag = accept_bonus_legitimacy +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# add_legitimacy = major_legitimacy_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 3 +# } +# add_legitimacy = medium_legitimacy_gain +# } +# else = { +# add_legitimacy = minor_legitimacy_gain +# } +# } +# if = { +# limit = { +# has_character_flag = accept_bonus_heavy_infantry +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# add_character_modifier = { +# modifier = loyal_varangians_modifier +# years = 10 +# } +# add_legitimacy = medium_legitimacy_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 3 +# } +# add_character_modifier = { +# modifier = loyal_varangians_modifier +# years = 10 +# } +# add_legitimacy = miniscule_legitimacy_gain +# } +# else = { +# add_character_modifier = { +# modifier = loyal_varangians_modifier +# years = 10 +# } +# } +# } +# if = { +# limit = { +# has_character_flag = accept_bonus_scheme_resist +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# add_character_modifier = { +# modifier = attentive_varangians_modifier +# years = 10 +# } +# add_legitimacy = medium_legitimacy_gain +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 3 +# } +# add_character_modifier = { +# modifier = attentive_varangians_modifier +# years = 10 +# } +# add_legitimacy = miniscule_legitimacy_gain +# } +# else = { +# add_character_modifier = { +# modifier = attentive_varangians_modifier +# years = 10 +# } +# } +# } +# if = { +# limit = { +# has_character_flag = accept_bonus_army +# } +# if = { +# limit = { +# var:varangian_regiments >= 7 +# } +# spawn_army = { +# name = eager_varangian_army +# levies = 600 +# men_at_arms = { +# type = varangian_guards +# stacks = 4 +# } +# location = root.capital_province +# uses_supply = yes +# inheritable = no +# } +# } +# else_if = { +# limit = { +# var:varangian_regiments >= 3 +# } +# spawn_army = { +# name = eager_varangian_army +# levies = 300 +# men_at_arms = { +# type = varangian_guards +# stacks = 2 +# } +# location = root.capital_province +# uses_supply = yes +# inheritable = no +# } +# } +# else = { +# spawn_army = { +# name = eager_varangian_army +# levies = 100 +# men_at_arms = { +# type = varangian_guards +# stacks = 1 +# } +# location = root.capital_province +# uses_supply = yes +# inheritable = no +# } +# } +# } +# +# if = { +# limit = { +# var:varangian_regiments > 0 +# } +# remove_long_term_gold = { +# value = scope:varangian_gold +# } +# } +# +# +# #show custom payout tooltip +# if = { +# limit = { +# exists = scope:varangian_3 +# } +# custom_tooltip = major_gold_to_varangians_tooltip +# } +# else_if = { +# limit = { +# exists = scope:varangian_2 +# } +# custom_tooltip = medium_gold_to_varangians_tooltip +# } +# else_if = { +# limit = { +# scope:varangian_leader = { +# is_courtier_of = root +# } +# } +# custom_tooltip = minor_gold_to_varangians_tooltip +# } +# +# if = { +# limit = { +# scope:varangian_leader = { +# is_courtier_of = root +# } +# } +# reverse_add_opinion = { +# target = scope:varangian_leader +# modifier = loyalty_opinion +# opinion = 60 +# } +# hidden_effect = { +# pay_long_term_gold = { +# target = scope:varangian_leader +# gold = 25 +# } +# } +# } +# if = { +# limit = { +# exists = scope:varangian_2 +# } +# reverse_add_opinion = { +# target = scope:varangian_2 +# modifier = loyalty_opinion +# opinion = 60 +# } +# hidden_effect = { +# pay_long_term_gold = { +# target = scope:varangian_2 +# gold = 25 +# } +# } +# } +# if = { +# limit = { +# exists = scope:varangian_3 +# } +# reverse_add_opinion = { +# target = scope:varangian_3 +# modifier = loyalty_opinion +# opinion = 60 +# } +# hidden_effect = { +# pay_long_term_gold = { +# target = scope:varangian_3 +# gold = 25 +# } +# } +# } +# +# #Apply randomized_malus +# ep3_palace_looting_random_malus_effect = yes +# +# stress_impact = { +# generous = miniscule_stress_impact_loss +# paranoid = minor_stress_impact_loss +# greedy = medium_stress_impact_gain +# vengeful = medium_stress_impact_gain +# arrogant = minor_stress_impact_gain +# arbitrary = minor_stress_impact_gain +# } +# ai_chance = { +# base = 200 +# ai_value_modifier = { +# ai_greed = -0.5 +# ai_boldness = -0.5 +# ai_vengefulness = -1 +# } +# modifier = { +# factor = 0 +# OR = { +# has_trait = greedy +# has_trait = vengeful +# has_trait = arrogant +# has_trait = arbitrary +# } +# } +# modifier = { +# factor = 0.5 +# OR = { +# has_trait = arrogant +# has_trait = arbitrary +# } +# } +# } +# } +# after = { +# if = { +# limit = { +# scope:varangian_leader = { +# has_character_flag = need_military_outfit +# } +# } +# scope:varangian_leader = { +# remove_character_flag = need_military_outfit +# } +# } +# if = { +# limit = { +# has_character_flag = malus_broken_artifact +# } +# remove_character_flag = malus_broken_artifact +# } +# if = { +# limit = { +# has_character_flag = malus_stolen_artifact +# } +# remove_character_flag = malus_stolen_artifact +# } +# if = { +# limit = { +# has_character_flag = malus_court_grandeur +# } +# remove_character_flag = malus_court_grandeur +# } +# if = { +# limit = { +# has_character_flag = refuse_bonus_dread +# } +# remove_character_flag = refuse_bonus_dread +# } +# if = { +# limit = { +# has_character_flag = refuse_bonus_opinion +# } +# remove_character_flag = refuse_bonus_opinion +# } +# if = { +# limit = { +# has_character_flag = refuse_bonus_prestige +# } +# remove_character_flag = refuse_bonus_prestige +# } +# if = { +# limit = { +# has_character_flag = accept_bonus_heavy_infantry +# } +# remove_character_flag = accept_bonus_heavy_infantry +# } +# if = { +# limit = { +# has_character_flag = accept_bonus_scheme_resist +# } +# remove_character_flag = accept_bonus_scheme_resist +# } +# if = { +# limit = { +# has_character_flag = accept_bonus_army +# } +# remove_character_flag = accept_bonus_army +# } +# if = { +# limit = { +# has_character_flag = accept_bonus_legitimacy +# } +# remove_character_flag = accept_bonus_legitimacy +# } +# } +#} +# +##Byzantine emperor sends fireships to defend the strait of Marmara +#ep3_emperor_yearly.3010 = { +# hidden = yes +# +# trigger = { +# #province is strait of Marmara +# scope:army.location = { +# OR = { +# this = province:947 +# this = province:950 +# this = province:948 +# this = province:8667 +# this = province:8668 +# this = province:8665 +# } +# } +# #A lot of jank would be introduced by multiplayer and armies continuing to move, unpaused +# has_multiple_players = no +# title:c_byzantion = { has_county_modifier = defensive_fire_dromons_modifier } +# NOT = { has_character_flag = used_fire_dromons } +# #this event is really going to f up the enemy army in a way no player will appreciate +# is_ai = yes +# +# #Is it at war with powerful ruler whose capital is Constantinople +# any_war_enemy = { +# is_landed = yes +# capital_county = title:c_byzantion +# capital_province = { is_occupied = no } +# culture = { +# OR = { +# this = culture:greek +# any_parent_culture_or_above = { this = culture:greek } +# } +# } +# } +# } +# +# immediate = { +# save_scope_as = invader +# scope:army.army_commander ?= { save_scope_as = invading_commander } +# random_war_enemy = { +# limit = { +# is_landed = yes +# capital_county = title:c_byzantion +# capital_province = { is_occupied = no } +# culture = { +# OR = { +# this = culture:greek +# any_parent_culture_or_above = { this = culture:greek } +# } +# } +# } +# save_scope_as = marmara_defender +# } +# scope:marmara_defender = { +# trigger_event = ep3_emperor_yearly.3011 +# } +# } +#} +# +#ep3_emperor_yearly.3011 = { +# type = character_event +# title = ep3_emperor_yearly.3011.t +# desc = { +# desc = ep3_emperor_yearly.3011.intro +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:invader = { +# this = scope:invading_commander +# } +# } +# desc = ep3_emperor_yearly.3011.liege_attacking +# } +# desc = ep3_emperor_yearly.3011.commander_attacking +# } +# desc = ep3_emperor_yearly.3011.desc +# triggered_desc = { +# trigger = { +# knows_language = language_greek +# OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } +# } +# desc = ep3_emperor_yearly.3011.kyrie_eleison +# } +# } +# theme = war +# override_background = { reference = ep3_constantinople } +# left_portrait = { +# character = scope:city_defender +# animation = survey +# camera = camera_event_left_away +# } +# lower_right_portrait = { +# character = scope:invading_commander +# } +# +# immediate = { +# #perspective character for event window +# if = { +# limit = { +# is_available = yes +# } +# save_scope_as = city_defender +# } +# else_if = { +# limit = { +# cp:councillor_marshal ?= { +# is_available = yes +# } +# } +# cp:councillor_marshal = { +# save_scope_as = city_defender +# } +# } +# else_if = { +# limit = { +# OR = { +# has_diarchy_type = temporary_regency +# has_diarchy_type = regency +# } +# diarch = { +# is_available = yes +# } +# } +# diarch = { save_scope_as = city_defender } +# } +# else = { +# save_scope_as = city_defender +# } +# scope:city_defender = { +# add_character_flag = need_military_outfit +# } +# scope:invader = { +# if = { +# limit = { +# any_knight = { +# is_in_army = yes +# this != scope:invading_commander +# } +# } +# random_knight = { +# limit = { +# is_in_army = yes +# this != scope:invading_commander +# } +# save_scope_as = knight_1 +# } +# } +# if = { +# limit = { +# any_knight = { +# is_in_army = yes +# NOR = { +# this = scope:knight_1 +# this = scope:invading_commander +# } +# } +# } +# random_knight = { +# limit = { +# is_in_army = yes +# NOR = { +# this = scope:knight_1 +# this = scope:invading_commander +# } +# } +# save_scope_as = knight_2 +# } +# } +# if = { +# limit = { +# any_knight = { +# is_in_army = yes +# NOR = { +# this = scope:knight_1 +# this = scope:knight_2 +# this = scope:invading_commander +# } +# } +# } +# random_knight = { +# limit = { +# is_in_army = yes +# NOR = { +# this = scope:knight_1 +# this = scope:knight_2 +# this = scope:invading_commander +# } +# } +# save_scope_as = knight_3 +# } +# } +# if = { +# limit = { +# any_knight = { +# is_in_army = yes +# NOR = { +# this = scope:knight_1 +# this = scope:knight_2 +# this = scope:knight_3 +# this = scope:invading_commander +# } +# } +# } +# random_knight = { +# limit = { +# is_in_army = yes +# NOR = { +# this = scope:knight_1 +# this = scope:knight_2 +# this = scope:knight_3 +# this = scope:invading_commander +# } +# } +# save_scope_as = knight_4 +# } +# } +# if = { +# limit = { +# any_knight = { +# is_in_army = yes +# NOR = { +# this = scope:knight_1 +# this = scope:knight_2 +# this = scope:knight_3 +# this = scope:knight_4 +# this = scope:invading_commander +# } +# } +# } +# random_knight = { +# limit = { +# is_in_army = yes +# NOR = { +# this = scope:knight_1 +# this = scope:knight_2 +# this = scope:knight_3 +# this = scope:knight_4 +# this = scope:invading_commander +# } +# } +# save_scope_as = knight_5 +# } +# } +# } +# } +# #Use the greek fire ships +# option = { +# name = ep3_emperor_yearly.3011.a +# add_character_flag = { +# flag = used_fire_dromons +# days = 30 +# } +# custom_tooltip = unable_to_use_fire_ships_tooltip +# scope:city_defender = { +# duel = { +# skill = martial +# target = scope:invading_commander +# 35 = { #Your fleet ruins the enemy +# desc = ep3_emperor_yearly.3011.a.success +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -34 +# } +# modifier = { +# has_trait = forder +# add = 20 +# } +# modifier = { +# highest_held_title_tier >= tier_empire +# +# add = 10 +# } +# modifier = { +# scope:army = { +# army_size <= 1000 +# } +# add = 10 +# } +# modifier = { +# scope:army = { +# #Big enough army to actually siege the city +# army_size < 2500 +# } +# add = 10 +# } +# modifier = { +# scope:invading_commander = { +# has_trait = reckless +# } +# add = 10 +# } +# modifier = { +# has_trait = reckless +# add = 10 +# } +# modifier = { +# has_trait = aggressive_attacker +# add = 10 +# } +# modifier = { +# has_trait = military_engineer +# add = 10 +# } +# modifier = { +# scope:invading_commander = { +# has_trait = aggressive_attacker +# } +# add = 10 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = curtain_walls_01 +# } +# add = 5 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = curtain_walls_03 +# } +# add = 5 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = curtain_walls_05 +# } +# add = 5 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = curtain_walls_07 +# } +# add = 5 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = common_tradeport_01 +# } +# add = 5 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = common_tradeport_03 +# } +# add = 5 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = common_tradeport_05 +# } +# add = 5 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = common_tradeport_07 +# } +# add = 5 +# } +# show_as_tooltip = { ep3_greek_fire_success_effect = yes } +# root = { add_character_flag = successful_greek_fire_attack } +# } +# 50 = { #Your fleet does some damage +# desc = ep3_emperor_yearly.3011.a.fail +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# modifier = { +# has_trait = forder +# add = 40 +# } +# modifier = { +# scope:army = { +# #Big enough army to actually siege the city +# army_size < 2500 +# } +# add = 20 +# } +# modifier = { +# scope:army = { +# army_size <= 1000 +# } +# add = 20 +# } +# modifier = { +# scope:invading_commander = { +# has_trait = reckless +# } +# add = 20 +# } +# modifier = { +# scope:invading_commander = { +# has_trait = aggressive_attacker +# } +# add = 10 +# } +# modifier = { +# has_trait = aggressive_attacker +# add = 20 +# } +# modifier = { +# has_trait = military_engineer +# add = 20 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = curtain_walls_01 +# } +# add = 10 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = curtain_walls_03 +# } +# add = 10 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = curtain_walls_05 +# } +# add = 10 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = curtain_walls_07 +# } +# add = 10 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = common_tradeport_01 +# } +# add = 10 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = common_tradeport_03 +# } +# add = 10 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = common_tradeport_05 +# } +# add = 10 +# } +# modifier = { +# province:496 = { +# has_building_or_higher = common_tradeport_07 +# } +# add = 10 +# } +# show_as_tooltip = { ep3_greek_fire_fail_effect = yes } +# root = { add_character_flag = failed_greek_fire_attack } +# } +# 15 = { #Your fleet does a little damage and... ruins themselves +# desc = ep3_emperor_yearly.3011.a.critical_fail +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -14 +# } +# modifier = { +# scope:invading_commander = { +# has_trait = forder +# } +# add = 40 +# } +# modifier = { +# scope:invading_commander = { +# has_trait = organizer +# } +# add = 20 +# } +# modifier = { +# scope:invading_commander = { +# has_trait = cautious_leader +# } +# add = 20 +# } +# modifier = { +# has_trait = cautious_leader +# add = 20 +# } +# +# modifier = { +# scope:army = { +# army_size >= 5000 +# } +# add = 20 +# } +# modifier = { +# scope:army = { +# army_size >= 10000 +# } +# add = 20 +# } +# show_as_tooltip = { ep3_greek_fire_crit_fail_effect = yes } +# root = { add_character_flag = crit_failed_greek_fire_attack } +# } +# } +# } +# trigger_event = ep3_emperor_yearly.3012 +# stress_impact = { +# compassionate = medium_stress_impact_gain +# cautious_leader = medium_stress_impact_gain +# patient = minor_stress_impact_gain +# } +# ai_chance = { +# base = 100 +# ai_value_modifier = { +# ai_vengefulness = 1 +# ai_boldness = 1 +# } +# modifier = { +# add = 20 +# scope:city_defender = { +# martial >= high_skill_rating +# } +# } +# modifier = { +# add = 20 +# scope:invading_commander = { +# martial <= high_skill_rating +# } +# } +# modifier = { +# factor = 0.5 +# OR = { +# has_trait = compassionate +# has_trait = cautious_leader +# } +# } +# modifier = { +# factor = 2 +# scope:army = { +# army_size >= 4000 +# } +# } +# modifier = { +# factor = 2 +# scope:army = { +# army_size >= 7000 +# } +# } +# } +# } +# #Don't attack +# option = { +# name = ep3_emperor_yearly.3011.b +# if = { +# limit = { +# scope:army = { +# #Big enough army to actually siege the city +# army_size >= 4000 +# } +# } +# add_prestige = medium_prestige_loss +# } +# else_if = { +# limit = { +# scope:army = { +# army_size >= 3000 +# } +# } +# add_prestige = minor_prestige_loss +# } +# else = { +# add_prestige = miniscule_prestige_loss +# } +# stress_impact = { +# vengeful = medium_stress_impact_gain +# wrathful = medium_stress_impact_gain +# sadistic = miniscule_stress_impact_gain +# reckless = minor_stress_impact_gain +# brave = minor_stress_impact_gain +# } +# ai_chance = { +# base = 100 +# ai_value_modifier = { +# ai_energy = -1 +# ai_boldness = -1 +# } +# modifier = { +# add = 20 +# scope:city_defender = { +# martial < decent_skill_rating +# } +# } +# modifier = { +# add = 20 +# scope:invading_commander = { +# martial > very_high_skill_rating +# } +# } +# modifier = { +# factor = 0.5 +# OR = { +# has_trait = wrathful +# has_trait = vengeful +# has_trait = reckless +# has_trait = brave +# } +# } +# modifier = { +# factor = 2 +# scope:army = { +# army_size <= 2000 +# } +# } +# modifier = { +# factor = 2 +# scope:army = { +# army_size < 1000 +# } +# } +# } +# } +# after = { +# scope:city_defender = { remove_character_flag = need_military_outfit } +# } +#} +# +#ep3_emperor_yearly.3012 = { +# type = character_event +# title = ep3_emperor_yearly.3012.t +# desc = { +# desc = ep3_emperor_yearly.3012.intro +# #Triggered desc based on success +# first_valid = { +# triggered_desc = { +# trigger = { +# has_character_flag = successful_greek_fire_attack +# } +# desc = ep3_emperor_yearly.3012.attack_success +# } +# triggered_desc = { +# trigger = { +# has_character_flag = failed_greek_fire_attack +# } +# desc = ep3_emperor_yearly.3012.attack_fail +# } +# triggered_desc = { +# trigger = { +# has_character_flag = crit_failed_greek_fire_attack +# } +# desc = ep3_emperor_yearly.3012.attack_crit_fail +# } +# } +# } +# theme = war +# override_background = { reference = ocean } +# widget = { +# gui = "event_window_widget_vfx_heavy_smoke" +# container = "foreground_shader_vfx_container" +# } +# right_portrait = { +# character = scope:invading_commander +# triggered_animation = { +# trigger = { +# root = { has_character_flag = successful_greek_fire_attack } +# } +# animation = sword_yield_start +# } +# triggered_animation = { +# trigger = { +# root = { has_character_flag = failed_greek_fire_attack } +# } +# animation = fear +# } +# triggered_animation = { +# trigger = { +# root = { has_character_flag = crit_failed_greek_fire_attack } +# } +# animation = sword_coup_degrace +# } +# } +# +# immediate = { +# play_music_cue = "mx_cue_war_declared" +# #show effect as tooltip here +# create_character_memory = { +# type = endured_greek_fire_memory +# participants = { +# attacker = root +# } +# } +# } +# +# option = { +# name = { +# trigger = { has_character_flag = successful_greek_fire_attack } +# text = ep3_emperor_yearly.3012.a_success +# } +# name = { +# trigger = { has_character_flag = failed_greek_fire_attack } +# text = ep3_emperor_yearly.3012.a_fail +# } +# name = { +# trigger = { has_character_flag = crit_failed_greek_fire_attack } +# text = ep3_emperor_yearly.3012.a_crit_fail +# } +# +# if = { +# limit = { has_character_flag = successful_greek_fire_attack +# } +# ep3_greek_fire_success_effect = yes +# } +# if = { +# limit = { +# has_character_flag = failed_greek_fire_attack +# } +# ep3_greek_fire_fail_effect = yes +# } +# if = { +# limit = { +# has_character_flag = crit_failed_greek_fire_attack +# } +# ep3_greek_fire_crit_fail_effect = yes +# } +# #Apply memory to invading commander? +# if = { +# limit = { +# has_character_flag = successful_greek_fire_attack +# } +# stress_impact = { +# sadistic = medium_stress_impact_loss +# paranoid = minor_stress_impact_loss +# vengeful = medium_stress_impact_loss +# callous = minor_stress_impact_loss +# } +# } +# } +# after = { +# if = { +# limit = { has_character_flag = successful_greek_fire_attack +# } +# remove_character_flag = successful_greek_fire_attack +# } +# if = { +# limit = { +# has_character_flag = failed_greek_fire_attack +# } +# remove_character_flag = failed_greek_fire_attack +# } +# if = { +# limit = { +# has_character_flag = crit_failed_greek_fire_attack +# } +# remove_character_flag = crit_failed_greek_fire_attack +# } +# } +#} +# \ No newline at end of file diff --git a/events/dlc/ep3/ep3_laamp_events.txt b/events/dlc/ep3/ep3_laamp_events.txt index 9cba5160..dfda93d9 100644 --- a/events/dlc/ep3/ep3_laamp_events.txt +++ b/events/dlc/ep3/ep3_laamp_events.txt @@ -7278,7 +7278,7 @@ ep3_laamps.6000 = { # location = scope:ely # template = knight # culture = culture:norman -# faith = faith:catholic +# faith = faith:roman_catholic # save_scope_as = frederick # } # } diff --git a/events/dlc/fp1/fp1_scandinavian_adventurer_events.txt b/events/dlc/fp1/fp1_scandinavian_adventurer_events.txt index 64b021c5..c8c41391 100644 --- a/events/dlc/fp1/fp1_scandinavian_adventurer_events.txt +++ b/events/dlc/fp1/fp1_scandinavian_adventurer_events.txt @@ -983,131 +983,132 @@ fp1_scandinavian_adventurers.0011 = { } } -scripted_effect scandi_adventurers_grab_famous_character_effect = { - $CHARACTER$ ?= { - if = { - limit = { - # Still kickin'. - is_physically_able_adult = yes - # Shouldn't ever really be an issue, but y'never know. - is_ai = yes - # Hasn't got anything dynastic of note going on. - is_ruler = no - any_heir_title = { count = 0 } - # And is free and clear to go. - is_imprisoned = no - OR = { - is_married = no - AND = { - is_female = yes - matrilinear_marriage = yes - } - AND = { - is_male = yes - patrilinear_marriage = yes - } - } - # And is still North Germanic/not in either of the lists. - culture = { has_cultural_pillar = heritage_north_germanic } - NOR = { - save_temporary_scope_as = character - any_in_global_list = { - variable = western_scandinavian_adventurer_list - this = scope:character - } - any_in_global_list = { - variable = eastern_scandinavian_adventurer_list - this = scope:character - } - } - } - # Norse, Norwegians, & Danes go into the western adventurer list. - if = { - limit = { - OR = { - has_culture = culture:norse - has_culture = culture:norwegian - has_culture = culture:danish - } - } - add_to_global_variable_list = { - name = western_scandinavian_adventurer_list - target = this - } - } - # Norse & Swedes go into the eastern adventurer list. - if = { - limit = { - OR = { - has_culture = culture:norse - has_culture = culture:swedish - } - } - add_to_global_variable_list = { - name = eastern_scandinavian_adventurer_list - target = this - } - } - # Either way, flag 'em for priority in the system. - add_character_flag = prioritised_scandinavian_adventurer - } - } -} - -fp1_scandinavian_adventurers.0012 = { - hidden = yes - scope = none - - trigger = { - # DLC check. - has_fp1_dlc_trigger = yes - # No point in later starts. - game_start_date = 867.1.1 - - OR = { - exists = character:242 - exists = character:163119 - } - - } - - immediate = { - # Nab Rollo. - scandi_adventurers_grab_famous_character_effect = { CHARACTER = character:242 } - # Nab Ubbe. - scandi_adventurers_grab_famous_character_effect = { CHARACTER = character:163119 } - } -} - -fp1_scandinavian_adventurers.0021 = { - hidden = yes - scope = none - - trigger = { - # DLC check. - has_fp1_dlc_trigger = yes - # No point in later starts. - game_start_date = 867.1.1 - } - - immediate = { - # Haesteinn. - character:6878 = { add_character_flag = prioritised_scandinavian_adventurer } - # Ivar the Boneless. - character:163111 = { add_character_flag = prioritised_scandinavian_adventurer } - # Halfdan Whiteshirt. - character:163112 = { add_character_flag = prioritised_scandinavian_adventurer } - # Sigurdr Snake-in-the-Eye. - character:163110 = { add_character_flag = prioritised_scandinavian_adventurer } - # Bjorn Ironside. - character:163108 = { add_character_flag = prioritised_scandinavian_adventurer } - # Rurik the Troublemaker. - character:40605 = { add_character_flag = prioritised_scandinavian_adventurer } - # Dyre the Stranger. - character:6811 = { add_character_flag = prioritised_scandinavian_adventurer } - # Harald Fairhair. - character:144000 = { add_character_flag = prioritised_scandinavian_adventurer } - # Audr the Deep-Minded. - character:168609 = { add_character_flag = prioritised_scandinavian_adventurer } - } -} +#scripted_effect scandi_adventurers_grab_famous_character_effect = { +# $CHARACTER$ ?= { +# if = { +# limit = { +# # Still kickin'. +# is_physically_able_adult = yes +# # Shouldn't ever really be an issue, but y'never know. +# is_ai = yes +# # Hasn't got anything dynastic of note going on. +# is_ruler = no +# any_heir_title = { count = 0 } +# # And is free and clear to go. +# is_imprisoned = no +# OR = { +# is_married = no +# AND = { +# is_female = yes +# matrilinear_marriage = yes +# } +# AND = { +# is_male = yes +# patrilinear_marriage = yes +# } +# } +# # And is still North Germanic/not in either of the lists. +# culture = { has_cultural_pillar = heritage_north_germanic } +# NOR = { +# save_temporary_scope_as = character +# any_in_global_list = { +# variable = western_scandinavian_adventurer_list +# this = scope:character +# } +# any_in_global_list = { +# variable = eastern_scandinavian_adventurer_list +# this = scope:character +# } +# } +# } +# # Norse, Norwegians, & Danes go into the western adventurer list. +# if = { +# limit = { +# OR = { +# has_culture = culture:norse +# has_culture = culture:norwegian +# has_culture = culture:danish +# } +# } +# add_to_global_variable_list = { +# name = western_scandinavian_adventurer_list +# target = this +# } +# } +# # Norse & Swedes go into the eastern adventurer list. +# if = { +# limit = { +# OR = { +# has_culture = culture:norse +# has_culture = culture:swedish +# } +# } +# add_to_global_variable_list = { +# name = eastern_scandinavian_adventurer_list +# target = this +# } +# } +# # Either way, flag 'em for priority in the system. +# add_character_flag = prioritised_scandinavian_adventurer +# } +# } +#} +# +#fp1_scandinavian_adventurers.0012 = { +# hidden = yes +# scope = none +# +# trigger = { +# # DLC check. +# has_fp1_dlc_trigger = yes +# # No point in later starts. +# game_start_date = 867.1.1 +# +# OR = { +# exists = character:242 +# exists = character:163119 +# } +# +# } +# +# immediate = { +# # Nab Rollo. +# scandi_adventurers_grab_famous_character_effect = { CHARACTER = character:242 } +# # Nab Ubbe. +# scandi_adventurers_grab_famous_character_effect = { CHARACTER = character:163119 } +# } +#} +# +#fp1_scandinavian_adventurers.0021 = { +# hidden = yes +# scope = none +# +# trigger = { +# # DLC check. +# has_fp1_dlc_trigger = yes +# # No point in later starts. +# game_start_date = 867.1.1 +# } +# +# immediate = { +# # Haesteinn. +# character:6878 = { add_character_flag = prioritised_scandinavian_adventurer } +# # Ivar the Boneless. +# character:163111 = { add_character_flag = prioritised_scandinavian_adventurer } +# # Halfdan Whiteshirt. +# character:163112 = { add_character_flag = prioritised_scandinavian_adventurer } +# # Sigurdr Snake-in-the-Eye. +# character:163110 = { add_character_flag = prioritised_scandinavian_adventurer } +# # Bjorn Ironside. +# character:163108 = { add_character_flag = prioritised_scandinavian_adventurer } +# # Rurik the Troublemaker. +# character:40605 = { add_character_flag = prioritised_scandinavian_adventurer } +# # Dyre the Stranger. +# character:6811 = { add_character_flag = prioritised_scandinavian_adventurer } +# # Harald Fairhair. +# character:144000 = { add_character_flag = prioritised_scandinavian_adventurer } +# # Audr the Deep-Minded. +# character:168609 = { add_character_flag = prioritised_scandinavian_adventurer } +# } +#} +# \ No newline at end of file diff --git a/events/dlc/fp1/fp1_yearly_events.txt b/events/dlc/fp1/fp1_yearly_events.txt index 61918f7c..72c4efad 100644 --- a/events/dlc/fp1/fp1_yearly_events.txt +++ b/events/dlc/fp1/fp1_yearly_events.txt @@ -16531,7 +16531,7 @@ fp1_yearly.1081 = { triggered_desc = { trigger = { scope:phantom_island = flag:fortunate_isles - religion = religion:hellenism_religion + religion = religion:theomach_religion } desc = fp1_yearly.1081.desc.fortunate_isles.hellenist } diff --git a/events/dlc/fp2/fp2_lyonese_monk_events.txt b/events/dlc/fp2/fp2_lyonese_monk_events.txt index 9e543e9f..e28f31d5 100644 --- a/events/dlc/fp2/fp2_lyonese_monk_events.txt +++ b/events/dlc/fp2/fp2_lyonese_monk_events.txt @@ -1,4806 +1,4807 @@ -namespace = fp2_lyonese_monk - -################################################## -# #Setup & Misc -# We're starting, invalidating, or prematurely ending the chain. -# 0001 - 0010 A Storm-Tossed Night - a learned holy person arrives at court, begging for succour. -# 0011 - 0020 A Former Friend - you have died, and scope:acolyte wishes to continue. -# 0021 - 0030 Gone and Done - scope:acolyte has died or is no longer your courtier. -# 0031 - 0040 Shattered Faith - you or scope:acolyte are no longer the correct faith. -# 0041 - 0050 # - # +#namespace = fp2_lyonese_monk # -# #Private Teachings -# The event chain is in stealth mode, with no continuation tooltips. -# 0201 - 0210 Just a Few Friends - scope:acolyte asks for permission to start a study group. -# 0211 - 0220 But Why? - one of your barons retires to become a monk spontaneously. -# 0221 - 0230 A Rictus Grin - a courtier is looking dopey and happy due to how at peace with themselves they are. -# 0231 - 0240 Booing the Bishop - a bishop in your realm is booed by a crowd of people. -# 0241 - 0250 All HerHis Fault - your court chaplain comes to you complaining, begging for an end to all of this. +################################################### +## #Setup & Misc +## We're starting, invalidating, or prematurely ending the chain. +## 0001 - 0010 A Storm-Tossed Night - a learned holy person arrives at court, begging for succour. +## 0011 - 0020 A Former Friend - you have died, and scope:acolyte wishes to continue. +## 0021 - 0030 Gone and Done - scope:acolyte has died or is no longer your courtier. +## 0031 - 0040 Shattered Faith - you or scope:acolyte are no longer the correct faith. +## 0041 - 0050 # - # +## +## #Private Teachings +## The event chain is in stealth mode, with no continuation tooltips. +## 0201 - 0210 Just a Few Friends - scope:acolyte asks for permission to start a study group. +## 0211 - 0220 But Why? - one of your barons retires to become a monk spontaneously. +## 0221 - 0230 A Rictus Grin - a courtier is looking dopey and happy due to how at peace with themselves they are. +## 0231 - 0240 Booing the Bishop - a bishop in your realm is booed by a crowd of people. +## 0241 - 0250 All HerHis Fault - your court chaplain comes to you complaining, begging for an end to all of this. +## +## #Public Controversy +## Something is afoot! Important figures are getting involved, and you get continuation tooltips to let you know something is up. +## 0401 - 0410 Scope:pope's Epistle - the Pope writes you an advisory, reprimanding you and asking you to boot the monk. +## 0411 - 0420 Space to Teach - scope:acolyte asks you for a county (or barony, if you're still a count) in which to spread HerHis teachings. +## 0421 - 0430 High Tempers - your court chaplain and scope:acolyte get into a fight. +## 0431 - 0440 Scope:pope's Second Epistle - the Pope writes you *another* advisory, demanding that you boot scope:acolyte plus veiled threats. +## 0441 - 0450 The Council of scope:bishopric - the clergy of the region gather for a minor church council, featuring scope:acolyte defending their claims. +## +## #Schism +## Ho-boi, time for a shake-up! You recant or you suffer. +## 0601 - 0610 Scope:pope's Third Epistle - whatever the council's results, the Pope condemns it. You are given a final demand to repent & turn over scope:acolyte or face excommunication. +## 0611 - 0620 High Tensions - an angry mob in your capital turn up to demand scope:acolyte's head, countered by *another* angry mob that hates the first mob. +## 0621 - 0630 A Formal Complaint - zealous vassals protest your heresy. +## 0631 - 0640 Just Church Business - a neighbouring ruler has purchased claims on your land from your HoF. +## 0641 - 0650 No More than a Man - scope:acolyte suggests you embrace the heresy. +## +## #Council +## You've stuck with things, and now it's time to decide the course of your faith. +## 0801 - 0810 The Second Council of scope:bishopric - clergy from all over your realm gather, wanting to contribute their thoughts and notes. +## 0811 - 0820 Elipandics - clergy argue over whether you're all really adoptionists or just nuanced Catholics. +## 0821 - 0830 Felicians - clergy argue over the degree to which expedience is required. +## 0831 - 0840 Radicals - clergy argue over *how* monotheistic to be. +## 0841 - 0850 From the Ashes - the church council arrives at their final important doctrinal conclusions. +################################################### # -# #Public Controversy -# Something is afoot! Important figures are getting involved, and you get continuation tooltips to let you know something is up. -# 0401 - 0410 Scope:pope's Epistle - the Pope writes you an advisory, reprimanding you and asking you to boot the monk. -# 0411 - 0420 Space to Teach - scope:acolyte asks you for a county (or barony, if you're still a count) in which to spread HerHis teachings. -# 0421 - 0430 High Tempers - your court chaplain and scope:acolyte get into a fight. -# 0431 - 0440 Scope:pope's Second Epistle - the Pope writes you *another* advisory, demanding that you boot scope:acolyte plus veiled threats. -# 0441 - 0450 The Council of scope:bishopric - the clergy of the region gather for a minor church council, featuring scope:acolyte defending their claims. # -# #Schism -# Ho-boi, time for a shake-up! You recant or you suffer. -# 0601 - 0610 Scope:pope's Third Epistle - whatever the council's results, the Pope condemns it. You are given a final demand to repent & turn over scope:acolyte or face excommunication. -# 0611 - 0620 High Tensions - an angry mob in your capital turn up to demand scope:acolyte's head, countered by *another* angry mob that hates the first mob. -# 0621 - 0630 A Formal Complaint - zealous vassals protest your heresy. -# 0631 - 0640 Just Church Business - a neighbouring ruler has purchased claims on your land from your HoF. -# 0641 - 0650 No More than a Man - scope:acolyte suggests you embrace the heresy. # -# #Council -# You've stuck with things, and now it's time to decide the course of your faith. -# 0801 - 0810 The Second Council of scope:bishopric - clergy from all over your realm gather, wanting to contribute their thoughts and notes. -# 0811 - 0820 Elipandics - clergy argue over whether you're all really adoptionists or just nuanced Catholics. -# 0821 - 0830 Felicians - clergy argue over the degree to which expedience is required. -# 0831 - 0840 Radicals - clergy argue over *how* monotheistic to be. -# 0841 - 0850 From the Ashes - the church council arrives at their final important doctrinal conclusions. -################################################## - - - - - - - - - - -################################################## -# GENERAL SCRIPTED TRIGGERS & EFFECTS - -scripted_trigger fp2_suitable_base_convert_trigger = { - # We only want same-faith characters. - faith = scope:story.var:base_faith - # They should be old enough to attend a meeting. - age >= 14 - # Cynics, non-believers, and the chronically short of zeal don't attend such meetings voluntarily. - NOR = { - has_trait = cynical - ai_zeal <= high_negative_ai_value - any_secret = { type = secret_non_believer } - } - # Exclude characters that might turn up as scope:irate_theocrat. - NOR = { - # Court chaplains. - AND = { - exists = scope:acolyte_host.cp:councillor_court_chaplain - this = scope:acolyte_host.cp:councillor_court_chaplain - } - # Landed theocrats - we've already pre-filtered for faith. - government_has_flag = government_is_theocracy - # Landless monks at court - we've already pre-filtered for faith. - AND = { - is_courtier_of = scope:acolyte - has_trait = devoted - } - } - # And not already players or the the heir of a player. - is_ai = yes - NOT = { is_player_heir_of = scope:acolyte_host } -} - -scripted_trigger fp2_suitable_strict_convert_trigger = { - fp2_suitable_base_convert_trigger = yes - # Plus exclude both characters already in the list & the landed. - NOR = { - is_landed = yes - save_temporary_scope_as = current_temp - any_in_list = { - list = hidden_converts - this = scope:current_temp - } - } -} - -scripted_trigger fp2_suitable_semi_strict_convert_trigger = { - fp2_suitable_base_convert_trigger = yes - # Plus exclude characters already in the list. - NOT = { - save_temporary_scope_as = current_temp - any_in_list = { - list = hidden_converts - this = scope:current_temp - } - } -} - -scripted_trigger fp2_lyonese_monk_suitable_annoyed_theocrat_landed_vassal_trigger = { - government_has_flag = government_is_theocracy - faith = scope:story.var:base_faith - is_available_ai_adult = yes -} - -scripted_trigger fp2_lyonese_monk_suitable_annoyed_theocrat_landless_monk_trigger = { - has_trait = devoted - faith = scope:story.var:base_faith - is_available_ai_adult = yes - this != scope:acolyte -} - -scripted_trigger fp2_lyonese_monk_has_suitable_annoyed_theocrat_trigger = { - # This should always be synced with fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect. - OR = { - AND = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { is_available_ai_adult = yes } - } - any_vassal = { fp2_lyonese_monk_suitable_annoyed_theocrat_landed_vassal_trigger = yes } - any_courtier_or_guest = { fp2_lyonese_monk_suitable_annoyed_theocrat_landless_monk_trigger = yes } - } -} - -scripted_effect fp2_add_random_characters_to_converts_list_effect = { - hidden_effect = { - $COURT$ = { - while = { - count = 5 - limit = { - any_courtier_or_guest = { fp2_suitable_strict_convert_trigger = yes } - } - random_courtier_or_guest = { - limit = { fp2_suitable_strict_convert_trigger = yes } - add_to_list = hidden_converts - } - } - } - } -} - -scripted_effect fp2_add_random_vassals_to_converts_list_effect = { - hidden_effect = { - $LIEGE$ = { - while = { - count = 3 - limit = { - any_vassal = { fp2_suitable_semi_strict_convert_trigger = yes } - } - random_vassal = { - limit = { fp2_suitable_semi_strict_convert_trigger = yes } - add_to_list = hidden_converts - } - } - } - } -} - -scripted_effect fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = { - # This should always be synced with fp2_lyonese_monk_has_suitable_annoyed_theocrat_trigger. - # Grab a suitable annoyed var:base_faith character. - ## We prefer the chaplain... - if = { - limit = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { is_available_ai_adult = yes } - } - cp:councillor_court_chaplain = { save_scope_as = irate_theocrat } - } - ## ... or else a landed theocrat... - else_if = { - limit = { - any_vassal = { fp2_lyonese_monk_suitable_annoyed_theocrat_landed_vassal_trigger = yes } - } - random_vassal = { - limit = { fp2_lyonese_monk_suitable_annoyed_theocrat_landed_vassal_trigger = yes } - save_scope_as = irate_theocrat - } - } - ## ... but in a pinch a monk will do. - ### We should know from the sync'd trigger that we've definitely got one of these hanging about if we've gotten to this point, so no need to check twice. - else_if = { - limit = { - any_courtier_or_guest = { fp2_lyonese_monk_suitable_annoyed_theocrat_landless_monk_trigger = yes } - } - random_courtier_or_guest = { - limit = { fp2_lyonese_monk_suitable_annoyed_theocrat_landless_monk_trigger = yes } - save_scope_as = irate_theocrat - } - } - ## And, in an emergency, a backup. - else = { - create_character = { - location = scope:acolyte_host.capital_province - template = monk_character_template - culture = scope:acolyte_host.culture - faith = scope:story.var:base_faith - save_scope_as = irate_theocrat - } - } -} - -scripted_effect fp2_lyonese_monk_make_acolyte_and_irate_theocrat_rivals_effect = { - scope:acolyte = { - if = { - limit = { - NOT = { has_relation_rival = scope:irate_theocrat } - } - set_relation_rival = { - target= scope:irate_theocrat - reason = rival_blamed_by_mentor - } - } - } -} - -scripted_effect fp2_lyonese_monk_grab_and_update_pope_effect = { - # If this is our first time, just nab the current one. - if = { - limit = { - NOT = { exists = scope:pope } - } - scope:story.var:base_faith.religious_head = { save_scope_as = pope } - } - # Otherwise, check to see if the current Pope is the same as the last Pope. - else_if = { - limit = { - scope:story.var:base_faith.religious_head != scope:pope - } - scope:pope = { save_scope_as = old_pope } - scope:story.var:base_faith.religious_head = { save_scope_as = pope } - } - # Update the capital. - ## If scope:pope has a specific one, take that. - if = { - limit = { - scope:pope = { is_landed = yes } - } - scope:pope.capital_barony = { save_scope_as = papal_capital } - } - ## Otherwise, we default to Rome on principal. - else = { - title:b_roma = { save_scope_as = papal_capital } - } -} - - - - - - - - - - - -################################################## -# SETUP & MISC - -################################################## -# A Storm-Tossed Night -# by Ewan Cowhig Croft -# 0001 - 0010 -################################################## - -# A learned holy person arrives at court, begging for succour. -fp2_lyonese_monk.0001 = { - type = character_event - title = fp2_lyonese_monk.0001.t - desc = fp2_lyonese_monk.0001.desc - theme = faith - left_portrait = { - character = scope:acolyte_host - animation = personality_rational - } - right_portrait = { - character = scope:acolyte - animation = chaplain - } - override_background = { reference = corridor_night } - cooldown = { years = 100 } - - trigger = { - #Not for landless - is_landed = yes - } - - immediate = { - play_music_cue = "mx_cue_general_crusade_event_3" - # Create scope:acolyte. - ## A pupil of Felix of Urgell, acting as a sort of do-over for the character. - create_character = { - location = root.capital_province - #General - age = fp2_lyonese_monk_age_value - faith = root.faith - culture = culture:french - dynasty = generate - #Education - trait = education_learning_4 - #Personality - trait = deceitful - trait = stubborn - trait = zealous - trait = brave - #Misc - trait = theologian - trait = scholar - trait = whole_of_body - trait = devoted - health = 5 - random_traits = no - gender_female_chance = root_faith_clergy_gender_female_chance - #Skills - ## These include the two "hidden" traits of scope:acolyte's buffs - heresiarch & education_intrigue_4. - diplomacy = 14 - martial = 2 - stewardship = 7 - intrigue = 12 - learning = 8 - prowess = 2 - save_scope_as = acolyte - } - scope:acolyte.house = { set_house_name = "dynn_d__Lyon" } - scope:acolyte.dynasty = { set_dynasty_name = "dynn_d__Lyon" } - } - - # Of course, what's mine is yours! - option = { - name = fp2_lyonese_monk.0001.a - - # Sort scope:acolyte. - ## Add them as a courtier. - add_courtier = scope:acolyte - ## & tell 'em to stay put. - scope:acolyte = { add_character_flag = blocked_from_leaving } - # Set up our tracking stuff. - ## Including a story cycle. - create_story = { - type = story_lyonese_monk - save_scope_as = story - } - ## A variable within that cycle that wants to be special. - if = { - limit = { exists = scope:story } - scope:story = { - # Set our one true OG faith. Till the other one. - set_variable = { - name = base_faith - value = scope:acolyte.faith - } - } - } - ## And, in case of death, a back-up scope:acolyte. - if = { - limit = { exists = scope:story } - scope:story = { - set_variable = { - name = acolyte - value = scope:acolyte - } - } - } - # Start the chain. - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - days = 7 - } - - stress_impact = { - generous = miniscule_stress_impact_loss - greedy = minor_stress_impact_gain - callous = minor_stress_impact_gain - sadistic = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = 1 - ai_sociability = -1 - } - } - } - - # We have no room, but you can stay for a night. - option = { - name = fp2_lyonese_monk.0001.b - - # Opt out, with some consolation currency. - add_piety = minor_piety_gain - scope:acolyte = { silent_disappearance_effect = yes } - - stress_impact = { - callous = minor_stress_impact_gain - sadistic = minor_stress_impact_gain - generous = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_honor = 0.5 - ai_compassion = 0.5 - ai_sociability = -0.25 - } - } - } - - # No beggars in GetPrimaryTitle. *Out*. - option = { - name = fp2_lyonese_monk.0001.c - - # Opt out, with some consolation currency. - add_prestige = miniscule_prestige_gain - scope:acolyte = { silent_disappearance_effect = yes } - - stress_impact = { - callous = miniscule_stress_impact_loss - sadistic = miniscule_stress_impact_loss - gregarious = minor_stress_impact_gain - generous = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_greed = 0.25 - ai_sociability = -0.5 - ai_compassion = -1 - } - } - } -} - -# Select a candidate. -fp2_lyonese_monk.0002 = { - scope = none - hidden = yes - - trigger = { - # DLC check. - has_fp2_dlc_trigger = yes - } - - immediate = { - # First, mark this as done. - add_to_global_variable_list = { - name = unavailable_unique_events - target = flag:lyonese_monk_event - } - # Now we try to grab eligible candidates. - every_county_in_region = { - region = dlc_fp2_lyonese_monk_region - holder = { - if = { - limit = { fp2_lyonese_monk_0002_valid_court_trigger = yes } - add_to_list = potential_monk_court_list - } - } - } - # Then sort within them. - random_in_list = { - list = potential_monk_court_list - # Prioritise scholastic Iberian players. - limit = { - is_ai = no - capital_province = { geographical_region = world_europe_west_iberia } - } - # Otherwise, random roll it. - alternative_limit = { always = yes } - # We want to weight up a few things. - weight = { - base = 0 - # Learning gives our basic order, since it's reflective of how stimulating a theologian you are. - modifier = { add = learning } - # Weight up a bit for certain traits, those that make it more likely to allow shenanigans. - modifier = { - add = 10 - has_trait = trusting - } - modifier = { - add = 10 - has_trait = stubborn - } - modifier = { - add = 10 - has_trait = arrogant - } - # Weight up a bit for characters who are actively impious, as they're less likely to heed the Pope's demands. - modifier = { - add = 30 - piety_level <= 0 - } - # We want an Iberian pick over an Aquitanian one, ideally. - modifier = { - add = 50 - capital_province = { geographical_region = world_europe_west_iberia } - } - } - save_scope_as = acolyte_host - trigger_event = fp2_lyonese_monk.0001 - } - } -} - -################################################## -# A Former Friend -# by Ewan Cowhig Croft -# 0011 - 0020 -################################################## - -# You have died, and scope:acolyte wishes to continue. -fp2_lyonese_monk.0011 = { - type = character_event - title = fp2_lyonese_monk.0011.t - desc = fp2_lyonese_monk.0011.desc - theme = faith - left_portrait = { - character = scope:acolyte - animation = flirtation - } - override_background = { reference = sitting_room } - - trigger = { - is_imprisoned = no - is_adult = yes - exists = faith.religious_head - faith.religious_head = scope:story.var:base_faith.religious_head - } - - on_trigger_fail = { - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - scope:story = { end_story = yes } - } - - immediate = { - # Nab scope:acolyte a-fresh. - scope:story.var:acolyte = { save_scope_as = acolyte } - } - - # Well, I suppose... - option = { - name = fp2_lyonese_monk.0011.a - - # Notify scope:acolyte_host that they're opting in. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - # Give the story cycle its new host. - scope:story = { make_story_owner = scope:acolyte_host } - # Spawn the next event in the cycle. - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = 1 - } - - stress_impact = { - trusting = miniscule_stress_impact_loss - paranoid = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_sociability = 0.5 - } - } - } - - # Pack your belongings, vagrant. - option = { - name = fp2_lyonese_monk.0011.b - - # Clean house. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - scope:story = { end_story = yes } - # Everything ends. - custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade - - stress_impact = { - paranoid = miniscule_stress_impact_loss - shy = miniscule_stress_impact_loss - trusting = minor_stress_impact_gain - gregarious = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_sociability = -0.5 - ai_zeal = -1 - } - } - } -} - -################################################## -# Gone and Done -# by Ewan Cowhig Croft -# 0021 - 0030 -################################################## - -# Scope:acolyte has died or is no longer your courtier or vassal. -fp2_lyonese_monk.0021 = { - type = character_event - title = fp2_lyonese_monk.0021.t - desc = { - desc = fp2_lyonese_monk.0021.desc.intro - first_valid = { - triggered_desc = { - trigger = { - scope:acolyte = { is_alive = no } - } - desc = fp2_lyonese_monk.0021.desc.dead - } - triggered_desc = { - trigger = { - scope:acolyte = { is_imprisoned = yes } - } - desc = fp2_lyonese_monk.0021.desc.imprisoned - } - desc = fp2_lyonese_monk.0021.desc.gone - } - } - theme = faith - left_portrait = { - character = scope:acolyte_host - animation = disapproval - } - right_portrait = { - character = scope:acolyte - animation = disbelief - } - override_background = { reference = throne_room } - - # Private Teachings: they can't have been that important... - option = { - name = fp2_lyonese_monk.0021.a - trigger = { - NOR = { - has_character_flag = fp2_lyonese_monk_entered_controversy_flag - has_character_flag = fp2_lyonese_monk_entered_schism_flag - } - } - - # Everything ends. - custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade - # Clean house. - scope:story = { end_story = yes } - - # No stress impact for notification option. - ai_chance = { - # Every option's a good option. - base = 100 - } - } - - # Public Controversy: they were clearly more trouble than they're worth... - option = { - name = fp2_lyonese_monk.0021.b - trigger = { - has_character_flag = fp2_lyonese_monk_entered_controversy_flag - NOT = { has_character_flag = fp2_lyonese_monk_entered_schism_flag } - } - - # Everything ends. - custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade - # Clean house. - scope:story = { end_story = yes } - - # No stress impact for notification option. - ai_chance = { - # Every option's a good option. - base = 100 - } - } - - # Schism: all this for nothing? - option = { - name = fp2_lyonese_monk.0021.c - trigger = { has_character_flag = fp2_lyonese_monk_entered_schism_flag } - - # Everything ends. - custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade - # Clean house. - scope:story = { end_story = yes } - - # No stress impact for notification option. - ai_chance = { - # Every option's a good option. - base = 100 - } - } - - # Is scope:acolyte still alive somewhere? SheHe shouldn't be. - after = { - # ... so let's just clean that up. - scope:acolyte = { - if = { - limit = { is_alive = yes } - silent_disappearance_effect = yes - } - } - } -} - -################################################## -# Shattered Faith -# by Ewan Cowhig Croft -# 0031 - 0040 -################################################## - -# You or scope:acolyte are no longer the correct faith. -fp2_lyonese_monk.0031 = { - type = character_event - title = fp2_lyonese_monk.0031.t - desc = { - first_valid = { - triggered_desc = { - trigger = { scope:acolyte.faith = scope:story.var:base_faith } - desc = fp2_lyonese_monk.0031.desc.acolyte_host - } - desc = fp2_lyonese_monk.0031.desc.acolyte - } - } - theme = faith - left_portrait = { - character = scope:acolyte_host - animation = disapproval - } - right_portrait = { - character = scope:acolyte - animation = shame - } - override_background = { reference = temple } - - # Me: I don't need scope:acolyte when I have HighGodName. - option = { - name = fp2_lyonese_monk.0031.a - trigger = { - faith != scope:story.var:base_faith - } - - # Clean house. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - scope:story = { end_story = yes } - # Everything ends. - custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade - - # No stress impact for notification option. - ai_chance = { - # Every option's a good option. - base = 100 - } - } - - # Them: they clearly weren't all that committed. - option = { - name = fp2_lyonese_monk.0031.b - trigger = { - scope:acolyte.faith != scope:story.var:base_faith - } - - # Clean house. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - scope:story = { end_story = yes } - # Everything ends. - custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade - - # No stress impact for notification option. - ai_chance = { - # Every option's a good option. - base = 100 - } - } -} - -################################################## -# Bigger Crises -# by Ewan Cowhig Croft -# 0041 - 0050 -################################################## - -# The destruction of the Papacy leaves little room in everyone's hearts for the minutiae of doctrine. -fp2_lyonese_monk.0041 = { - type = character_event - title = fp2_lyonese_monk.0041.t - desc = { - first_valid = { - # Either Rome is gone... - triggered_desc = { - trigger = { - NOT = { exists = title:k_papal_state.holder } - } - desc = fp2_lyonese_monk.0041.desc.pope_hope_is_nope - } - # ... or else we've likely just split off from them, probably due to Mozarab shenanigans. - desc = fp2_lyonese_monk.0041.desc.schism - } - } - theme = faith - left_portrait = { - character = scope:acolyte_host - animation = disbelief - } - right_portrait = { - character = scope:acolyte - animation = stress - } - override_background = { reference = burning_building } - - # We are all alone without the Vicar of Christ! - option = { - name = { - trigger = { - NOT = { exists = title:k_papal_state.holder } - } - text = fp2_lyonese_monk.0041.a.pope_hope_is_nope - } - name = { - trigger = { always = yes } - text = fp2_lyonese_monk.0041.a.backup - } - - # Clean house. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - scope:story = { end_story = yes } - # Everything ends. - custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade - - # No stress impact for notification option. - ai_chance = { - # Every option's a good option. - base = 100 - } - } -} - -################################################## -# It Is a Mystery -# by Ewan Cowhig Croft -# 0051 - 0060 -################################################## - -# Your incarceration causes scope:acolyte to disappear - and the story along with HerHim. -fp2_lyonese_monk.0051 = { - type = character_event - title = fp2_lyonese_monk.0051.t - desc = fp2_lyonese_monk.0051.desc - theme = faith - left_portrait = { - character = scope:acolyte_host - triggered_animation = { - trigger = { is_in_prison_type = house_arrest } - animation = prisonhouse - } - triggered_animation = { - trigger = { is_in_prison_type = dungeon } - animation = prisondungeon - } - } - right_portrait = { - character = scope:acolyte - animation = dismissal - } - override_background = { reference = dungeon } - - # What could have happened to HerHim? - option = { - name = fp2_lyonese_monk.0051.a - - # Clean house. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - scope:story = { end_story = yes } - # Everything ends. - custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade - - # No stress impact for notification option. - ai_chance = { - # Every option's a good option. - base = 100 - } - } -} - - - - - - - - - - -################################################## -# PRIVATE TEACHINGS - -################################################## -# Just a Few Friends -# by Ewan Cowhig Croft -# 0201 - 0210 -################################################## - -# Scope:acolyte asks for permission to start a study group. -fp2_lyonese_monk.0201 = { - type = character_event - title = fp2_lyonese_monk.0201.t - desc = fp2_lyonese_monk.0201.desc - theme = learning_theology_focus - left_portrait = { - character = scope:acolyte_host - animation = personality_rational - } - right_portrait = { - character = scope:acolyte - animation = flirtation - } - override_background = { reference = sitting_room } - - trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - } - - # I guess it couldn't hurt... - option = { - name = fp2_lyonese_monk.0201.a - - # Scope:acolyte is happy. - reverse_add_opinion = { - target = scope:acolyte - modifier = pleased_opinion - opinion = 25 - } - # We nab a few early adopters. - fp2_add_random_characters_to_converts_list_effect = { COURT = scope:acolyte_host } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0201.a.tt - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 4 8 } - } - - stress_impact = { - zealous = miniscule_stress_impact_loss - cynical = minor_stress_impact_gain - paranoid = major_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_sociability = 0.5 - } - } - } - - # A group of conspirators? I don't think so! - option = { - name = fp2_lyonese_monk.0201.b - - # Boot the monk. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - # Stress loss applied in the stress impact. - - stress_impact = { - base = medium_stress_loss - paranoid = minor_stress_impact_loss - trusting = medium_stress_impact_gain - zealous = medium_stress_impact_gain - eccentric = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_sociability = -0.5 - ai_rationality = -1 - } - } - } - - # I think you've outstayed your welcome, scope:acolyte. - option = { - name = fp2_lyonese_monk.0201.c - - # Boot the monk. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - # Lil bit o'consolation prestige. - add_prestige = miniscule_prestige_gain - - stress_impact = { - shy = miniscule_stress_impact_loss - gregarious = minor_stress_impact_gain - zealous = minor_stress_impact_gain - eccentric = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_sociability = -0.5 - ai_energy = -0.5 - } - } - } -} - -################################################## -# But Why? -# by Ewan Cowhig Croft -# 0211 - 0220 -################################################## - -scripted_trigger fp2_lyonese_monk_0211_suitable_baron_trigger = { - # Meets the basic requirements. - fp2_suitable_base_convert_trigger = yes - # Plus: is only a baron. - highest_held_title_tier = tier_barony -} - -# One of your barons retires to become a monk spontaneously. -fp2_lyonese_monk.0211 = { - type = letter_event - sender = scope:baron - opening = fp2_lyonese_monk.0211.t - desc = fp2_lyonese_monk.0211.desc - cooldown = { years = 100 } - - trigger = { - fp2_lyonese_monk_0000_valid_for_events_trigger = yes - # Must have a suitable baron. - any_vassal = { fp2_lyonese_monk_0211_suitable_baron_trigger = yes } - } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Select a suitable baron. - random_vassal = { - # Try to nab a councillor, to make it more impactful. - limit = { - is_councillor_of = scope:acolyte_host - fp2_lyonese_monk_0211_suitable_baron_trigger = yes - } - # But otherwise yeah, just anyone is fine. - alternative_limit = { fp2_lyonese_monk_0211_suitable_baron_trigger = yes } - add_to_list = hidden_converts - save_scope_as = baron - primary_title = { save_scope_as = baron_holding} - } - # Now, they resign and become a NunMonk. - scope:baron = { - depose = yes # depose_effect not used for opted abdication - add_trait = devoted - } - # Nab some more converts. - fp2_add_random_characters_to_converts_list_effect = { COURT = scope:acolyte_host } - } - - # Can SheHe #EMP do#! that? - option = { - name = fp2_lyonese_monk.0211.a - - # No extra effects. - # Spawn the next event in the cycle. - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 4 8 } - } - - # No extra stress for a single-option event. - ai_chance = { - # Not relevant for a single-option event. - base = 100 - } - } -} - -################################################## -# A Rictus Grin -# by Ewan Cowhig Croft -# 0221 - 0230 -################################################## - -scripted_trigger fp2_lyonese_monk_0221_suitable_courtier_trigger = { - # We use the base version because we don't care if they're already a secret convert. - fp2_suitable_base_convert_trigger = yes - # Now, we want to make sure they're not already zealous and have room for an extra personality trait. - number_of_personality_traits < personality_trait_limit - NOR = { - has_trait = zealous - # They also should generally be precluded from cynical, but hey, just in case... - has_trait = cynical - } -} - -# A courtier is looking dopey and happy due to how at peace with themselves they are. -fp2_lyonese_monk.0221 = { - type = character_event - title = fp2_lyonese_monk.0221.t - desc = fp2_lyonese_monk.0221.desc - theme = friendly - left_portrait = { - character = scope:acolyte_host - animation = worry - } - right_portrait = { - character = scope:courtier - animation = admiration - } - override_background = { reference = corridor_day } - cooldown = { years = 100 } - - trigger = { - fp2_lyonese_monk_0000_valid_for_events_trigger = yes - any_courtier = { fp2_lyonese_monk_0221_suitable_courtier_trigger = yes } - } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Select a suitable courtier. - random_courtier = { - limit = { fp2_lyonese_monk_0221_suitable_courtier_trigger = yes } - add_to_list = hidden_converts - save_scope_as = courtier - } - # Give 'em a new lease on life. - scope:courtier = { add_trait = zealous } - # Nab some more converts. - fp2_add_random_characters_to_converts_list_effect = { COURT = scope:acolyte_host } - } - - # Glad you're doing well, scope:courtier! - option = { - name = fp2_lyonese_monk.0221.a - - # They like you a little more. - reverse_add_opinion = { - target = scope:courtier - modifier = compliment_opinion - opinion = 20 - } - - stress_impact = { - trusting = miniscule_stress_impact_loss - compassionate = miniscule_stress_impact_loss - callous = minor_stress_impact_gain - sadistic = minor_stress_impact_gain - paranoid = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = 1 - ai_sociability = 1 - } - } - } - - # I've got a bad feeling about this... - option = { - name = fp2_lyonese_monk.0221.b - - # They like you a little less. - reverse_add_opinion = { - target = scope:courtier - modifier = disappointed_opinion - opinion = -20 - } - - stress_impact = { - paranoid = miniscule_stress_impact_loss - trusting = minor_stress_impact_gain - compassionate = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = -1 - ai_sociability = -1 - } - } - } - - after = { - # Spawn the next event in the cycle. - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 4 8 } - } - } -} - -################################################## -# Booing the Bishop -# by Ewan Cowhig Croft -# 0231 - 0240 -################################################## - -# A bishop in your realm is booed by a crowd of people. -fp2_lyonese_monk.0231 = { - type = character_event - title = fp2_lyonese_monk.0231.t - desc = fp2_lyonese_monk.0231.desc - theme = faith - left_portrait = { - character = scope:irate_theocrat - animation = fear - } - cooldown = { years = 100 } - - trigger = { - fp2_lyonese_monk_0000_valid_for_events_trigger = yes - fp2_lyonese_monk_has_suitable_annoyed_theocrat_trigger = yes - } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Process a suitable annoyed theocrat. - fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = yes - scope:irate_theocrat = { add_stress = major_stress_gain } - # Nab some more converts. - fp2_add_random_characters_to_converts_list_effect = { COURT = scope:acolyte_host } - } - - # People need to show the Church more *respect*. - option = { - name = fp2_lyonese_monk.0231.a - - # Scope:irate_theocrat appreciates your kind words. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = pious_opinion - opinion = 20 - } - - stress_impact = { - zealous = miniscule_stress_impact_loss - cynical = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_compassion = -1 - } - } - } - - # Clearly SheHe's got to work on HerHis sermons. - option = { - name = fp2_lyonese_monk.0231.b - - # You gain a little piety. - add_piety = minor_piety_gain - # But you frustrate and hurt scope:irate_theocrat. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = cruelty_opinion - opinion = -10 - } - scope:irate_theocrat = { add_stress = minor_stress_gain } - - stress_impact = { - cynical = miniscule_stress_impact_loss - zealous = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = -0.5 - ai_zeal = -1 - } - } - } - - after = { - # Spawn the next event in the cycle. - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 4 8 } - } - } -} - -################################################## -# All HerHis Fault -# by Ewan Cowhig Croft -# 0241 - 0250 -################################################## - -# Your court chaplain comes to you complaining, begging for an end to all of this. -fp2_lyonese_monk.0241 = { - type = character_event - title = fp2_lyonese_monk.0241.t - desc = fp2_lyonese_monk.0241.desc - theme = rival_relation - left_portrait = { - character = scope:irate_theocrat - animation = rage - } - right_portrait = { - character = scope:acolyte - animation = shock - } - override_background = { reference = council_chamber } - - trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Process a suitable annoyed theocrat. - fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = yes - # Make it clear they're pissed. - fp2_lyonese_monk_make_acolyte_and_irate_theocrat_rivals_effect = yes - } - - # Very well — pack your things, scope:acolyte. - option = { - name = fp2_lyonese_monk.0241.a - - # Opinion gain with scope:irate_theocrat. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = pleased_opinion - opinion = 20 - } - # Scope:acolyte leaves. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - - stress_impact = { - zealous = miniscule_stress_impact_loss - cynical = minor_stress_impact_gain - eccentric = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_rationality = -0.5 - } - } - } - - # GUARDS! Seize the heterodox bastard! - option = { - name = fp2_lyonese_monk.0241.b - - # A sprinkle of piety for your orthodoxy! - add_piety = minor_piety_gain - # Scope:acolyte is dispatched. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = scuffle } - # Scope:irate_theocrat is horrified though. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = overreaction_opinion - opinion = -10 - } - - stress_impact = { - zealous = miniscule_stress_impact_loss - cynical = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_vengefulness = 1 - } - } - } - - # You're the troublemaker here, scope:irate_theocrat - option = { - name = fp2_lyonese_monk.0241.c - - # Scope:irate_theocrat is *not* happy. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = refusal_opinion - opinion = -30 - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0241.c.tt - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 4 8 } - } - - stress_impact = { - cynical = miniscule_stress_impact_loss - zealous = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = 0.5 - ai_zeal = -1 - } - } - } -} - - - - - - - - - - - -################################################## -# PUBLIC CONTROVERSY - -################################################## -# Scope:pope's Epistle -# by Ewan Cowhig Croft -# 0401 - 0410 -################################################## - -# The Pope writes you an advisory, reprimanding you and asking you to boot the monk. -fp2_lyonese_monk.0401 = { - type = letter_event - sender = scope:pope - opening = fp2_lyonese_monk.0401.t - desc = fp2_lyonese_monk.0401.desc - - trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - play_music_cue = "mx_cue_general_crusade_event_1" - # Sort our Pope scope. - fp2_lyonese_monk_grab_and_update_pope_effect = yes - # Mark that we've entered the second phase. - add_character_flag = fp2_lyonese_monk_entered_controversy_flag - } - - # The Holy See compels me. - option = { - name = fp2_lyonese_monk.0401.a - - # Boot the monk. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - # Gain a favour hook on scope:pope. - add_hook = { - type = favor_hook - target = scope:pope - } - # Plus some opinion. - reverse_add_opinion = { - target = scope:pope - modifier = pious_opinion - opinion = 20 - } - - stress_impact = { - zealous = miniscule_stress_impact_loss - arrogant = medium_stress_impact_gain - cynical = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_rationality = 0.5 - } - } - } - - # I don't remember asking for Rome's permission. - option = { - name = fp2_lyonese_monk.0401.b - - # Scope:pope is more upset. - reverse_add_opinion = { - target = scope:pope - modifier = impious_opinion - opinion = -15 - } - # Plus - lose a little piety. - add_piety = minor_piety_loss - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - cynical = miniscule_stress_impact_loss - arrogant = miniscule_stress_impact_loss - humble = medium_stress_impact_gain - zealous = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_vengefulness = 0.75 - ai_zeal = -1 - } - } - } -} - -################################################## -# Space to Teach -# by Ewan Cowhig Croft -# 0411 - 0420 -################################################## - -scripted_trigger fp2_lyonese_monk_0411_county_to_give_trigger = { - tier = tier_county - is_landless_type_title = no - NOT = { this = scope:acolyte_host.capital_county } - # Within the prime region. - title_province = { geographical_region = dlc_fp2_lyonese_monk_region } -} - -# Scope:acolyte asks you for a county in which to spread HerHis teachings. -fp2_lyonese_monk.0411 = { - type = character_event - title = fp2_lyonese_monk.0411.t - desc = fp2_lyonese_monk.0411.desc - theme = learning_theology_focus - left_portrait = { - character = scope:acolyte_host - animation = disbelief - } - right_portrait = { - character = scope:acolyte - animation = admiration - } - cooldown = { years = 100 } - - trigger = { - fp2_lyonese_monk_0000_valid_for_events_trigger = yes - # If you're just a count yourself, this isn't relevant for you. - highest_held_title_tier >= tier_duchy - # Must have a suitable county to hand over. - any_held_title = { fp2_lyonese_monk_0411_county_to_give_trigger = yes } - } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Pick a county to ask for. - ordered_held_title = { - limit = { fp2_lyonese_monk_0411_county_to_give_trigger = yes } - # Pick the least valuable county. - order_by = { - value = development_level - multiply = -1 - } - save_scope_as = acolyte_fief - } - } - - # I suppose... I suppose I could allow this... - option = { - name = fp2_lyonese_monk.0411.a - - # You turn over the county. - create_title_and_vassal_change = { - type = granted - save_scope_as = change - } - scope:acolyte_fief = { - change_title_holder = { - holder = scope:acolyte - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - # Make sure the place spawns as a theocracy. - hidden_effect = { - scope:acolyte = { change_government = theocracy_government } - } - # Nab some converts. - fp2_add_random_vassals_to_converts_list_effect = { LIEGE = scope:acolyte_host } - # Spawn the next event in the cycle. - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - generous = minor_stress_impact_loss - greedy = major_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 0.5 - ai_greed = -2 - } - } - } - - # Don't be ridiculous! - option = { - name = fp2_lyonese_monk.0411.b - flavor = fp2_lyonese_monk.0411.b.tt - - # Boot the monk. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - # Gain a little prestige for putting your foot down. - add_prestige = minor_prestige_gain - - stress_impact = { - greedy = miniscule_stress_impact_loss - generous = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_greed = 2 - ai_zeal = -0.5 - } - } - } -} - -################################################## -# High Tempers -# by Ewan Cowhig Croft -# 0421 - 0430 -################################################## - -# Your court chaplain and scope:acolyte get into a fight. -fp2_lyonese_monk.0421 = { - type = character_event - title = fp2_lyonese_monk.0421.t - desc = fp2_lyonese_monk.0421.desc - theme = unfriendly - left_portrait = { - character = scope:irate_theocrat - animation = war_attacker - } - right_portrait = { - character = scope:acolyte - animation = war_over_win - } - override_background = { reference = feast } - cooldown = { years = 100 } - - trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Grab a theocrat. - fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = yes - # Piss them off. - fp2_lyonese_monk_make_acolyte_and_irate_theocrat_rivals_effect = yes - } - - # Scope:irate_theocrat, show some decorum! - option = { - name = fp2_lyonese_monk.0421.a - - # Lose opinion with scope:irate_theocrat. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = humiliated_opinion - opinion = -10 - } - # Gain opinion with scope:acolyte. - reverse_add_opinion = { - target = scope:acolyte - modifier = trust_opinion - opinion = 20 - } - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_emboldened - scope:story = { - change_variable = { - name = school_radical - add = 1 - } - } - - stress_impact = { - cynical = miniscule_stress_impact_loss - zealous = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_sociability = 1 - ai_zeal = -1 - } - } - } - - # Scope:acolyte, you *will* respect HerHis authority! - option = { - name = fp2_lyonese_monk.0421.b - - # Gain opinion with scope:irate_theocrat. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = trust_opinion - opinion = 20 - } - # Lose opinion with scope:acolyte. - reverse_add_opinion = { - target = scope:acolyte - modifier = humiliated_opinion - opinion = -10 - } - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_paused - scope:story = { - change_variable = { - name = school_felicitous - add = 1 - } - } - - stress_impact = { - zealous = miniscule_stress_impact_loss - cynical = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_sociability = -1 - } - } - } - - # Don't you two have more in common than not? - option = { - name = fp2_lyonese_monk.0421.c - - # Lose opinion with scope:irate_theocrat. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = annoyed_opinion - opinion = -5 - } - # Lose opinion with scope:acolyte. - reverse_add_opinion = { - target = scope:acolyte - modifier = annoyed_opinion - opinion = -5 - } - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_humbled - scope:story = { - change_variable = { - name = school_elipandic - add = 1 - } - } - - stress_impact = { - gregarious = miniscule_stress_impact_loss - zealous = minor_stress_impact_gain - cynical = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = 1 - ai_vengefulness = -1 - } - } - } - - after = { - # Spawn the next event in the cycle. - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - } -} - -################################################## -# Scope:pope's Second Epistle -# by Ewan Cowhig Croft -# 0431 - 0440 -################################################## - -# The Pope writes you *another* advisory, demanding that you boot scope:acolyte plus -fp2_lyonese_monk.0431 = { - type = letter_event - sender = scope:pope - opening = fp2_lyonese_monk.0431.t - desc = { - # Check whether the Pope has switched. - first_valid = { - triggered_desc = { - trigger = { - exists = scope:old_pope - scope:old_pope != scope:pope - } - desc = fp2_lyonese_monk.0431.desc.pope.different - } - desc = fp2_lyonese_monk.0431.desc.pope.same - } - desc = fp2_lyonese_monk.0431.desc.outro - } - cooldown = { years = 100 } - - trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Sort our Pope scope. - fp2_lyonese_monk_grab_and_update_pope_effect = yes - } - - # It's not wise to aggravate the throne of St. Peter... - option = { - name = fp2_lyonese_monk.0431.a - - # Boot the monk. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - # A bit less opinion now, as you've had one chance. - reverse_add_opinion = { - target = scope:pope - modifier = pious_opinion - opinion = 10 - } - - stress_impact = { - zealous = miniscule_stress_impact_loss - cynical = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_vengefulness = -1 - } - } - } - - # Perhaps there's a middle ground here. - option = { - name = fp2_lyonese_monk.0431.b - - # You try to argue for a better result. - duel = { - skill = diplomacy - value = very_high_skill_rating - # You mollify scope:pope. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0431.b.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0431.b.tt.success - left_icon = scope:pope - reverse_add_opinion = { - target = scope:pope - modifier = impious_opinion - opinion = -5 - } - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_humbled - scope:story = { - change_variable = { - name = school_elipandic - add = 1 - } - } - } - } - # Scope:pope is even *more* angry. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0431.b.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0431.b.tt.failure - left_icon = scope:pope - ## We use the same value as last time since, by definition, this is now stacking. - reverse_add_opinion = { - target = scope:pope - modifier = angry_opinion - opinion = -30 - } - # And some *more* piety loss! - add_piety = medium_piety_loss - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_paused - scope:story = { - change_variable = { - name = school_felicitous - add = 1 - } - } - } - } - } - - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - arrogant = miniscule_stress_impact_loss - zealous = medium_stress_impact_gain - cynical = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_sociability = 0.75 - ai_zeal = 0.5 - ai_vengefulness = -0.5 - } - } - } - - # Damn it, I'm the GetTitleAsName! - option = { - name = fp2_lyonese_monk.0431.c - - # Scope:pope is more upset. - ## We use the same value as last time since, by definition, this is now stacking. - reverse_add_opinion = { - target = scope:pope - modifier = impious_opinion - opinion = -15 - } - # And some *more* piety loss! - add_piety = medium_piety_loss - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_emboldened - scope:story = { - change_variable = { - name = school_radical - add = 1 - } - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - arrogant = miniscule_stress_impact_loss - cynical = miniscule_stress_impact_loss - humble = medium_stress_impact_gain - zealous = major_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_vengefulness = 0.5 - ai_sociability = -0.5 - ai_zeal = -1 - } - } - } -} - -################################################## -# The Council of scope:bishopric -# by Ewan Cowhig Croft -# 0441 - 0450 -################################################## - -# The clergy of the region gather for a minor church council, featuring scope:acolyte defending their claims. -fp2_lyonese_monk.0441 = { - type = character_event - title = fp2_lyonese_monk.0441.t - desc = fp2_lyonese_monk.0441.desc - theme = faith - left_portrait = { - character = scope:acolyte - animation = schadenfreude - } - right_portrait = { - character = scope:irate_theocrat - animation = stress - } - - trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Grab a theocrat. - fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = yes - # Escalate the scope:acolyte - scope:irate_theocrat relationship if we can. - scope:acolyte = { - # We should become rivals if we're not already. - if = { - limit = { - NOT = { has_relation_rival = scope:irate_theocrat } - } - scope:irate_theocrat = { - set_relation_rival = { - target = scope:acolyte - reason = rival_blamed_by_mentor - } - } - } - # But if we _are_, then it's nemesis time. - else_if = { - limit = { has_relation_rival = scope:irate_theocrat } - set_relation_nemesis = { - target = scope:irate_theocrat - copy_reason = rival - reason = rival_blamed_by_mentor - } - } - # Plus, this shows off their ecclesiastic chops! - add_piety_level = 2 - } - # Pick a venue. - scope:acolyte = { - if = { - limit = { is_landed = yes } - capital_barony = { save_scope_as = council_1_venue } - } - else = { - scope:acolyte_host.capital_barony = { save_scope_as = council_1_venue } - } - } - # The whole event preemptively gives scope:acolyte a fresh audience. - fp2_add_random_vassals_to_converts_list_effect = { LIEGE = scope:acolyte_host } - } - - # This council has my full support. - option = { - name = fp2_lyonese_monk.0441.a - - # Gain piety. - add_piety = medium_piety_gain - # Scope:irate_theocrat has a bad time. - scope:irate_theocrat = { - add_opinion = { - target = scope:acolyte_host - modifier = humiliated_opinion - opinion = -50 - } - add_stress = major_stress_gain - } - # Scope:acolyte is happy. - scope:acolyte = { - add_opinion = { - target = scope:acolyte_host - modifier = pious_opinion - opinion = 20 - } - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - zealous = miniscule_stress_impact_loss - cynical = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_vengefulness = 1 - } - } - } - - # Matters of theology are not my concern. - option = { - name = fp2_lyonese_monk.0441.b - - # Gain prestige. - add_prestige = medium_prestige_gain - # Scope:irate_theocrat has a less-bad time. - scope:irate_theocrat = { - add_opinion = { - target = scope:acolyte_host - modifier = abandoned_me_opinion - opinion = -20 - } - add_stress = medium_stress_gain - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - humble = miniscule_stress_impact_loss - arrogant = minor_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_rationality = 0.5 - ai_zeal = -1 - } - } - } - - # I've let this go too far! - option = { - name = fp2_lyonese_monk.0441.c - - # Boot the monk. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - # Scope:irate_theocrat is incredibly thankful. - reverse_add_opinion = { - target = scope:irate_theocrat - modifier = relieved_opinion - opinion = 75 - } - scope:irate_theocrat = { add_stress = major_stress_loss } - # Gain some piety out of it. Even though you're likely at a net loss by this point. - add_piety = medium_piety_gain - - stress_impact = { - zealous = miniscule_stress_impact_loss - cynical = minor_stress_impact_gain - arrogant = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_zeal = 1 - ai_compassion = 0.25 - } - } - } -} - - - - - - - - - - - -################################################## -# SCHISM - -################################################## -# Scope:pope's Third Epistle -# by Ewan Cowhig Croft -# 0601 - 0610 -################################################## - -# Whatever the council's results, the Pope condemns it. You are given a final demand demand to repent & turn over scope:acolyte or face excommunication. -fp2_lyonese_monk.0601 = { - type = letter_event - sender = scope:pope - opening = fp2_lyonese_monk.0601.t - desc = fp2_lyonese_monk.0601.desc - - trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - play_music_cue = "mx_cue_combat_stinger" - # Sort our Pope scope. - fp2_lyonese_monk_grab_and_update_pope_effect = yes - # Mark that we've entered the second phase. - remove_character_flag = fp2_lyonese_monk_entered_controversy_flag - add_character_flag = fp2_lyonese_monk_entered_schism_flag - } - - # I can only beg for St. Peter's forgiveness. - option = { - name = fp2_lyonese_monk.0601.a - - # Hand the monk over to Rome. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = pope } - # Scope:pope forgives you your trespasses. - add_piety = medium_piety_gain - reverse_add_opinion = { - target = scope:pope - modifier = relieved_opinion - opinion = 50 - } - - stress_impact = { - zealous = miniscule_stress_impact_loss - humble = miniscule_stress_impact_loss - cynical = major_stress_impact_gain - arrogant = major_stress_impact_gain - } - ai_chance = { - # If we've made it to this point, the AI should be committed to backing scope:acolyte. - base = 0 - } - } - - # I am appointed by HighGodName! - option = { - name = fp2_lyonese_monk.0601.b - - # Welp, don't say you weren't warned. - excommunicate_character = { - REQUESTING_CHARACTER = scope:pope - TARGET_CHARACTER = scope:acolyte_host - } - add_piety_level = -2 - - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - cynical = miniscule_stress_impact_loss - arrogant = miniscule_stress_impact_loss - zealous = major_stress_impact_gain - humble = major_stress_impact_gain - } - ai_chance = { - # If we've made it to this point, the AI should be committed to backing scope:acolyte. - base = 100 - } - } -} - -################################################## -# High Tensions -# by Ewan Cowhig Croft -# 0611 - 0620 -################################################## - -scripted_effect fp2_lyonese_monk_0611_diplomatic_defusal_effect = { - scope:rioting_county = { - add_county_modifier = { - modifier = fp2_religious_riots_defused_modifier - years = 10 - } - } -} - -# An angry mob in your capital turn up to demand scope:acolyte's head, countered by *another* angry mob that hates the first mob. -fp2_lyonese_monk.0611 = { - type = character_event - title = fp2_lyonese_monk.0611.t - desc = fp2_lyonese_monk.0611.desc - theme = war - left_portrait = { - character = scope:peasant_1 - animation = aggressive_spear - outfit_tags = { beggar_rags } - hide_info = yes - } - right_portrait = { - character = scope:peasant_2 - animation = aggressive_axe - outfit_tags = { beggar_rags } - hide_info = yes - } - lower_center_portrait = scope:acolyte - override_background = { reference = courtyard } - cooldown = { years = 100 } - - trigger = { - fp2_lyonese_monk_0000_valid_for_events_trigger = yes - any_held_title = { - title_tier = county - faith = scope:story.var:base_faith - } - } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Pick a suitable county. - if = { - limit = { capital_county.faith = scope:story.var:base_faith } - capital_county = { save_scope_as = rioting_county } - } - else = { - random_held_title = { - title_tier = county - limit = { - faith = scope:story.var:base_faith - } - save_scope_as = rioting_county - } - } - # Create some peasants. - create_character = { - template = generic_peasant_character - location = scope:rioting_county.title_province - save_scope_as = peasant_1 - } - create_character = { - template = generic_peasant_character - location = scope:rioting_county.title_province - save_scope_as = peasant_2 - } - } - - # Diplomacy: I can defuse this situation. - option = { - name = fp2_lyonese_monk.0611.a - trigger = { diplomacy >= very_high_skill_rating } - skill = diplomacy - - # Apply defusal effect immediately. - fp2_lyonese_monk_0611_diplomatic_defusal_effect = yes - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_humbled - scope:story = { - change_variable = { - name = school_elipandic - add = 1 - } - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - calm = miniscule_stress_impact_loss - gregarious = miniscule_stress_impact_loss - wrathful = medium_stress_impact_gain - shy = major_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = 1 - ai_sociability = 1 - } - } - } - - # Please, my subjects, calm! - option = { - name = fp2_lyonese_monk.0611.b - trigger = { diplomacy < very_high_skill_rating } - - # You try to talk things out. - duel = { - skill = diplomacy - value = high_skill_rating - # You defuse the situation. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0611.b.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0611.b.tt.success - left_icon = scope:rioting_county - fp2_lyonese_monk_0611_diplomatic_defusal_effect = yes - } - } - # Violence erupts anyway. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0611.b.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0611.b.tt.failure - left_icon = scope:rioting_county - scope:rioting_county = { - add_county_modifier = { - modifier = fp2_religious_riots_modifier - years = 20 - } - } - } - } - } - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_humbled - scope:story = { - change_variable = { - name = school_elipandic - add = 1 - } - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - calm = miniscule_stress_impact_loss - gregarious = miniscule_stress_impact_loss - wrathful = medium_stress_impact_gain - shy = major_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = 1 - ai_sociability = 1 - } - } - } - - # Fetch my sword, we'll disperse these *rebels*. - option = { - name = fp2_lyonese_monk.0611.c - flavor = fp2_lyonese_monk.0611.c.tt - - # You choose violence. - scope:rioting_county = { - add_county_modifier = { - modifier = fp2_religious_riots_suppressed_modifier - years = 20 - } - } - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_emboldened - scope:story = { - change_variable = { - name = school_radical - add = 1 - } - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - wrathful = miniscule_stress_impact_loss - compassionate = major_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_vengefulness = 1 - ai_compassion = -1 - } - } - } - - # Heretics? At my very *door*? - option = { - name = fp2_lyonese_monk.0611.d - flavor = fp2_lyonese_monk.0611.d.tt - - # You've had enough of this event chain. - scope:rioting_county = { - add_county_modifier = { - modifier = fp2_religious_riots_suppressed_modifier - years = 20 - } - } - # Scope:acolyte is dispatched. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = scuffle } - # Take a nice chunk o'piety for your zeal! - add_piety = major_piety_gain - - stress_impact = { - wrathful = miniscule_stress_impact_loss - compassionate = major_stress_impact_gain - } - ai_chance = { - # If we've made it to this point, the AI should be committed to backing scope:acolyte. - base = 0 - } - } - - # Lock the gates. - option = { - name = fp2_lyonese_monk.0611.e - - # Riots outside, not your problem. - scope:rioting_county = { - add_county_modifier = { - modifier = fp2_religious_riots_modifier - years = 20 - } - } - # Stress loss in the stress_impact block. - # Mark this for school calcs later. - custom_tooltip = fp2_lyonese_monk.0000.tt.is_paused - scope:story = { - change_variable = { - name = school_felicitous - add = 1 - } - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - base = major_stress_loss - shy = minor_stress_impact_loss - gregarious = minor_stress_impact_gain - wrathful = major_stress_impact_gain - compassionate = major_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_compassion = -1 - ai_sociability = -1 - } - } - } - - after = { - # Clean up the peasants. - scope:peasant_1 = { silent_disappearance_effect = yes } - scope:peasant_2 = { silent_disappearance_effect = yes } - } -} - -################################################## -# A Formal Complaint -# by Ewan Cowhig Croft -# 0621 - 0630 -################################################## - -scripted_trigger fp2_lyonese_monk_0621_suitable_vassal_trigger = { - # Same faith. - faith = scope:acolyte_host.faith - # Not a cynic. - NOT = { has_trait = cynical } - # Available for narrative purposes. - is_available_ai_adult = yes - # And uhhh... make sure they don't nab themselves. - this != scope:acolyte -} - -# Zealous vassals protest your heresy. -fp2_lyonese_monk.0621 = { - type = character_event - title = fp2_lyonese_monk.0621.t - desc = fp2_lyonese_monk.0621.desc - theme = vassal - left_portrait = { - character = scope:acolyte_host - animation = worry - } - right_portrait = { - character = scope:zealous_vassal - animation = anger - } - lower_left_portrait = scope:acolyte - cooldown = { years = 100 } - - trigger = { - fp2_lyonese_monk_0000_valid_for_events_trigger = yes - any_vassal = { fp2_lyonese_monk_0621_suitable_vassal_trigger = yes } - } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # Nab a suitable vassal. - ordered_vassal = { - limit = { fp2_lyonese_monk_0621_suitable_vassal_trigger = yes } - order_by = { value = max_military_strength } - save_scope_as = zealous_vassal - } - # Sort the Pope. - fp2_lyonese_monk_grab_and_update_pope_effect = yes - } - - # Scope:pope couldn't persuade me, what makes you think you can? - option = { - name = fp2_lyonese_monk.0621.a - - # You engage them in serious debate. - duel = { - skill = learning - target = scope:zealous_vassal - # You shatter their world view. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0621.a.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0621.a.tt.success - left_icon = scope:zealous_vassal - scope:zealous_vassal = { - add_opinion = { - target = scope:acolyte_host - modifier = impious_opinion - opinion = -25 - } - add_stress = major_stress_gain - } - } - } - # They're even *more* infuriated with you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0621.a.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0621.a.tt.failure - left_icon = scope:zealous_vassal - reverse_add_opinion = { - target = scope:zealous_vassal - modifier = respect_opinion - opinion = -50 - } - if = { - limit = { - can_set_relation_rival_trigger = { CHARACTER = scope:zealous_vassal } - } - set_relation_rival = { - target = scope:zealous_vassal - reason = rival_refused_to_see_reason - } - } - } - } - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - arrogant = miniscule_stress_impact_loss - stubborn = miniscule_stress_impact_loss - humble = medium_stress_impact_gain - fickle = major_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_rationality = 1 - ai_zeal = -0.5 - } - } - } - - # Vassal? You're naught but a malcontent! - option = { - name = fp2_lyonese_monk.0621.b - - # Scope:zealous_vassal is annoyed. - reverse_add_opinion = { - target = scope:zealous_vassal - modifier = respect_opinion - opinion = -25 - } - if = { - limit = { - can_set_relation_rival_trigger = { CHARACTER = scope:zealous_vassal } - } - set_relation_rival = { - target = scope:zealous_vassal - reason = rival_refused_to_see_reason - } - } - # Spawn the next event in the cycle. - custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - arrogant = miniscule_stress_impact_loss - stubborn = miniscule_stress_impact_loss - humble = medium_stress_impact_gain - compassionate = medium_stress_impact_gain - } - ai_chance = { - base = 10 - ai_value_modifier = { - ai_vengefulness = 0.75 - ai_compassion = -0.5 - } - } - } - - # Scope:vassal is right, this has gone too far. - option = { - name = fp2_lyonese_monk.0621.c - - # Boot the monk. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } - # Gain some piety. - add_piety = medium_piety_gain - # Scope:zealous_vassal is very happy! - reverse_add_opinion = { - target = scope:zealous_vassal - modifier = pleased_opinion - opinion = 50 - } - - stress_impact = { - humble = miniscule_stress_impact_loss - fickle = miniscule_stress_impact_loss - arrogant = minor_stress_impact_gain - stubborn = major_stress_impact_gain - } - ai_chance = { - # If we've made it to this point, the AI should be committed to backing scope:acolyte. - base = 0 - } - } -} - -################################################## -# Just Church Business -# by Ewan Cowhig Croft -# 0631 - 0640 -################################################## - -scripted_trigger fp2_lyonese_monk_0631_valid_neighbour_trigger = { - # Same religious head. - faith.religious_head = scope:story.var:base_faith.religious_head - # Neither allied nor has a ceasefire. - NOR = { - any_ally = { this = scope:acolyte_host } - any_truce_target = { this = scope:acolyte_host } - } - # Doesn't *already* have a claim. - NOT = { - any_claim = { this = scope:acolyte_host.primary_title } - } -} - -# A neighbouring ruler has purchased claims on your land from your HoF. -fp2_lyonese_monk.0631 = { - type = letter_event - sender = scope:neighbouring_ruler - opening = fp2_lyonese_monk.0631.t - desc = fp2_lyonese_monk.0631.desc - cooldown = { years = 100 } - - trigger = { - fp2_lyonese_monk_0000_valid_for_events_trigger = yes - any_neighboring_and_across_water_realm_same_rank_owner = { fp2_lyonese_monk_0631_valid_neighbour_trigger = yes } - } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - # Boost the tallied events score by +1. - scope:story = { - change_variable = { - name = lm_phase_tally - add = 1 - } - } - # First, we'll need to make sure our HoF is up to date. - fp2_lyonese_monk_grab_and_update_pope_effect = yes - # Now let's pick a solid neighbour. - ## First gathering candidates. - every_neighboring_and_across_water_realm_same_rank_owner = { - limit = { fp2_lyonese_monk_0631_valid_neighbour_trigger = yes } - add_to_list = claims_donated_neighbouring_ruler_list - } - ## Then processing them. - ordered_in_list = { - list = claims_donated_neighbouring_ruler_list - # Scope:pope, naturally, has a type. - limit = { has_trait = zealous } - alternative_limit = { always = yes } - order_by = { value = max_military_strength } - save_scope_as = neighbouring_ruler - } - # Now we fork over a claim on scope:acolyte_host's primary title. - scope:neighbouring_ruler = { add_pressed_claim = scope:acolyte_host.primary_title } - } - - # Outrageous! - option = { - name = fp2_lyonese_monk.0631.a - - # Well, that's a sure sign of an escalation. - ## Stress gain handled in stress_impact block. - - # Spawn the next event in the cycle. - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle - months = { 6 12 } - } - - stress_impact = { - base = medium_stress_gain - greedy = minor_stress_impact_gain - paranoid = minor_stress_impact_gain - } - ai_chance = { - # Single option event, AI chance irrelevant. - base = 100 - } - } -} - -################################################## -# No More than a Man -# by Ewan Cowhig Croft -# 0641 - 0650 -################################################## - -# Scope:acolyte suggests you embrace the heresy. -fp2_lyonese_monk.0641 = { - type = character_event - title = fp2_lyonese_monk.0641.t - desc = fp2_lyonese_monk.0641.desc - theme = faith - left_portrait = { - character = scope:acolyte_host - animation = stress - } - right_portrait = { - character = scope:acolyte - animation = scheme - } - lower_center_portrait = scope:pope - override_background = { reference = study } - - trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } - - on_trigger_fail = { - trigger_event = { - on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback - months = { 4 8 } - } - } - - immediate = { - play_music_cue = "mx_cue_faith_conversion" - # Scope:acolyte's *real* traits & faith are revealed. - ## These include the two "hidden" traits of scope:acolyte's buffs - heresiarch & education_intrigue_4. - scope:acolyte = { - set_character_faith = faith:adoptionist - hidden_effect = { - # Swap educations & adjust stats to match. - remove_trait = education_learning_4 - add_learning_skill = 8 - add_trait = education_intrigue_4 - add_intrigue_skill = -8 - # Reduce down the stats that'll increased by heresiarch. - add_martial_skill = -2 - add_learning_skill = -2 - add_prowess_skill = -2 - } - add_heresiarch_trait_effect = yes - # Make this clear too. - hidden_effect = { force_character_skill_recalculation = yes } - # _Small_ diplo-immunity. - add_character_flag = { - flag = flag_hostile_actions_disabled_delay - days = 10 - } - } - # Nab a scope:pope, so that they can welcome you back. - fp2_lyonese_monk_grab_and_update_pope_effect = yes - } - - # Yes... yes, why not, if they're so set on accusing us? - option = { - name = fp2_lyonese_monk.0641.a - - # Conversion time! - ## You switch faith. - add_character_flag = { - flag = delay_player_faith_conversion_notification_event - days = 1 - } - set_character_faith_with_conversion = faith:adoptionist - if = { - limit = { - faith:adoptionist = { has_doctrine = doctrine_monotheist } - } - custom_description_no_bullet = { text = mandala_monotheist_warning_tt } - } - add_heresiarch_trait_effect = yes - ## The hidden character's list gets used. - every_in_list = { - list = hidden_converts - limit = { fp2_suitable_base_convert_trigger = yes } - custom = fp2_lyonese_monk.0641.a.tt.hidden_convert.character - set_character_faith_with_conversion = faith:adoptionist - } - ## Every county in your realm bordering scope:acolyte's stronghold converts. - ### We don't just give you everything scope:acolyte holds plus _their_ neighbours so that you can't game-convert half of Europe with some clever pimpling. - scope:acolyte_fief = { - if = { - limit = { holder = scope:acolyte } - set_county_faith = faith:adoptionist - # Plus nab the neighbours. - every_neighboring_county = { - limit = { - faith = scope:story.var:base_faith - holder = { - any_liege_or_above = { this = scope:acolyte_host } - } - } - set_county_faith = faith:adoptionist - } - } - } - # We unblock adoptionism being converted to from this point onwards. - ## No need to notify the player; it's not strictly relevant for them for gameplay purposes. - faith:adoptionist = { remove_variable = block_conversion_till_nebulous_circumstances } - # And a large gathering of nerds is held. - custom_tooltip = fp2_lyonese_monk.0641.a.tt - # Trigger the conclave. - trigger_event = { - id = fp2_lyonese_monk.0801 - months = 1 - } - - stress_impact = { - trusting = miniscule_stress_impact_loss - cynical = miniscule_stress_impact_loss - paranoid = medium_stress_impact_gain - zealous = major_stress_impact_gain - } - ai_chance = { - # If we've made it to this point, the AI should be committed to backing scope:acolyte. - base = 100 - } - } - - # Snake! You've been planning this all along! - option = { - name = fp2_lyonese_monk.0641.b - - # Scope:acolyte is dispatched. - fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = scuffle } - # Scope:pope is happy. - reverse_add_opinion = { - target = scope:pope - modifier = relieved_opinion - opinion = 50 - } - ## If you're still excommunicated (which: let's face it), then SheHe'll recommunicate you. - if = { - limit = { has_trait = excommunicated } - lift_character_excommunication_effect = { - TARGET_CHARACTER = scope:acolyte_host - REQUESTING_CHARACTER = scope:pope - } - } - - stress_impact = { - paranoid = miniscule_stress_impact_loss - zealous = miniscule_stress_impact_loss - cynical = medium_stress_impact_gain - trusting = major_stress_impact_gain - } - ai_chance = { - # If we've made it to this point, the AI should be committed to backing scope:acolyte. - base = 0 - } - } -} - - - - - - - - - - - -################################################## -# COUNCIL - -################################################## -# The Second Council of scope:bishopric -# by Ewan Cowhig Croft -# 0801 - 0810 -################################################## - -# Clergy from all over your realm gather, wanting to contribute their thoughts and notes. -fp2_lyonese_monk.0801 = { - type = character_event - title = { - first_valid = { - # Is this our second council here? - triggered_desc = { - trigger = { scope:council_1_venue = scope:council_2_venue } - desc = fp2_lyonese_monk.0801.t.second - } - # Or our first? - desc = fp2_lyonese_monk.0801.t.first - } - } - desc = { - desc = fp2_lyonese_monk.0801.desc.intro - first_valid = { - triggered_desc = { - trigger = { scope:acolyte_stance = flag:school_elipandic } - desc = fp2_lyonese_monk.0801.desc.elipandic - } - triggered_desc = { - trigger = { scope:acolyte_stance = flag:school_felicitous } - desc = fp2_lyonese_monk.0801.desc.felicitous - } - triggered_desc = { - trigger = { scope:acolyte_stance = flag:school_radical } - desc = fp2_lyonese_monk.0801.desc.radical - } - } - } - theme = learning - left_portrait = { - character = scope:acolyte_host - animation = personality_rational - } - right_portrait = { - character = scope:acolyte_at_council - animation = chancellor - } - override_background = { reference = temple_scope } - - immediate = { - # Refund the piety levels you lost earlier. - add_piety_level = 2 - # Give you a fun trait because... I mean, well. - add_heresiarch_trait_effect = yes - # Sort our locale. - ## First, whether this is a repeater. - scope:council_1_venue = { - ## Preferring to chill at scope:acolyte's place. - if = { - limit = { holder = scope:acolyte } - save_scope_as = council_2_venue - } - ## But otherwise we take your capital. - else = { - scope:acolyte_host.capital_barony = { save_scope_as = council_2_venue } - } - } - ## Then the background scope. - scope:council_2_venue = { save_scope_as = background_temple_scope } - # Work out what scope:acolyte's stance is. - scope:story = { - # They're an Elipandic. - if = { - limit = { - var:school_elipandic > var:school_felicitous - var:school_elipandic > var:school_radical - } - save_scope_value_as = { - name = acolyte_stance - value = flag:school_elipandic - } - } - # They're Felicitous. - else_if = { - limit = { - var:school_felicitous > var:school_elipandic - var:school_felicitous > var:school_radical - } - save_scope_value_as = { - name = acolyte_stance - value = flag:school_felicitous - } - } - # They're a Radical. - else_if = { - limit = { - var:school_radical > var:school_elipandic - var:school_radical > var:school_felicitous - } - save_scope_value_as = { - name = acolyte_stance - value = flag:school_radical - } - } - # If we've somehow ended up with a draw, we have a Felicitous base, so we go with that for the tie-breaker. - else = { - save_scope_value_as = { - name = acolyte_stance - value = flag:school_felicitous - } - } - } - # Aaaaand is scope:acolyte around for the pictures. - scope:acolyte = { - if = { - limit = { is_physically_able = yes } - save_scope_as = acolyte_at_council - } - } - } - - # Naturally, I'll take a leading role in the discussions. - option = { - name = fp2_lyonese_monk.0801.a - - # You'll engage in learning debates. - custom_tooltip = fp2_lyonese_monk.0801.a.tt - save_scope_value_as = { - name = conclave_engagement - value = flag:debate - } - # Progress the conclave. - custom_tooltip = fp2_lyonese_monk.0801.tt.invalidation_warning - trigger_event = { - id = fp2_lyonese_monk.0811 - months = 2 - } - - stress_impact = { - gregarious = miniscule_stress_impact_loss - shy = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # My influence will be more felt than seen... - option = { - name = fp2_lyonese_monk.0801.b - - # You'll spend piety. - custom_tooltip = fp2_lyonese_monk.0801.b.tt - save_scope_value_as = { - name = conclave_engagement - value = flag:piety - } - # Progress the conclave. - custom_tooltip = fp2_lyonese_monk.0801.tt.invalidation_warning - trigger_event = { - id = fp2_lyonese_monk.0811 - months = 2 - } - - stress_impact = { - shy = miniscule_stress_impact_loss - gregarious = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # This is a matter for the clergy alone. - option = { - name = fp2_lyonese_monk.0801.c - - # You leave the clergy to their discussions. - custom_tooltip = fp2_lyonese_monk.0801.c.tt - # Gain a decent chunk of piety for letting this go ahead. - add_piety = major_piety_gain - # Progress the chain. - save_scope_value_as = { - name = defaulted_on_conclave - value = yes - } - trigger_event = { - id = fp2_lyonese_monk.0841 - months = 2 - } - - stress_impact = { - humble = miniscule_stress_impact_loss - arrogant = major_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 100 - } - } -} - -################################################## -# Council: Father & Son -# by Ewan Cowhig Croft -# 0811 - 0820 -################################################## - -# Become Righteous. -scripted_effect fp2_lyonese_monk_0811_elipandic_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_elipandics - faith:adoptionist = { - hidden_effect = { remove_doctrine = doctrine_pluralism_fundamentalist } - add_doctrine = doctrine_pluralism_righteous - } -} - -# Become Pluralist. -scripted_effect fp2_lyonese_monk_0811_felicitous_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_felicians - faith:adoptionist = { - hidden_effect = { remove_doctrine = doctrine_pluralism_fundamentalist } - add_doctrine = doctrine_pluralism_pluralistic - } -} - -# Stay Fundamentalist. -scripted_effect fp2_lyonese_monk_0811_radical_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_radicals - show_as_tooltip = { - faith:adoptionist = { - add_doctrine = doctrine_pluralism_fundamentalist - } - } -} - -# Clergy argue over whether you're all really adoptionists or just nuanced Catholics. -fp2_lyonese_monk.0811 = { - type = character_event - title = fp2_lyonese_monk.0811.t - desc = fp2_lyonese_monk.0811.desc - theme = diplomacy - left_portrait = { - character = scope:acolyte_host - animation = personality_bold - } - right_portrait = { - character = scope:acolyte_at_council - animation = personality_bold - } - override_background = { reference = temple_scope } - - trigger = { is_imprisoned = no } - - on_trigger_fail = { - # Progress the chain. - save_scope_value_as = { - name = defaulted_on_conclave - value = yes - } - trigger_event = { - id = fp2_lyonese_monk.0841 - months = 2 - } - } - - immediate = { - # Check to see if scope:acolyte around for the pictures. - ## Clear the old scope if applicable. - if = { - limit = { exists = scope:acolyte_at_council } - clear_saved_scope = acolyte_at_council - } - ## Now try to refresh it. - scope:acolyte = { - if = { - limit = { is_physically_able = yes } - save_scope_as = acolyte_at_council - } - } - } - - # Elipandic: the situation is nuanced... - option = { - name = fp2_lyonese_monk.0811.a - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0811_elipandic_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0811.a.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0811.a.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0811_elipandic_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0811.a.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0811.a.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0811_felicitous_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0811_radical_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - stubborn = miniscule_stress_impact_loss - deceitful = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # Felician: it is no mark of shame to be chosen by HighGodName. - option = { - name = fp2_lyonese_monk.0811.b - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0811_felicitous_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0811.b.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0811.b.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0811_felicitous_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0811.b.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0811.b.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0811_elipandic_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0811_radical_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - deceitful = miniscule_stress_impact_loss - stubborn = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # Radical: once a man, never fully God. - option = { - name = fp2_lyonese_monk.0811.c - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0811_radical_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0811.c.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0811.c.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0811_radical_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0811.c.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0811.c.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0811_elipandic_school_effect = yes - } - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0811_felicitous_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - arrogant = miniscule_stress_impact_loss - stubborn = medium_stress_impact_gain - deceitful = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # I have no opinion on this matter. - option = { - name = fp2_lyonese_monk.0811.d - - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0811_elipandic_school_effect = yes - } - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0811_felicitous_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0811_radical_school_effect = yes - } - - # We don't charge stress for the opt-outs, not least because their results are variable. - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 100 - } - } - - after = { - # Progress the conclave. - trigger_event = { - id = fp2_lyonese_monk.0821 - months = 2 - } - } -} - -################################################## -# Council: Practicality vs. Principle -# by Ewan Cowhig Croft -# 0821 - 0830 -################################################## - -# Keep Religious Law. -scripted_effect fp2_lyonese_monk_0821_elipandic_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_elipandics - show_as_tooltip = { - faith:adoptionist = { add_doctrine = tenet_religious_legal_pronouncements } - } -} - -# Gain Sanctioned False Conversions. -scripted_effect fp2_lyonese_monk_0821_felicitous_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_felicians - faith:adoptionist = { - remove_doctrine = tenet_religious_legal_pronouncements - add_doctrine = tenet_false_conversion_sanction - } -} - -# Gain Pursuit of Power. -scripted_effect fp2_lyonese_monk_0821_radical_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_radicals - faith:adoptionist = { - remove_doctrine = tenet_religious_legal_pronouncements - add_doctrine = tenet_pursuit_of_power - } -} - -# Clergy argue over the degree to which expedience is required. -fp2_lyonese_monk.0821 = { - type = character_event - title = fp2_lyonese_monk.0821.t - desc = fp2_lyonese_monk.0821.desc - theme = intrigue - left_portrait = { - character = scope:acolyte_host - animation = personality_cynical - } - right_portrait = { - character = scope:acolyte_at_council - animation = personality_honorable - } - override_background = { reference = temple_scope } - - trigger = { is_imprisoned = no } - - on_trigger_fail = { - # Progress the chain. - save_scope_value_as = { - name = defaulted_on_conclave - value = yes - } - trigger_event = { - id = fp2_lyonese_monk.0841 - months = 2 - } - } - - immediate = { - # Check to see if scope:acolyte around for the pictures. - ## Clear the old scope if applicable. - if = { - limit = { exists = scope:acolyte_at_council } - clear_saved_scope = acolyte_at_council - } - ## Now try to refresh it. - scope:acolyte = { - if = { - limit = { is_physically_able = yes } - save_scope_as = acolyte_at_council - } - } - } - - # Elipandic: accommodation with the rest of Christendom is vital. - option = { - name = fp2_lyonese_monk.0821.a - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0821_elipandic_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0821.a.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0821.a.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0821_elipandic_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0821.a.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0821.a.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0821_felicitous_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0821_radical_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - stubborn = miniscule_stress_impact_loss - deceitful = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # Felician: practicality is innately principled. - option = { - name = fp2_lyonese_monk.0821.b - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0821_felicitous_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0821.b.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0821.b.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0821_felicitous_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0821.b.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0821.b.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0821_elipandic_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0821_radical_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - deceitful = miniscule_stress_impact_loss - stubborn = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # Radical: hidden faith is faith without fire! - option = { - name = fp2_lyonese_monk.0821.c - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0821_radical_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0821.c.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0821.c.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0821_radical_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0821.c.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0821.c.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0821_elipandic_school_effect = yes - } - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0821_felicitous_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - arrogant = miniscule_stress_impact_loss - stubborn = medium_stress_impact_gain - deceitful = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # This seems circumstantial. - option = { - name = fp2_lyonese_monk.0821.d - - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0821_elipandic_school_effect = yes - } - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0821_felicitous_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0821_radical_school_effect = yes - } - - # We don't charge stress for the opt-outs, not least because their results are variable. - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 100 - } - } - - after = { - # Progress the conclave. - trigger_event = { - id = fp2_lyonese_monk.0831 - months = 2 - } - } -} - -################################################## -# Council: One God -# by Ewan Cowhig Croft -# 0831 - 0840 -################################################## - -# Follow the Elipandic school. -scripted_effect fp2_lyonese_monk_0831_elipandic_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_elipandics - faith:adoptionist = { add_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } -} - -# Follow the Felicitous school. -scripted_effect fp2_lyonese_monk_0831_felicitous_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_felicians - faith:adoptionist = { add_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } -} - -# Follow the Radical school. -scripted_effect fp2_lyonese_monk_0831_radical_school_effect = { - custom_tooltip = fp2_lyonese_monk.0000.tt.favour_radicals - faith:adoptionist = { add_doctrine = special_doctrine_adoptionist_school_radical_doctrine } -} - -# Clergy argue over *how* monotheistic to be. -fp2_lyonese_monk.0831 = { - type = character_event - title = fp2_lyonese_monk.0831.t - desc = fp2_lyonese_monk.0831.desc - theme = martial - left_portrait = { - character = scope:acolyte_host - animation = personality_honorable - } - right_portrait = { - character = scope:acolyte_at_council - animation = chaplain - } - override_background = { reference = temple_scope } - - trigger = { is_imprisoned = no } - - on_trigger_fail = { - # Progress the chain. - save_scope_value_as = { - name = defaulted_on_conclave - value = yes - } - trigger_event = { - id = fp2_lyonese_monk.0841 - months = 2 - } - } - - immediate = { - # Check to see if scope:acolyte around for the pictures. - ## Clear the old scope if applicable. - if = { - limit = { exists = scope:acolyte_at_council } - clear_saved_scope = acolyte_at_council - } - ## Now try to refresh it. - scope:acolyte = { - if = { - limit = { is_physically_able = yes } - save_scope_as = acolyte_at_council - } - } - } - - # Elipandic: the Father, the Son, and the Holy Ghost are still one being. - option = { - name = fp2_lyonese_monk.0831.a - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0831_elipandic_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0831.a.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0831.a.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0831_elipandic_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0831.a.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0831.a.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0831_felicitous_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0831_radical_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - stubborn = miniscule_stress_impact_loss - deceitful = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # Felician: a separation between Father and Son does not diminish either. - option = { - name = fp2_lyonese_monk.0831.b - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0831_felicitous_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0831.b.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0831.b.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0831_felicitous_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0831.b.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0831.b.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0831_elipandic_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0831_radical_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - deceitful = miniscule_stress_impact_loss - stubborn = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # Radical: the primacy of the Father is immutable. - option = { - name = fp2_lyonese_monk.0831.c - trigger = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety >= fp2_lyonese_monk_conclave_cost_value - } - } - show_as_unavailable = { - # Piety path costing. - trigger_if = { - limit = { scope:conclave_engagement = flag:piety } - piety < fp2_lyonese_monk_conclave_cost_value - } - } - - # Piety path. - if = { - limit = { scope:conclave_engagement = flag:piety } - # Pay the piety tax. - add_piety = { - value = fp2_lyonese_monk_conclave_cost_value - multiply = -1 - } - # Get your results. - fp2_lyonese_monk_0831_radical_school_effect = yes - } - # Debate path. - if = { - limit = { scope:conclave_engagement = flag:debate } - duel = { - skill = learning - value = high_skill_rating - # You sway the priests. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = fp2_lyonese_monk.0831.c.tt.success - send_interface_toast = { - title = fp2_lyonese_monk.0831.c.tt.success - left_icon = scope:council_1_venue - fp2_lyonese_monk_0831_radical_school_effect = yes - } - } - # The clergy ignore you. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = fp2_lyonese_monk.0831.c.tt.failure - send_interface_toast = { - title = fp2_lyonese_monk.0831.c.tt.failure - left_icon = scope:council_1_venue - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0831_elipandic_school_effect = yes - } - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0831_felicitous_school_effect = yes - } - } - } - } - } - - # Stress impacts here based on the virtues lionised by each school. - stress_impact = { - arrogant = miniscule_stress_impact_loss - stubborn = medium_stress_impact_gain - deceitful = medium_stress_impact_gain - } - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 0 - } - } - - # Have we shattered on dogma already? - option = { - name = fp2_lyonese_monk.0831.d - - # We take scope:acolyte's preference. - ## Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - fp2_lyonese_monk_0831_elipandic_school_effect = yes - } - ## Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - fp2_lyonese_monk_0831_felicitous_school_effect = yes - } - ## Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - fp2_lyonese_monk_0831_radical_school_effect = yes - } - - # We don't charge stress for the opt-outs, not least because their results are variable. - ai_chance = { - # The AI should just let the scope:acolyte pick. - base = 100 - } - } - - after = { - # Progress the conclave. - trigger_event = { - id = fp2_lyonese_monk.0841 - months = 2 - } - } -} - -################################################## -# From the Ashes -# by Ewan Cowhig Croft -# 0841 - 0850 -################################################## - -# The church council arrives at their final important doctrinal conclusions. -fp2_lyonese_monk.0841 = { - type = character_event - title = fp2_lyonese_monk.0841.t - desc = { - desc = fp2_lyonese_monk.0841.desc.intro - # Pluralism. - first_valid = { - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = doctrine_pluralism_pluralistic } - } - desc = fp2_lyonese_monk.0841.desc.pluralist - } - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = doctrine_pluralism_righteous } - } - desc = fp2_lyonese_monk.0841.desc.righteous - } - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = doctrine_pluralism_fundamentalist } - } - desc = fp2_lyonese_monk.0841.desc.fundamentalist - } - } - # Tenets. - first_valid = { - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = tenet_false_conversion_sanction } - } - desc = fp2_lyonese_monk.0841.desc.sanctioned_false_conversions - } - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = tenet_religious_legal_pronouncements } - } - desc = fp2_lyonese_monk.0841.desc.religious_law - } - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = tenet_pursuit_of_power } - } - desc = fp2_lyonese_monk.0841.desc.pursuit_of_power - } - } - # School. - first_valid = { - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } - } - desc = fp2_lyonese_monk.0841.desc.felicitous - } - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } - } - desc = fp2_lyonese_monk.0841.desc.elipandic - } - triggered_desc = { - trigger = { - faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_radical_doctrine } - } - desc = fp2_lyonese_monk.0841.desc.radical - } - } - # Outro. - desc = fp2_lyonese_monk.0841.desc.outro - } - theme = faith - left_portrait = { - character = scope:acolyte_host - animation = personality_bold - } - right_portrait = { - character = scope:acolyte_at_council - animation = chancellor - } - override_background = { reference = temple_scope } - - immediate = { - # Music! - ## Elipandics won out. - if = { - limit = { - faith = { has_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } - } - play_music_cue = "mx_cue_sacredrite" - } - ## Felicians won out. - if = { - limit = { - faith = { has_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } - } - play_music_cue = "mx_cue_murder" - } - ## Radicals won out. - if = { - limit = { - faith = { has_doctrine = special_doctrine_adoptionist_school_radical_doctrine } - } - play_music_cue = "mx_cue_war_declared" - } - # Now let's display our choices. - faith:adoptionist = { - # If we defaulted, then we need to work these out. - if = { - limit = { exists = scope:defaulted_on_conclave } - # Elipandics. - if = { - limit = { scope:acolyte_stance = flag:school_elipandic } - # The one we've already got. - show_as_tooltip = { add_doctrine = tenet_religious_legal_pronouncements } - # And the two we can genuinely add. - add_doctrine = doctrine_pluralism_righteous - add_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine - } - # Felicians. - if = { - limit = { scope:acolyte_stance = flag:school_felicitous } - # Remove some inappropriate ones. - hidden_effect = { remove_doctrine = doctrine_pluralism_fundamentalist } - remove_doctrine = tenet_religious_legal_pronouncements - # Add our new ones. - add_doctrine = doctrine_pluralism_pluralistic - add_doctrine = tenet_false_conversion_sanction - add_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine - } - # Radicals. - if = { - limit = { scope:acolyte_stance = flag:school_radical } - # Remove the inappropriate ones. - remove_doctrine = tenet_religious_legal_pronouncements - # Add our new ones. - show_as_tooltip = { add_doctrine = doctrine_pluralism_fundamentalist } - # Add our new ones. - add_doctrine = tenet_pursuit_of_power - add_doctrine = special_doctrine_adoptionist_school_radical_doctrine - } - } - # Otherwise, we can use a tooltip. - else = { - show_as_tooltip = { - # Pluralism. - ## Elipandics - - if = { - limit = { has_doctrine = doctrine_pluralism_fundamentalist } - add_doctrine = doctrine_pluralism_fundamentalist - } - ## Felicians - - if = { - limit = { has_doctrine = doctrine_pluralism_pluralistic } - add_doctrine = doctrine_pluralism_pluralistic - } - ## Radicals - - if = { - limit = { has_doctrine = doctrine_pluralism_righteous } - add_doctrine = doctrine_pluralism_righteous - } - # Tenets. - ## Elipandics - - if = { - limit = { has_doctrine = tenet_religious_legal_pronouncements } - add_doctrine = tenet_religious_legal_pronouncements - } - ## Felicians - - if = { - limit = { has_doctrine = tenet_false_conversion_sanction } - add_doctrine = tenet_false_conversion_sanction - } - ## Radicals - - if = { - limit = { has_doctrine = tenet_pursuit_of_power } - add_doctrine = tenet_pursuit_of_power - } - # School. - ## Elipandics - - if = { - limit = { has_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } - add_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine - } - ## Felicians - - if = { - limit = { has_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } - add_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine - } - ## Radicals - - if = { - limit = { has_doctrine = special_doctrine_adoptionist_school_radical_doctrine } - add_doctrine = special_doctrine_adoptionist_school_radical_doctrine - } - } - } - } - # And try to create a HoF. - ## Assuming you've not shenaniganed, this should generally grab scope:acolyte. - if = { - limit = { scope:acolyte_host.highest_held_title_tier >= tier_kingdom } - set_up_dynamic_spiritual_hof_title_effect = { CREATOR = scope:acolyte_host } - } - } - - # Elipandic: let them call us heretics. We simply have nuance they lack. - option = { - name = fp2_lyonese_monk.0841.a - trigger = { - faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } - } - - # You choose piety. - add_piety = major_piety_gain - - # No stress impact for choosing a flavour option. - ai_chance = { - # Any option is as good as any other here. - base = 100 - } - } - - # Felician: our words are sensible, our actions likewise. - option = { - name = fp2_lyonese_monk.0841.b - trigger = { - faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } - } - - # You choose piety. - add_piety = major_piety_gain - - # No stress impact for choosing a flavour option. - ai_chance = { - # Any option is as good as any other here. - base = 100 - } - } - - # Radical: see these false Christians and their polytheism laid bare! - option = { - name = fp2_lyonese_monk.0841.c - trigger = { - faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_radical_doctrine } - } - - # You choose piety. - add_piety = major_piety_gain - - # No stress impact for choosing a flavour option. - ai_chance = { - # Any option is as good as any other here. - base = 100 - } - } - - # I only hope we've made the right choice. - option = { - name = fp2_lyonese_monk.0841.d - - # You choose prestige. - add_prestige = medium_prestige_gain - - # No stress impact for choosing a flavour option. - ai_chance = { - # Any option is as good as any other here. - base = 100 - } - } - - after = { - # Clean up the story. - scope:story = { end_story = yes } - } -} +# +# +# +# +# +# +# +################################################### +## GENERAL SCRIPTED TRIGGERS & EFFECTS +# +#scripted_trigger fp2_suitable_base_convert_trigger = { +# # We only want same-faith characters. +# faith = scope:story.var:base_faith +# # They should be old enough to attend a meeting. +# age >= 14 +# # Cynics, non-believers, and the chronically short of zeal don't attend such meetings voluntarily. +# NOR = { +# has_trait = cynical +# ai_zeal <= high_negative_ai_value +# any_secret = { type = secret_non_believer } +# } +# # Exclude characters that might turn up as scope:irate_theocrat. +# NOR = { +# # Court chaplains. +# AND = { +# exists = scope:acolyte_host.cp:councillor_court_chaplain +# this = scope:acolyte_host.cp:councillor_court_chaplain +# } +# # Landed theocrats - we've already pre-filtered for faith. +# government_has_flag = government_is_theocracy +# # Landless monks at court - we've already pre-filtered for faith. +# AND = { +# is_courtier_of = scope:acolyte +# has_trait = devoted +# } +# } +# # And not already players or the the heir of a player. +# is_ai = yes +# NOT = { is_player_heir_of = scope:acolyte_host } +#} +# +#scripted_trigger fp2_suitable_strict_convert_trigger = { +# fp2_suitable_base_convert_trigger = yes +# # Plus exclude both characters already in the list & the landed. +# NOR = { +# is_landed = yes +# save_temporary_scope_as = current_temp +# any_in_list = { +# list = hidden_converts +# this = scope:current_temp +# } +# } +#} +# +#scripted_trigger fp2_suitable_semi_strict_convert_trigger = { +# fp2_suitable_base_convert_trigger = yes +# # Plus exclude characters already in the list. +# NOT = { +# save_temporary_scope_as = current_temp +# any_in_list = { +# list = hidden_converts +# this = scope:current_temp +# } +# } +#} +# +#scripted_trigger fp2_lyonese_monk_suitable_annoyed_theocrat_landed_vassal_trigger = { +# government_has_flag = government_is_theocracy +# faith = scope:story.var:base_faith +# is_available_ai_adult = yes +#} +# +#scripted_trigger fp2_lyonese_monk_suitable_annoyed_theocrat_landless_monk_trigger = { +# has_trait = devoted +# faith = scope:story.var:base_faith +# is_available_ai_adult = yes +# this != scope:acolyte +#} +# +#scripted_trigger fp2_lyonese_monk_has_suitable_annoyed_theocrat_trigger = { +# # This should always be synced with fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect. +# OR = { +# AND = { +# exists = cp:councillor_court_chaplain +# cp:councillor_court_chaplain = { is_available_ai_adult = yes } +# } +# any_vassal = { fp2_lyonese_monk_suitable_annoyed_theocrat_landed_vassal_trigger = yes } +# any_courtier_or_guest = { fp2_lyonese_monk_suitable_annoyed_theocrat_landless_monk_trigger = yes } +# } +#} +# +#scripted_effect fp2_add_random_characters_to_converts_list_effect = { +# hidden_effect = { +# $COURT$ = { +# while = { +# count = 5 +# limit = { +# any_courtier_or_guest = { fp2_suitable_strict_convert_trigger = yes } +# } +# random_courtier_or_guest = { +# limit = { fp2_suitable_strict_convert_trigger = yes } +# add_to_list = hidden_converts +# } +# } +# } +# } +#} +# +#scripted_effect fp2_add_random_vassals_to_converts_list_effect = { +# hidden_effect = { +# $LIEGE$ = { +# while = { +# count = 3 +# limit = { +# any_vassal = { fp2_suitable_semi_strict_convert_trigger = yes } +# } +# random_vassal = { +# limit = { fp2_suitable_semi_strict_convert_trigger = yes } +# add_to_list = hidden_converts +# } +# } +# } +# } +#} +# +#scripted_effect fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = { +# # This should always be synced with fp2_lyonese_monk_has_suitable_annoyed_theocrat_trigger. +# # Grab a suitable annoyed var:base_faith character. +# ## We prefer the chaplain... +# if = { +# limit = { +# exists = cp:councillor_court_chaplain +# cp:councillor_court_chaplain = { is_available_ai_adult = yes } +# } +# cp:councillor_court_chaplain = { save_scope_as = irate_theocrat } +# } +# ## ... or else a landed theocrat... +# else_if = { +# limit = { +# any_vassal = { fp2_lyonese_monk_suitable_annoyed_theocrat_landed_vassal_trigger = yes } +# } +# random_vassal = { +# limit = { fp2_lyonese_monk_suitable_annoyed_theocrat_landed_vassal_trigger = yes } +# save_scope_as = irate_theocrat +# } +# } +# ## ... but in a pinch a monk will do. +# ### We should know from the sync'd trigger that we've definitely got one of these hanging about if we've gotten to this point, so no need to check twice. +# else_if = { +# limit = { +# any_courtier_or_guest = { fp2_lyonese_monk_suitable_annoyed_theocrat_landless_monk_trigger = yes } +# } +# random_courtier_or_guest = { +# limit = { fp2_lyonese_monk_suitable_annoyed_theocrat_landless_monk_trigger = yes } +# save_scope_as = irate_theocrat +# } +# } +# ## And, in an emergency, a backup. +# else = { +# create_character = { +# location = scope:acolyte_host.capital_province +# template = monk_character_template +# culture = scope:acolyte_host.culture +# faith = scope:story.var:base_faith +# save_scope_as = irate_theocrat +# } +# } +#} +# +#scripted_effect fp2_lyonese_monk_make_acolyte_and_irate_theocrat_rivals_effect = { +# scope:acolyte = { +# if = { +# limit = { +# NOT = { has_relation_rival = scope:irate_theocrat } +# } +# set_relation_rival = { +# target= scope:irate_theocrat +# reason = rival_blamed_by_mentor +# } +# } +# } +#} +# +#scripted_effect fp2_lyonese_monk_grab_and_update_pope_effect = { +# # If this is our first time, just nab the current one. +# if = { +# limit = { +# NOT = { exists = scope:pope } +# } +# scope:story.var:base_faith.religious_head = { save_scope_as = pope } +# } +# # Otherwise, check to see if the current Pope is the same as the last Pope. +# else_if = { +# limit = { +# scope:story.var:base_faith.religious_head != scope:pope +# } +# scope:pope = { save_scope_as = old_pope } +# scope:story.var:base_faith.religious_head = { save_scope_as = pope } +# } +# # Update the capital. +# ## If scope:pope has a specific one, take that. +# if = { +# limit = { +# scope:pope = { is_landed = yes } +# } +# scope:pope.capital_barony = { save_scope_as = papal_capital } +# } +# ## Otherwise, we default to Rome on principal. +# else = { +# title:b_roma = { save_scope_as = papal_capital } +# } +#} +# +# +# +# +# +# +# +# +# +# +# +################################################### +## SETUP & MISC +# +################################################### +## A Storm-Tossed Night +## by Ewan Cowhig Croft +## 0001 - 0010 +################################################### +# +## A learned holy person arrives at court, begging for succour. +#fp2_lyonese_monk.0001 = { +# type = character_event +# title = fp2_lyonese_monk.0001.t +# desc = fp2_lyonese_monk.0001.desc +# theme = faith +# left_portrait = { +# character = scope:acolyte_host +# animation = personality_rational +# } +# right_portrait = { +# character = scope:acolyte +# animation = chaplain +# } +# override_background = { reference = corridor_night } +# cooldown = { years = 100 } +# +# trigger = { +# #Not for landless +# is_landed = yes +# } +# +# immediate = { +# play_music_cue = "mx_cue_general_crusade_event_3" +# # Create scope:acolyte. +# ## A pupil of Felix of Urgell, acting as a sort of do-over for the character. +# create_character = { +# location = root.capital_province +# #General +# age = fp2_lyonese_monk_age_value +# faith = root.faith +# culture = culture:french +# dynasty = generate +# #Education +# trait = education_learning_4 +# #Personality +# trait = deceitful +# trait = stubborn +# trait = zealous +# trait = brave +# #Misc +# trait = theologian +# trait = scholar +# trait = whole_of_body +# trait = devoted +# health = 5 +# random_traits = no +# gender_female_chance = root_faith_clergy_gender_female_chance +# #Skills +# ## These include the two "hidden" traits of scope:acolyte's buffs - heresiarch & education_intrigue_4. +# diplomacy = 14 +# martial = 2 +# stewardship = 7 +# intrigue = 12 +# learning = 8 +# prowess = 2 +# save_scope_as = acolyte +# } +# scope:acolyte.house = { set_house_name = "dynn_d__Lyon" } +# scope:acolyte.dynasty = { set_dynasty_name = "dynn_d__Lyon" } +# } +# +# # Of course, what's mine is yours! +# option = { +# name = fp2_lyonese_monk.0001.a +# +# # Sort scope:acolyte. +# ## Add them as a courtier. +# add_courtier = scope:acolyte +# ## & tell 'em to stay put. +# scope:acolyte = { add_character_flag = blocked_from_leaving } +# # Set up our tracking stuff. +# ## Including a story cycle. +# create_story = { +# type = story_lyonese_monk +# save_scope_as = story +# } +# ## A variable within that cycle that wants to be special. +# if = { +# limit = { exists = scope:story } +# scope:story = { +# # Set our one true OG faith. Till the other one. +# set_variable = { +# name = base_faith +# value = scope:acolyte.faith +# } +# } +# } +# ## And, in case of death, a back-up scope:acolyte. +# if = { +# limit = { exists = scope:story } +# scope:story = { +# set_variable = { +# name = acolyte +# value = scope:acolyte +# } +# } +# } +# # Start the chain. +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# days = 7 +# } +# +# stress_impact = { +# generous = miniscule_stress_impact_loss +# greedy = minor_stress_impact_gain +# callous = minor_stress_impact_gain +# sadistic = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = 1 +# ai_sociability = -1 +# } +# } +# } +# +# # We have no room, but you can stay for a night. +# option = { +# name = fp2_lyonese_monk.0001.b +# +# # Opt out, with some consolation currency. +# add_piety = minor_piety_gain +# scope:acolyte = { silent_disappearance_effect = yes } +# +# stress_impact = { +# callous = minor_stress_impact_gain +# sadistic = minor_stress_impact_gain +# generous = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_honor = 0.5 +# ai_compassion = 0.5 +# ai_sociability = -0.25 +# } +# } +# } +# +# # No beggars in GetPrimaryTitle. *Out*. +# option = { +# name = fp2_lyonese_monk.0001.c +# +# # Opt out, with some consolation currency. +# add_prestige = miniscule_prestige_gain +# scope:acolyte = { silent_disappearance_effect = yes } +# +# stress_impact = { +# callous = miniscule_stress_impact_loss +# sadistic = miniscule_stress_impact_loss +# gregarious = minor_stress_impact_gain +# generous = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_greed = 0.25 +# ai_sociability = -0.5 +# ai_compassion = -1 +# } +# } +# } +#} +# +## Select a candidate. +#fp2_lyonese_monk.0002 = { +# scope = none +# hidden = yes +# +# trigger = { +# # DLC check. +# has_fp2_dlc_trigger = yes +# } +# +# immediate = { +# # First, mark this as done. +# add_to_global_variable_list = { +# name = unavailable_unique_events +# target = flag:lyonese_monk_event +# } +# # Now we try to grab eligible candidates. +# every_county_in_region = { +# region = dlc_fp2_lyonese_monk_region +# holder = { +# if = { +# limit = { fp2_lyonese_monk_0002_valid_court_trigger = yes } +# add_to_list = potential_monk_court_list +# } +# } +# } +# # Then sort within them. +# random_in_list = { +# list = potential_monk_court_list +# # Prioritise scholastic Iberian players. +# limit = { +# is_ai = no +# capital_province = { geographical_region = world_europe_west_iberia } +# } +# # Otherwise, random roll it. +# alternative_limit = { always = yes } +# # We want to weight up a few things. +# weight = { +# base = 0 +# # Learning gives our basic order, since it's reflective of how stimulating a theologian you are. +# modifier = { add = learning } +# # Weight up a bit for certain traits, those that make it more likely to allow shenanigans. +# modifier = { +# add = 10 +# has_trait = trusting +# } +# modifier = { +# add = 10 +# has_trait = stubborn +# } +# modifier = { +# add = 10 +# has_trait = arrogant +# } +# # Weight up a bit for characters who are actively impious, as they're less likely to heed the Pope's demands. +# modifier = { +# add = 30 +# piety_level <= 0 +# } +# # We want an Iberian pick over an Aquitanian one, ideally. +# modifier = { +# add = 50 +# capital_province = { geographical_region = world_europe_west_iberia } +# } +# } +# save_scope_as = acolyte_host +# trigger_event = fp2_lyonese_monk.0001 +# } +# } +#} +# +################################################### +## A Former Friend +## by Ewan Cowhig Croft +## 0011 - 0020 +################################################### +# +## You have died, and scope:acolyte wishes to continue. +#fp2_lyonese_monk.0011 = { +# type = character_event +# title = fp2_lyonese_monk.0011.t +# desc = fp2_lyonese_monk.0011.desc +# theme = faith +# left_portrait = { +# character = scope:acolyte +# animation = flirtation +# } +# override_background = { reference = sitting_room } +# +# trigger = { +# is_imprisoned = no +# is_adult = yes +# exists = faith.religious_head +# faith.religious_head = scope:story.var:base_faith.religious_head +# } +# +# on_trigger_fail = { +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# scope:story = { end_story = yes } +# } +# +# immediate = { +# # Nab scope:acolyte a-fresh. +# scope:story.var:acolyte = { save_scope_as = acolyte } +# } +# +# # Well, I suppose... +# option = { +# name = fp2_lyonese_monk.0011.a +# +# # Notify scope:acolyte_host that they're opting in. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# # Give the story cycle its new host. +# scope:story = { make_story_owner = scope:acolyte_host } +# # Spawn the next event in the cycle. +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = 1 +# } +# +# stress_impact = { +# trusting = miniscule_stress_impact_loss +# paranoid = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_sociability = 0.5 +# } +# } +# } +# +# # Pack your belongings, vagrant. +# option = { +# name = fp2_lyonese_monk.0011.b +# +# # Clean house. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# scope:story = { end_story = yes } +# # Everything ends. +# custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade +# +# stress_impact = { +# paranoid = miniscule_stress_impact_loss +# shy = miniscule_stress_impact_loss +# trusting = minor_stress_impact_gain +# gregarious = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_sociability = -0.5 +# ai_zeal = -1 +# } +# } +# } +#} +# +################################################### +## Gone and Done +## by Ewan Cowhig Croft +## 0021 - 0030 +################################################### +# +## Scope:acolyte has died or is no longer your courtier or vassal. +#fp2_lyonese_monk.0021 = { +# type = character_event +# title = fp2_lyonese_monk.0021.t +# desc = { +# desc = fp2_lyonese_monk.0021.desc.intro +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:acolyte = { is_alive = no } +# } +# desc = fp2_lyonese_monk.0021.desc.dead +# } +# triggered_desc = { +# trigger = { +# scope:acolyte = { is_imprisoned = yes } +# } +# desc = fp2_lyonese_monk.0021.desc.imprisoned +# } +# desc = fp2_lyonese_monk.0021.desc.gone +# } +# } +# theme = faith +# left_portrait = { +# character = scope:acolyte_host +# animation = disapproval +# } +# right_portrait = { +# character = scope:acolyte +# animation = disbelief +# } +# override_background = { reference = throne_room } +# +# # Private Teachings: they can't have been that important... +# option = { +# name = fp2_lyonese_monk.0021.a +# trigger = { +# NOR = { +# has_character_flag = fp2_lyonese_monk_entered_controversy_flag +# has_character_flag = fp2_lyonese_monk_entered_schism_flag +# } +# } +# +# # Everything ends. +# custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade +# # Clean house. +# scope:story = { end_story = yes } +# +# # No stress impact for notification option. +# ai_chance = { +# # Every option's a good option. +# base = 100 +# } +# } +# +# # Public Controversy: they were clearly more trouble than they're worth... +# option = { +# name = fp2_lyonese_monk.0021.b +# trigger = { +# has_character_flag = fp2_lyonese_monk_entered_controversy_flag +# NOT = { has_character_flag = fp2_lyonese_monk_entered_schism_flag } +# } +# +# # Everything ends. +# custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade +# # Clean house. +# scope:story = { end_story = yes } +# +# # No stress impact for notification option. +# ai_chance = { +# # Every option's a good option. +# base = 100 +# } +# } +# +# # Schism: all this for nothing? +# option = { +# name = fp2_lyonese_monk.0021.c +# trigger = { has_character_flag = fp2_lyonese_monk_entered_schism_flag } +# +# # Everything ends. +# custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade +# # Clean house. +# scope:story = { end_story = yes } +# +# # No stress impact for notification option. +# ai_chance = { +# # Every option's a good option. +# base = 100 +# } +# } +# +# # Is scope:acolyte still alive somewhere? SheHe shouldn't be. +# after = { +# # ... so let's just clean that up. +# scope:acolyte = { +# if = { +# limit = { is_alive = yes } +# silent_disappearance_effect = yes +# } +# } +# } +#} +# +################################################### +## Shattered Faith +## by Ewan Cowhig Croft +## 0031 - 0040 +################################################### +# +## You or scope:acolyte are no longer the correct faith. +#fp2_lyonese_monk.0031 = { +# type = character_event +# title = fp2_lyonese_monk.0031.t +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:acolyte.faith = scope:story.var:base_faith } +# desc = fp2_lyonese_monk.0031.desc.acolyte_host +# } +# desc = fp2_lyonese_monk.0031.desc.acolyte +# } +# } +# theme = faith +# left_portrait = { +# character = scope:acolyte_host +# animation = disapproval +# } +# right_portrait = { +# character = scope:acolyte +# animation = shame +# } +# override_background = { reference = temple } +# +# # Me: I don't need scope:acolyte when I have HighGodName. +# option = { +# name = fp2_lyonese_monk.0031.a +# trigger = { +# faith != scope:story.var:base_faith +# } +# +# # Clean house. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# scope:story = { end_story = yes } +# # Everything ends. +# custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade +# +# # No stress impact for notification option. +# ai_chance = { +# # Every option's a good option. +# base = 100 +# } +# } +# +# # Them: they clearly weren't all that committed. +# option = { +# name = fp2_lyonese_monk.0031.b +# trigger = { +# scope:acolyte.faith != scope:story.var:base_faith +# } +# +# # Clean house. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# scope:story = { end_story = yes } +# # Everything ends. +# custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade +# +# # No stress impact for notification option. +# ai_chance = { +# # Every option's a good option. +# base = 100 +# } +# } +#} +# +################################################### +## Bigger Crises +## by Ewan Cowhig Croft +## 0041 - 0050 +################################################### +# +## The destruction of the Papacy leaves little room in everyone's hearts for the minutiae of doctrine. +#fp2_lyonese_monk.0041 = { +# type = character_event +# title = fp2_lyonese_monk.0041.t +# desc = { +# first_valid = { +# # Either Rome is gone... +# triggered_desc = { +# trigger = { +# NOT = { exists = title:k_papal_state.holder } +# } +# desc = fp2_lyonese_monk.0041.desc.pope_hope_is_nope +# } +# # ... or else we've likely just split off from them, probably due to Mozarab shenanigans. +# desc = fp2_lyonese_monk.0041.desc.schism +# } +# } +# theme = faith +# left_portrait = { +# character = scope:acolyte_host +# animation = disbelief +# } +# right_portrait = { +# character = scope:acolyte +# animation = stress +# } +# override_background = { reference = burning_building } +# +# # We are all alone without the Vicar of Christ! +# option = { +# name = { +# trigger = { +# NOT = { exists = title:k_papal_state.holder } +# } +# text = fp2_lyonese_monk.0041.a.pope_hope_is_nope +# } +# name = { +# trigger = { always = yes } +# text = fp2_lyonese_monk.0041.a.backup +# } +# +# # Clean house. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# scope:story = { end_story = yes } +# # Everything ends. +# custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade +# +# # No stress impact for notification option. +# ai_chance = { +# # Every option's a good option. +# base = 100 +# } +# } +#} +# +################################################### +## It Is a Mystery +## by Ewan Cowhig Croft +## 0051 - 0060 +################################################### +# +## Your incarceration causes scope:acolyte to disappear - and the story along with HerHim. +#fp2_lyonese_monk.0051 = { +# type = character_event +# title = fp2_lyonese_monk.0051.t +# desc = fp2_lyonese_monk.0051.desc +# theme = faith +# left_portrait = { +# character = scope:acolyte_host +# triggered_animation = { +# trigger = { is_in_prison_type = house_arrest } +# animation = prisonhouse +# } +# triggered_animation = { +# trigger = { is_in_prison_type = dungeon } +# animation = prisondungeon +# } +# } +# right_portrait = { +# character = scope:acolyte +# animation = dismissal +# } +# override_background = { reference = dungeon } +# +# # What could have happened to HerHim? +# option = { +# name = fp2_lyonese_monk.0051.a +# +# # Clean house. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# scope:story = { end_story = yes } +# # Everything ends. +# custom_tooltip = fp2_lyonese_monk.0000.tt.teachings_fade +# +# # No stress impact for notification option. +# ai_chance = { +# # Every option's a good option. +# base = 100 +# } +# } +#} +# +# +# +# +# +# +# +# +# +# +################################################### +## PRIVATE TEACHINGS +# +################################################### +## Just a Few Friends +## by Ewan Cowhig Croft +## 0201 - 0210 +################################################### +# +## Scope:acolyte asks for permission to start a study group. +#fp2_lyonese_monk.0201 = { +# type = character_event +# title = fp2_lyonese_monk.0201.t +# desc = fp2_lyonese_monk.0201.desc +# theme = learning_theology_focus +# left_portrait = { +# character = scope:acolyte_host +# animation = personality_rational +# } +# right_portrait = { +# character = scope:acolyte +# animation = flirtation +# } +# override_background = { reference = sitting_room } +# +# trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# } +# +# # I guess it couldn't hurt... +# option = { +# name = fp2_lyonese_monk.0201.a +# +# # Scope:acolyte is happy. +# reverse_add_opinion = { +# target = scope:acolyte +# modifier = pleased_opinion +# opinion = 25 +# } +# # We nab a few early adopters. +# fp2_add_random_characters_to_converts_list_effect = { COURT = scope:acolyte_host } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0201.a.tt +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 4 8 } +# } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# cynical = minor_stress_impact_gain +# paranoid = major_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_sociability = 0.5 +# } +# } +# } +# +# # A group of conspirators? I don't think so! +# option = { +# name = fp2_lyonese_monk.0201.b +# +# # Boot the monk. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# # Stress loss applied in the stress impact. +# +# stress_impact = { +# base = medium_stress_loss +# paranoid = minor_stress_impact_loss +# trusting = medium_stress_impact_gain +# zealous = medium_stress_impact_gain +# eccentric = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_sociability = -0.5 +# ai_rationality = -1 +# } +# } +# } +# +# # I think you've outstayed your welcome, scope:acolyte. +# option = { +# name = fp2_lyonese_monk.0201.c +# +# # Boot the monk. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# # Lil bit o'consolation prestige. +# add_prestige = miniscule_prestige_gain +# +# stress_impact = { +# shy = miniscule_stress_impact_loss +# gregarious = minor_stress_impact_gain +# zealous = minor_stress_impact_gain +# eccentric = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_sociability = -0.5 +# ai_energy = -0.5 +# } +# } +# } +#} +# +################################################### +## But Why? +## by Ewan Cowhig Croft +## 0211 - 0220 +################################################### +# +#scripted_trigger fp2_lyonese_monk_0211_suitable_baron_trigger = { +# # Meets the basic requirements. +# fp2_suitable_base_convert_trigger = yes +# # Plus: is only a baron. +# highest_held_title_tier = tier_barony +#} +# +## One of your barons retires to become a monk spontaneously. +#fp2_lyonese_monk.0211 = { +# type = letter_event +# sender = scope:baron +# opening = fp2_lyonese_monk.0211.t +# desc = fp2_lyonese_monk.0211.desc +# cooldown = { years = 100 } +# +# trigger = { +# fp2_lyonese_monk_0000_valid_for_events_trigger = yes +# # Must have a suitable baron. +# any_vassal = { fp2_lyonese_monk_0211_suitable_baron_trigger = yes } +# } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Select a suitable baron. +# random_vassal = { +# # Try to nab a councillor, to make it more impactful. +# limit = { +# is_councillor_of = scope:acolyte_host +# fp2_lyonese_monk_0211_suitable_baron_trigger = yes +# } +# # But otherwise yeah, just anyone is fine. +# alternative_limit = { fp2_lyonese_monk_0211_suitable_baron_trigger = yes } +# add_to_list = hidden_converts +# save_scope_as = baron +# primary_title = { save_scope_as = baron_holding} +# } +# # Now, they resign and become a NunMonk. +# scope:baron = { +# depose = yes # depose_effect not used for opted abdication +# add_trait = devoted +# } +# # Nab some more converts. +# fp2_add_random_characters_to_converts_list_effect = { COURT = scope:acolyte_host } +# } +# +# # Can SheHe #EMP do#! that? +# option = { +# name = fp2_lyonese_monk.0211.a +# +# # No extra effects. +# # Spawn the next event in the cycle. +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 4 8 } +# } +# +# # No extra stress for a single-option event. +# ai_chance = { +# # Not relevant for a single-option event. +# base = 100 +# } +# } +#} +# +################################################### +## A Rictus Grin +## by Ewan Cowhig Croft +## 0221 - 0230 +################################################### +# +#scripted_trigger fp2_lyonese_monk_0221_suitable_courtier_trigger = { +# # We use the base version because we don't care if they're already a secret convert. +# fp2_suitable_base_convert_trigger = yes +# # Now, we want to make sure they're not already zealous and have room for an extra personality trait. +# number_of_personality_traits < personality_trait_limit +# NOR = { +# has_trait = zealous +# # They also should generally be precluded from cynical, but hey, just in case... +# has_trait = cynical +# } +#} +# +## A courtier is looking dopey and happy due to how at peace with themselves they are. +#fp2_lyonese_monk.0221 = { +# type = character_event +# title = fp2_lyonese_monk.0221.t +# desc = fp2_lyonese_monk.0221.desc +# theme = friendly +# left_portrait = { +# character = scope:acolyte_host +# animation = worry +# } +# right_portrait = { +# character = scope:courtier +# animation = admiration +# } +# override_background = { reference = corridor_day } +# cooldown = { years = 100 } +# +# trigger = { +# fp2_lyonese_monk_0000_valid_for_events_trigger = yes +# any_courtier = { fp2_lyonese_monk_0221_suitable_courtier_trigger = yes } +# } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Select a suitable courtier. +# random_courtier = { +# limit = { fp2_lyonese_monk_0221_suitable_courtier_trigger = yes } +# add_to_list = hidden_converts +# save_scope_as = courtier +# } +# # Give 'em a new lease on life. +# scope:courtier = { add_trait = zealous } +# # Nab some more converts. +# fp2_add_random_characters_to_converts_list_effect = { COURT = scope:acolyte_host } +# } +# +# # Glad you're doing well, scope:courtier! +# option = { +# name = fp2_lyonese_monk.0221.a +# +# # They like you a little more. +# reverse_add_opinion = { +# target = scope:courtier +# modifier = compliment_opinion +# opinion = 20 +# } +# +# stress_impact = { +# trusting = miniscule_stress_impact_loss +# compassionate = miniscule_stress_impact_loss +# callous = minor_stress_impact_gain +# sadistic = minor_stress_impact_gain +# paranoid = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = 1 +# ai_sociability = 1 +# } +# } +# } +# +# # I've got a bad feeling about this... +# option = { +# name = fp2_lyonese_monk.0221.b +# +# # They like you a little less. +# reverse_add_opinion = { +# target = scope:courtier +# modifier = disappointed_opinion +# opinion = -20 +# } +# +# stress_impact = { +# paranoid = miniscule_stress_impact_loss +# trusting = minor_stress_impact_gain +# compassionate = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = -1 +# ai_sociability = -1 +# } +# } +# } +# +# after = { +# # Spawn the next event in the cycle. +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 4 8 } +# } +# } +#} +# +################################################### +## Booing the Bishop +## by Ewan Cowhig Croft +## 0231 - 0240 +################################################### +# +## A bishop in your realm is booed by a crowd of people. +#fp2_lyonese_monk.0231 = { +# type = character_event +# title = fp2_lyonese_monk.0231.t +# desc = fp2_lyonese_monk.0231.desc +# theme = faith +# left_portrait = { +# character = scope:irate_theocrat +# animation = fear +# } +# cooldown = { years = 100 } +# +# trigger = { +# fp2_lyonese_monk_0000_valid_for_events_trigger = yes +# fp2_lyonese_monk_has_suitable_annoyed_theocrat_trigger = yes +# } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Process a suitable annoyed theocrat. +# fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = yes +# scope:irate_theocrat = { add_stress = major_stress_gain } +# # Nab some more converts. +# fp2_add_random_characters_to_converts_list_effect = { COURT = scope:acolyte_host } +# } +# +# # People need to show the Church more *respect*. +# option = { +# name = fp2_lyonese_monk.0231.a +# +# # Scope:irate_theocrat appreciates your kind words. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = pious_opinion +# opinion = 20 +# } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# cynical = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_compassion = -1 +# } +# } +# } +# +# # Clearly SheHe's got to work on HerHis sermons. +# option = { +# name = fp2_lyonese_monk.0231.b +# +# # You gain a little piety. +# add_piety = minor_piety_gain +# # But you frustrate and hurt scope:irate_theocrat. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = cruelty_opinion +# opinion = -10 +# } +# scope:irate_theocrat = { add_stress = minor_stress_gain } +# +# stress_impact = { +# cynical = miniscule_stress_impact_loss +# zealous = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = -0.5 +# ai_zeal = -1 +# } +# } +# } +# +# after = { +# # Spawn the next event in the cycle. +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 4 8 } +# } +# } +#} +# +################################################### +## All HerHis Fault +## by Ewan Cowhig Croft +## 0241 - 0250 +################################################### +# +## Your court chaplain comes to you complaining, begging for an end to all of this. +#fp2_lyonese_monk.0241 = { +# type = character_event +# title = fp2_lyonese_monk.0241.t +# desc = fp2_lyonese_monk.0241.desc +# theme = rival_relation +# left_portrait = { +# character = scope:irate_theocrat +# animation = rage +# } +# right_portrait = { +# character = scope:acolyte +# animation = shock +# } +# override_background = { reference = council_chamber } +# +# trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Process a suitable annoyed theocrat. +# fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = yes +# # Make it clear they're pissed. +# fp2_lyonese_monk_make_acolyte_and_irate_theocrat_rivals_effect = yes +# } +# +# # Very well — pack your things, scope:acolyte. +# option = { +# name = fp2_lyonese_monk.0241.a +# +# # Opinion gain with scope:irate_theocrat. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = pleased_opinion +# opinion = 20 +# } +# # Scope:acolyte leaves. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# cynical = minor_stress_impact_gain +# eccentric = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_rationality = -0.5 +# } +# } +# } +# +# # GUARDS! Seize the heterodox bastard! +# option = { +# name = fp2_lyonese_monk.0241.b +# +# # A sprinkle of piety for your orthodoxy! +# add_piety = minor_piety_gain +# # Scope:acolyte is dispatched. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = scuffle } +# # Scope:irate_theocrat is horrified though. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = overreaction_opinion +# opinion = -10 +# } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# cynical = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_vengefulness = 1 +# } +# } +# } +# +# # You're the troublemaker here, scope:irate_theocrat +# option = { +# name = fp2_lyonese_monk.0241.c +# +# # Scope:irate_theocrat is *not* happy. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = refusal_opinion +# opinion = -30 +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0241.c.tt +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 4 8 } +# } +# +# stress_impact = { +# cynical = miniscule_stress_impact_loss +# zealous = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = 0.5 +# ai_zeal = -1 +# } +# } +# } +#} +# +# +# +# +# +# +# +# +# +# +# +################################################### +## PUBLIC CONTROVERSY +# +################################################### +## Scope:pope's Epistle +## by Ewan Cowhig Croft +## 0401 - 0410 +################################################### +# +## The Pope writes you an advisory, reprimanding you and asking you to boot the monk. +#fp2_lyonese_monk.0401 = { +# type = letter_event +# sender = scope:pope +# opening = fp2_lyonese_monk.0401.t +# desc = fp2_lyonese_monk.0401.desc +# +# trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# play_music_cue = "mx_cue_general_crusade_event_1" +# # Sort our Pope scope. +# fp2_lyonese_monk_grab_and_update_pope_effect = yes +# # Mark that we've entered the second phase. +# add_character_flag = fp2_lyonese_monk_entered_controversy_flag +# } +# +# # The Holy See compels me. +# option = { +# name = fp2_lyonese_monk.0401.a +# +# # Boot the monk. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# # Gain a favour hook on scope:pope. +# add_hook = { +# type = favor_hook +# target = scope:pope +# } +# # Plus some opinion. +# reverse_add_opinion = { +# target = scope:pope +# modifier = pious_opinion +# opinion = 20 +# } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# arrogant = medium_stress_impact_gain +# cynical = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_rationality = 0.5 +# } +# } +# } +# +# # I don't remember asking for Rome's permission. +# option = { +# name = fp2_lyonese_monk.0401.b +# +# # Scope:pope is more upset. +# reverse_add_opinion = { +# target = scope:pope +# modifier = impious_opinion +# opinion = -15 +# } +# # Plus - lose a little piety. +# add_piety = minor_piety_loss +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# cynical = miniscule_stress_impact_loss +# arrogant = miniscule_stress_impact_loss +# humble = medium_stress_impact_gain +# zealous = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_vengefulness = 0.75 +# ai_zeal = -1 +# } +# } +# } +#} +# +################################################### +## Space to Teach +## by Ewan Cowhig Croft +## 0411 - 0420 +################################################### +# +#scripted_trigger fp2_lyonese_monk_0411_county_to_give_trigger = { +# tier = tier_county +# is_landless_type_title = no +# NOT = { this = scope:acolyte_host.capital_county } +# # Within the prime region. +# title_province = { geographical_region = dlc_fp2_lyonese_monk_region } +#} +# +## Scope:acolyte asks you for a county in which to spread HerHis teachings. +#fp2_lyonese_monk.0411 = { +# type = character_event +# title = fp2_lyonese_monk.0411.t +# desc = fp2_lyonese_monk.0411.desc +# theme = learning_theology_focus +# left_portrait = { +# character = scope:acolyte_host +# animation = disbelief +# } +# right_portrait = { +# character = scope:acolyte +# animation = admiration +# } +# cooldown = { years = 100 } +# +# trigger = { +# fp2_lyonese_monk_0000_valid_for_events_trigger = yes +# # If you're just a count yourself, this isn't relevant for you. +# highest_held_title_tier >= tier_duchy +# # Must have a suitable county to hand over. +# any_held_title = { fp2_lyonese_monk_0411_county_to_give_trigger = yes } +# } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Pick a county to ask for. +# ordered_held_title = { +# limit = { fp2_lyonese_monk_0411_county_to_give_trigger = yes } +# # Pick the least valuable county. +# order_by = { +# value = development_level +# multiply = -1 +# } +# save_scope_as = acolyte_fief +# } +# } +# +# # I suppose... I suppose I could allow this... +# option = { +# name = fp2_lyonese_monk.0411.a +# +# # You turn over the county. +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = change +# } +# scope:acolyte_fief = { +# change_title_holder = { +# holder = scope:acolyte +# change = scope:change +# } +# } +# resolve_title_and_vassal_change = scope:change +# # Make sure the place spawns as a theocracy. +# hidden_effect = { +# scope:acolyte = { change_government = theocracy_government } +# } +# # Nab some converts. +# fp2_add_random_vassals_to_converts_list_effect = { LIEGE = scope:acolyte_host } +# # Spawn the next event in the cycle. +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# generous = minor_stress_impact_loss +# greedy = major_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 0.5 +# ai_greed = -2 +# } +# } +# } +# +# # Don't be ridiculous! +# option = { +# name = fp2_lyonese_monk.0411.b +# flavor = fp2_lyonese_monk.0411.b.tt +# +# # Boot the monk. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# # Gain a little prestige for putting your foot down. +# add_prestige = minor_prestige_gain +# +# stress_impact = { +# greedy = miniscule_stress_impact_loss +# generous = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_greed = 2 +# ai_zeal = -0.5 +# } +# } +# } +#} +# +################################################### +## High Tempers +## by Ewan Cowhig Croft +## 0421 - 0430 +################################################### +# +## Your court chaplain and scope:acolyte get into a fight. +#fp2_lyonese_monk.0421 = { +# type = character_event +# title = fp2_lyonese_monk.0421.t +# desc = fp2_lyonese_monk.0421.desc +# theme = unfriendly +# left_portrait = { +# character = scope:irate_theocrat +# animation = war_attacker +# } +# right_portrait = { +# character = scope:acolyte +# animation = war_over_win +# } +# override_background = { reference = feast } +# cooldown = { years = 100 } +# +# trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Grab a theocrat. +# fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = yes +# # Piss them off. +# fp2_lyonese_monk_make_acolyte_and_irate_theocrat_rivals_effect = yes +# } +# +# # Scope:irate_theocrat, show some decorum! +# option = { +# name = fp2_lyonese_monk.0421.a +# +# # Lose opinion with scope:irate_theocrat. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = humiliated_opinion +# opinion = -10 +# } +# # Gain opinion with scope:acolyte. +# reverse_add_opinion = { +# target = scope:acolyte +# modifier = trust_opinion +# opinion = 20 +# } +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_emboldened +# scope:story = { +# change_variable = { +# name = school_radical +# add = 1 +# } +# } +# +# stress_impact = { +# cynical = miniscule_stress_impact_loss +# zealous = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_sociability = 1 +# ai_zeal = -1 +# } +# } +# } +# +# # Scope:acolyte, you *will* respect HerHis authority! +# option = { +# name = fp2_lyonese_monk.0421.b +# +# # Gain opinion with scope:irate_theocrat. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = trust_opinion +# opinion = 20 +# } +# # Lose opinion with scope:acolyte. +# reverse_add_opinion = { +# target = scope:acolyte +# modifier = humiliated_opinion +# opinion = -10 +# } +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_paused +# scope:story = { +# change_variable = { +# name = school_felicitous +# add = 1 +# } +# } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# cynical = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_sociability = -1 +# } +# } +# } +# +# # Don't you two have more in common than not? +# option = { +# name = fp2_lyonese_monk.0421.c +# +# # Lose opinion with scope:irate_theocrat. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = annoyed_opinion +# opinion = -5 +# } +# # Lose opinion with scope:acolyte. +# reverse_add_opinion = { +# target = scope:acolyte +# modifier = annoyed_opinion +# opinion = -5 +# } +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_humbled +# scope:story = { +# change_variable = { +# name = school_elipandic +# add = 1 +# } +# } +# +# stress_impact = { +# gregarious = miniscule_stress_impact_loss +# zealous = minor_stress_impact_gain +# cynical = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = 1 +# ai_vengefulness = -1 +# } +# } +# } +# +# after = { +# # Spawn the next event in the cycle. +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# } +#} +# +################################################### +## Scope:pope's Second Epistle +## by Ewan Cowhig Croft +## 0431 - 0440 +################################################### +# +## The Pope writes you *another* advisory, demanding that you boot scope:acolyte plus +#fp2_lyonese_monk.0431 = { +# type = letter_event +# sender = scope:pope +# opening = fp2_lyonese_monk.0431.t +# desc = { +# # Check whether the Pope has switched. +# first_valid = { +# triggered_desc = { +# trigger = { +# exists = scope:old_pope +# scope:old_pope != scope:pope +# } +# desc = fp2_lyonese_monk.0431.desc.pope.different +# } +# desc = fp2_lyonese_monk.0431.desc.pope.same +# } +# desc = fp2_lyonese_monk.0431.desc.outro +# } +# cooldown = { years = 100 } +# +# trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Sort our Pope scope. +# fp2_lyonese_monk_grab_and_update_pope_effect = yes +# } +# +# # It's not wise to aggravate the throne of St. Peter... +# option = { +# name = fp2_lyonese_monk.0431.a +# +# # Boot the monk. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# # A bit less opinion now, as you've had one chance. +# reverse_add_opinion = { +# target = scope:pope +# modifier = pious_opinion +# opinion = 10 +# } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# cynical = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_vengefulness = -1 +# } +# } +# } +# +# # Perhaps there's a middle ground here. +# option = { +# name = fp2_lyonese_monk.0431.b +# +# # You try to argue for a better result. +# duel = { +# skill = diplomacy +# value = very_high_skill_rating +# # You mollify scope:pope. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0431.b.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0431.b.tt.success +# left_icon = scope:pope +# reverse_add_opinion = { +# target = scope:pope +# modifier = impious_opinion +# opinion = -5 +# } +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_humbled +# scope:story = { +# change_variable = { +# name = school_elipandic +# add = 1 +# } +# } +# } +# } +# # Scope:pope is even *more* angry. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0431.b.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0431.b.tt.failure +# left_icon = scope:pope +# ## We use the same value as last time since, by definition, this is now stacking. +# reverse_add_opinion = { +# target = scope:pope +# modifier = angry_opinion +# opinion = -30 +# } +# # And some *more* piety loss! +# add_piety = medium_piety_loss +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_paused +# scope:story = { +# change_variable = { +# name = school_felicitous +# add = 1 +# } +# } +# } +# } +# } +# +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# arrogant = miniscule_stress_impact_loss +# zealous = medium_stress_impact_gain +# cynical = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_sociability = 0.75 +# ai_zeal = 0.5 +# ai_vengefulness = -0.5 +# } +# } +# } +# +# # Damn it, I'm the GetTitleAsName! +# option = { +# name = fp2_lyonese_monk.0431.c +# +# # Scope:pope is more upset. +# ## We use the same value as last time since, by definition, this is now stacking. +# reverse_add_opinion = { +# target = scope:pope +# modifier = impious_opinion +# opinion = -15 +# } +# # And some *more* piety loss! +# add_piety = medium_piety_loss +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_emboldened +# scope:story = { +# change_variable = { +# name = school_radical +# add = 1 +# } +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# arrogant = miniscule_stress_impact_loss +# cynical = miniscule_stress_impact_loss +# humble = medium_stress_impact_gain +# zealous = major_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_vengefulness = 0.5 +# ai_sociability = -0.5 +# ai_zeal = -1 +# } +# } +# } +#} +# +################################################### +## The Council of scope:bishopric +## by Ewan Cowhig Croft +## 0441 - 0450 +################################################### +# +## The clergy of the region gather for a minor church council, featuring scope:acolyte defending their claims. +#fp2_lyonese_monk.0441 = { +# type = character_event +# title = fp2_lyonese_monk.0441.t +# desc = fp2_lyonese_monk.0441.desc +# theme = faith +# left_portrait = { +# character = scope:acolyte +# animation = schadenfreude +# } +# right_portrait = { +# character = scope:irate_theocrat +# animation = stress +# } +# +# trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Grab a theocrat. +# fp2_lyonese_monk_select_suitable_annoyed_theocrat_effect = yes +# # Escalate the scope:acolyte - scope:irate_theocrat relationship if we can. +# scope:acolyte = { +# # We should become rivals if we're not already. +# if = { +# limit = { +# NOT = { has_relation_rival = scope:irate_theocrat } +# } +# scope:irate_theocrat = { +# set_relation_rival = { +# target = scope:acolyte +# reason = rival_blamed_by_mentor +# } +# } +# } +# # But if we _are_, then it's nemesis time. +# else_if = { +# limit = { has_relation_rival = scope:irate_theocrat } +# set_relation_nemesis = { +# target = scope:irate_theocrat +# copy_reason = rival +# reason = rival_blamed_by_mentor +# } +# } +# # Plus, this shows off their ecclesiastic chops! +# add_piety_level = 2 +# } +# # Pick a venue. +# scope:acolyte = { +# if = { +# limit = { is_landed = yes } +# capital_barony = { save_scope_as = council_1_venue } +# } +# else = { +# scope:acolyte_host.capital_barony = { save_scope_as = council_1_venue } +# } +# } +# # The whole event preemptively gives scope:acolyte a fresh audience. +# fp2_add_random_vassals_to_converts_list_effect = { LIEGE = scope:acolyte_host } +# } +# +# # This council has my full support. +# option = { +# name = fp2_lyonese_monk.0441.a +# +# # Gain piety. +# add_piety = medium_piety_gain +# # Scope:irate_theocrat has a bad time. +# scope:irate_theocrat = { +# add_opinion = { +# target = scope:acolyte_host +# modifier = humiliated_opinion +# opinion = -50 +# } +# add_stress = major_stress_gain +# } +# # Scope:acolyte is happy. +# scope:acolyte = { +# add_opinion = { +# target = scope:acolyte_host +# modifier = pious_opinion +# opinion = 20 +# } +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# cynical = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_vengefulness = 1 +# } +# } +# } +# +# # Matters of theology are not my concern. +# option = { +# name = fp2_lyonese_monk.0441.b +# +# # Gain prestige. +# add_prestige = medium_prestige_gain +# # Scope:irate_theocrat has a less-bad time. +# scope:irate_theocrat = { +# add_opinion = { +# target = scope:acolyte_host +# modifier = abandoned_me_opinion +# opinion = -20 +# } +# add_stress = medium_stress_gain +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# humble = miniscule_stress_impact_loss +# arrogant = minor_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_rationality = 0.5 +# ai_zeal = -1 +# } +# } +# } +# +# # I've let this go too far! +# option = { +# name = fp2_lyonese_monk.0441.c +# +# # Boot the monk. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# # Scope:irate_theocrat is incredibly thankful. +# reverse_add_opinion = { +# target = scope:irate_theocrat +# modifier = relieved_opinion +# opinion = 75 +# } +# scope:irate_theocrat = { add_stress = major_stress_loss } +# # Gain some piety out of it. Even though you're likely at a net loss by this point. +# add_piety = medium_piety_gain +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# cynical = minor_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_zeal = 1 +# ai_compassion = 0.25 +# } +# } +# } +#} +# +# +# +# +# +# +# +# +# +# +# +################################################### +## SCHISM +# +################################################### +## Scope:pope's Third Epistle +## by Ewan Cowhig Croft +## 0601 - 0610 +################################################### +# +## Whatever the council's results, the Pope condemns it. You are given a final demand demand to repent & turn over scope:acolyte or face excommunication. +#fp2_lyonese_monk.0601 = { +# type = letter_event +# sender = scope:pope +# opening = fp2_lyonese_monk.0601.t +# desc = fp2_lyonese_monk.0601.desc +# +# trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# play_music_cue = "mx_cue_combat_stinger" +# # Sort our Pope scope. +# fp2_lyonese_monk_grab_and_update_pope_effect = yes +# # Mark that we've entered the second phase. +# remove_character_flag = fp2_lyonese_monk_entered_controversy_flag +# add_character_flag = fp2_lyonese_monk_entered_schism_flag +# } +# +# # I can only beg for St. Peter's forgiveness. +# option = { +# name = fp2_lyonese_monk.0601.a +# +# # Hand the monk over to Rome. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = pope } +# # Scope:pope forgives you your trespasses. +# add_piety = medium_piety_gain +# reverse_add_opinion = { +# target = scope:pope +# modifier = relieved_opinion +# opinion = 50 +# } +# +# stress_impact = { +# zealous = miniscule_stress_impact_loss +# humble = miniscule_stress_impact_loss +# cynical = major_stress_impact_gain +# arrogant = major_stress_impact_gain +# } +# ai_chance = { +# # If we've made it to this point, the AI should be committed to backing scope:acolyte. +# base = 0 +# } +# } +# +# # I am appointed by HighGodName! +# option = { +# name = fp2_lyonese_monk.0601.b +# +# # Welp, don't say you weren't warned. +# excommunicate_character = { +# REQUESTING_CHARACTER = scope:pope +# TARGET_CHARACTER = scope:acolyte_host +# } +# add_piety_level = -2 +# +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# cynical = miniscule_stress_impact_loss +# arrogant = miniscule_stress_impact_loss +# zealous = major_stress_impact_gain +# humble = major_stress_impact_gain +# } +# ai_chance = { +# # If we've made it to this point, the AI should be committed to backing scope:acolyte. +# base = 100 +# } +# } +#} +# +################################################### +## High Tensions +## by Ewan Cowhig Croft +## 0611 - 0620 +################################################### +# +#scripted_effect fp2_lyonese_monk_0611_diplomatic_defusal_effect = { +# scope:rioting_county = { +# add_county_modifier = { +# modifier = fp2_religious_riots_defused_modifier +# years = 10 +# } +# } +#} +# +## An angry mob in your capital turn up to demand scope:acolyte's head, countered by *another* angry mob that hates the first mob. +#fp2_lyonese_monk.0611 = { +# type = character_event +# title = fp2_lyonese_monk.0611.t +# desc = fp2_lyonese_monk.0611.desc +# theme = war +# left_portrait = { +# character = scope:peasant_1 +# animation = aggressive_spear +# outfit_tags = { beggar_rags } +# hide_info = yes +# } +# right_portrait = { +# character = scope:peasant_2 +# animation = aggressive_axe +# outfit_tags = { beggar_rags } +# hide_info = yes +# } +# lower_center_portrait = scope:acolyte +# override_background = { reference = courtyard } +# cooldown = { years = 100 } +# +# trigger = { +# fp2_lyonese_monk_0000_valid_for_events_trigger = yes +# any_held_title = { +# title_tier = county +# faith = scope:story.var:base_faith +# } +# } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Pick a suitable county. +# if = { +# limit = { capital_county.faith = scope:story.var:base_faith } +# capital_county = { save_scope_as = rioting_county } +# } +# else = { +# random_held_title = { +# title_tier = county +# limit = { +# faith = scope:story.var:base_faith +# } +# save_scope_as = rioting_county +# } +# } +# # Create some peasants. +# create_character = { +# template = generic_peasant_character +# location = scope:rioting_county.title_province +# save_scope_as = peasant_1 +# } +# create_character = { +# template = generic_peasant_character +# location = scope:rioting_county.title_province +# save_scope_as = peasant_2 +# } +# } +# +# # Diplomacy: I can defuse this situation. +# option = { +# name = fp2_lyonese_monk.0611.a +# trigger = { diplomacy >= very_high_skill_rating } +# skill = diplomacy +# +# # Apply defusal effect immediately. +# fp2_lyonese_monk_0611_diplomatic_defusal_effect = yes +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_humbled +# scope:story = { +# change_variable = { +# name = school_elipandic +# add = 1 +# } +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# calm = miniscule_stress_impact_loss +# gregarious = miniscule_stress_impact_loss +# wrathful = medium_stress_impact_gain +# shy = major_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = 1 +# ai_sociability = 1 +# } +# } +# } +# +# # Please, my subjects, calm! +# option = { +# name = fp2_lyonese_monk.0611.b +# trigger = { diplomacy < very_high_skill_rating } +# +# # You try to talk things out. +# duel = { +# skill = diplomacy +# value = high_skill_rating +# # You defuse the situation. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0611.b.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0611.b.tt.success +# left_icon = scope:rioting_county +# fp2_lyonese_monk_0611_diplomatic_defusal_effect = yes +# } +# } +# # Violence erupts anyway. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0611.b.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0611.b.tt.failure +# left_icon = scope:rioting_county +# scope:rioting_county = { +# add_county_modifier = { +# modifier = fp2_religious_riots_modifier +# years = 20 +# } +# } +# } +# } +# } +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_humbled +# scope:story = { +# change_variable = { +# name = school_elipandic +# add = 1 +# } +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# calm = miniscule_stress_impact_loss +# gregarious = miniscule_stress_impact_loss +# wrathful = medium_stress_impact_gain +# shy = major_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = 1 +# ai_sociability = 1 +# } +# } +# } +# +# # Fetch my sword, we'll disperse these *rebels*. +# option = { +# name = fp2_lyonese_monk.0611.c +# flavor = fp2_lyonese_monk.0611.c.tt +# +# # You choose violence. +# scope:rioting_county = { +# add_county_modifier = { +# modifier = fp2_religious_riots_suppressed_modifier +# years = 20 +# } +# } +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_emboldened +# scope:story = { +# change_variable = { +# name = school_radical +# add = 1 +# } +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# wrathful = miniscule_stress_impact_loss +# compassionate = major_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_vengefulness = 1 +# ai_compassion = -1 +# } +# } +# } +# +# # Heretics? At my very *door*? +# option = { +# name = fp2_lyonese_monk.0611.d +# flavor = fp2_lyonese_monk.0611.d.tt +# +# # You've had enough of this event chain. +# scope:rioting_county = { +# add_county_modifier = { +# modifier = fp2_religious_riots_suppressed_modifier +# years = 20 +# } +# } +# # Scope:acolyte is dispatched. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = scuffle } +# # Take a nice chunk o'piety for your zeal! +# add_piety = major_piety_gain +# +# stress_impact = { +# wrathful = miniscule_stress_impact_loss +# compassionate = major_stress_impact_gain +# } +# ai_chance = { +# # If we've made it to this point, the AI should be committed to backing scope:acolyte. +# base = 0 +# } +# } +# +# # Lock the gates. +# option = { +# name = fp2_lyonese_monk.0611.e +# +# # Riots outside, not your problem. +# scope:rioting_county = { +# add_county_modifier = { +# modifier = fp2_religious_riots_modifier +# years = 20 +# } +# } +# # Stress loss in the stress_impact block. +# # Mark this for school calcs later. +# custom_tooltip = fp2_lyonese_monk.0000.tt.is_paused +# scope:story = { +# change_variable = { +# name = school_felicitous +# add = 1 +# } +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# base = major_stress_loss +# shy = minor_stress_impact_loss +# gregarious = minor_stress_impact_gain +# wrathful = major_stress_impact_gain +# compassionate = major_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_compassion = -1 +# ai_sociability = -1 +# } +# } +# } +# +# after = { +# # Clean up the peasants. +# scope:peasant_1 = { silent_disappearance_effect = yes } +# scope:peasant_2 = { silent_disappearance_effect = yes } +# } +#} +# +################################################### +## A Formal Complaint +## by Ewan Cowhig Croft +## 0621 - 0630 +################################################### +# +#scripted_trigger fp2_lyonese_monk_0621_suitable_vassal_trigger = { +# # Same faith. +# faith = scope:acolyte_host.faith +# # Not a cynic. +# NOT = { has_trait = cynical } +# # Available for narrative purposes. +# is_available_ai_adult = yes +# # And uhhh... make sure they don't nab themselves. +# this != scope:acolyte +#} +# +## Zealous vassals protest your heresy. +#fp2_lyonese_monk.0621 = { +# type = character_event +# title = fp2_lyonese_monk.0621.t +# desc = fp2_lyonese_monk.0621.desc +# theme = vassal +# left_portrait = { +# character = scope:acolyte_host +# animation = worry +# } +# right_portrait = { +# character = scope:zealous_vassal +# animation = anger +# } +# lower_left_portrait = scope:acolyte +# cooldown = { years = 100 } +# +# trigger = { +# fp2_lyonese_monk_0000_valid_for_events_trigger = yes +# any_vassal = { fp2_lyonese_monk_0621_suitable_vassal_trigger = yes } +# } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # Nab a suitable vassal. +# ordered_vassal = { +# limit = { fp2_lyonese_monk_0621_suitable_vassal_trigger = yes } +# order_by = { value = max_military_strength } +# save_scope_as = zealous_vassal +# } +# # Sort the Pope. +# fp2_lyonese_monk_grab_and_update_pope_effect = yes +# } +# +# # Scope:pope couldn't persuade me, what makes you think you can? +# option = { +# name = fp2_lyonese_monk.0621.a +# +# # You engage them in serious debate. +# duel = { +# skill = learning +# target = scope:zealous_vassal +# # You shatter their world view. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0621.a.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0621.a.tt.success +# left_icon = scope:zealous_vassal +# scope:zealous_vassal = { +# add_opinion = { +# target = scope:acolyte_host +# modifier = impious_opinion +# opinion = -25 +# } +# add_stress = major_stress_gain +# } +# } +# } +# # They're even *more* infuriated with you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0621.a.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0621.a.tt.failure +# left_icon = scope:zealous_vassal +# reverse_add_opinion = { +# target = scope:zealous_vassal +# modifier = respect_opinion +# opinion = -50 +# } +# if = { +# limit = { +# can_set_relation_rival_trigger = { CHARACTER = scope:zealous_vassal } +# } +# set_relation_rival = { +# target = scope:zealous_vassal +# reason = rival_refused_to_see_reason +# } +# } +# } +# } +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# arrogant = miniscule_stress_impact_loss +# stubborn = miniscule_stress_impact_loss +# humble = medium_stress_impact_gain +# fickle = major_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_rationality = 1 +# ai_zeal = -0.5 +# } +# } +# } +# +# # Vassal? You're naught but a malcontent! +# option = { +# name = fp2_lyonese_monk.0621.b +# +# # Scope:zealous_vassal is annoyed. +# reverse_add_opinion = { +# target = scope:zealous_vassal +# modifier = respect_opinion +# opinion = -25 +# } +# if = { +# limit = { +# can_set_relation_rival_trigger = { CHARACTER = scope:zealous_vassal } +# } +# set_relation_rival = { +# target = scope:zealous_vassal +# reason = rival_refused_to_see_reason +# } +# } +# # Spawn the next event in the cycle. +# custom_tooltip = fp2_lyonese_monk.0000.tt.continues_to_teach +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# arrogant = miniscule_stress_impact_loss +# stubborn = miniscule_stress_impact_loss +# humble = medium_stress_impact_gain +# compassionate = medium_stress_impact_gain +# } +# ai_chance = { +# base = 10 +# ai_value_modifier = { +# ai_vengefulness = 0.75 +# ai_compassion = -0.5 +# } +# } +# } +# +# # Scope:vassal is right, this has gone too far. +# option = { +# name = fp2_lyonese_monk.0621.c +# +# # Boot the monk. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = banished } +# # Gain some piety. +# add_piety = medium_piety_gain +# # Scope:zealous_vassal is very happy! +# reverse_add_opinion = { +# target = scope:zealous_vassal +# modifier = pleased_opinion +# opinion = 50 +# } +# +# stress_impact = { +# humble = miniscule_stress_impact_loss +# fickle = miniscule_stress_impact_loss +# arrogant = minor_stress_impact_gain +# stubborn = major_stress_impact_gain +# } +# ai_chance = { +# # If we've made it to this point, the AI should be committed to backing scope:acolyte. +# base = 0 +# } +# } +#} +# +################################################### +## Just Church Business +## by Ewan Cowhig Croft +## 0631 - 0640 +################################################### +# +#scripted_trigger fp2_lyonese_monk_0631_valid_neighbour_trigger = { +# # Same religious head. +# faith.religious_head = scope:story.var:base_faith.religious_head +# # Neither allied nor has a ceasefire. +# NOR = { +# any_ally = { this = scope:acolyte_host } +# any_truce_target = { this = scope:acolyte_host } +# } +# # Doesn't *already* have a claim. +# NOT = { +# any_claim = { this = scope:acolyte_host.primary_title } +# } +#} +# +## A neighbouring ruler has purchased claims on your land from your HoF. +#fp2_lyonese_monk.0631 = { +# type = letter_event +# sender = scope:neighbouring_ruler +# opening = fp2_lyonese_monk.0631.t +# desc = fp2_lyonese_monk.0631.desc +# cooldown = { years = 100 } +# +# trigger = { +# fp2_lyonese_monk_0000_valid_for_events_trigger = yes +# any_neighboring_and_across_water_realm_same_rank_owner = { fp2_lyonese_monk_0631_valid_neighbour_trigger = yes } +# } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# # Boost the tallied events score by +1. +# scope:story = { +# change_variable = { +# name = lm_phase_tally +# add = 1 +# } +# } +# # First, we'll need to make sure our HoF is up to date. +# fp2_lyonese_monk_grab_and_update_pope_effect = yes +# # Now let's pick a solid neighbour. +# ## First gathering candidates. +# every_neighboring_and_across_water_realm_same_rank_owner = { +# limit = { fp2_lyonese_monk_0631_valid_neighbour_trigger = yes } +# add_to_list = claims_donated_neighbouring_ruler_list +# } +# ## Then processing them. +# ordered_in_list = { +# list = claims_donated_neighbouring_ruler_list +# # Scope:pope, naturally, has a type. +# limit = { has_trait = zealous } +# alternative_limit = { always = yes } +# order_by = { value = max_military_strength } +# save_scope_as = neighbouring_ruler +# } +# # Now we fork over a claim on scope:acolyte_host's primary title. +# scope:neighbouring_ruler = { add_pressed_claim = scope:acolyte_host.primary_title } +# } +# +# # Outrageous! +# option = { +# name = fp2_lyonese_monk.0631.a +# +# # Well, that's a sure sign of an escalation. +# ## Stress gain handled in stress_impact block. +# +# # Spawn the next event in the cycle. +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle +# months = { 6 12 } +# } +# +# stress_impact = { +# base = medium_stress_gain +# greedy = minor_stress_impact_gain +# paranoid = minor_stress_impact_gain +# } +# ai_chance = { +# # Single option event, AI chance irrelevant. +# base = 100 +# } +# } +#} +# +################################################### +## No More than a Man +## by Ewan Cowhig Croft +## 0641 - 0650 +################################################### +# +## Scope:acolyte suggests you embrace the heresy. +#fp2_lyonese_monk.0641 = { +# type = character_event +# title = fp2_lyonese_monk.0641.t +# desc = fp2_lyonese_monk.0641.desc +# theme = faith +# left_portrait = { +# character = scope:acolyte_host +# animation = stress +# } +# right_portrait = { +# character = scope:acolyte +# animation = scheme +# } +# lower_center_portrait = scope:pope +# override_background = { reference = study } +# +# trigger = { fp2_lyonese_monk_0000_valid_for_events_trigger = yes } +# +# on_trigger_fail = { +# trigger_event = { +# on_action = fp2_lyonese_monk_events_cycle_no_valid_events_fallback +# months = { 4 8 } +# } +# } +# +# immediate = { +# play_music_cue = "mx_cue_faith_conversion" +# # Scope:acolyte's *real* traits & faith are revealed. +# ## These include the two "hidden" traits of scope:acolyte's buffs - heresiarch & education_intrigue_4. +# scope:acolyte = { +# set_character_faith = faith:adoptionist +# hidden_effect = { +# # Swap educations & adjust stats to match. +# remove_trait = education_learning_4 +# add_learning_skill = 8 +# add_trait = education_intrigue_4 +# add_intrigue_skill = -8 +# # Reduce down the stats that'll increased by heresiarch. +# add_martial_skill = -2 +# add_learning_skill = -2 +# add_prowess_skill = -2 +# } +# add_heresiarch_trait_effect = yes +# # Make this clear too. +# hidden_effect = { force_character_skill_recalculation = yes } +# # _Small_ diplo-immunity. +# add_character_flag = { +# flag = flag_hostile_actions_disabled_delay +# days = 10 +# } +# } +# # Nab a scope:pope, so that they can welcome you back. +# fp2_lyonese_monk_grab_and_update_pope_effect = yes +# } +# +# # Yes... yes, why not, if they're so set on accusing us? +# option = { +# name = fp2_lyonese_monk.0641.a +# +# # Conversion time! +# ## You switch faith. +# add_character_flag = { +# flag = delay_player_faith_conversion_notification_event +# days = 1 +# } +# set_character_faith_with_conversion = faith:adoptionist +# if = { +# limit = { +# faith:adoptionist = { has_doctrine = doctrine_monotheist } +# } +# custom_description_no_bullet = { text = mandala_monotheist_warning_tt } +# } +# add_heresiarch_trait_effect = yes +# ## The hidden character's list gets used. +# every_in_list = { +# list = hidden_converts +# limit = { fp2_suitable_base_convert_trigger = yes } +# custom = fp2_lyonese_monk.0641.a.tt.hidden_convert.character +# set_character_faith_with_conversion = faith:adoptionist +# } +# ## Every county in your realm bordering scope:acolyte's stronghold converts. +# ### We don't just give you everything scope:acolyte holds plus _their_ neighbours so that you can't game-convert half of Europe with some clever pimpling. +# scope:acolyte_fief = { +# if = { +# limit = { holder = scope:acolyte } +# set_county_faith = faith:adoptionist +# # Plus nab the neighbours. +# every_neighboring_county = { +# limit = { +# faith = scope:story.var:base_faith +# holder = { +# any_liege_or_above = { this = scope:acolyte_host } +# } +# } +# set_county_faith = faith:adoptionist +# } +# } +# } +# # We unblock adoptionism being converted to from this point onwards. +# ## No need to notify the player; it's not strictly relevant for them for gameplay purposes. +# faith:adoptionist = { remove_variable = block_conversion_till_nebulous_circumstances } +# # And a large gathering of nerds is held. +# custom_tooltip = fp2_lyonese_monk.0641.a.tt +# # Trigger the conclave. +# trigger_event = { +# id = fp2_lyonese_monk.0801 +# months = 1 +# } +# +# stress_impact = { +# trusting = miniscule_stress_impact_loss +# cynical = miniscule_stress_impact_loss +# paranoid = medium_stress_impact_gain +# zealous = major_stress_impact_gain +# } +# ai_chance = { +# # If we've made it to this point, the AI should be committed to backing scope:acolyte. +# base = 100 +# } +# } +# +# # Snake! You've been planning this all along! +# option = { +# name = fp2_lyonese_monk.0641.b +# +# # Scope:acolyte is dispatched. +# fp2_lyonese_monk_cancel_chain_effect = { REMOVAL = scuffle } +# # Scope:pope is happy. +# reverse_add_opinion = { +# target = scope:pope +# modifier = relieved_opinion +# opinion = 50 +# } +# ## If you're still excommunicated (which: let's face it), then SheHe'll recommunicate you. +# if = { +# limit = { has_trait = excommunicated } +# lift_character_excommunication_effect = { +# TARGET_CHARACTER = scope:acolyte_host +# REQUESTING_CHARACTER = scope:pope +# } +# } +# +# stress_impact = { +# paranoid = miniscule_stress_impact_loss +# zealous = miniscule_stress_impact_loss +# cynical = medium_stress_impact_gain +# trusting = major_stress_impact_gain +# } +# ai_chance = { +# # If we've made it to this point, the AI should be committed to backing scope:acolyte. +# base = 0 +# } +# } +#} +# +# +# +# +# +# +# +# +# +# +# +################################################### +## COUNCIL +# +################################################### +## The Second Council of scope:bishopric +## by Ewan Cowhig Croft +## 0801 - 0810 +################################################### +# +## Clergy from all over your realm gather, wanting to contribute their thoughts and notes. +#fp2_lyonese_monk.0801 = { +# type = character_event +# title = { +# first_valid = { +# # Is this our second council here? +# triggered_desc = { +# trigger = { scope:council_1_venue = scope:council_2_venue } +# desc = fp2_lyonese_monk.0801.t.second +# } +# # Or our first? +# desc = fp2_lyonese_monk.0801.t.first +# } +# } +# desc = { +# desc = fp2_lyonese_monk.0801.desc.intro +# first_valid = { +# triggered_desc = { +# trigger = { scope:acolyte_stance = flag:school_elipandic } +# desc = fp2_lyonese_monk.0801.desc.elipandic +# } +# triggered_desc = { +# trigger = { scope:acolyte_stance = flag:school_felicitous } +# desc = fp2_lyonese_monk.0801.desc.felicitous +# } +# triggered_desc = { +# trigger = { scope:acolyte_stance = flag:school_radical } +# desc = fp2_lyonese_monk.0801.desc.radical +# } +# } +# } +# theme = learning +# left_portrait = { +# character = scope:acolyte_host +# animation = personality_rational +# } +# right_portrait = { +# character = scope:acolyte_at_council +# animation = chancellor +# } +# override_background = { reference = temple_scope } +# +# immediate = { +# # Refund the piety levels you lost earlier. +# add_piety_level = 2 +# # Give you a fun trait because... I mean, well. +# add_heresiarch_trait_effect = yes +# # Sort our locale. +# ## First, whether this is a repeater. +# scope:council_1_venue = { +# ## Preferring to chill at scope:acolyte's place. +# if = { +# limit = { holder = scope:acolyte } +# save_scope_as = council_2_venue +# } +# ## But otherwise we take your capital. +# else = { +# scope:acolyte_host.capital_barony = { save_scope_as = council_2_venue } +# } +# } +# ## Then the background scope. +# scope:council_2_venue = { save_scope_as = background_temple_scope } +# # Work out what scope:acolyte's stance is. +# scope:story = { +# # They're an Elipandic. +# if = { +# limit = { +# var:school_elipandic > var:school_felicitous +# var:school_elipandic > var:school_radical +# } +# save_scope_value_as = { +# name = acolyte_stance +# value = flag:school_elipandic +# } +# } +# # They're Felicitous. +# else_if = { +# limit = { +# var:school_felicitous > var:school_elipandic +# var:school_felicitous > var:school_radical +# } +# save_scope_value_as = { +# name = acolyte_stance +# value = flag:school_felicitous +# } +# } +# # They're a Radical. +# else_if = { +# limit = { +# var:school_radical > var:school_elipandic +# var:school_radical > var:school_felicitous +# } +# save_scope_value_as = { +# name = acolyte_stance +# value = flag:school_radical +# } +# } +# # If we've somehow ended up with a draw, we have a Felicitous base, so we go with that for the tie-breaker. +# else = { +# save_scope_value_as = { +# name = acolyte_stance +# value = flag:school_felicitous +# } +# } +# } +# # Aaaaand is scope:acolyte around for the pictures. +# scope:acolyte = { +# if = { +# limit = { is_physically_able = yes } +# save_scope_as = acolyte_at_council +# } +# } +# } +# +# # Naturally, I'll take a leading role in the discussions. +# option = { +# name = fp2_lyonese_monk.0801.a +# +# # You'll engage in learning debates. +# custom_tooltip = fp2_lyonese_monk.0801.a.tt +# save_scope_value_as = { +# name = conclave_engagement +# value = flag:debate +# } +# # Progress the conclave. +# custom_tooltip = fp2_lyonese_monk.0801.tt.invalidation_warning +# trigger_event = { +# id = fp2_lyonese_monk.0811 +# months = 2 +# } +# +# stress_impact = { +# gregarious = miniscule_stress_impact_loss +# shy = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # My influence will be more felt than seen... +# option = { +# name = fp2_lyonese_monk.0801.b +# +# # You'll spend piety. +# custom_tooltip = fp2_lyonese_monk.0801.b.tt +# save_scope_value_as = { +# name = conclave_engagement +# value = flag:piety +# } +# # Progress the conclave. +# custom_tooltip = fp2_lyonese_monk.0801.tt.invalidation_warning +# trigger_event = { +# id = fp2_lyonese_monk.0811 +# months = 2 +# } +# +# stress_impact = { +# shy = miniscule_stress_impact_loss +# gregarious = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # This is a matter for the clergy alone. +# option = { +# name = fp2_lyonese_monk.0801.c +# +# # You leave the clergy to their discussions. +# custom_tooltip = fp2_lyonese_monk.0801.c.tt +# # Gain a decent chunk of piety for letting this go ahead. +# add_piety = major_piety_gain +# # Progress the chain. +# save_scope_value_as = { +# name = defaulted_on_conclave +# value = yes +# } +# trigger_event = { +# id = fp2_lyonese_monk.0841 +# months = 2 +# } +# +# stress_impact = { +# humble = miniscule_stress_impact_loss +# arrogant = major_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 100 +# } +# } +#} +# +################################################### +## Council: Father & Son +## by Ewan Cowhig Croft +## 0811 - 0820 +################################################### +# +## Become Righteous. +#scripted_effect fp2_lyonese_monk_0811_elipandic_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_elipandics +# faith:adoptionist = { +# hidden_effect = { remove_doctrine = doctrine_pluralism_fundamentalist } +# add_doctrine = doctrine_pluralism_righteous +# } +#} +# +## Become Pluralist. +#scripted_effect fp2_lyonese_monk_0811_felicitous_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_felicians +# faith:adoptionist = { +# hidden_effect = { remove_doctrine = doctrine_pluralism_fundamentalist } +# add_doctrine = doctrine_pluralism_pluralistic +# } +#} +# +## Stay Fundamentalist. +#scripted_effect fp2_lyonese_monk_0811_radical_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_radicals +# show_as_tooltip = { +# faith:adoptionist = { +# add_doctrine = doctrine_pluralism_fundamentalist +# } +# } +#} +# +## Clergy argue over whether you're all really adoptionists or just nuanced Catholics. +#fp2_lyonese_monk.0811 = { +# type = character_event +# title = fp2_lyonese_monk.0811.t +# desc = fp2_lyonese_monk.0811.desc +# theme = diplomacy +# left_portrait = { +# character = scope:acolyte_host +# animation = personality_bold +# } +# right_portrait = { +# character = scope:acolyte_at_council +# animation = personality_bold +# } +# override_background = { reference = temple_scope } +# +# trigger = { is_imprisoned = no } +# +# on_trigger_fail = { +# # Progress the chain. +# save_scope_value_as = { +# name = defaulted_on_conclave +# value = yes +# } +# trigger_event = { +# id = fp2_lyonese_monk.0841 +# months = 2 +# } +# } +# +# immediate = { +# # Check to see if scope:acolyte around for the pictures. +# ## Clear the old scope if applicable. +# if = { +# limit = { exists = scope:acolyte_at_council } +# clear_saved_scope = acolyte_at_council +# } +# ## Now try to refresh it. +# scope:acolyte = { +# if = { +# limit = { is_physically_able = yes } +# save_scope_as = acolyte_at_council +# } +# } +# } +# +# # Elipandic: the situation is nuanced... +# option = { +# name = fp2_lyonese_monk.0811.a +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0811_elipandic_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0811.a.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0811.a.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0811_elipandic_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0811.a.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0811.a.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0811_felicitous_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0811_radical_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# stubborn = miniscule_stress_impact_loss +# deceitful = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # Felician: it is no mark of shame to be chosen by HighGodName. +# option = { +# name = fp2_lyonese_monk.0811.b +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0811_felicitous_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0811.b.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0811.b.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0811_felicitous_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0811.b.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0811.b.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0811_elipandic_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0811_radical_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# deceitful = miniscule_stress_impact_loss +# stubborn = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # Radical: once a man, never fully God. +# option = { +# name = fp2_lyonese_monk.0811.c +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0811_radical_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0811.c.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0811.c.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0811_radical_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0811.c.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0811.c.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0811_elipandic_school_effect = yes +# } +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0811_felicitous_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# arrogant = miniscule_stress_impact_loss +# stubborn = medium_stress_impact_gain +# deceitful = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # I have no opinion on this matter. +# option = { +# name = fp2_lyonese_monk.0811.d +# +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0811_elipandic_school_effect = yes +# } +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0811_felicitous_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0811_radical_school_effect = yes +# } +# +# # We don't charge stress for the opt-outs, not least because their results are variable. +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 100 +# } +# } +# +# after = { +# # Progress the conclave. +# trigger_event = { +# id = fp2_lyonese_monk.0821 +# months = 2 +# } +# } +#} +# +################################################### +## Council: Practicality vs. Principle +## by Ewan Cowhig Croft +## 0821 - 0830 +################################################### +# +## Keep Religious Law. +#scripted_effect fp2_lyonese_monk_0821_elipandic_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_elipandics +# show_as_tooltip = { +# faith:adoptionist = { add_doctrine = tenet_religious_legal_pronouncements } +# } +#} +# +## Gain Sanctioned False Conversions. +#scripted_effect fp2_lyonese_monk_0821_felicitous_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_felicians +# faith:adoptionist = { +# remove_doctrine = tenet_religious_legal_pronouncements +# add_doctrine = tenet_false_conversion_sanction +# } +#} +# +## Gain Pursuit of Power. +#scripted_effect fp2_lyonese_monk_0821_radical_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_radicals +# faith:adoptionist = { +# remove_doctrine = tenet_religious_legal_pronouncements +# add_doctrine = tenet_pursuit_of_power +# } +#} +# +## Clergy argue over the degree to which expedience is required. +#fp2_lyonese_monk.0821 = { +# type = character_event +# title = fp2_lyonese_monk.0821.t +# desc = fp2_lyonese_monk.0821.desc +# theme = intrigue +# left_portrait = { +# character = scope:acolyte_host +# animation = personality_cynical +# } +# right_portrait = { +# character = scope:acolyte_at_council +# animation = personality_honorable +# } +# override_background = { reference = temple_scope } +# +# trigger = { is_imprisoned = no } +# +# on_trigger_fail = { +# # Progress the chain. +# save_scope_value_as = { +# name = defaulted_on_conclave +# value = yes +# } +# trigger_event = { +# id = fp2_lyonese_monk.0841 +# months = 2 +# } +# } +# +# immediate = { +# # Check to see if scope:acolyte around for the pictures. +# ## Clear the old scope if applicable. +# if = { +# limit = { exists = scope:acolyte_at_council } +# clear_saved_scope = acolyte_at_council +# } +# ## Now try to refresh it. +# scope:acolyte = { +# if = { +# limit = { is_physically_able = yes } +# save_scope_as = acolyte_at_council +# } +# } +# } +# +# # Elipandic: accommodation with the rest of Christendom is vital. +# option = { +# name = fp2_lyonese_monk.0821.a +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0821_elipandic_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0821.a.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0821.a.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0821_elipandic_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0821.a.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0821.a.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0821_felicitous_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0821_radical_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# stubborn = miniscule_stress_impact_loss +# deceitful = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # Felician: practicality is innately principled. +# option = { +# name = fp2_lyonese_monk.0821.b +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0821_felicitous_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0821.b.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0821.b.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0821_felicitous_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0821.b.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0821.b.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0821_elipandic_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0821_radical_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# deceitful = miniscule_stress_impact_loss +# stubborn = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # Radical: hidden faith is faith without fire! +# option = { +# name = fp2_lyonese_monk.0821.c +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0821_radical_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0821.c.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0821.c.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0821_radical_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0821.c.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0821.c.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0821_elipandic_school_effect = yes +# } +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0821_felicitous_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# arrogant = miniscule_stress_impact_loss +# stubborn = medium_stress_impact_gain +# deceitful = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # This seems circumstantial. +# option = { +# name = fp2_lyonese_monk.0821.d +# +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0821_elipandic_school_effect = yes +# } +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0821_felicitous_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0821_radical_school_effect = yes +# } +# +# # We don't charge stress for the opt-outs, not least because their results are variable. +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 100 +# } +# } +# +# after = { +# # Progress the conclave. +# trigger_event = { +# id = fp2_lyonese_monk.0831 +# months = 2 +# } +# } +#} +# +################################################### +## Council: One God +## by Ewan Cowhig Croft +## 0831 - 0840 +################################################### +# +## Follow the Elipandic school. +#scripted_effect fp2_lyonese_monk_0831_elipandic_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_elipandics +# faith:adoptionist = { add_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } +#} +# +## Follow the Felicitous school. +#scripted_effect fp2_lyonese_monk_0831_felicitous_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_felicians +# faith:adoptionist = { add_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } +#} +# +## Follow the Radical school. +#scripted_effect fp2_lyonese_monk_0831_radical_school_effect = { +# custom_tooltip = fp2_lyonese_monk.0000.tt.favour_radicals +# faith:adoptionist = { add_doctrine = special_doctrine_adoptionist_school_radical_doctrine } +#} +# +## Clergy argue over *how* monotheistic to be. +#fp2_lyonese_monk.0831 = { +# type = character_event +# title = fp2_lyonese_monk.0831.t +# desc = fp2_lyonese_monk.0831.desc +# theme = martial +# left_portrait = { +# character = scope:acolyte_host +# animation = personality_honorable +# } +# right_portrait = { +# character = scope:acolyte_at_council +# animation = chaplain +# } +# override_background = { reference = temple_scope } +# +# trigger = { is_imprisoned = no } +# +# on_trigger_fail = { +# # Progress the chain. +# save_scope_value_as = { +# name = defaulted_on_conclave +# value = yes +# } +# trigger_event = { +# id = fp2_lyonese_monk.0841 +# months = 2 +# } +# } +# +# immediate = { +# # Check to see if scope:acolyte around for the pictures. +# ## Clear the old scope if applicable. +# if = { +# limit = { exists = scope:acolyte_at_council } +# clear_saved_scope = acolyte_at_council +# } +# ## Now try to refresh it. +# scope:acolyte = { +# if = { +# limit = { is_physically_able = yes } +# save_scope_as = acolyte_at_council +# } +# } +# } +# +# # Elipandic: the Father, the Son, and the Holy Ghost are still one being. +# option = { +# name = fp2_lyonese_monk.0831.a +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0831_elipandic_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0831.a.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0831.a.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0831_elipandic_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0831.a.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0831.a.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0831_felicitous_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0831_radical_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# stubborn = miniscule_stress_impact_loss +# deceitful = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # Felician: a separation between Father and Son does not diminish either. +# option = { +# name = fp2_lyonese_monk.0831.b +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0831_felicitous_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0831.b.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0831.b.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0831_felicitous_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0831.b.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0831.b.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0831_elipandic_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0831_radical_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# deceitful = miniscule_stress_impact_loss +# stubborn = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # Radical: the primacy of the Father is immutable. +# option = { +# name = fp2_lyonese_monk.0831.c +# trigger = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety >= fp2_lyonese_monk_conclave_cost_value +# } +# } +# show_as_unavailable = { +# # Piety path costing. +# trigger_if = { +# limit = { scope:conclave_engagement = flag:piety } +# piety < fp2_lyonese_monk_conclave_cost_value +# } +# } +# +# # Piety path. +# if = { +# limit = { scope:conclave_engagement = flag:piety } +# # Pay the piety tax. +# add_piety = { +# value = fp2_lyonese_monk_conclave_cost_value +# multiply = -1 +# } +# # Get your results. +# fp2_lyonese_monk_0831_radical_school_effect = yes +# } +# # Debate path. +# if = { +# limit = { scope:conclave_engagement = flag:debate } +# duel = { +# skill = learning +# value = high_skill_rating +# # You sway the priests. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = 3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0831.c.tt.success +# send_interface_toast = { +# title = fp2_lyonese_monk.0831.c.tt.success +# left_icon = scope:council_1_venue +# fp2_lyonese_monk_0831_radical_school_effect = yes +# } +# } +# # The clergy ignore you. +# 50 = { +# compare_modifier = { +# value = scope:duel_value +# multiplier = -3.5 +# min = -49 +# } +# desc = fp2_lyonese_monk.0831.c.tt.failure +# send_interface_toast = { +# title = fp2_lyonese_monk.0831.c.tt.failure +# left_icon = scope:council_1_venue +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0831_elipandic_school_effect = yes +# } +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0831_felicitous_school_effect = yes +# } +# } +# } +# } +# } +# +# # Stress impacts here based on the virtues lionised by each school. +# stress_impact = { +# arrogant = miniscule_stress_impact_loss +# stubborn = medium_stress_impact_gain +# deceitful = medium_stress_impact_gain +# } +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 0 +# } +# } +# +# # Have we shattered on dogma already? +# option = { +# name = fp2_lyonese_monk.0831.d +# +# # We take scope:acolyte's preference. +# ## Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# fp2_lyonese_monk_0831_elipandic_school_effect = yes +# } +# ## Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# fp2_lyonese_monk_0831_felicitous_school_effect = yes +# } +# ## Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# fp2_lyonese_monk_0831_radical_school_effect = yes +# } +# +# # We don't charge stress for the opt-outs, not least because their results are variable. +# ai_chance = { +# # The AI should just let the scope:acolyte pick. +# base = 100 +# } +# } +# +# after = { +# # Progress the conclave. +# trigger_event = { +# id = fp2_lyonese_monk.0841 +# months = 2 +# } +# } +#} +# +################################################### +## From the Ashes +## by Ewan Cowhig Croft +## 0841 - 0850 +################################################### +# +## The church council arrives at their final important doctrinal conclusions. +#fp2_lyonese_monk.0841 = { +# type = character_event +# title = fp2_lyonese_monk.0841.t +# desc = { +# desc = fp2_lyonese_monk.0841.desc.intro +# # Pluralism. +# first_valid = { +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = doctrine_pluralism_pluralistic } +# } +# desc = fp2_lyonese_monk.0841.desc.pluralist +# } +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = doctrine_pluralism_righteous } +# } +# desc = fp2_lyonese_monk.0841.desc.righteous +# } +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = doctrine_pluralism_fundamentalist } +# } +# desc = fp2_lyonese_monk.0841.desc.fundamentalist +# } +# } +# # Tenets. +# first_valid = { +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = tenet_false_conversion_sanction } +# } +# desc = fp2_lyonese_monk.0841.desc.sanctioned_false_conversions +# } +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = tenet_religious_legal_pronouncements } +# } +# desc = fp2_lyonese_monk.0841.desc.religious_law +# } +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = tenet_pursuit_of_power } +# } +# desc = fp2_lyonese_monk.0841.desc.pursuit_of_power +# } +# } +# # School. +# first_valid = { +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } +# } +# desc = fp2_lyonese_monk.0841.desc.felicitous +# } +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } +# } +# desc = fp2_lyonese_monk.0841.desc.elipandic +# } +# triggered_desc = { +# trigger = { +# faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_radical_doctrine } +# } +# desc = fp2_lyonese_monk.0841.desc.radical +# } +# } +# # Outro. +# desc = fp2_lyonese_monk.0841.desc.outro +# } +# theme = faith +# left_portrait = { +# character = scope:acolyte_host +# animation = personality_bold +# } +# right_portrait = { +# character = scope:acolyte_at_council +# animation = chancellor +# } +# override_background = { reference = temple_scope } +# +# immediate = { +# # Music! +# ## Elipandics won out. +# if = { +# limit = { +# faith = { has_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } +# } +# play_music_cue = "mx_cue_sacredrite" +# } +# ## Felicians won out. +# if = { +# limit = { +# faith = { has_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } +# } +# play_music_cue = "mx_cue_murder" +# } +# ## Radicals won out. +# if = { +# limit = { +# faith = { has_doctrine = special_doctrine_adoptionist_school_radical_doctrine } +# } +# play_music_cue = "mx_cue_war_declared" +# } +# # Now let's display our choices. +# faith:adoptionist = { +# # If we defaulted, then we need to work these out. +# if = { +# limit = { exists = scope:defaulted_on_conclave } +# # Elipandics. +# if = { +# limit = { scope:acolyte_stance = flag:school_elipandic } +# # The one we've already got. +# show_as_tooltip = { add_doctrine = tenet_religious_legal_pronouncements } +# # And the two we can genuinely add. +# add_doctrine = doctrine_pluralism_righteous +# add_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine +# } +# # Felicians. +# if = { +# limit = { scope:acolyte_stance = flag:school_felicitous } +# # Remove some inappropriate ones. +# hidden_effect = { remove_doctrine = doctrine_pluralism_fundamentalist } +# remove_doctrine = tenet_religious_legal_pronouncements +# # Add our new ones. +# add_doctrine = doctrine_pluralism_pluralistic +# add_doctrine = tenet_false_conversion_sanction +# add_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine +# } +# # Radicals. +# if = { +# limit = { scope:acolyte_stance = flag:school_radical } +# # Remove the inappropriate ones. +# remove_doctrine = tenet_religious_legal_pronouncements +# # Add our new ones. +# show_as_tooltip = { add_doctrine = doctrine_pluralism_fundamentalist } +# # Add our new ones. +# add_doctrine = tenet_pursuit_of_power +# add_doctrine = special_doctrine_adoptionist_school_radical_doctrine +# } +# } +# # Otherwise, we can use a tooltip. +# else = { +# show_as_tooltip = { +# # Pluralism. +# ## Elipandics - +# if = { +# limit = { has_doctrine = doctrine_pluralism_fundamentalist } +# add_doctrine = doctrine_pluralism_fundamentalist +# } +# ## Felicians - +# if = { +# limit = { has_doctrine = doctrine_pluralism_pluralistic } +# add_doctrine = doctrine_pluralism_pluralistic +# } +# ## Radicals - +# if = { +# limit = { has_doctrine = doctrine_pluralism_righteous } +# add_doctrine = doctrine_pluralism_righteous +# } +# # Tenets. +# ## Elipandics - +# if = { +# limit = { has_doctrine = tenet_religious_legal_pronouncements } +# add_doctrine = tenet_religious_legal_pronouncements +# } +# ## Felicians - +# if = { +# limit = { has_doctrine = tenet_false_conversion_sanction } +# add_doctrine = tenet_false_conversion_sanction +# } +# ## Radicals - +# if = { +# limit = { has_doctrine = tenet_pursuit_of_power } +# add_doctrine = tenet_pursuit_of_power +# } +# # School. +# ## Elipandics - +# if = { +# limit = { has_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } +# add_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine +# } +# ## Felicians - +# if = { +# limit = { has_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } +# add_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine +# } +# ## Radicals - +# if = { +# limit = { has_doctrine = special_doctrine_adoptionist_school_radical_doctrine } +# add_doctrine = special_doctrine_adoptionist_school_radical_doctrine +# } +# } +# } +# } +# # And try to create a HoF. +# ## Assuming you've not shenaniganed, this should generally grab scope:acolyte. +# if = { +# limit = { scope:acolyte_host.highest_held_title_tier >= tier_kingdom } +# set_up_dynamic_spiritual_hof_title_effect = { CREATOR = scope:acolyte_host } +# } +# } +# +# # Elipandic: let them call us heretics. We simply have nuance they lack. +# option = { +# name = fp2_lyonese_monk.0841.a +# trigger = { +# faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_elipandic_doctrine } +# } +# +# # You choose piety. +# add_piety = major_piety_gain +# +# # No stress impact for choosing a flavour option. +# ai_chance = { +# # Any option is as good as any other here. +# base = 100 +# } +# } +# +# # Felician: our words are sensible, our actions likewise. +# option = { +# name = fp2_lyonese_monk.0841.b +# trigger = { +# faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_felicitous_doctrine } +# } +# +# # You choose piety. +# add_piety = major_piety_gain +# +# # No stress impact for choosing a flavour option. +# ai_chance = { +# # Any option is as good as any other here. +# base = 100 +# } +# } +# +# # Radical: see these false Christians and their polytheism laid bare! +# option = { +# name = fp2_lyonese_monk.0841.c +# trigger = { +# faith:adoptionist = { has_doctrine = special_doctrine_adoptionist_school_radical_doctrine } +# } +# +# # You choose piety. +# add_piety = major_piety_gain +# +# # No stress impact for choosing a flavour option. +# ai_chance = { +# # Any option is as good as any other here. +# base = 100 +# } +# } +# +# # I only hope we've made the right choice. +# option = { +# name = fp2_lyonese_monk.0841.d +# +# # You choose prestige. +# add_prestige = medium_prestige_gain +# +# # No stress impact for choosing a flavour option. +# ai_chance = { +# # Any option is as good as any other here. +# base = 100 +# } +# } +# +# after = { +# # Clean up the story. +# scope:story = { end_story = yes } +# } +#} +# \ No newline at end of file diff --git a/events/dlc/fp2/fp2_other_decision_events.txt b/events/dlc/fp2/fp2_other_decision_events.txt index 92d5e001..0a724e6b 100644 --- a/events/dlc/fp2/fp2_other_decision_events.txt +++ b/events/dlc/fp2/fp2_other_decision_events.txt @@ -668,7 +668,7 @@ fp2_other_decisions.0001 = { # faith = { # OR = { # portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:catholic } +# portrait_religious_faith_or_foundational_trigger = { faith = faith:roman_catholic } # } # } # } diff --git a/events/dlc/fp2/fp2_struggle_events.txt b/events/dlc/fp2/fp2_struggle_events.txt index 1aae42e0..39a55e94 100644 --- a/events/dlc/fp2/fp2_struggle_events.txt +++ b/events/dlc/fp2/fp2_struggle_events.txt @@ -31,412 +31,412 @@ ## 3011 - 3020 Order of the Hatchet by Veronica Pazos ## 3021 - 3030 The Wrath of Heaven by Veronica Pazos ################################################################################### - -# Setting AI Intent -fp2_struggle.0003 = { - hidden = yes - scope = none - scope = struggle - - trigger = { # Should not need this, but, redundancy check! - exists = struggle:iberian_struggle - struggle:iberian_struggle = { any_involved_ruler = { } } # For when the conflict is ongoing but nobody is left to fight it - } - - immediate = { - # prepare needed variables; they will be destroyed at the end of the immediate - set_variable = { - name = agents_for_escalation - value = 0 - } - set_variable = { - name = agents_for_deescalation - value = 0 - } - - # Go through the characters to distribute them between the potential transitions - struggle:iberian_struggle = { - every_involved_ruler = { - limit = { is_alive = yes } - ####################### - # Play cue track - ###################### - if = { - limit = { is_ai = no } - play_music_cue = "mx_Struggle_Opening" - } - - ####################### - # Check existing flags - ###################### - if = { - limit = { has_character_flag = agenda_towards_escalation } - root = { - change_variable = { - name = agents_for_escalation - add = 1 - } - } - } - else_if = { - limit = { has_character_flag = agenda_towards_deescalation } - root = { - change_variable = { - name = agents_for_deescalation - add = 1 - } - } - } - else = { # Set a flag - ############################# - # Current Phase: Opportunity - ############################# - if = { - limit = { root = { is_struggle_phase = struggle_iberia_phase_opportunity } } - random_list = { - # Working towards Hostility - # It should be for characters looking for direct conflicts and domination, with the will and ability to expand their realms - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = hostility - INTENT = escalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = escalation - } - } - # Working towards Conciliation - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = conciliation - INTENT = deescalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = deescalation - } - } - } - } - - ############################# - # Current Phase: Hostility - ############################# - if = { - limit = { root = { is_struggle_phase = struggle_iberia_phase_hostility } } - random_list = { - # Working towards Hostility: it means that the character wants to stay in - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = hostility - INTENT = escalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = escalation - } - } - # Working towards Compromise - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = compromise - INTENT = deescalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = deescalation - } - } - } - } - - ############################# - # Current Phase: Compromise - ############################# - if = { - limit = { root = { is_struggle_phase = struggle_iberia_phase_compromise } } - random_list = { - - # Working towards Opportunity - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = opportunity - INTENT = escalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = escalation - } - } - # Working towards Compromise: they want to stay in the same phase - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = compromise - INTENT = deescalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = deescalation - } - } - } - } - - ############################# - # Current Phase: Conciliation - ############################# - if = { - limit = { root = { is_struggle_phase = struggle_iberia_phase_conciliation } } - random_list = { - # Working towards Compromise - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = compromise - INTENT = escalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = escalation - } - } - # Working towards Conciliation: they want to stay in the same phase - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = conciliation - INTENT = deescalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = deescalation - } - } - } - } - } - } - } - - # Clean variables - remove_variable = agents_for_escalation - remove_variable = agents_for_deescalation - } -} - -# Set AI Intent on join -fp2_struggle.004 = { - hidden = yes - scope = none - - immediate = { - set_variable = { - name = agents_for_escalation - value = 0 - } - set_variable = { - name = agents_for_deescalation - value = 0 - } - - ############################ - # Update the variables - ############################ - every_character_struggle = { - every_involved_ruler = { - limit = { is_alive = yes } - if = { - limit = { has_character_flag = agenda_towards_escalation } - root = { - change_variable = { - name = agents_for_escalation - add = 1 - } - } - } - else_if = { - limit = { has_character_flag = agenda_towards_deescalation } - root = { - change_variable = { - name = agents_for_deescalation - add = 1 - } - } - } - } - } - - if = { - limit = { - NOR = { - has_character_flag = agenda_towards_escalation - has_character_flag = agenda_towards_deescalation - } - } - - ############################# - # Current Phase: Opportunity - ############################# - if = { - limit = { any_character_struggle = { is_struggle_phase = struggle_iberia_phase_opportunity } } - random_list = { - # Working towards Hostility - # It should be for characters looking for direct conflicts and domination, with the will and ability to expand their realms - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = hostility - INTENT = escalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = escalation - } - } - # Working towards Conciliation - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = conciliation - INTENT = deescalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = deescalation - } - } - } - } - - ############################# - # Current Phase: Hostility - ############################# - if = { - limit = { any_character_struggle = { is_struggle_phase = struggle_iberia_phase_hostility } } - random_list = { - # Working towards Hostility: it means that the character wants to stay in - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = hostility - INTENT = escalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = escalation - } - } - # Working towards Compromise - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = compromise - INTENT = deescalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = deescalation - } - } - } - } - - ############################# - # Current Phase: Compromise - ############################# - if = { - limit = { any_character_struggle = { is_struggle_phase = struggle_iberia_phase_compromise } } - random_list = { - - # Working towards Opportunity - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = opportunity - INTENT = escalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = escalation - } - } - # Working towards Compromise: they want to stay in the same phase - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = compromise - INTENT = deescalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = deescalation - } - } - } - } - - ############################# - # Current Phase: Conciliation - ############################# - if = { - limit = { any_character_struggle = { is_struggle_phase = struggle_iberia_phase_conciliation } } - random_list = { - # Working towards Compromise - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = compromise - INTENT = escalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = escalation - } - } - # Working towards Conciliation: they want to stay in the same phase - 100 = { - # Odds modifiers - fp2_struggle_set_ai_agenda_common_modifiers = { - PHASE = conciliation - INTENT = deescalation - } - - # Apply effects - fp2_struggle_apply_ai_agenda_effect = { - INTENT = deescalation - } - } - } - } - } - - # Clean variables - remove_variable = agents_for_escalation - remove_variable = agents_for_deescalation - } -} +# +## Setting AI Intent +#fp2_struggle.0003 = { +# hidden = yes +# scope = none +# scope = struggle +# +# trigger = { # Should not need this, but, redundancy check! +# exists = struggle:iberian_struggle +# struggle:iberian_struggle = { any_involved_ruler = { } } # For when the conflict is ongoing but nobody is left to fight it +# } +# +# immediate = { +# # prepare needed variables; they will be destroyed at the end of the immediate +# set_variable = { +# name = agents_for_escalation +# value = 0 +# } +# set_variable = { +# name = agents_for_deescalation +# value = 0 +# } +# +# # Go through the characters to distribute them between the potential transitions +# struggle:iberian_struggle = { +# every_involved_ruler = { +# limit = { is_alive = yes } +# ####################### +# # Play cue track +# ###################### +# if = { +# limit = { is_ai = no } +# play_music_cue = "mx_Struggle_Opening" +# } +# +# ####################### +# # Check existing flags +# ###################### +# if = { +# limit = { has_character_flag = agenda_towards_escalation } +# root = { +# change_variable = { +# name = agents_for_escalation +# add = 1 +# } +# } +# } +# else_if = { +# limit = { has_character_flag = agenda_towards_deescalation } +# root = { +# change_variable = { +# name = agents_for_deescalation +# add = 1 +# } +# } +# } +# else = { # Set a flag +# ############################# +# # Current Phase: Opportunity +# ############################# +# if = { +# limit = { root = { is_struggle_phase = struggle_iberia_phase_opportunity } } +# random_list = { +# # Working towards Hostility +# # It should be for characters looking for direct conflicts and domination, with the will and ability to expand their realms +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = hostility +# INTENT = escalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = escalation +# } +# } +# # Working towards Conciliation +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = conciliation +# INTENT = deescalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = deescalation +# } +# } +# } +# } +# +# ############################# +# # Current Phase: Hostility +# ############################# +# if = { +# limit = { root = { is_struggle_phase = struggle_iberia_phase_hostility } } +# random_list = { +# # Working towards Hostility: it means that the character wants to stay in +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = hostility +# INTENT = escalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = escalation +# } +# } +# # Working towards Compromise +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = compromise +# INTENT = deescalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = deescalation +# } +# } +# } +# } +# +# ############################# +# # Current Phase: Compromise +# ############################# +# if = { +# limit = { root = { is_struggle_phase = struggle_iberia_phase_compromise } } +# random_list = { +# +# # Working towards Opportunity +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = opportunity +# INTENT = escalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = escalation +# } +# } +# # Working towards Compromise: they want to stay in the same phase +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = compromise +# INTENT = deescalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = deescalation +# } +# } +# } +# } +# +# ############################# +# # Current Phase: Conciliation +# ############################# +# if = { +# limit = { root = { is_struggle_phase = struggle_iberia_phase_conciliation } } +# random_list = { +# # Working towards Compromise +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = compromise +# INTENT = escalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = escalation +# } +# } +# # Working towards Conciliation: they want to stay in the same phase +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = conciliation +# INTENT = deescalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = deescalation +# } +# } +# } +# } +# } +# } +# } +# +# # Clean variables +# remove_variable = agents_for_escalation +# remove_variable = agents_for_deescalation +# } +#} +# +## Set AI Intent on join +#fp2_struggle.004 = { +# hidden = yes +# scope = none +# +# immediate = { +# set_variable = { +# name = agents_for_escalation +# value = 0 +# } +# set_variable = { +# name = agents_for_deescalation +# value = 0 +# } +# +# ############################ +# # Update the variables +# ############################ +# every_character_struggle = { +# every_involved_ruler = { +# limit = { is_alive = yes } +# if = { +# limit = { has_character_flag = agenda_towards_escalation } +# root = { +# change_variable = { +# name = agents_for_escalation +# add = 1 +# } +# } +# } +# else_if = { +# limit = { has_character_flag = agenda_towards_deescalation } +# root = { +# change_variable = { +# name = agents_for_deescalation +# add = 1 +# } +# } +# } +# } +# } +# +# if = { +# limit = { +# NOR = { +# has_character_flag = agenda_towards_escalation +# has_character_flag = agenda_towards_deescalation +# } +# } +# +# ############################# +# # Current Phase: Opportunity +# ############################# +# if = { +# limit = { any_character_struggle = { is_struggle_phase = struggle_iberia_phase_opportunity } } +# random_list = { +# # Working towards Hostility +# # It should be for characters looking for direct conflicts and domination, with the will and ability to expand their realms +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = hostility +# INTENT = escalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = escalation +# } +# } +# # Working towards Conciliation +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = conciliation +# INTENT = deescalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = deescalation +# } +# } +# } +# } +# +# ############################# +# # Current Phase: Hostility +# ############################# +# if = { +# limit = { any_character_struggle = { is_struggle_phase = struggle_iberia_phase_hostility } } +# random_list = { +# # Working towards Hostility: it means that the character wants to stay in +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = hostility +# INTENT = escalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = escalation +# } +# } +# # Working towards Compromise +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = compromise +# INTENT = deescalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = deescalation +# } +# } +# } +# } +# +# ############################# +# # Current Phase: Compromise +# ############################# +# if = { +# limit = { any_character_struggle = { is_struggle_phase = struggle_iberia_phase_compromise } } +# random_list = { +# +# # Working towards Opportunity +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = opportunity +# INTENT = escalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = escalation +# } +# } +# # Working towards Compromise: they want to stay in the same phase +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = compromise +# INTENT = deescalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = deescalation +# } +# } +# } +# } +# +# ############################# +# # Current Phase: Conciliation +# ############################# +# if = { +# limit = { any_character_struggle = { is_struggle_phase = struggle_iberia_phase_conciliation } } +# random_list = { +# # Working towards Compromise +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = compromise +# INTENT = escalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = escalation +# } +# } +# # Working towards Conciliation: they want to stay in the same phase +# 100 = { +# # Odds modifiers +# fp2_struggle_set_ai_agenda_common_modifiers = { +# PHASE = conciliation +# INTENT = deescalation +# } +# +# # Apply effects +# fp2_struggle_apply_ai_agenda_effect = { +# INTENT = deescalation +# } +# } +# } +# } +# } +# +# # Clean variables +# remove_variable = agents_for_escalation +# remove_variable = agents_for_deescalation +# } +#} ################################### # Iberian Struggle Intro Events diff --git a/events/dlc/fp2/fp2_yearly_events.txt b/events/dlc/fp2/fp2_yearly_events.txt index 1d9020f6..38d99790 100644 --- a/events/dlc/fp2/fp2_yearly_events.txt +++ b/events/dlc/fp2/fp2_yearly_events.txt @@ -2538,710 +2538,710 @@ fp2_yearly.4003 = { } } } - -################################### -# Talented Mozarab offers their services -# By Nick Meredith -################################### -fp2_yearly.4004 = { - type = character_event - title = fp2_yearly.4004.t - desc = fp2_yearly.4004.desc - theme = vassal - left_portrait = { - character = root - animation = admiration - } - right_portrait = { - character = scope:mozarab_wanderer - animation = marshal - } - - trigger = { - - #DLC check - has_fp2_dlc_trigger = yes - - #Standard check - is_landed = yes - is_available_at_peace_adult = yes - - #Mozarabic exists... - exists = faith:mozarabic_church - - #...but you are not Mozarabic - NOT = { - faith = faith:mozarabic_church - } - - #and capital is located in Iberia - capital_province = { - geographical_region = world_europe_west_iberia - } - } - - immediate = { - create_character = { - age = { 20 40 } - location = root.capital_province - gender_female_chance = { - if = { - limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } } - add = 0 - } - else_if = { - limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } } - add = 100 - } - else = { - add = 50 - } - } - random_traits_list = { - count = 1 - education_martial_3 = {} - education_martial_4 = {} - } - random_traits_list = { #Something nice - count = 2 - brave = {} - honest = {} - gregarious = {} - trusting = {} - compassionate = {} - generous = {} - humble = {} - calm = {} - } - random_traits_list = { - count = 1 - lustful = {} - chaste = {} - wrathful = {} - arrogant = {} - impatient = {} - patient = {} - impatient = {} - ambitious = {} - cynical = {} - zealous = {} - stubborn = {} - } - - trait = lifestyle_blademaster - - random_traits = no - - diplomacy = { min_template_low_skill max_template_average_skill } - martial = { min_template_decent_skill max_template_high_skill } - stewardship = { min_template_low_skill max_template_average_skill } - intrigue = { min_template_low_skill max_template_average_skill } - learning = { min_template_low_skill max_template_average_skill } - prowess = { min_template_decent_skill max_template_high_skill } - - culture = root.culture - faith = faith:mozarabic_church - - dynasty = none - after_creation = { - add_gold = { minor_gold_value medium_gold_value } - add_prestige = { minor_prestige_gain medium_prestige_gain } - add_piety = { minor_piety_gain medium_piety_gain } - add_trait_xp = { - trait = lifestyle_blademaster - value = { - integer_range = { - min = medium_lifestyle_random_xp_low - max = medium_lifestyle_random_xp_high - } - } - } - } - - save_scope_as = mozarab_wanderer - } - } - - option = { #Of course you may join my court! - name = fp2_yearly.4004.a - - add_piety = minor_piety_loss - - stress_impact = { - base = minor_stress_impact_gain - zealous = major_stress_impact_gain - stubborn = minor_stress_impact_gain - arrogant = minor_stress_impact_gain - paranoid = minor_stress_impact_gain - } - - add_courtier = scope:mozarab_wanderer - - scope:mozarab_wanderer = { - add_opinion = { - target = root - modifier = respect_opinion - opinion = 20 - } - } - - ai_chance = { - base = 100 - modifier = { - factor = 0 - has_trait = zealous - } - } - } - - option = { #Yes; so long as you convert - name = fp2_yearly.4004.b - - random_list = { - - 40 = { - - add_courtier = scope:mozarab_wanderer - - modifier = { - scope:mozarab_wanderer = { - has_trait = stubborn - } - add = -10 - } - - modifier = { - scope:mozarab_wanderer = { - has_trait = zealous - } - add = -20 - } - - modifier = { - scope:mozarab_wanderer = { - has_trait = arrogant - } - add = -5 - } - - modifier = { - scope:mozarab_wanderer = { - has_trait = wrathful - } - add = -5 - } - - send_interface_toast = { - type = event_toast_effect_good - title = fp2_yearly.4004.b.succ - - left_icon = root - right_icon = scope:mozarab_wanderer - - scope:mozarab_wanderer = { - set_character_faith = root.faith - add_opinion = { - target = root - modifier = impious_opinion - opinion = -20 - } - } - } - } - - 60 = { - - custom_tooltip = fp2_yearly.4004.tt - - send_interface_toast = { - type = event_toast_effect_bad - title = fp2_yearly.4004.b.fail - - left_icon = root - right_icon = scope:mozarab_wanderer - - scope:mozarab_wanderer = { - add_opinion = { - target = root - modifier = annoyed_opinion - opinion = -40 - } - } - } - } - } - - ai_chance = { - base = 100 - } - } - - option = { #Send them away - name = fp2_yearly.4004.c - - custom_tooltip = fp2_yearly.4004.c.tt - - scope:mozarab_wanderer = { - add_opinion = { - target = root - modifier = annoyed_opinion - opinion = -40 - } - } - ai_chance = { - base = 100 - } - } -} - -################################### -# Mozarabs in a city ask for their own quarter -# By Nick Meredith -################################### -fp2_yearly.4005 = { - type = character_event - title = fp2_yearly.4005.t - desc = { - first_valid = { - triggered_desc = { - trigger = { religion = religion:islam_religion } - desc = fp2_yearly.4005.desc.muslim - } - triggered_desc = { - trigger = { always = yes } - desc = fp2_yearly.4005.desc.christian - } - } - desc = fp2_yearly.4005.desc - } - theme = faith - left_portrait = { - character = root - animation = personality_honorable - } - right_portrait = { - character = scope:mozarab_merchant - animation = worry - } - - cooldown = { years = 10 } - - trigger = { - - #DLC check - has_fp2_dlc_trigger = yes - - #Standard check - is_available_at_peace_adult = yes - - #Mozarabic exists... - exists = faith:mozarabic_church - - #...but you are not Mozarabic - NOT = { - faith = faith:mozarabic_church - } - - #and you have a county that has a city holding - any_held_county= { - any_county_province = { - has_holding_type = city_holding - } - } - - #and capital is located in Iberia - capital_province = { - geographical_region = world_europe_west_iberia - } - } - - immediate = { - random_held_county = { - limit = { - any_county_province = { - has_holding_type = city_holding - } - } - save_scope_as = mozarab_quarter - } - - if = { - limit = { - any_pool_character = { - province = scope:mozarab_quarter.title_province - faith = faith:mozarabic_church - is_available_healthy_ai_adult = yes - } - } - random_pool_character = { - province = scope:mozarab_quarter.title_province - limit = { - faith = faith:mozarabic_church - is_available_healthy_ai_adult = yes - } - save_scope_as = mozarab_merchant - } - } - - else = { - create_character = { - age = { 20 40 } - location = root.capital_province - gender_female_chance = root_faith_dominant_gender_female_chance - random_traits_list = { - count = 1 - education_stewardship_3 = {} - education_stewardship_4 = {} - } - - random_traits = yes - - culture = scope:mozarab_quarter.culture - faith = faith:mozarabic_church - - dynasty = none - - save_scope_as = mozarab_merchant - } - } - } - - option = { #You may have a little enclave, as a treat - name = fp2_yearly.4005.a - - remove_treasury_or_gold = medium_treasury_or_gold_value - - scope:mozarab_quarter = { - add_county_modifier = { - modifier = fp2_mozarab_quarter_modifier - years = 10 - } - } - - scope:mozarab_merchant = { - add_opinion = { - target = root - modifier = grateful_opinion - opinion = 40 - } - } - - every_vassal = { - limit = { - has_trait = zealous - } - add_opinion = { - target = liege - modifier = impious_opinion - opinion = -20 - } - } - - stress_impact = { - zealous = major_stress_impact_gain - greedy = major_stress_impact_gain - arrogant = medium_stress_impact_gain - arbitrary = minor_stress_impact_gain - ambitious = minor_stress_impact_gain - stubborn = minor_stress_impact_gain - lazy = minor_stress_impact_gain - } - - ai_chance = { - base = 100 - modifier = { - factor = 0 - OR = { - has_trait = zealous - has_trait = greedy - has_trait = arrogant - } - } - } - } - - option = { #Begone, heathen! - name = fp2_yearly.4005.b - - add_piety = medium_piety_gain - - scope:mozarab_merchant = { - add_opinion = { - target = root - modifier = angry_opinion - opinion = -40 - } - } - - every_vassal = { - limit = { - has_trait = zealous - NOT = { - faith = faith:mozarabic_church - } - } - add_opinion = { - target = liege - modifier = pious_opinion - opinion = 20 - } - } - - every_vassal = { - limit = { - faith = faith:mozarabic_church - } - add_opinion = { - target = root - modifier = disappointed_opinion - opinion = -30 - } - } - - stress_impact = { - zealous = medium_stress_loss - cynical = medium_stress_gain - forgiving = major_stress_gain - just = medium_stress_gain - stubborn = minor_stress_gain - content = minor_stress_gain - patient = minor_stress_gain - trusting = minor_stress_gain - } - - ai_chance = { - base = 100 - modifier = { - factor = 0 - OR = { - has_trait = cynical - has_trait = forgiving - has_trait = just - } - } - } - } -} - -################################### -# Mozarabs ask for permission to build churches -# By Nick Meredith -################################### -fp2_yearly.4006 = { - type = character_event - title = fp2_yearly.4006.t - desc = fp2_yearly.4006.desc - theme = faith - left_portrait = { - character = root - animation = personality_zealous - } - right_portrait = { - character = scope:mozarab_priest - animation = beg - } - - cooldown = { years = 30 } - - trigger = { - - #DLC check - has_fp2_dlc_trigger = yes - - #Standard check - is_available_at_peace_adult = yes - - #Mozarabic exists - exists = faith:mozarabic_church - - #You are not Christian at all - NOT = { - faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } } - } - - #and you have a county that has a free holding slot - any_held_county = { - any_county_province = { - has_holding = no - } - } - - #and your capital is located in Iberia - capital_province = { - geographical_region = world_europe_west_iberia - } - - exists = cp:councillor_court_chaplain - } - - immediate = { - random_sub_realm_county = { - limit = { - any_county_province = { - has_holding = no - } - } - save_scope_as = mozarab_church - } - - if = { - limit = { - any_pool_character = { - province = scope:mozarab_church.title_province - faith = faith:mozarabic_church - is_available_healthy_ai_adult = yes - has_trait = devoted - } - } - random_pool_character = { - province = scope:mozarab_church.title_province - limit = { - faith = faith:mozarabic_church - is_available_healthy_ai_adult = yes - } - save_scope_as = mozarab_priest - } - } - - else = { - create_character = { - age = { 20 40 } - location = root.capital_province - gender_female_chance = root_faith_dominant_gender_female_chance - random_traits_list = { - count = 1 - education_learning_3 = {} - education_learning_4 = {} - } - - trait = devoted - - random_traits = yes - - culture = scope:mozarab_church.culture - faith = faith:mozarabic_church - - dynasty = none - - save_scope_as = mozarab_priest - } - } - cp:councillor_court_chaplain = { - save_scope_as = realm_priest - } - } - - option = { #You can build a church - name = fp2_yearly.4006.a - - remove_treasury_or_gold = medium_treasury_or_gold_value - - root = { - add_character_modifier = { - modifier = fp2_mozarab_church_modifier - years = 30 - } - } - - scope:mozarab_priest = { - add_opinion = { - target = root - modifier = grateful_opinion - opinion = 40 - } - } - - scope:realm_priest = { - add_opinion = { - target = root - modifier = angry_opinion - opinion = -10 - } - } - - stress_impact = { - zealous = major_stress_impact_gain - greedy = major_stress_impact_gain - arrogant = medium_stress_impact_gain - arbitrary = minor_stress_impact_gain - ambitious = minor_stress_impact_gain - stubborn = minor_stress_impact_gain - lazy = minor_stress_impact_gain - } - - ai_chance = { - base = 100 - modifier = { - factor = 0 - OR = { - has_trait = zealous - has_trait = greedy - has_trait = arrogant - } - } - } - } - - option = { #You are not allowed to build a church - name = fp2_yearly.4006.b - - add_piety = minor_piety_gain - - root = { - add_character_modifier = { - modifier = fp2_mozarab_rejected_modifier - years = 30 - } - } - - scope:mozarab_priest = { - add_opinion = { - target = root - modifier = disappointed_opinion - opinion = -40 - } - } - - every_vassal = { - limit = { - faith = faith:mozarabic_church - } - add_opinion = { - target = root - modifier = disappointed_opinion - opinion = -30 - } - } - - stress_impact = { - zealous = medium_stress_loss - compassionate = massive_stress_gain - generous = major_stress_gain - just = major_stress_gain - forgiving = medium_stress_gain - cynical = medium_stress_gain - content = medium_stress_gain - patient = minor_stress_gain - trusting = minor_stress_gain - } - - ai_chance = { - base = 100 - modifier = { - factor = 0 - OR = { - has_trait = compassionate - has_trait = generous - has_trait = just - has_trait = forgiving - has_trait = cynical - has_trait = content - } - } - } - } -} - +# +#################################### +## Talented Mozarab offers their services +## By Nick Meredith +#################################### +#fp2_yearly.4004 = { +# type = character_event +# title = fp2_yearly.4004.t +# desc = fp2_yearly.4004.desc +# theme = vassal +# left_portrait = { +# character = root +# animation = admiration +# } +# right_portrait = { +# character = scope:mozarab_wanderer +# animation = marshal +# } +# +# trigger = { +# +# #DLC check +# has_fp2_dlc_trigger = yes +# +# #Standard check +# is_landed = yes +# is_available_at_peace_adult = yes +# +# #Mozarabic exists... +# exists = faith:mozarabic_church +# +# #...but you are not Mozarabic +# NOT = { +# faith = faith:mozarabic_church +# } +# +# #and capital is located in Iberia +# capital_province = { +# geographical_region = world_europe_west_iberia +# } +# } +# +# immediate = { +# create_character = { +# age = { 20 40 } +# location = root.capital_province +# gender_female_chance = { +# if = { +# limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } } +# add = 0 +# } +# else_if = { +# limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } } +# add = 100 +# } +# else = { +# add = 50 +# } +# } +# random_traits_list = { +# count = 1 +# education_martial_3 = {} +# education_martial_4 = {} +# } +# random_traits_list = { #Something nice +# count = 2 +# brave = {} +# honest = {} +# gregarious = {} +# trusting = {} +# compassionate = {} +# generous = {} +# humble = {} +# calm = {} +# } +# random_traits_list = { +# count = 1 +# lustful = {} +# chaste = {} +# wrathful = {} +# arrogant = {} +# impatient = {} +# patient = {} +# impatient = {} +# ambitious = {} +# cynical = {} +# zealous = {} +# stubborn = {} +# } +# +# trait = lifestyle_blademaster +# +# random_traits = no +# +# diplomacy = { min_template_low_skill max_template_average_skill } +# martial = { min_template_decent_skill max_template_high_skill } +# stewardship = { min_template_low_skill max_template_average_skill } +# intrigue = { min_template_low_skill max_template_average_skill } +# learning = { min_template_low_skill max_template_average_skill } +# prowess = { min_template_decent_skill max_template_high_skill } +# +# culture = root.culture +# faith = faith:mozarabic_church +# +# dynasty = none +# after_creation = { +# add_gold = { minor_gold_value medium_gold_value } +# add_prestige = { minor_prestige_gain medium_prestige_gain } +# add_piety = { minor_piety_gain medium_piety_gain } +# add_trait_xp = { +# trait = lifestyle_blademaster +# value = { +# integer_range = { +# min = medium_lifestyle_random_xp_low +# max = medium_lifestyle_random_xp_high +# } +# } +# } +# } +# +# save_scope_as = mozarab_wanderer +# } +# } +# +# option = { #Of course you may join my court! +# name = fp2_yearly.4004.a +# +# add_piety = minor_piety_loss +# +# stress_impact = { +# base = minor_stress_impact_gain +# zealous = major_stress_impact_gain +# stubborn = minor_stress_impact_gain +# arrogant = minor_stress_impact_gain +# paranoid = minor_stress_impact_gain +# } +# +# add_courtier = scope:mozarab_wanderer +# +# scope:mozarab_wanderer = { +# add_opinion = { +# target = root +# modifier = respect_opinion +# opinion = 20 +# } +# } +# +# ai_chance = { +# base = 100 +# modifier = { +# factor = 0 +# has_trait = zealous +# } +# } +# } +# +# option = { #Yes; so long as you convert +# name = fp2_yearly.4004.b +# +# random_list = { +# +# 40 = { +# +# add_courtier = scope:mozarab_wanderer +# +# modifier = { +# scope:mozarab_wanderer = { +# has_trait = stubborn +# } +# add = -10 +# } +# +# modifier = { +# scope:mozarab_wanderer = { +# has_trait = zealous +# } +# add = -20 +# } +# +# modifier = { +# scope:mozarab_wanderer = { +# has_trait = arrogant +# } +# add = -5 +# } +# +# modifier = { +# scope:mozarab_wanderer = { +# has_trait = wrathful +# } +# add = -5 +# } +# +# send_interface_toast = { +# type = event_toast_effect_good +# title = fp2_yearly.4004.b.succ +# +# left_icon = root +# right_icon = scope:mozarab_wanderer +# +# scope:mozarab_wanderer = { +# set_character_faith = root.faith +# add_opinion = { +# target = root +# modifier = impious_opinion +# opinion = -20 +# } +# } +# } +# } +# +# 60 = { +# +# custom_tooltip = fp2_yearly.4004.tt +# +# send_interface_toast = { +# type = event_toast_effect_bad +# title = fp2_yearly.4004.b.fail +# +# left_icon = root +# right_icon = scope:mozarab_wanderer +# +# scope:mozarab_wanderer = { +# add_opinion = { +# target = root +# modifier = annoyed_opinion +# opinion = -40 +# } +# } +# } +# } +# } +# +# ai_chance = { +# base = 100 +# } +# } +# +# option = { #Send them away +# name = fp2_yearly.4004.c +# +# custom_tooltip = fp2_yearly.4004.c.tt +# +# scope:mozarab_wanderer = { +# add_opinion = { +# target = root +# modifier = annoyed_opinion +# opinion = -40 +# } +# } +# ai_chance = { +# base = 100 +# } +# } +#} +# +#################################### +## Mozarabs in a city ask for their own quarter +## By Nick Meredith +#################################### +#fp2_yearly.4005 = { +# type = character_event +# title = fp2_yearly.4005.t +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { religion = religion:islam_religion } +# desc = fp2_yearly.4005.desc.muslim +# } +# triggered_desc = { +# trigger = { always = yes } +# desc = fp2_yearly.4005.desc.christian +# } +# } +# desc = fp2_yearly.4005.desc +# } +# theme = faith +# left_portrait = { +# character = root +# animation = personality_honorable +# } +# right_portrait = { +# character = scope:mozarab_merchant +# animation = worry +# } +# +# cooldown = { years = 10 } +# +# trigger = { +# +# #DLC check +# has_fp2_dlc_trigger = yes +# +# #Standard check +# is_available_at_peace_adult = yes +# +# #Mozarabic exists... +# exists = faith:mozarabic_church +# +# #...but you are not Mozarabic +# NOT = { +# faith = faith:mozarabic_church +# } +# +# #and you have a county that has a city holding +# any_held_county= { +# any_county_province = { +# has_holding_type = city_holding +# } +# } +# +# #and capital is located in Iberia +# capital_province = { +# geographical_region = world_europe_west_iberia +# } +# } +# +# immediate = { +# random_held_county = { +# limit = { +# any_county_province = { +# has_holding_type = city_holding +# } +# } +# save_scope_as = mozarab_quarter +# } +# +# if = { +# limit = { +# any_pool_character = { +# province = scope:mozarab_quarter.title_province +# faith = faith:mozarabic_church +# is_available_healthy_ai_adult = yes +# } +# } +# random_pool_character = { +# province = scope:mozarab_quarter.title_province +# limit = { +# faith = faith:mozarabic_church +# is_available_healthy_ai_adult = yes +# } +# save_scope_as = mozarab_merchant +# } +# } +# +# else = { +# create_character = { +# age = { 20 40 } +# location = root.capital_province +# gender_female_chance = root_faith_dominant_gender_female_chance +# random_traits_list = { +# count = 1 +# education_stewardship_3 = {} +# education_stewardship_4 = {} +# } +# +# random_traits = yes +# +# culture = scope:mozarab_quarter.culture +# faith = faith:mozarabic_church +# +# dynasty = none +# +# save_scope_as = mozarab_merchant +# } +# } +# } +# +# option = { #You may have a little enclave, as a treat +# name = fp2_yearly.4005.a +# +# remove_treasury_or_gold = medium_treasury_or_gold_value +# +# scope:mozarab_quarter = { +# add_county_modifier = { +# modifier = fp2_mozarab_quarter_modifier +# years = 10 +# } +# } +# +# scope:mozarab_merchant = { +# add_opinion = { +# target = root +# modifier = grateful_opinion +# opinion = 40 +# } +# } +# +# every_vassal = { +# limit = { +# has_trait = zealous +# } +# add_opinion = { +# target = liege +# modifier = impious_opinion +# opinion = -20 +# } +# } +# +# stress_impact = { +# zealous = major_stress_impact_gain +# greedy = major_stress_impact_gain +# arrogant = medium_stress_impact_gain +# arbitrary = minor_stress_impact_gain +# ambitious = minor_stress_impact_gain +# stubborn = minor_stress_impact_gain +# lazy = minor_stress_impact_gain +# } +# +# ai_chance = { +# base = 100 +# modifier = { +# factor = 0 +# OR = { +# has_trait = zealous +# has_trait = greedy +# has_trait = arrogant +# } +# } +# } +# } +# +# option = { #Begone, heathen! +# name = fp2_yearly.4005.b +# +# add_piety = medium_piety_gain +# +# scope:mozarab_merchant = { +# add_opinion = { +# target = root +# modifier = angry_opinion +# opinion = -40 +# } +# } +# +# every_vassal = { +# limit = { +# has_trait = zealous +# NOT = { +# faith = faith:mozarabic_church +# } +# } +# add_opinion = { +# target = liege +# modifier = pious_opinion +# opinion = 20 +# } +# } +# +# every_vassal = { +# limit = { +# faith = faith:mozarabic_church +# } +# add_opinion = { +# target = root +# modifier = disappointed_opinion +# opinion = -30 +# } +# } +# +# stress_impact = { +# zealous = medium_stress_loss +# cynical = medium_stress_gain +# forgiving = major_stress_gain +# just = medium_stress_gain +# stubborn = minor_stress_gain +# content = minor_stress_gain +# patient = minor_stress_gain +# trusting = minor_stress_gain +# } +# +# ai_chance = { +# base = 100 +# modifier = { +# factor = 0 +# OR = { +# has_trait = cynical +# has_trait = forgiving +# has_trait = just +# } +# } +# } +# } +#} +# +#################################### +## Mozarabs ask for permission to build churches +## By Nick Meredith +#################################### +#fp2_yearly.4006 = { +# type = character_event +# title = fp2_yearly.4006.t +# desc = fp2_yearly.4006.desc +# theme = faith +# left_portrait = { +# character = root +# animation = personality_zealous +# } +# right_portrait = { +# character = scope:mozarab_priest +# animation = beg +# } +# +# cooldown = { years = 30 } +# +# trigger = { +# +# #DLC check +# has_fp2_dlc_trigger = yes +# +# #Standard check +# is_available_at_peace_adult = yes +# +# #Mozarabic exists +# exists = faith:mozarabic_church +# +# #You are not Christian at all +# NOT = { +# faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } } +# } +# +# #and you have a county that has a free holding slot +# any_held_county = { +# any_county_province = { +# has_holding = no +# } +# } +# +# #and your capital is located in Iberia +# capital_province = { +# geographical_region = world_europe_west_iberia +# } +# +# exists = cp:councillor_court_chaplain +# } +# +# immediate = { +# random_sub_realm_county = { +# limit = { +# any_county_province = { +# has_holding = no +# } +# } +# save_scope_as = mozarab_church +# } +# +# if = { +# limit = { +# any_pool_character = { +# province = scope:mozarab_church.title_province +# faith = faith:mozarabic_church +# is_available_healthy_ai_adult = yes +# has_trait = devoted +# } +# } +# random_pool_character = { +# province = scope:mozarab_church.title_province +# limit = { +# faith = faith:mozarabic_church +# is_available_healthy_ai_adult = yes +# } +# save_scope_as = mozarab_priest +# } +# } +# +# else = { +# create_character = { +# age = { 20 40 } +# location = root.capital_province +# gender_female_chance = root_faith_dominant_gender_female_chance +# random_traits_list = { +# count = 1 +# education_learning_3 = {} +# education_learning_4 = {} +# } +# +# trait = devoted +# +# random_traits = yes +# +# culture = scope:mozarab_church.culture +# faith = faith:mozarabic_church +# +# dynasty = none +# +# save_scope_as = mozarab_priest +# } +# } +# cp:councillor_court_chaplain = { +# save_scope_as = realm_priest +# } +# } +# +# option = { #You can build a church +# name = fp2_yearly.4006.a +# +# remove_treasury_or_gold = medium_treasury_or_gold_value +# +# root = { +# add_character_modifier = { +# modifier = fp2_mozarab_church_modifier +# years = 30 +# } +# } +# +# scope:mozarab_priest = { +# add_opinion = { +# target = root +# modifier = grateful_opinion +# opinion = 40 +# } +# } +# +# scope:realm_priest = { +# add_opinion = { +# target = root +# modifier = angry_opinion +# opinion = -10 +# } +# } +# +# stress_impact = { +# zealous = major_stress_impact_gain +# greedy = major_stress_impact_gain +# arrogant = medium_stress_impact_gain +# arbitrary = minor_stress_impact_gain +# ambitious = minor_stress_impact_gain +# stubborn = minor_stress_impact_gain +# lazy = minor_stress_impact_gain +# } +# +# ai_chance = { +# base = 100 +# modifier = { +# factor = 0 +# OR = { +# has_trait = zealous +# has_trait = greedy +# has_trait = arrogant +# } +# } +# } +# } +# +# option = { #You are not allowed to build a church +# name = fp2_yearly.4006.b +# +# add_piety = minor_piety_gain +# +# root = { +# add_character_modifier = { +# modifier = fp2_mozarab_rejected_modifier +# years = 30 +# } +# } +# +# scope:mozarab_priest = { +# add_opinion = { +# target = root +# modifier = disappointed_opinion +# opinion = -40 +# } +# } +# +# every_vassal = { +# limit = { +# faith = faith:mozarabic_church +# } +# add_opinion = { +# target = root +# modifier = disappointed_opinion +# opinion = -30 +# } +# } +# +# stress_impact = { +# zealous = medium_stress_loss +# compassionate = massive_stress_gain +# generous = major_stress_gain +# just = major_stress_gain +# forgiving = medium_stress_gain +# cynical = medium_stress_gain +# content = medium_stress_gain +# patient = minor_stress_gain +# trusting = minor_stress_gain +# } +# +# ai_chance = { +# base = 100 +# modifier = { +# factor = 0 +# OR = { +# has_trait = compassionate +# has_trait = generous +# has_trait = just +# has_trait = forgiving +# has_trait = cynical +# has_trait = content +# } +# } +# } +# } +#} +# ################################### # Finding a shell on the road to Santiago # By Nick Meredith @@ -6449,13 +6449,13 @@ fp2_yearly.9002 = { weight_multiplier = { base = 1 - modifier = { - add = 1 - any_character_struggle = { - is_struggle_type = iberian_struggle - is_struggle_phase = struggle_iberia_phase_hostility - } - } +# modifier = { +# add = 1 +# any_character_struggle = { +# is_struggle_type = iberian_struggle +# is_struggle_phase = struggle_iberia_phase_hostility +# } +# } modifier = { factor = 0.1 any_county_in_region = { diff --git a/events/dlc/fp2/neutral_struggle_events.txt b/events/dlc/fp2/neutral_struggle_events.txt index 4ea3a58b..1c350de4 100644 --- a/events/dlc/fp2/neutral_struggle_events.txt +++ b/events/dlc/fp2/neutral_struggle_events.txt @@ -1,365 +1,366 @@ -namespace = neutral_struggle - -################################################## -# MAINTENANCE EVENTS - -################################################## -# Activate Passing of Time -# by Ewan Cowhig Croft -# 0001 - 0010 -################################################## - -neutral_struggle.0001 = { - hidden = yes - scope = struggle - - immediate = { - # Passage of Time catalyst ticks towards default phases. - if = { - limit = { phase_has_catalyst = catalyst_passing_of_time } - activate_struggle_catalyst = catalyst_passing_of_time - } - # Other time-based catalysts. - ## Missing the Arabian Empire or Sunni Caliphate. - if = { - limit = { - OR = { - NOT = { exists = title:e_arabia.holder } - NOT = { exists = title:d_sunni.holder } - } - } - if = { - limit = { phase_has_catalyst = catalyst_missing_caliphate_or_arabian_empire } - activate_struggle_catalyst = catalyst_missing_caliphate_or_arabian_empire - log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_missing_caliphate_or_arabian_empire } - } - } - # House Unity catalysts. - ## Disharmonious houses. - if = { - limit = { - OR = { - phase_has_catalyst = catalyst_yearly_influential_house_is_antagonistic_major - phase_has_catalyst = catalyst_yearly_influential_house_is_antagonistic_medium - phase_has_catalyst = catalyst_yearly_influential_house_is_antagonistic_minor - phase_has_catalyst = catalyst_yearly_influential_house_is_antagonistic_minimal - } - } - # Calc how many relevant houses are in a bit of a state. - save_scope_value_as = { - name = antagonistic_influential_house_check - value = { - every_involved_ruler = { - limit = { - house ?= { - house_head = prev - has_house_unity_stage = antagonistic - } - } - add = 1 - } - } - } - # Right, now we activate different sizes of catalyst depending on how many affected houses we have. - ## Major - if = { - limit = { scope:antagonistic_influential_house_check >= catalyst_yearly_influential_house_is_antagonistic_major_control_value } - activate_struggle_catalyst = catalyst_yearly_influential_house_is_antagonistic_major - log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_yearly_influential_house_is_antagonistic_major } - } - ## Medium - else_if = { - limit = { scope:antagonistic_influential_house_check >= catalyst_yearly_influential_house_is_antagonistic_medium_control_value } - activate_struggle_catalyst = catalyst_yearly_influential_house_is_antagonistic_medium - log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_yearly_influential_house_is_antagonistic_medium } - } - ## Minor - else_if = { - limit = { scope:antagonistic_influential_house_check >= catalyst_yearly_influential_house_is_antagonistic_minor_control_value } - activate_struggle_catalyst = catalyst_yearly_influential_house_is_antagonistic_minor - log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_yearly_influential_house_is_antagonistic_minor } - } - ## Minimal - else_if = { - limit = { scope:antagonistic_influential_house_check >= catalyst_yearly_influential_house_is_antagonistic_minimal_control_value } - activate_struggle_catalyst = catalyst_yearly_influential_house_is_antagonistic_minimal - log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_yearly_influential_house_is_antagonistic_minimal } - } - } - ## Harmonious houses. - if = { - limit = { - OR = { - phase_has_catalyst = catalyst_yearly_influential_house_is_harmonious_major - phase_has_catalyst = catalyst_yearly_influential_house_is_harmonious_medium - phase_has_catalyst = catalyst_yearly_influential_house_is_harmonious_minor - phase_has_catalyst = catalyst_yearly_influential_house_is_harmonious_minimal - } - } - every_involved_ruler = { - limit = { - house ?= { - house_head = prev - has_house_unity_stage = harmonious - } - } - house = { add_to_list = harmonious_houses } - } - # Calc how many relevant houses are in a bit of a state. - save_scope_value_as = { - name = harmonious_influential_house_check - value = { - value = 0 - every_in_list = { - list = harmonious_houses - add = 1 - } - } - } - # Right, now we activate different sizes of catalyst depending on how many affected houses we have. - ## Major - if = { - limit = { scope:harmonious_influential_house_check >= catalyst_yearly_influential_house_is_harmonious_major_control_value } - activate_struggle_catalyst = catalyst_yearly_influential_house_is_harmonious_major - log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_yearly_influential_house_is_harmonious_major } - } - ## Medium - else_if = { - limit = { scope:harmonious_influential_house_check >= catalyst_yearly_influential_house_is_harmonious_medium_control_value } - activate_struggle_catalyst = catalyst_yearly_influential_house_is_harmonious_medium - log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_yearly_influential_house_is_harmonious_medium } - } - ## Minor - else_if = { - limit = { scope:harmonious_influential_house_check >= catalyst_yearly_influential_house_is_harmonious_minor_control_value } - activate_struggle_catalyst = catalyst_yearly_influential_house_is_harmonious_minor - log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_yearly_influential_house_is_harmonious_minor } - } - ## Minimal - else_if = { - limit = { scope:harmonious_influential_house_check >= catalyst_yearly_influential_house_is_harmonious_minimal_control_value } - activate_struggle_catalyst = catalyst_yearly_influential_house_is_harmonious_minimal - log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_yearly_influential_house_is_harmonious_minimal } - } - } - # Silk Road - tgp_silk_road_iranian_intermezzo_yearly_effect = yes - - # Finally, queue the event up again for a year hence. - trigger_event = { - id = neutral_struggle.0001 - years = 1 - } - } -} - -################################################## -# MAINTENANCE FOR SITUATIONS +#namespace = neutral_struggle # - -namespace = neutral_situation - -neutral_situation.0001 = { # CHINA - hidden = yes - scope = situation - trigger = { exists = situation:silk_road_situation } - immediate = { - situation:silk_road_situation.situation_sub_region:region_silk_road_proper_china = { tgp_silk_road_downstream_effect = yes } - # Finally, queue the event up again for a year hence. - trigger_event = { - id = neutral_situation.0002 # Tibet - months = 2 - } - } -} - -neutral_situation.0002 = { # TIBET - hidden = yes - scope = situation - trigger = { exists = situation:silk_road_situation } - immediate = { - situation:silk_road_situation.situation_sub_region:region_silk_road_proper_tibet = { tgp_silk_road_downstream_effect = yes } - # Finally, queue the event up again for a year hence. - trigger_event = { - id = neutral_situation.0005 # Transcaspia - months = 2 - } - } -} - -neutral_situation.0003 = { # INDIA - hidden = yes - scope = situation - trigger = { exists = situation:silk_road_situation } - immediate = { - situation:silk_road_situation.situation_sub_region:region_silk_road_proper_india = { tgp_silk_road_downstream_effect = yes } - # Finally, queue the event up again for a year hence. - trigger_event = { - id = neutral_situation.0004 # Central Asia - months = 2 - } - } -} - -neutral_situation.0004 = { # CENTRAL ASIA - hidden = yes - scope = situation - trigger = { exists = situation:silk_road_situation } - immediate = { - situation:silk_road_situation.situation_sub_region:region_silk_road_proper_central_asia = { tgp_silk_road_downstream_effect = yes } - # Finally, queue the event up again for a year hence. - trigger_event = { - id = neutral_situation.0003 # Tibet - months = 2 - } - } -} - -neutral_situation.0005 = { # TRANSCASPIA - hidden = yes - scope = situation - trigger = { exists = situation:silk_road_situation } - immediate = { - situation:silk_road_situation.situation_sub_region:region_silk_road_proper_transcaspia = { tgp_silk_road_downstream_effect = yes } - # Finally, queue the event up again for a year hence. - trigger_event = { - id = neutral_situation.0006 # Occident - months = 2 - } - } -} - -neutral_situation.0006 = { # OCCIDENT - hidden = yes - scope = situation - trigger = { exists = situation:silk_road_situation } - immediate = { - situation:silk_road_situation.situation_sub_region:region_silk_road_proper_occident = { tgp_silk_road_downstream_effect = yes } - # Finally, queue the event up again for a year hence. - trigger_event = { - id = neutral_situation.0001 # China - months = 2 - } - } -} - -neutral_situation.0007 = { # INNOVATION SETUP - hidden = yes - scope = situation - trigger = { exists = situation:silk_road_situation } - immediate = { - if = { - limit = { has_game_rule = silk_road_starting_innovations_random } - while = { - count = 4 - random_culture_innovation = { - limit = { - has_innovation_parameter = silk_road_innovation_parameter - is_known_by_culture = title:c_jingzhao.culture - NOR = { - scope:innovation_1 ?= this - scope:innovation_2 ?= this - scope:innovation_3 ?= this - } - } - if = { - limit = { exists = scope:innovation_3 } - save_scope_as = innovation_4 - } - else_if = { - limit = { exists = scope:innovation_2 } - save_scope_as = innovation_3 - } - else_if = { - limit = { exists = scope:innovation_1 } - save_scope_as = innovation_2 - } - else = { save_scope_as = innovation_1 } - } - } - situation_sub_region:region_silk_road_proper_china = { - set_variable = { name = innovation value = scope:innovation_1 } - } - situation_sub_region:region_silk_road_proper_tibet = { - set_variable = { name = innovation value = scope:innovation_2 } - } - situation_sub_region:region_silk_road_proper_central_asia = { - set_variable = { name = innovation value = scope:innovation_2 } - } - situation_sub_region:region_silk_road_proper_india = { - set_variable = { name = innovation value = scope:innovation_3 } - } - situation_sub_region:region_silk_road_proper_transcaspia = { - set_variable = { name = innovation value = scope:innovation_3 } - } - situation_sub_region:region_silk_road_proper_occident = { - set_variable = { name = innovation value = scope:innovation_4 } - } - } - else = { - if = { - limit = { game_start_date = 867.1.1 } - situation_sub_region:region_silk_road_proper_china = { - set_variable = { name = innovation value = culture_innovation:innovation_dragon_kiln } - } - situation_sub_region:region_silk_road_proper_tibet = { - set_variable = { name = innovation value = culture_innovation:innovation_block_printing } - } - situation_sub_region:region_silk_road_proper_central_asia = { - set_variable = { name = innovation value = culture_innovation:innovation_block_printing } - } - situation_sub_region:region_silk_road_proper_india = { - set_variable = { name = innovation value = culture_innovation:innovation_waterworks } - } - situation_sub_region:region_silk_road_proper_transcaspia = { - set_variable = { name = innovation value = culture_innovation:innovation_waterworks } - } - situation_sub_region:region_silk_road_proper_occident = { - set_variable = { name = innovation value = culture_innovation:innovation_cupellation } - } - } - else_if = { - limit = { game_start_date = 1066.9.15 } - situation_sub_region:region_silk_road_proper_china = { - set_variable = { name = innovation value = culture_innovation:innovation_compass } - } - situation_sub_region:region_silk_road_proper_tibet = { - set_variable = { name = innovation value = culture_innovation:innovation_fire_medicine } - } - situation_sub_region:region_silk_road_proper_central_asia = { - set_variable = { name = innovation value = culture_innovation:innovation_fire_medicine } - } - situation_sub_region:region_silk_road_proper_india = { - set_variable = { name = innovation value = culture_innovation:innovation_champa_rice } - } - situation_sub_region:region_silk_road_proper_transcaspia = { - set_variable = { name = innovation value = culture_innovation:innovation_champa_rice } - } - situation_sub_region:region_silk_road_proper_occident = { - set_variable = { name = innovation value = culture_innovation:innovation_pharmacopoeia } - } - } - else_if = { - limit = { game_start_date = 1178.10.1 } - situation_sub_region:region_silk_road_proper_china = { - set_variable = { name = innovation value = culture_innovation:innovation_grenades } - } - situation_sub_region:region_silk_road_proper_tibet = { - set_variable = { name = innovation value = culture_innovation:innovation_pharmacopoeia } - } - situation_sub_region:region_silk_road_proper_central_asia = { - set_variable = { name = innovation value = culture_innovation:innovation_pharmacopoeia } - } - situation_sub_region:region_silk_road_proper_india = { - set_variable = { name = innovation value = culture_innovation:innovation_coking } - } - situation_sub_region:region_silk_road_proper_transcaspia = { - set_variable = { name = innovation value = culture_innovation:innovation_coking } - } - situation_sub_region:region_silk_road_proper_occident = { - set_variable = { name = innovation value = culture_innovation:innovation_bulkheads } - } - } - } - } -} +################################################### +## MAINTENANCE EVENTS +# +################################################### +## Activate Passing of Time +## by Ewan Cowhig Croft +## 0001 - 0010 +################################################### +# +#neutral_struggle.0001 = { +# hidden = yes +# scope = struggle +# +# immediate = { +# # Passage of Time catalyst ticks towards default phases. +# if = { +# limit = { phase_has_catalyst = catalyst_passing_of_time } +# activate_struggle_catalyst = catalyst_passing_of_time +# } +# # Other time-based catalysts. +# ## Missing the Arabian Empire or Sunni Caliphate. +# if = { +# limit = { +# OR = { +# NOT = { exists = title:e_arabia.holder } +# NOT = { exists = title:d_sunni.holder } +# } +# } +# if = { +# limit = { phase_has_catalyst = catalyst_missing_caliphate_or_arabian_empire } +# activate_struggle_catalyst = catalyst_missing_caliphate_or_arabian_empire +# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_missing_caliphate_or_arabian_empire } +# } +# } +# # House Unity catalysts. +# ## Disharmonious houses. +# if = { +# limit = { +# OR = { +# phase_has_catalyst = catalyst_yearly_influential_house_is_antagonistic_major +# phase_has_catalyst = catalyst_yearly_influential_house_is_antagonistic_medium +# phase_has_catalyst = catalyst_yearly_influential_house_is_antagonistic_minor +# phase_has_catalyst = catalyst_yearly_influential_house_is_antagonistic_minimal +# } +# } +# # Calc how many relevant houses are in a bit of a state. +# save_scope_value_as = { +# name = antagonistic_influential_house_check +# value = { +# every_involved_ruler = { +# limit = { +# house ?= { +# house_head = prev +# has_house_unity_stage = antagonistic +# } +# } +# add = 1 +# } +# } +# } +# # Right, now we activate different sizes of catalyst depending on how many affected houses we have. +# ## Major +# if = { +# limit = { scope:antagonistic_influential_house_check >= catalyst_yearly_influential_house_is_antagonistic_major_control_value } +# activate_struggle_catalyst = catalyst_yearly_influential_house_is_antagonistic_major +# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_yearly_influential_house_is_antagonistic_major } +# } +# ## Medium +# else_if = { +# limit = { scope:antagonistic_influential_house_check >= catalyst_yearly_influential_house_is_antagonistic_medium_control_value } +# activate_struggle_catalyst = catalyst_yearly_influential_house_is_antagonistic_medium +# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_yearly_influential_house_is_antagonistic_medium } +# } +# ## Minor +# else_if = { +# limit = { scope:antagonistic_influential_house_check >= catalyst_yearly_influential_house_is_antagonistic_minor_control_value } +# activate_struggle_catalyst = catalyst_yearly_influential_house_is_antagonistic_minor +# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_yearly_influential_house_is_antagonistic_minor } +# } +# ## Minimal +# else_if = { +# limit = { scope:antagonistic_influential_house_check >= catalyst_yearly_influential_house_is_antagonistic_minimal_control_value } +# activate_struggle_catalyst = catalyst_yearly_influential_house_is_antagonistic_minimal +# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_yearly_influential_house_is_antagonistic_minimal } +# } +# } +# ## Harmonious houses. +# if = { +# limit = { +# OR = { +# phase_has_catalyst = catalyst_yearly_influential_house_is_harmonious_major +# phase_has_catalyst = catalyst_yearly_influential_house_is_harmonious_medium +# phase_has_catalyst = catalyst_yearly_influential_house_is_harmonious_minor +# phase_has_catalyst = catalyst_yearly_influential_house_is_harmonious_minimal +# } +# } +# every_involved_ruler = { +# limit = { +# house ?= { +# house_head = prev +# has_house_unity_stage = harmonious +# } +# } +# house = { add_to_list = harmonious_houses } +# } +# # Calc how many relevant houses are in a bit of a state. +# save_scope_value_as = { +# name = harmonious_influential_house_check +# value = { +# value = 0 +# every_in_list = { +# list = harmonious_houses +# add = 1 +# } +# } +# } +# # Right, now we activate different sizes of catalyst depending on how many affected houses we have. +# ## Major +# if = { +# limit = { scope:harmonious_influential_house_check >= catalyst_yearly_influential_house_is_harmonious_major_control_value } +# activate_struggle_catalyst = catalyst_yearly_influential_house_is_harmonious_major +# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_yearly_influential_house_is_harmonious_major } +# } +# ## Medium +# else_if = { +# limit = { scope:harmonious_influential_house_check >= catalyst_yearly_influential_house_is_harmonious_medium_control_value } +# activate_struggle_catalyst = catalyst_yearly_influential_house_is_harmonious_medium +# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_yearly_influential_house_is_harmonious_medium } +# } +# ## Minor +# else_if = { +# limit = { scope:harmonious_influential_house_check >= catalyst_yearly_influential_house_is_harmonious_minor_control_value } +# activate_struggle_catalyst = catalyst_yearly_influential_house_is_harmonious_minor +# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_yearly_influential_house_is_harmonious_minor } +# } +# ## Minimal +# else_if = { +# limit = { scope:harmonious_influential_house_check >= catalyst_yearly_influential_house_is_harmonious_minimal_control_value } +# activate_struggle_catalyst = catalyst_yearly_influential_house_is_harmonious_minimal +# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_yearly_influential_house_is_harmonious_minimal } +# } +# } +# # Silk Road +# tgp_silk_road_iranian_intermezzo_yearly_effect = yes +# +# # Finally, queue the event up again for a year hence. +# trigger_event = { +# id = neutral_struggle.0001 +# years = 1 +# } +# } +#} +# +################################################### +## MAINTENANCE FOR SITUATIONS +## +# +#namespace = neutral_situation +# +#neutral_situation.0001 = { # CHINA +# hidden = yes +# scope = situation +# trigger = { exists = situation:silk_road_situation } +# immediate = { +# situation:silk_road_situation.situation_sub_region:region_silk_road_proper_china = { tgp_silk_road_downstream_effect = yes } +# # Finally, queue the event up again for a year hence. +# trigger_event = { +# id = neutral_situation.0002 # Tibet +# months = 2 +# } +# } +#} +# +#neutral_situation.0002 = { # TIBET +# hidden = yes +# scope = situation +# trigger = { exists = situation:silk_road_situation } +# immediate = { +# situation:silk_road_situation.situation_sub_region:region_silk_road_proper_tibet = { tgp_silk_road_downstream_effect = yes } +# # Finally, queue the event up again for a year hence. +# trigger_event = { +# id = neutral_situation.0005 # Transcaspia +# months = 2 +# } +# } +#} +# +#neutral_situation.0003 = { # INDIA +# hidden = yes +# scope = situation +# trigger = { exists = situation:silk_road_situation } +# immediate = { +# situation:silk_road_situation.situation_sub_region:region_silk_road_proper_india = { tgp_silk_road_downstream_effect = yes } +# # Finally, queue the event up again for a year hence. +# trigger_event = { +# id = neutral_situation.0004 # Central Asia +# months = 2 +# } +# } +#} +# +#neutral_situation.0004 = { # CENTRAL ASIA +# hidden = yes +# scope = situation +# trigger = { exists = situation:silk_road_situation } +# immediate = { +# situation:silk_road_situation.situation_sub_region:region_silk_road_proper_central_asia = { tgp_silk_road_downstream_effect = yes } +# # Finally, queue the event up again for a year hence. +# trigger_event = { +# id = neutral_situation.0003 # Tibet +# months = 2 +# } +# } +#} +# +#neutral_situation.0005 = { # TRANSCASPIA +# hidden = yes +# scope = situation +# trigger = { exists = situation:silk_road_situation } +# immediate = { +# situation:silk_road_situation.situation_sub_region:region_silk_road_proper_transcaspia = { tgp_silk_road_downstream_effect = yes } +# # Finally, queue the event up again for a year hence. +# trigger_event = { +# id = neutral_situation.0006 # Occident +# months = 2 +# } +# } +#} +# +#neutral_situation.0006 = { # OCCIDENT +# hidden = yes +# scope = situation +# trigger = { exists = situation:silk_road_situation } +# immediate = { +# situation:silk_road_situation.situation_sub_region:region_silk_road_proper_occident = { tgp_silk_road_downstream_effect = yes } +# # Finally, queue the event up again for a year hence. +# trigger_event = { +# id = neutral_situation.0001 # China +# months = 2 +# } +# } +#} +# +#neutral_situation.0007 = { # INNOVATION SETUP +# hidden = yes +# scope = situation +# trigger = { exists = situation:silk_road_situation } +# immediate = { +# if = { +# limit = { has_game_rule = silk_road_starting_innovations_random } +# while = { +# count = 4 +# random_culture_innovation = { +# limit = { +# has_innovation_parameter = silk_road_innovation_parameter +# is_known_by_culture = title:c_jingzhao.culture +# NOR = { +# scope:innovation_1 ?= this +# scope:innovation_2 ?= this +# scope:innovation_3 ?= this +# } +# } +# if = { +# limit = { exists = scope:innovation_3 } +# save_scope_as = innovation_4 +# } +# else_if = { +# limit = { exists = scope:innovation_2 } +# save_scope_as = innovation_3 +# } +# else_if = { +# limit = { exists = scope:innovation_1 } +# save_scope_as = innovation_2 +# } +# else = { save_scope_as = innovation_1 } +# } +# } +# situation_sub_region:region_silk_road_proper_china = { +# set_variable = { name = innovation value = scope:innovation_1 } +# } +# situation_sub_region:region_silk_road_proper_tibet = { +# set_variable = { name = innovation value = scope:innovation_2 } +# } +# situation_sub_region:region_silk_road_proper_central_asia = { +# set_variable = { name = innovation value = scope:innovation_2 } +# } +# situation_sub_region:region_silk_road_proper_india = { +# set_variable = { name = innovation value = scope:innovation_3 } +# } +# situation_sub_region:region_silk_road_proper_transcaspia = { +# set_variable = { name = innovation value = scope:innovation_3 } +# } +# situation_sub_region:region_silk_road_proper_occident = { +# set_variable = { name = innovation value = scope:innovation_4 } +# } +# } +# else = { +# if = { +# limit = { game_start_date = 867.1.1 } +# situation_sub_region:region_silk_road_proper_china = { +# set_variable = { name = innovation value = culture_innovation:innovation_dragon_kiln } +# } +# situation_sub_region:region_silk_road_proper_tibet = { +# set_variable = { name = innovation value = culture_innovation:innovation_block_printing } +# } +# situation_sub_region:region_silk_road_proper_central_asia = { +# set_variable = { name = innovation value = culture_innovation:innovation_block_printing } +# } +# situation_sub_region:region_silk_road_proper_india = { +# set_variable = { name = innovation value = culture_innovation:innovation_waterworks } +# } +# situation_sub_region:region_silk_road_proper_transcaspia = { +# set_variable = { name = innovation value = culture_innovation:innovation_waterworks } +# } +# situation_sub_region:region_silk_road_proper_occident = { +# set_variable = { name = innovation value = culture_innovation:innovation_cupellation } +# } +# } +# else_if = { +# limit = { game_start_date = 1066.9.15 } +# situation_sub_region:region_silk_road_proper_china = { +# set_variable = { name = innovation value = culture_innovation:innovation_compass } +# } +# situation_sub_region:region_silk_road_proper_tibet = { +# set_variable = { name = innovation value = culture_innovation:innovation_fire_medicine } +# } +# situation_sub_region:region_silk_road_proper_central_asia = { +# set_variable = { name = innovation value = culture_innovation:innovation_fire_medicine } +# } +# situation_sub_region:region_silk_road_proper_india = { +# set_variable = { name = innovation value = culture_innovation:innovation_champa_rice } +# } +# situation_sub_region:region_silk_road_proper_transcaspia = { +# set_variable = { name = innovation value = culture_innovation:innovation_champa_rice } +# } +# situation_sub_region:region_silk_road_proper_occident = { +# set_variable = { name = innovation value = culture_innovation:innovation_pharmacopoeia } +# } +# } +# else_if = { +# limit = { game_start_date = 1178.10.1 } +# situation_sub_region:region_silk_road_proper_china = { +# set_variable = { name = innovation value = culture_innovation:innovation_grenades } +# } +# situation_sub_region:region_silk_road_proper_tibet = { +# set_variable = { name = innovation value = culture_innovation:innovation_pharmacopoeia } +# } +# situation_sub_region:region_silk_road_proper_central_asia = { +# set_variable = { name = innovation value = culture_innovation:innovation_pharmacopoeia } +# } +# situation_sub_region:region_silk_road_proper_india = { +# set_variable = { name = innovation value = culture_innovation:innovation_coking } +# } +# situation_sub_region:region_silk_road_proper_transcaspia = { +# set_variable = { name = innovation value = culture_innovation:innovation_coking } +# } +# situation_sub_region:region_silk_road_proper_occident = { +# set_variable = { name = innovation value = culture_innovation:innovation_bulkheads } +# } +# } +# } +# } +#} +# \ No newline at end of file diff --git a/events/dlc/mpo/mpo_jamukha_flavor_events.txt b/events/dlc/mpo/mpo_jamukha_flavor_events.txt index e7216f79..2e7061af 100644 --- a/events/dlc/mpo/mpo_jamukha_flavor_events.txt +++ b/events/dlc/mpo/mpo_jamukha_flavor_events.txt @@ -1,450 +1,451 @@ -namespace = mpo_jamukha_flavor - -####################### -# Become Blood Brothers with Temujin -####################### - -mpo_jamukha_flavor.0001 = { - type = character_event - title = mpo_jamukha_flavor.0001.t - desc = mpo_jamukha_flavor.0001.desc - theme = nomads - override_background = { - reference = mpo_campfire_steppe - } - left_portrait = { - character = root - animation = happiness - camera = camera_event_very_left - } - right_portrait = { - character = scope:temujin - animation = inspect_weapon - } - - trigger = { - scope:temujin = { - is_alive = yes - NOR = { - has_relation_blood_brother = root - has_relation_rival = root - } - } - is_alive = yes - } - - immediate = { - play_music_cue = "mx_cue_touching_moment" - scope:temujin = { - save_scope_as = blood_bro - } - } - - option = { # Yay - name = mpo_jamukha_flavor.0001.a - name = mpo_jamukha_flavor.0001.a.tt - scope:temujin = { - set_relation_blood_brother = { - target = scope:jamukha - reason = blood_brother_temujin_jamukha - } - } - - if = { - limit = { - NOR = { - has_character_flag = had_warhorse_story - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - exists = var:story_cycle_horse_name - } - } - scope:jamukha = { - NOR = { - has_character_flag = had_warhorse_story - any_owned_story = { - story_type = story_cycle_martial_lifestyle_warhorse - exists = var:story_cycle_horse_name - } - } - } - } - custom_tooltip = temujin_warhorse_jamukha_tt - custom_tooltip = jamukha_warhorse_jamukha_tt - hidden_effect = { - start_warhorse_story_cycle_effect = yes - scope:temujin = { - start_warhorse_story_cycle_effect = yes - } - } - } - custom_tooltip = blood_brother_gains_hook_tt - custom_tooltip = blood_brother_gains_hook_other_tt - - add_character_modifier = blood_brother_warrior_modifier - scope:temujin = { - add_character_modifier = blood_brother_warrior_modifier - } - - stress_impact = { - gregarious = medium_stress_impact_loss - callous = medium_stress_impact_gain - } - - ai_chance = { - base = 100 - } - } - - option = { # Not a chance - name = mpo_jamukha_flavor.0001.b - add_dread = minor_dread_gain - add_prestige = minor_prestige_gain - scope:temujin = { - add_opinion = { - target = root - modifier = disappointed_opinion - opinion = -25 - } - } - stress_impact = { - base = minor_stress_impact_gain - callous = medium_stress_impact_loss - gregarious = medium_stress_impact_gain - } - - ai_chance = { - base = 0 - } - } -} - -####################### -# You consider breaking free from Temujin -####################### - -scripted_effect mpo_jamukha_flavor_0010_jamukha_leaving_effect = { - if = { - limit = { is_vassal_of = scope:temujin } - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - becomes_independent = { - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - else = { - end_tributary = yes - } - add_truce_both_ways = { - character = scope:temujin - years = 5 - name = temujin_jamukha_truce - } - if = { - limit = { - current_military_strength < scope:temujin.current_military_strength - } - domicile ?= { - change_herd = { - value = scope:temujin.domicile.herd - multiply = 0.5 - } - } - } - if = { - limit = { - exists = scope:togrul - } - show_as_tooltip = { - custom_tooltip = negotiate_togrul_alliance_effect_tooltip - create_alliance = { - target = scope:togrul - allied_through_owner = root - allied_through_target = scope:togrul - } - scope:togrul = { - add_opinion = { - target = scope:jamukha - modifier = event_negotiated_alliance_opinion - } - } - } - } - custom_tooltip = jamukha_temujin_response_warning_tt -} - -scripted_trigger mpo_jamukha_flavor_0010_togrul_trigger = { - is_ai = yes - is_at_war = no - is_alive = yes - is_ruler = yes - NOR = { - is_at_war_with = root - has_relation_rival = root - is_vassal_of = scope:temujin - } - in_diplomatic_range = root - NOT = { - government_has_flag = government_is_herder - } -} - -mpo_jamukha_flavor.0010 = { - type = character_event - title = mpo_jamukha_flavor.0010.t - desc = { - desc = mpo_jamukha_flavor.0010.desc - triggered_desc = { - trigger = { - exists = scope:togrul - } - desc = mpo_jamukha_flavor.0010.desc_togrul - } - } - theme = nomads - override_background = { - reference = mpo_steppe_evening - } - left_portrait = { - character = root - animation = war_attacker - camera = camera_event_very_left - } - right_portrait = { - character = scope:temujin - animation = dismissal - camera = camera_event_very_right - } - lower_right_portrait = scope:togrul - - trigger = { - character:125501 = { - has_variable = had_mpo_temujin_flavor_0001 - } - is_alive = yes - is_ruler = yes - character:125501 = { - is_alive = yes - is_available = yes - } - OR = { - is_vassal_of = character:125501 - is_tributary_of = character:125501 - } - NOT = { - is_at_war_with = character:125501 - } - } - - immediate = { - save_scope_as = jamukha - character:125501 = { - save_scope_as = temujin - } - if = { - limit = { - character:303211 = { - mpo_jamukha_flavor_0010_togrul_trigger = yes - } - } - character:303211 = { - save_scope_as = togrul - } - } - else_if = { - limit = { - character:303211.house ?= { - any_house_member = { - mpo_jamukha_flavor_0010_togrul_trigger = yes - } - } - } - character:303211.house ?= { - ordered_house_member = { - order_by = current_military_strength - limit = { - mpo_jamukha_flavor_0010_togrul_trigger = yes - } - save_scope_as = togrul - } - } - } - else = { - capital_county.empire ?= { - ordered_de_jure_county_holder = { - order_by = current_military_strength - limit = { - highest_held_title_tier <= tier_duchy - mpo_jamukha_flavor_0010_togrul_trigger = yes - } - save_scope_as = togrul - } - } - } - } - - #I want to leave Temujin and take Togrul as an ally - option = { - name = mpo_jamukha_flavor.0010.a - show_as_tooltip = { - mpo_jamukha_flavor_0010_jamukha_leaving_effect = yes - } - scope:temujin = { - trigger_event = mpo_temujin_flavor.0010 - add_opinion = { - target = root - modifier = betrayal_opinion - opinion = -40 - } - } - ai_chance = { - base = 100 - } - } - - #I want to stay with Temujin and be friends forever - option = { - name = mpo_jamukha_flavor.0010.b - add_character_modifier = { - modifier = jamukha_chose_loyalty_modifier - years = 5 - } - scope:temujin = { - add_opinion = { - target = root - modifier = loyalty_opinion - opinion = 30 - } - } - stress_impact = { - base = miniscule_stress_impact_gain - } - ai_chance = { - base = 0 - } - } - - on_trigger_fail = { # Jamukha becomes your rival anyways if you've migrated away - if = { - limit = { - is_independent_ruler = yes - NOT = { is_tributary_of = scope:temujin } - } - hidden_effect = { - scope:temujin = { - trigger_event = { - days = { 360 420 } - id = mpo_temujin_flavor.0020 - } - } - } - } - } -} - -####################### -# Temujin becomes your rival -- now you must kill him -####################### - -mpo_jamukha_flavor.0020 = { - type = character_event - title = mpo_jamukha_flavor.0020.t - desc = mpo_jamukha_flavor.0020.desc - theme = nomads - override_background = { - reference = mpo_campfire_steppe - } - left_portrait = { - character = root - animation = threatening - camera = camera_event_very_left - } - right_portrait = { - character = scope:temujin - animation = aggressive_sword - outfit_tags = { nightgown } - camera = camera_event_very_right - } - window = scheme_conclusion_event_no_header - - immediate = { - play_music_cue = "mx_cue_murder" - custom_tooltip = jamukha_temujin_no_more_positive_tt - custom_tooltip = jamukha_temujin_rivals_tt - custom_tooltip = mpo_temujin_flavor.0020.cb.tt - if = { - limit = { - current_military_strength < scope:temujin.current_military_strength - } - domicile ?= { - change_herd = { - value = scope:temujin.domicile.herd - multiply = 1.5 - } - } - add_prestige = major_prestige_gain # For MAA maintenance, mainly - custom_tooltip = jamukha_gain_from_defectors_tt - } - } - - option = { # You who I once called brother - name = mpo_jamukha_flavor.0020.a - reason = blood_brother - add_internal_flag = special - trigger = { has_character_flag = was_temujins_bro } - custom_tooltip = { - text = mpo_jamukha_flavor.0020.a_war_win - set_variable = temujin_jamukha_war_var - } - add_character_modifier = { - modifier = temujin_jamukha_war_modifier - years = 5 - } - stress_impact = { - base = medium_stress_impact_gain - } - ai_chance = { - base = 100 - } - } - - option = { # Murderrrrrrr - name = mpo_jamukha_flavor.0020.b - custom_tooltip = { - text = mpo_jamukha_flavor.0020.b_murder - set_variable = { - name = temujin_jamukha_murder_var - value = scope:temujin - } - } - stress_impact = { - deceitful = massive_stress_impact_loss - sadistic = massive_stress_impact_loss - } - ai_chance = { - base = 0 - } - } - - option = { # I'm going to crush your skull - name = mpo_jamukha_flavor.0020.c - trigger = { - NOT = { has_relation_blood_brother = scope:jamukha } - } - add_character_modifier = { - modifier = temujin_jamukha_war_smaller_modifier - years = 5 - } - stress_impact = { - wrathful = massive_stress_impact_loss - vengeful = massive_stress_impact_loss - } - ai_chance = { - base = 100 - } - } -} +#namespace = mpo_jamukha_flavor +# +######################## +## Become Blood Brothers with Temujin +######################## +# +#mpo_jamukha_flavor.0001 = { +# type = character_event +# title = mpo_jamukha_flavor.0001.t +# desc = mpo_jamukha_flavor.0001.desc +# theme = nomads +# override_background = { +# reference = mpo_campfire_steppe +# } +# left_portrait = { +# character = root +# animation = happiness +# camera = camera_event_very_left +# } +# right_portrait = { +# character = scope:temujin +# animation = inspect_weapon +# } +# +# trigger = { +# scope:temujin = { +# is_alive = yes +# NOR = { +# has_relation_blood_brother = root +# has_relation_rival = root +# } +# } +# is_alive = yes +# } +# +# immediate = { +# play_music_cue = "mx_cue_touching_moment" +# scope:temujin = { +# save_scope_as = blood_bro +# } +# } +# +# option = { # Yay +# name = mpo_jamukha_flavor.0001.a +# name = mpo_jamukha_flavor.0001.a.tt +# scope:temujin = { +# set_relation_blood_brother = { +# target = scope:jamukha +# reason = blood_brother_temujin_jamukha +# } +# } +# +# if = { +# limit = { +# NOR = { +# has_character_flag = had_warhorse_story +# any_owned_story = { +# story_type = story_cycle_martial_lifestyle_warhorse +# exists = var:story_cycle_horse_name +# } +# } +# scope:jamukha = { +# NOR = { +# has_character_flag = had_warhorse_story +# any_owned_story = { +# story_type = story_cycle_martial_lifestyle_warhorse +# exists = var:story_cycle_horse_name +# } +# } +# } +# } +# custom_tooltip = temujin_warhorse_jamukha_tt +# custom_tooltip = jamukha_warhorse_jamukha_tt +# hidden_effect = { +# start_warhorse_story_cycle_effect = yes +# scope:temujin = { +# start_warhorse_story_cycle_effect = yes +# } +# } +# } +# custom_tooltip = blood_brother_gains_hook_tt +# custom_tooltip = blood_brother_gains_hook_other_tt +# +# add_character_modifier = blood_brother_warrior_modifier +# scope:temujin = { +# add_character_modifier = blood_brother_warrior_modifier +# } +# +# stress_impact = { +# gregarious = medium_stress_impact_loss +# callous = medium_stress_impact_gain +# } +# +# ai_chance = { +# base = 100 +# } +# } +# +# option = { # Not a chance +# name = mpo_jamukha_flavor.0001.b +# add_dread = minor_dread_gain +# add_prestige = minor_prestige_gain +# scope:temujin = { +# add_opinion = { +# target = root +# modifier = disappointed_opinion +# opinion = -25 +# } +# } +# stress_impact = { +# base = minor_stress_impact_gain +# callous = medium_stress_impact_loss +# gregarious = medium_stress_impact_gain +# } +# +# ai_chance = { +# base = 0 +# } +# } +#} +# +######################## +## You consider breaking free from Temujin +######################## +# +#scripted_effect mpo_jamukha_flavor_0010_jamukha_leaving_effect = { +# if = { +# limit = { is_vassal_of = scope:temujin } +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = change +# add_claim_on_loss = no +# } +# becomes_independent = { +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# } +# else = { +# end_tributary = yes +# } +# add_truce_both_ways = { +# character = scope:temujin +# years = 5 +# name = temujin_jamukha_truce +# } +# if = { +# limit = { +# current_military_strength < scope:temujin.current_military_strength +# } +# domicile ?= { +# change_herd = { +# value = scope:temujin.domicile.herd +# multiply = 0.5 +# } +# } +# } +# if = { +# limit = { +# exists = scope:togrul +# } +# show_as_tooltip = { +# custom_tooltip = negotiate_togrul_alliance_effect_tooltip +# create_alliance = { +# target = scope:togrul +# allied_through_owner = root +# allied_through_target = scope:togrul +# } +# scope:togrul = { +# add_opinion = { +# target = scope:jamukha +# modifier = event_negotiated_alliance_opinion +# } +# } +# } +# } +# custom_tooltip = jamukha_temujin_response_warning_tt +#} +# +#scripted_trigger mpo_jamukha_flavor_0010_togrul_trigger = { +# is_ai = yes +# is_at_war = no +# is_alive = yes +# is_ruler = yes +# NOR = { +# is_at_war_with = root +# has_relation_rival = root +# is_vassal_of = scope:temujin +# } +# in_diplomatic_range = root +# NOT = { +# government_has_flag = government_is_herder +# } +#} +# +#mpo_jamukha_flavor.0010 = { +# type = character_event +# title = mpo_jamukha_flavor.0010.t +# desc = { +# desc = mpo_jamukha_flavor.0010.desc +# triggered_desc = { +# trigger = { +# exists = scope:togrul +# } +# desc = mpo_jamukha_flavor.0010.desc_togrul +# } +# } +# theme = nomads +# override_background = { +# reference = mpo_steppe_evening +# } +# left_portrait = { +# character = root +# animation = war_attacker +# camera = camera_event_very_left +# } +# right_portrait = { +# character = scope:temujin +# animation = dismissal +# camera = camera_event_very_right +# } +# lower_right_portrait = scope:togrul +# +# trigger = { +# character:125501 = { +# has_variable = had_mpo_temujin_flavor_0001 +# } +# is_alive = yes +# is_ruler = yes +# character:125501 = { +# is_alive = yes +# is_available = yes +# } +# OR = { +# is_vassal_of = character:125501 +# is_tributary_of = character:125501 +# } +# NOT = { +# is_at_war_with = character:125501 +# } +# } +# +# immediate = { +# save_scope_as = jamukha +# character:125501 = { +# save_scope_as = temujin +# } +# if = { +# limit = { +# character:303211 = { +# mpo_jamukha_flavor_0010_togrul_trigger = yes +# } +# } +# character:303211 = { +# save_scope_as = togrul +# } +# } +# else_if = { +# limit = { +# character:303211.house ?= { +# any_house_member = { +# mpo_jamukha_flavor_0010_togrul_trigger = yes +# } +# } +# } +# character:303211.house ?= { +# ordered_house_member = { +# order_by = current_military_strength +# limit = { +# mpo_jamukha_flavor_0010_togrul_trigger = yes +# } +# save_scope_as = togrul +# } +# } +# } +# else = { +# capital_county.empire ?= { +# ordered_de_jure_county_holder = { +# order_by = current_military_strength +# limit = { +# highest_held_title_tier <= tier_duchy +# mpo_jamukha_flavor_0010_togrul_trigger = yes +# } +# save_scope_as = togrul +# } +# } +# } +# } +# +# #I want to leave Temujin and take Togrul as an ally +# option = { +# name = mpo_jamukha_flavor.0010.a +# show_as_tooltip = { +# mpo_jamukha_flavor_0010_jamukha_leaving_effect = yes +# } +# scope:temujin = { +# trigger_event = mpo_temujin_flavor.0010 +# add_opinion = { +# target = root +# modifier = betrayal_opinion +# opinion = -40 +# } +# } +# ai_chance = { +# base = 100 +# } +# } +# +# #I want to stay with Temujin and be friends forever +# option = { +# name = mpo_jamukha_flavor.0010.b +# add_character_modifier = { +# modifier = jamukha_chose_loyalty_modifier +# years = 5 +# } +# scope:temujin = { +# add_opinion = { +# target = root +# modifier = loyalty_opinion +# opinion = 30 +# } +# } +# stress_impact = { +# base = miniscule_stress_impact_gain +# } +# ai_chance = { +# base = 0 +# } +# } +# +# on_trigger_fail = { # Jamukha becomes your rival anyways if you've migrated away +# if = { +# limit = { +# is_independent_ruler = yes +# NOT = { is_tributary_of = scope:temujin } +# } +# hidden_effect = { +# scope:temujin = { +# trigger_event = { +# days = { 360 420 } +# id = mpo_temujin_flavor.0020 +# } +# } +# } +# } +# } +#} +# +######################## +## Temujin becomes your rival -- now you must kill him +######################## +# +#mpo_jamukha_flavor.0020 = { +# type = character_event +# title = mpo_jamukha_flavor.0020.t +# desc = mpo_jamukha_flavor.0020.desc +# theme = nomads +# override_background = { +# reference = mpo_campfire_steppe +# } +# left_portrait = { +# character = root +# animation = threatening +# camera = camera_event_very_left +# } +# right_portrait = { +# character = scope:temujin +# animation = aggressive_sword +# outfit_tags = { nightgown } +# camera = camera_event_very_right +# } +# window = scheme_conclusion_event_no_header +# +# immediate = { +# play_music_cue = "mx_cue_murder" +# custom_tooltip = jamukha_temujin_no_more_positive_tt +# custom_tooltip = jamukha_temujin_rivals_tt +# custom_tooltip = mpo_temujin_flavor.0020.cb.tt +# if = { +# limit = { +# current_military_strength < scope:temujin.current_military_strength +# } +# domicile ?= { +# change_herd = { +# value = scope:temujin.domicile.herd +# multiply = 1.5 +# } +# } +# add_prestige = major_prestige_gain # For MAA maintenance, mainly +# custom_tooltip = jamukha_gain_from_defectors_tt +# } +# } +# +# option = { # You who I once called brother +# name = mpo_jamukha_flavor.0020.a +# reason = blood_brother +# add_internal_flag = special +# trigger = { has_character_flag = was_temujins_bro } +# custom_tooltip = { +# text = mpo_jamukha_flavor.0020.a_war_win +# set_variable = temujin_jamukha_war_var +# } +# add_character_modifier = { +# modifier = temujin_jamukha_war_modifier +# years = 5 +# } +# stress_impact = { +# base = medium_stress_impact_gain +# } +# ai_chance = { +# base = 100 +# } +# } +# +# option = { # Murderrrrrrr +# name = mpo_jamukha_flavor.0020.b +# custom_tooltip = { +# text = mpo_jamukha_flavor.0020.b_murder +# set_variable = { +# name = temujin_jamukha_murder_var +# value = scope:temujin +# } +# } +# stress_impact = { +# deceitful = massive_stress_impact_loss +# sadistic = massive_stress_impact_loss +# } +# ai_chance = { +# base = 0 +# } +# } +# +# option = { # I'm going to crush your skull +# name = mpo_jamukha_flavor.0020.c +# trigger = { +# NOT = { has_relation_blood_brother = scope:jamukha } +# } +# add_character_modifier = { +# modifier = temujin_jamukha_war_smaller_modifier +# years = 5 +# } +# stress_impact = { +# wrathful = massive_stress_impact_loss +# vengeful = massive_stress_impact_loss +# } +# ai_chance = { +# base = 100 +# } +# } +#} +# \ No newline at end of file diff --git a/events/dlc/mpo/mpo_nomads_flavour_events.txt b/events/dlc/mpo/mpo_nomads_flavour_events.txt index e593358e..5e573c40 100644 --- a/events/dlc/mpo/mpo_nomads_flavour_events.txt +++ b/events/dlc/mpo/mpo_nomads_flavour_events.txt @@ -2931,7 +2931,7 @@ nomad_events.0140 = { location = root.location template = merchant_template gender_female_chance = root_faith_dominant_gender_adjusted_female_chance - faith = faith:catholic + faith = faith:roman_catholic culture = culture:italian save_scope_as = merchant } @@ -4920,7 +4920,7 @@ scripted_trigger nomad_events_0250_valid_priest = { this = root.faith this = root.location.county.faith has_doctrine_parameter = unreformed - this = faith:rabbinism +# this = faith:congregationist } } trigger_if = { @@ -5196,7 +5196,7 @@ nomad_events.0250 = { } 1 = { # Fallback, rare trigger = { - NOT = { faith = faith:catholic } + NOT = { faith = faith:roman_catholic } } modifier = { any_character_situation = { this = situation:game_rule_extra_nomads_sami } @@ -5206,7 +5206,7 @@ nomad_events.0250 = { location = root.location template = priest_character_template gender_female_chance = root_faith_clergy_gender_female_chance - faith = faith:catholic + faith = faith:roman_catholic culture = culture:italian save_scope_as = priest } @@ -5483,7 +5483,7 @@ nomad_events.0260 = { weight = { base = 1 modifier = { # Catholics already end up in the Steppe - faith = faith:catholic + faith = faith:roman_catholic add = -250 } modifier = { # Hindus shouldn't end up in the Steppe @@ -5592,7 +5592,7 @@ nomad_events.0260 = { factor = 0 } modifier = { - scope:priest.faith = faith:catholic + scope:priest.faith = faith:roman_catholic any_character_situation = { OR = { this = situation:the_great_steppe diff --git a/events/easteregg_events.txt b/events/easteregg_events.txt index ddecd9bb..b86bce39 100644 --- a/events/easteregg_events.txt +++ b/events/easteregg_events.txt @@ -1,61 +1,62 @@ -namespace = easteregg_event - -################################################## -# #Vanity Events -# 0001 - 10002 Charna and Jakub duel -################################################## - -# Secret event to decide who should have the rock. -easteregg_event.0001 = { - hidden = yes - scope = none - - trigger = { - game_start_date <= 1070.1.1 - exists = character:easteregg_jakub_potapczyk - exists = character:easteregg_charna_frostwhisper - } - - immediate = { - character:easteregg_jakub_potapczyk = { - configure_start_single_combat_effect = { - SC_INITIATOR = character:easteregg_jakub_potapczyk - SC_ATTACKER = character:easteregg_jakub_potapczyk - SC_DEFENDER = character:easteregg_charna_frostwhisper - FATALITY = no - FIXED = no - LOCALE = terrain_scope - INVALIDATION_EVENT = single_combat.1006 - OUTPUT_EVENT = easteregg_event.0002 - } - } - } -} - -easteregg_event.0002 = { - hidden = yes - - immediate = { - # If Jakub wins, he takes back his beloved rock. Charna will not forget that. - if = { - limit = { scope:sc_victor = character:easteregg_jakub_potapczyk } - scope:sc_victor = { - add_character_modifier = prison_pet_stone_modifier - set_relation_rival = { - target = scope:sc_loser - reason = rival_rock - } - } - scope:sc_loser = {remove_character_modifier = prison_pet_stone_modifier} - } - # Otherwise, Charna won, and Jakub will never, ever forgive her. - else = { - scope:sc_victor = { - set_relation_rival = { - target = scope:sc_loser - reason = rival_rock - } - } - } - } -} +#namespace = easteregg_event +# +################################################### +## #Vanity Events +## 0001 - 10002 Charna and Jakub duel +################################################### +# +## Secret event to decide who should have the rock. +#easteregg_event.0001 = { +# hidden = yes +# scope = none +# +# trigger = { +# game_start_date <= 1070.1.1 +# exists = character:easteregg_jakub_potapczyk +# exists = character:easteregg_charna_frostwhisper +# } +# +# immediate = { +# character:easteregg_jakub_potapczyk = { +# configure_start_single_combat_effect = { +# SC_INITIATOR = character:easteregg_jakub_potapczyk +# SC_ATTACKER = character:easteregg_jakub_potapczyk +# SC_DEFENDER = character:easteregg_charna_frostwhisper +# FATALITY = no +# FIXED = no +# LOCALE = terrain_scope +# INVALIDATION_EVENT = single_combat.1006 +# OUTPUT_EVENT = easteregg_event.0002 +# } +# } +# } +#} +# +#easteregg_event.0002 = { +# hidden = yes +# +# immediate = { +# # If Jakub wins, he takes back his beloved rock. Charna will not forget that. +# if = { +# limit = { scope:sc_victor = character:easteregg_jakub_potapczyk } +# scope:sc_victor = { +# add_character_modifier = prison_pet_stone_modifier +# set_relation_rival = { +# target = scope:sc_loser +# reason = rival_rock +# } +# } +# scope:sc_loser = {remove_character_modifier = prison_pet_stone_modifier} +# } +# # Otherwise, Charna won, and Jakub will never, ever forgive her. +# else = { +# scope:sc_victor = { +# set_relation_rival = { +# target = scope:sc_loser +# reason = rival_rock +# } +# } +# } +# } +#} +# \ No newline at end of file diff --git a/events/lifestyles/scholarship_lifestyle/learning_theology_events.txt b/events/lifestyles/scholarship_lifestyle/learning_theology_events.txt index f4f6e10f..5e3b959e 100644 --- a/events/lifestyles/scholarship_lifestyle/learning_theology_events.txt +++ b/events/lifestyles/scholarship_lifestyle/learning_theology_events.txt @@ -3576,7 +3576,7 @@ learning_theology_special.1003 = { ################################################## scripted_trigger learning_theology_special_1101_rabbi_trigger = { - faith = faith:rabbinism + faith = faith:congregationist OR = { has_trait = education_learning_2 has_trait = education_learning_3 @@ -3654,7 +3654,7 @@ learning_theology_special.1101 = { create_character = { location = root.capital_province template = scholar_character - faith = faith:rabbinism + faith = faith:congregationist culture = culture:french trait = scholar trait = diligent @@ -3698,11 +3698,11 @@ learning_theology_special.1101 = { culture = root.culture gender_female_chance = { if = { - limit = { faith:rabbinism = { has_doctrine_parameter = clergy_must_be_male } } + limit = { faith:congregationist = { has_doctrine_parameter = clergy_must_be_male } } value = 0 } else_if = { - limit = { faith:rabbinism = { has_doctrine_parameter = clergy_must_be_female } } + limit = { faith:congregationist = { has_doctrine_parameter = clergy_must_be_female } } value = 100 } else = { diff --git a/events/lifestyles/warfare_lifestyle/warhorse_events.txt b/events/lifestyles/warfare_lifestyle/warhorse_events.txt index c4859272..5adea4a5 100644 --- a/events/lifestyles/warfare_lifestyle/warhorse_events.txt +++ b/events/lifestyles/warfare_lifestyle/warhorse_events.txt @@ -127,7 +127,7 @@ warhorse.0002 = { name = warhorse.0002.c trigger = { OR = { - faith.religion = religion:hellenism_religion + faith.religion = religion:theomach_religion trigger_if = { limit = { is_landed = yes } capital_province = { geographical_region = world_europe_south } @@ -248,7 +248,7 @@ warhorse.0002 = { option = { trigger = { OR = { - faith.religion = religion:hellenism_religion + faith.religion = religion:theomach_religion trigger_if = { limit = { is_landed = yes } capital_province = { geographical_region = world_europe_south } diff --git a/events/mpo_misc.txt b/events/mpo_misc.txt index fd4a59b9..e3e1aa7e 100644 --- a/events/mpo_misc.txt +++ b/events/mpo_misc.txt @@ -196,7 +196,7 @@ mpo_misc.0001 = { geographical_region = heritage_area_pontic_steppe } } - leave_behind_heritage_culture_effect = { CULTURE = culture:cuman } + leave_behind_heritage_culture_effect = { CULTURE = culture:NEOW_cossack } } # Balkans: Turkic Heritage (Pecheneg) else_if = { @@ -223,7 +223,7 @@ mpo_misc.0001 = { geographical_region = ghw_region_poland } } - leave_behind_heritage_culture_effect = { CULTURE = culture:cuman } + leave_behind_heritage_culture_effect = { CULTURE = culture:NEOW_cossack } } # Southern Russia: Turkic Heritage (Cuman) else_if = { @@ -232,7 +232,7 @@ mpo_misc.0001 = { geographical_region = ghw_region_southern_russia } } - leave_behind_heritage_culture_effect = { CULTURE = culture:cuman } + leave_behind_heritage_culture_effect = { CULTURE = culture:NEOW_cossack } } # Northern Russia: Turkic Heritage (Bolghar) else_if = { diff --git a/events/test_events/debug.txt b/events/test_events/debug.txt index 43543d99..023f542e 100644 --- a/events/test_events/debug.txt +++ b/events/test_events/debug.txt @@ -2310,7 +2310,7 @@ debug.411 = { # For usage debugging achievements. Should be a generic command ra debug_log = "Iberia Converted to Mozarab!" every_county_in_region = { region = world_europe_west_iberia - set_county_faith = faith:mozarabic_church +# set_county_faith = faith:mozarabic_church } debug_log = "Woosh! Caucasian Iberia is now yours!" @@ -2804,7 +2804,7 @@ debug.511 = { # Set secret faith for Character } root = { - set_character_secret_faith = faith:rabbinism + set_character_secret_faith = faith:congregationist } } diff --git a/gfx/interface/illustrations/scripted_illustrations/ingame.txt b/gfx/interface/illustrations/scripted_illustrations/ingame.txt index c2a93e02..9c3a43ff 100644 --- a/gfx/interface/illustrations/scripted_illustrations/ingame.txt +++ b/gfx/interface/illustrations/scripted_illustrations/ingame.txt @@ -11818,7 +11818,7 @@ religion_interior = { texture = { trigger = { OR = { - this = faith:mozarabic_church +# this = faith:mozarabic_church this = faith:muwalladi } } @@ -11828,7 +11828,7 @@ religion_interior = { environment = { trigger = { OR = { - this = faith:mozarabic_church +# this = faith:mozarabic_church this = faith:muwalladi } } diff --git a/gfx/portraits/portrait_animations/animations.txt b/gfx/portraits/portrait_animations/animations.txt index 4f7a68c6..780ab14b 100644 --- a/gfx/portraits/portrait_animations/animations.txt +++ b/gfx/portraits/portrait_animations/animations.txt @@ -404,14 +404,14 @@ idle = { animation = { head = "council_marshal" torso = "council_marshal" } weight = { base = 0 - modifier = { - add = 5000 - OR = { - this = character:easteregg_henry_of_skalitz - this = character:easteregg_henry_kobyla - this = character:easteregg_henry_kobyla_late - } - } +# modifier = { +# add = 5000 +# OR = { +# this = character:easteregg_henry_of_skalitz +# this = character:easteregg_henry_kobyla +# this = character:easteregg_henry_kobyla_late +# } +# } } portrait_modifier_pack = long_swords } diff --git a/gfx/portraits/portrait_modifiers/01_beards_base.txt b/gfx/portraits/portrait_modifiers/01_beards_base.txt index 7ce618e2..86b6c0c1 100644 --- a/gfx/portraits/portrait_modifiers/01_beards_base.txt +++ b/gfx/portraits/portrait_modifiers/01_beards_base.txt @@ -42,12 +42,12 @@ beards = { has_character_flag = has_scripted_appearance } } - modifier = { - add = 666 - exists = this - exists = character:easteregg_daan_broekhof - this = character:easteregg_daan_broekhof - } +# modifier = { +# add = 666 +# exists = this +# exists = character:easteregg_daan_broekhof +# this = character:easteregg_daan_broekhof +# } modifier = { add = 1000 exists = this @@ -100,7 +100,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } +# #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_western_clothing_trigger = yes } @@ -146,7 +146,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } +# #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_western_clothing_trigger = yes } @@ -196,7 +196,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } +# #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } OR = { portrait_mena_clothing_trigger = yes @@ -255,7 +255,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + # #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } OR = { portrait_mena_clothing_trigger = yes @@ -310,7 +310,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } +# #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_byzantine_clothing_trigger = yes } @@ -356,7 +356,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } +# #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_byzantine_clothing_trigger = yes } @@ -402,7 +402,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } +# #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_indian_clothing_trigger = yes } @@ -448,7 +448,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_indian_clothing_trigger = yes } @@ -487,7 +487,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } trigger_if = { limit = { exists = this } @@ -550,7 +550,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_steppe_clothing_trigger = yes } @@ -606,7 +606,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_steppe_clothing_trigger = yes } @@ -652,7 +652,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_steppe_clothing_trigger = yes } @@ -701,7 +701,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } OR = { portrait_northern_clothing_trigger = yes @@ -753,7 +753,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } OR = { portrait_northern_clothing_trigger = yes @@ -795,7 +795,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } OR = { portrait_african_clothing_trigger = yes @@ -847,7 +847,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } OR = { portrait_sp2_western_clothing_trigger = yes @@ -898,7 +898,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_fp3_iranian_clothing_trigger = yes } @@ -944,7 +944,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_fp3_iranian_clothing_trigger = yes } @@ -991,7 +991,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_fp3_turkic_clothing_trigger = yes } @@ -1037,7 +1037,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_fp3_turkic_clothing_trigger = yes } @@ -1087,7 +1087,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } OR = { portrait_fp2_iberian_muslim_clothing_trigger = yes @@ -1138,7 +1138,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } OR = { portrait_fp2_iberian_muslim_clothing_trigger = yes @@ -1189,7 +1189,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_fp1_norse_clothing_trigger = yes } @@ -1235,7 +1235,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_northern_clothing_trigger = yes } @@ -1608,7 +1608,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } trigger_if = { limit = { exists = this } @@ -1645,7 +1645,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_ainu_clothing_trigger = yes } @@ -1676,7 +1676,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_emishi_clothing_trigger = yes } @@ -1706,7 +1706,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_emishi_clothing_trigger = yes } @@ -1742,7 +1742,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_emishi_clothing_trigger = yes } @@ -1772,7 +1772,7 @@ beards = { add = 200 OR = { scope:faith.religion = religion:islam_religion - is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } + #is_culture_or_descended_from_trigger = { CULTURE = culture:emishi } } portrait_emishi_clothing_trigger = yes } diff --git a/holder for later/common/landed_titles/baltics.txt b/holder for later/common/landed_titles/baltics.txt index 2cb6611c..000d7d15 100644 --- a/holder for later/common/landed_titles/baltics.txt +++ b/holder for later/common/landed_titles/baltics.txt @@ -596,7 +596,7 @@ e_baltic = { k_esthonia = { color = { 130 73 45 } - capital = c_reval + capital = c_harjumaa can_create = { trigger_if = { @@ -619,9 +619,9 @@ e_baltic = { d_esthonia = { color = { 150 75 75 } - capital = c_reval # Kalevan + capital = c_harjumaa # Kalevan - c_reval = { + c_harjumaa = { color = { 160 85 85 } cultural_names = { @@ -662,7 +662,7 @@ e_baltic = { color = { 160 85 85 } } } - c_narva = { + c_ida_viru = { color = { 175 55 55 } cultural_names = { diff --git a/localization/english/replace/council_l_english.yml b/localization/english/replace/council_l_english.yml index 86c28ac5..7e2c73bb 100644 --- a/localization/english/replace/council_l_english.yml +++ b/localization/english/replace/council_l_english.yml @@ -191,16 +191,16 @@ councillor_court_chaplain_germanic_religion_empire_possessive:0 "Kjárrgoði's" # Hellenism (Augur/Seeress) (Flamen/Vestal) (Pontifex) (Oracle/Sybil) - councillor_court_chaplain_hellenism_religion_county:0 "Flamen" - councillor_court_chaplain_hellenism_religion_county_female:0 "Vestal" - councillor_court_chaplain_hellenism_religion_county_possessive:0 "Flamen's" - councillor_court_chaplain_hellenism_religion_county_female_possessive:0 "Vestal's" - councillor_court_chaplain_hellenism_religion_duchy:0 "Pontifex" - councillor_court_chaplain_hellenism_religion_duchy_possessive:0 "Pontifex's" - councillor_court_chaplain_hellenism_religion_kingdom:0 "Oracle" - councillor_court_chaplain_hellenism_religion_kingdom_female:0 "Sybil" - councillor_court_chaplain_hellenism_religion_kingdom_possessive:0 "Oracle's" - councillor_court_chaplain_hellenism_religion_kingdom_female_possessive:0 "Sybil's" + councillor_court_chaplain_theomach_religion_county:0 "Flamen" + councillor_court_chaplain_theomach_religion_county_female:0 "Vestal" + councillor_court_chaplain_theomach_religion_county_possessive:0 "Flamen's" + councillor_court_chaplain_theomach_religion_county_female_possessive:0 "Vestal's" + councillor_court_chaplain_theomach_religion_duchy:0 "Pontifex" + councillor_court_chaplain_theomach_religion_duchy_possessive:0 "Pontifex's" + councillor_court_chaplain_theomach_religion_kingdom:0 "Oracle" + councillor_court_chaplain_theomach_religion_kingdom_female:0 "Sybil" + councillor_court_chaplain_theomach_religion_kingdom_possessive:0 "Oracle's" + councillor_court_chaplain_theomach_religion_kingdom_female_possessive:0 "Sybil's" # Judaism (Court Rabbi) (Kohen) (Rabban) (Nasi) (Gadol) councillor_court_chaplain_judaism_religion_county:0 "Kohen" diff --git a/localization/english/replace/opinions/NEOW_religion_opinions_l_english.yml b/localization/english/replace/opinions/NEOW_religion_opinions_l_english.yml index 5d87c373..07657357 100644 --- a/localization/english/replace/opinions/NEOW_religion_opinions_l_english.yml +++ b/localization/english/replace/opinions/NEOW_religion_opinions_l_english.yml @@ -18,7 +18,7 @@ sikhism_religion_opinion:0 "$sikhism_religion_adherent$ Opinion" slavic_religion_opinion:0 "$slavic_religion_adherent$ Opinion" thelema_religion_opinion:0 "$thelema_religion_adherent$ Opinion" - theomach_opinion:0 "$theomach_adherent$ Opinion" + theomach_religion_opinion:0 "$theomach_religion_adherent$ Opinion" octobrist_religion_opinion:0 "$octobrist_religion_adherent$ Opinion" wicca_religion_opinion:0 "$wicca_religion_adherent$ Opinion" xenology_religion_opinion:0 "$xenology_religion_adherent$ Opinion" diff --git a/localization/english/replace/religion/zz_NEOW_religion_theomach_l_english.yml b/localization/english/replace/religion/zz_NEOW_religion_theomach_l_english.yml index 5e01f360..67e8f1c6 100644 --- a/localization/english/replace/religion/zz_NEOW_religion_theomach_l_english.yml +++ b/localization/english/replace/religion/zz_NEOW_religion_theomach_l_english.yml @@ -1,10 +1,10 @@ l_english: - theomach:1 "Theomach" - theomach_adj:1 "Theomach" - theomach_adherent:1 "Theomach" - theomach_adherent_plural:1 "Theomachs" - theomach_desc:1 "Before Alexander departed from this world of mortals, his followers asked him who is to rule in his stead. 'To kratisto' he said, meaning 'to the strongest', and just as he proved he is one of them by mantling the throne of Olympus and being reborn as Anáxandros, so too did his successors on earth wrestle over his empire until they found the one worthy of leading it. While there are many interpretations as to what exactly happened in the home of the Olympians, all Theomachs can agree that a war was waged, and that it was Anáxandros who won." + theomach_religion:1 "Theomach" + theomach_religion_adj:1 "Theomach" + theomach_religion_adherent:1 "Theomach" + theomach_religion_adherent_plural:1 "Theomachs" + theomach_religion_desc:1 "Before Alexander departed from this world of mortals, his followers asked him who is to rule in his stead. 'To kratisto' he said, meaning 'to the strongest', and just as he proved he is one of them by mantling the throne of Olympus and being reborn as Anáxandros, so too did his successors on earth wrestle over his empire until they found the one worthy of leading it. While there are many interpretations as to what exactly happened in the home of the Olympians, all Theomachs can agree that a war was waged, and that it was Anáxandros who won." megalocratic:0 "Megalocratism" megalocratic_adj:0 "Megalocratic" diff --git a/map_data/geographical_regions/geographical_region.txt b/map_data/geographical_regions/geographical_region.txt index e5fa8a04..b0a4d7e9 100644 --- a/map_data/geographical_regions/geographical_region.txt +++ b/map_data/geographical_regions/geographical_region.txt @@ -3900,7 +3900,7 @@ dlc_fp1_region_non_scandinavian_southern_baltic = { #k_lithuania c_malbork c_wormditt c_natangia c_konigsberg c_memel c_palanga c_liepaja c_vanemane c_zemigalians #k_estonia - c_limbazi c_livs c_wiek c_osel c_reval c_narva + c_limbazi c_livs c_wiek c_osel c_harjumaa c_ida_viru #k_novgorod c_vodi #k_finland