diff --git a/common/accolade_names/00_accolade_names.txt b/common/accolade_names/00_accolade_names.txt index 1f06ebe8..7586f7c8 100644 --- a/common/accolade_names/00_accolade_names.txt +++ b/common/accolade_names/00_accolade_names.txt @@ -2951,7 +2951,7 @@ accolade_knight_of_god = { triggered_desc = { trigger = { NOR = { - faith.religion = religion:finno_ugric_religion + faith.religion = religion:finnic_religion faith.religion = religion:north_african_religion faith.religion = religion:paganism_religion faith.religion = religion:west_african_religion diff --git a/common/activities/activity_types/coronation.txt b/common/activities/activity_types/coronation.txt index 70508f9a..479a965f 100644 --- a/common/activities/activity_types/coronation.txt +++ b/common/activities/activity_types/coronation.txt @@ -3876,7 +3876,7 @@ scope:host = { OR = { religion = religion:tengrism_religion - religion = religion:magyar_religion + religion = religion:hungaric_religion religion = religion:siberian_religion religion = religion:kamuyism_religion AND = { diff --git a/common/activities/activity_types/pilgrimage.txt b/common/activities/activity_types/pilgrimage.txt index 97d97d5e..a2d92642 100644 --- a/common/activities/activity_types/pilgrimage.txt +++ b/common/activities/activity_types/pilgrimage.txt @@ -2884,7 +2884,7 @@ scope:host = { OR = { religion = religion:tengrism_religion - religion = religion:magyar_religion + religion = religion:hungaric_religion religion = religion:siberian_religion religion = religion:kamuyism_religion } diff --git a/common/coat_of_arms/template_lists/coa_templates.txt b/common/coat_of_arms/template_lists/coa_templates.txt index eeff2838..23eee5e1 100644 --- a/common/coat_of_arms/template_lists/coa_templates.txt +++ b/common/coat_of_arms/template_lists/coa_templates.txt @@ -64,18 +64,18 @@ NOR = { scope:religion = religion:slavic_religion scope:religion = religion:baltic_religion - scope:religion = religion:finno_ugric_religion - scope:religion = religion:magyar_religion + scope:religion = religion:finnic_religion + scope:religion = religion:hungaric_religion scope:religion = religion:folkgerman_religion scope:religion = religion:zoroastrianism_religion - scope:religion = religion:tengrism_religion - scope:religion = religion:akom_religion - scope:religion = religion:akom_religion - scope:religion = religion:waaqism_religion - scope:religion = religion:west_african_religion - scope:religion = religion:west_african_bori_religion - scope:religion = religion:west_african_roog_religion - scope:religion = religion:west_african_orisha_religion +# scope:religion = religion:tengrism_religion +# scope:religion = religion:akom_religion +# scope:religion = religion:akom_religion +# scope:religion = religion:waaqism_religion +# scope:religion = religion:west_african_religion +# scope:religion = religion:west_african_bori_religion +# scope:religion = religion:west_african_roog_religion +# scope:religion = religion:west_african_orisha_religion } } 5000 = basic_charge_01 @@ -90,8 +90,8 @@ OR = { scope:religion = religion:slavic_religion scope:religion = religion:baltic_religion - scope:religion = religion:finno_ugric_religion - scope:religion = religion:magyar_religion +# scope:religion = religion:finnic_religion +# scope:religion = religion:hungaric_religion } } # Weights are temps @@ -178,7 +178,7 @@ # scope:faith = faith:nestorian scope:religion = religion:tengrism_religion scope:religion = religion:zoroastrianism_religion - scope:religion = religion:magyar_religion + scope:religion = religion:hungaric_religion AND = { scope:religion = religion:judaism_religion scope:culture = { has_coa_gfx = turkic_group_coa_gfx } @@ -211,7 +211,7 @@ # scope:faith = faith:nestorian scope:religion = religion:tengrism_religion scope:religion = religion:zoroastrianism_religion - scope:religion = religion:magyar_religion + scope:religion = religion:hungaric_religion AND = { scope:religion = religion:judaism_religion scope:culture = { has_coa_gfx = turkic_group_coa_gfx } @@ -234,7 +234,7 @@ # scope:faith = faith:nestorian scope:religion = religion:tengrism_religion scope:religion = religion:zoroastrianism_religion - scope:religion = religion:magyar_religion + scope:religion = religion:hungaric_religion AND = { scope:religion = religion:judaism_religion scope:culture = { has_coa_gfx = turkic_group_coa_gfx } diff --git a/common/coat_of_arms/template_lists/colored_emblem_lists.txt b/common/coat_of_arms/template_lists/colored_emblem_lists.txt index eb32acbe..cd8ae5ec 100644 --- a/common/coat_of_arms/template_lists/colored_emblem_lists.txt +++ b/common/coat_of_arms/template_lists/colored_emblem_lists.txt @@ -1131,7 +1131,7 @@ colored_emblem_texture_lists = { } special_selection = { trigger = { - scope:faith.religion = religion:finno_ugric_religion + scope:faith.religion = religion:finnic_religion } 1000 = "ce_tursansydan.dds" 1000 = "ce_pagan_cross_tursas.dds" @@ -1582,7 +1582,7 @@ colored_emblem_texture_lists = { } special_selection = { trigger = { - scope:faith.religion = religion:magyar_religion + scope:faith.religion = religion:hungaric_religion } 2000 = "ce_tamgha_magyar_01.dds" 2000 = "ce_tamgha_magyar_02.dds" diff --git a/common/customizable_localization/00_divinity_custom_loc.txt b/common/customizable_localization/00_divinity_custom_loc.txt index ed427c62..a17b9880 100644 --- a/common/customizable_localization/00_divinity_custom_loc.txt +++ b/common/customizable_localization/00_divinity_custom_loc.txt @@ -907,7 +907,7 @@ GetActualBishopTitle = { trigger = { faith.religion = faith:finnish_pagan.religion } - localization_key = councillor_court_chaplain_finno_ugric_religion_duchy + localization_key = councillor_court_chaplain_finnic_religion_duchy } #Slavic @@ -1770,7 +1770,7 @@ GetActualBishopTitlePossessive = { trigger = { faith.religion = faith:finnish_pagan.religion } - localization_key = councillor_court_chaplain_finno_ugric_religion_duchy_possessive + localization_key = councillor_court_chaplain_finnic_religion_duchy_possessive } #Slavic @@ -2409,7 +2409,7 @@ GetTaltosTerm = { type = character text = { - trigger = { religion = religion:magyar_religion } + trigger = { religion = religion:hungaric_religion } localization_key = chosen_one_taltos } text = { diff --git a/common/decisions/00_major_decisions_east_europe.txt b/common/decisions/00_major_decisions_east_europe.txt index 2e5cbaf2..eea6fd56 100644 --- a/common/decisions/00_major_decisions_east_europe.txt +++ b/common/decisions/00_major_decisions_east_europe.txt @@ -632,7 +632,7 @@ revive_magyar_paganism_decision = { faith.religion = { is_in_family = rf_pagan } } #Magyar Paganism must not have been reformed. - religion:magyar_religion = { + religion:hungaric_religion = { any_faith = { count = all has_doctrine_parameter = unreformed diff --git a/common/flavorization/00_title_holders.txt b/common/flavorization/00_title_holders.txt index 152c17cd..17e61baf 100644 --- a/common/flavorization/00_title_holders.txt +++ b/common/flavorization/00_title_holders.txt @@ -1853,7 +1853,7 @@ count_theocracy_male_magyarism_religion = { top_liege = no } governments = { theocracy_government } - religions = { magyar_religion } + religions = { hungaric_religion } } count_theocracy_female_magyarism_religion = { type = character @@ -1865,7 +1865,7 @@ count_theocracy_female_magyarism_religion = { top_liege = no } governments = { theocracy_government } - religions = { magyar_religion } + religions = { hungaric_religion } } duke_theocracy_male_magyarism_religion = { type = character @@ -1877,7 +1877,7 @@ duke_theocracy_male_magyarism_religion = { top_liege = no } governments = { theocracy_government } - religions = { magyar_religion } + religions = { hungaric_religion } } duke_theocracy_female_magyarism_religion = { type = character @@ -1889,7 +1889,7 @@ duke_theocracy_female_magyarism_religion = { top_liege = no } governments = { theocracy_government } - religions = { magyar_religion } + religions = { hungaric_religion } } king_theocracy_male_magyarism_religion = { type = character @@ -1901,7 +1901,7 @@ king_theocracy_male_magyarism_religion = { top_liege = no } governments = { theocracy_government } - religions = { magyar_religion } + religions = { hungaric_religion } } king_theocracy_female_magyarism_religion = { type = character @@ -1913,7 +1913,7 @@ king_theocracy_female_magyarism_religion = { top_liege = no } governments = { theocracy_government } - religions = { magyar_religion } + religions = { hungaric_religion } } # Paganism @@ -1927,7 +1927,7 @@ baron_theocracy_male_paganism_religion = { top_liege = no } governments = { theocracy_government } - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_religion tengrism_religion } + religions = { paganism_religion hungaric_religion baltic_religion slavic_religion finnic_religion tengrism_religion } } baron_theocracy_female_paganism_religion = { type = character @@ -1939,7 +1939,7 @@ baron_theocracy_female_paganism_religion = { top_liege = no } governments = { theocracy_government } - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_religion tengrism_religion } + religions = { paganism_religion hungaric_religion baltic_religion slavic_religion finnic_religion tengrism_religion } } barony_theocracy_paganism_religion = { type = title @@ -1949,7 +1949,7 @@ barony_theocracy_paganism_religion = { } priority = 7 holding = church_holding - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_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 tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion } } count_theocracy_male_paganism_religion = { type = character @@ -1983,7 +1983,7 @@ county_theocracy_paganism_religion = { } priority = 18 governments = { theocracy_government } - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_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 tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion } } duke_theocracy_male_paganism_religion = { type = character @@ -2017,7 +2017,7 @@ duchy_theocracy_paganism_religion = { } priority = 27 governments = { theocracy_government } - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_religion tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion folkgerman_religion zunism_religion zoroastrianism_religion bon_religion taoism_religion buddhism_religion hinduism_religion jainism_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 zunism_religion zoroastrianism_religion bon_religion taoism_religion buddhism_religion hinduism_religion jainism_religion judaism_religion } } king_theocracy_male_paganism_religion = { type = character @@ -2051,7 +2051,7 @@ kingdom_theocracy_paganism_religion = { } priority = 47 governments = { theocracy_government } - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_religion tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion folkgerman_religion hellenism_religion zunism_religion zoroastrianism_religion bon_religion taoism_religion buddhism_religion hinduism_religion jainism_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 hellenism_religion zunism_religion zoroastrianism_religion bon_religion taoism_religion buddhism_religion hinduism_religion jainism_religion judaism_religion } } emperor_theocracy_male_paganism_religion = { type = character @@ -2063,7 +2063,7 @@ emperor_theocracy_male_paganism_religion = { top_liege = no } governments = { theocracy_government } - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_religion taoism_religion tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion zoroastrianism_religion } + religions = { paganism_religion hungaric_religion baltic_religion slavic_religion finnic_religion taoism_religion tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion zoroastrianism_religion } } emperor_theocracy_female_paganism_religion = { type = character @@ -2075,7 +2075,7 @@ emperor_theocracy_female_paganism_religion = { top_liege = no } governments = { theocracy_government } - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_religion taoism_religion tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion zoroastrianism_religion } + religions = { paganism_religion hungaric_religion baltic_religion slavic_religion finnic_religion taoism_religion tengrism_religion west_african_religion west_african_bori_religion west_african_roog_religion zoroastrianism_religion } } empire_theocracy_paganism_religion = { type = title @@ -2085,7 +2085,7 @@ empire_theocracy_paganism_religion = { } priority = 102 governments = { theocracy_government } - religions = { paganism_religion magyar_religion baltic_religion slavic_religion finno_ugric_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 hellenism_religion taoism_religion zunism_religion zoroastrianism_religion judaism_religion } } # Baltic @@ -2147,7 +2147,7 @@ king_theocracy_male_baltic_religion = { top_liege = no } governments = { theocracy_government } - religions = { baltic_religion slavic_religion finno_ugric_religion } + religions = { baltic_religion slavic_religion finnic_religion } } king_theocracy_female_baltic_religion = { type = character @@ -2159,7 +2159,7 @@ king_theocracy_female_baltic_religion = { top_liege = no } governments = { theocracy_government } - religions = { baltic_religion slavic_religion finno_ugric_religion } + religions = { baltic_religion slavic_religion finnic_religion } } # Slavic @@ -2213,7 +2213,7 @@ duke_theocracy_female_slavic_religion = { } # Finno-Ugric -count_theocracy_male_finno_ugric_religion = { +count_theocracy_male_finnic_religion = { type = character gender = male special = holder @@ -2223,9 +2223,9 @@ count_theocracy_male_finno_ugric_religion = { top_liege = no } governments = { theocracy_government } - religions = { finno_ugric_religion } + religions = { finnic_religion } } -count_theocracy_female_finno_ugric_religion = { +count_theocracy_female_finnic_religion = { type = character gender = female special = holder @@ -2235,9 +2235,9 @@ count_theocracy_female_finno_ugric_religion = { top_liege = no } governments = { theocracy_government } - religions = { finno_ugric_religion } + religions = { finnic_religion } } -duke_theocracy_male_finno_ugric_religion = { +duke_theocracy_male_finnic_religion = { type = character gender = male special = holder @@ -2247,9 +2247,9 @@ duke_theocracy_male_finno_ugric_religion = { top_liege = no } governments = { theocracy_government } - religions = { finno_ugric_religion } + religions = { finnic_religion } } -duke_theocracy_female_finno_ugric_religion = { +duke_theocracy_female_finnic_religion = { type = character gender = female special = holder @@ -2259,7 +2259,7 @@ duke_theocracy_female_finno_ugric_religion = { top_liege = no } governments = { theocracy_government } - religions = { finno_ugric_religion } + religions = { finnic_religion } } # Taoism (uses Pagan/Bon) diff --git a/common/on_action/game_start.txt b/common/on_action/game_start.txt index 0db78796..dbc6d251 100644 --- a/common/on_action/game_start.txt +++ b/common/on_action/game_start.txt @@ -1,12 +1,12 @@ # Empty scope on_game_start = { events = { - fp1_scandinavian_adventurers.0004 # FP1 - Organise Norse adventurers. - fp1_scandinavian_adventurers.0011 # FP1 - Corral famous Norse adventurers that haven't done much yet. - fp1_scandinavian_adventurers.0021 # FP1 - Mark game-start prioritised adventurers. + # fp1_scandinavian_adventurers.0004 # FP1 - Organise Norse adventurers. + # fp1_scandinavian_adventurers.0011 # FP1 - Corral famous Norse adventurers that haven't done much yet. + # fp1_scandinavian_adventurers.0021 # FP1 - Mark game-start prioritised adventurers. #Guaranteed historical artifacts fixed spawning debug_portraits.1 # Debug portraits for animation testing - easteregg_event.0001 # Charna and Jakub duel. + # easteregg_event.0001 # Charna and Jakub duel. } effect = { @@ -769,102 +769,102 @@ on_game_start = { } } - # If your capital on game start is Mecca, you get the Hajjaj trait (since you can't Hajj to your capital) - title:b_makka.county.holder = { - if = { - limit = { - faith = { has_doctrine_parameter = mandatory_hajj } - NOT = { has_trait = hajjaj } - } - # Have some Hajjaj - add_trait = hajjaj - } - } - - # Pagans that start pre-reformed - ## Bon has already been reformed into new bon. - faith:old_bon = { - set_variable = { name = has_been_reformed } - } - - # Mark some faiths to block conversion till specific decisions are taken. - faith:basque_pagan = { - set_variable = { name = block_conversion_till_decision_taken } - } - faith:adoptionist = { - set_variable = { name = block_conversion_till_nebulous_circumstances } - } - # Kuzarite cannot be reformed under normal circumstances - faith:kabarism = { - set_variable = { name = block_reformation_var } - } - - ### GAME RULE: EXTRA ADMINS - apply_historic_administrative_game_rule_effect = yes - - ### 1178 CRUSADE SETUP ### - if = { - limit = { - game_start_date >= 1178.10.1 - } - religion:islam_religion = { - set_variable = { - name = variable_ghw_unlocked - value = yes - } - } - religion:christianity_religion = { - set_variable = { - name = variable_ghw_unlocked - value = yes - } - } - set_global_variable = { - name = had_first_catholic_crusade - value = yes - } - } - if = { - limit = { - game_start_date >= 1178.10.1 - } - character:st_amand_1 = { - save_scope_as = leader - } - character:223523 = { - save_scope_as = founder - } - title:b_saida = { - save_scope_as = barony - } - create_holy_order_neutral_effect = { - LEADER = scope:leader - CAPITAL = scope:barony - NEW_HO_SCOPE = new_holy_order - FOUNDER = scope:founder - } - } - if = { - limit = { - game_start_date >= 1178.10.1 - } - character:231000 = { - save_scope_as = leader_1 - } - character:223523 = { - save_scope_as = founder_1 - } - title:b_hebron = { - save_scope_as = barony_1 - } - create_holy_order_neutral_effect = { - LEADER = scope:leader_1 - CAPITAL = scope:barony_1 - NEW_HO_SCOPE = new_holy_order - FOUNDER = scope:founder_1 - } - } +# # If your capital on game start is Mecca, you get the Hajjaj trait (since you can't Hajj to your capital) +# title:b_makka.county.holder = { +# if = { +# limit = { +# faith = { has_doctrine_parameter = mandatory_hajj } +# NOT = { has_trait = hajjaj } +# } +# # Have some Hajjaj +# add_trait = hajjaj +# } +# } +# # Pagans that start pre-reformed +# ## Bon has already been reformed into new bon. +# faith:old_bon = { +# set_variable = { name = has_been_reformed } +# } +# +# # Mark some faiths to block conversion till specific decisions are taken. +# faith:basque_pagan = { +# set_variable = { name = block_conversion_till_decision_taken } +# } +# faith:adoptionist = { +# set_variable = { name = block_conversion_till_nebulous_circumstances } +# } +# # Kuzarite cannot be reformed under normal circumstances +# faith:kabarism = { +# set_variable = { name = block_reformation_var } +# } +# +# ### GAME RULE: EXTRA ADMINS +# apply_historic_administrative_game_rule_effect = yes +# +# ### 1178 CRUSADE SETUP ### +# if = { +# limit = { +# game_start_date >= 1178.10.1 +# } +# religion:islam_religion = { +# set_variable = { +# name = variable_ghw_unlocked +# value = yes +# } +# } +# religion:christianity_religion = { +# set_variable = { +# name = variable_ghw_unlocked +# value = yes +# } +# } +# set_global_variable = { +# name = had_first_catholic_crusade +# value = yes +# } +# } +# if = { +# limit = { +# game_start_date >= 1178.10.1 +# } +# character:st_amand_1 = { +# save_scope_as = leader +# } +# character:223523 = { +# save_scope_as = founder +# } +# title:b_saida = { +# save_scope_as = barony +# } +# create_holy_order_neutral_effect = { +# LEADER = scope:leader +# CAPITAL = scope:barony +# NEW_HO_SCOPE = new_holy_order +# FOUNDER = scope:founder +# } +# } +# if = { +# limit = { +# game_start_date >= 1178.10.1 +# } +# character:231000 = { +# save_scope_as = leader_1 +# } +# character:223523 = { +# save_scope_as = founder_1 +# } +# title:b_hebron = { +# save_scope_as = barony_1 +# } +# create_holy_order_neutral_effect = { +# LEADER = scope:leader_1 +# CAPITAL = scope:barony_1 +# NEW_HO_SCOPE = new_holy_order +# FOUNDER = scope:founder_1 +# } +# } +# ### UNIVERSITIES ### title:b_fes.title_province = { if = { @@ -926,161 +926,161 @@ on_game_start = { ### GREAT WALL OF CHINA ### - title:b_wulan.title_province = { add_great_building = the_great_wall_01 } - title:b_fengan.title_province = { add_great_building = the_great_wall_01 } - title:b_mingsha.title_province = { add_great_building = the_great_wall_01 } - title:b_yaode.title_province = { add_great_building = the_great_wall_01 } - title:b_huile.title_province = { add_great_building = the_great_wall_01 } - title:b_baojing.title_province = { add_great_building = the_great_wall_01 } - title:b_huaiyuan.title_province = { add_great_building = the_great_wall_01 } - title:b_shengwei.title_province = { add_great_building = the_great_wall_01 } - title:b_hequ.title_province = { add_great_building = the_great_wall_01 } - title:b_helan.title_province = { add_great_building = the_great_wall_01 } - title:b_dengkou.title_province = { add_great_building = the_great_wall_01 } - title:b_wuluhai.title_province = { add_great_building = the_great_wall_01 } - title:b_yongfeng.title_province = { add_great_building = the_great_wall_01 } - title:b_jiuyuan.title_province = { add_great_building = the_great_wall_01 } - title:b_tiande.title_province = { add_great_building = the_great_wall_01 } - - title:b_jincheng.title_province = { add_great_building = the_great_wall_02 } - title:b_huichuan.title_province = { add_great_building = the_great_wall_02 } - title:b_huairong_2.title_province = { add_great_building = the_great_wall_02 } - title:b_pinggao.title_province = { add_great_building = the_great_wall_02 } - title:b_huaide.title_province = { add_great_building = the_great_wall_02 } - title:b_fangqu.title_province = { add_great_building = the_great_wall_02 } - title:b_huaian_2.title_province = { add_great_building = the_great_wall_02 } - title:b_luoyuan.title_province = { add_great_building = the_great_wall_02 } - title:b_hengshan_3.title_province = { add_great_building = the_great_wall_02 } - title:b_wuyan.title_province = { add_great_building = the_great_wall_02 } - title:b_ningshuo.title_province = { add_great_building = the_great_wall_02 } - title:b_longquan.title_province = { add_great_building = the_great_wall_02 } - title:b_rulin.title_province = { add_great_building = the_great_wall_02 } - title:b_kaiguang.title_province = { add_great_building = the_great_wall_02 } - title:b_linzhou_yincheng.title_province = { add_great_building = the_great_wall_02 } - title:b_xiazhou_dejing_east.title_province = { add_great_building = the_great_wall_02 } - - title:b_xuande.title_province = { add_great_building = the_great_wall_03 } - title:b_baishui.title_province = { add_great_building = the_great_wall_03 } - title:b_rouxuan.title_province = { add_great_building = the_great_wall_03 } - title:b_cirlxj_yangcheng.title_province = { add_great_building = the_great_wall_03 } - - ### COA ### - if = { - limit = { - game_start_date <= 1000.1.1 - } - title:e_scandinavia = { set_coa = e_scandinavia_norse } - title:k_sweden = { set_coa = k_sweden_norse } - title:d_svealand = { set_coa = d_svealand_norse } - title:c_upland = { set_coa = c_upland_norse } - title:c_gastrikland = { set_coa = c_gastrikland_norse } - title:c_sodermannaland = { set_coa = c_sodermannaland_norse } - title:c_aland = { set_coa = c_aland_norse } - title:d_bergslagen = { set_coa = d_bergslagen_norse } - title:c_vastmanland = { set_coa = c_vastmanland_norse } - title:c_varmland = { set_coa = c_varmland_norse } - title:c_dalarna = { set_coa = c_dalarna_norse } - title:c_dalabergslagen = { set_coa = c_dalabergslagen_norse } - title:d_vastergotland = { set_coa = d_vastergotland_norse } - title:c_vastergotland = { set_coa = c_vastergotland_norse } - title:c_skara = { set_coa = c_skara_norse } - title:c_dal = { set_coa = c_dal_norse } - title:c_nordmark = { set_coa = c_nordmark_norse } - title:d_ostergotland = { set_coa = d_ostergotland_norse } - title:c_ostergotland = { set_coa = c_ostergotland_norse } - title:c_kinda = { set_coa = c_kinda_norse } - title:c_narke = { set_coa = c_narke_norse } - title:d_smaland = { set_coa = d_smaland_norse } - title:c_more = { set_coa = c_more_norse } - title:c_sevede = { set_coa = c_sevede_norse } - title:c_varend = { set_coa = c_varend_norse } - title:c_njudung = { set_coa = c_njudung_norse } - title:c_finnveden = { set_coa = c_finnveden_norse } - title:c_oland = { set_coa = c_oland_norse } - title:d_norrland = { set_coa = d_norrland_norse } - title:c_halsingland = { set_coa = c_halsingland_norse } - title:c_medelpad = { set_coa = c_medelpad_norse } - title:c_angermanland = { set_coa = c_angermanland_norse } - title:d_gotland = { set_coa = d_gotland_norse } - title:c_gutland = { set_coa = c_gutland_norse } - title:k_norway = { set_coa = k_norway_norse } - title:d_viken = { set_coa = d_viken_norse } - title:c_vingulmork = { set_coa = c_vingulmork_norse } - title:c_raniriki = { set_coa = c_raniriki_norse } - title:c_vestfold = { set_coa = c_vestfold_norse } - title:c_telemark = { set_coa = c_telemark_norse } - title:d_agder = { set_coa = d_agder_norse } - title:c_nedenes = { set_coa = c_nedenes_norse } - title:c_agdeside = { set_coa = c_agdeside_norse } - title:d_vestlandi = { set_coa = d_vestlandi_norse } - title:c_rogalandi = { set_coa = c_rogalandi_norse } - title:c_hordalandi = { set_coa = c_hordalandi_norse } - title:c_sogn = { set_coa = c_sogn_norse } - title:d_trandalog = { set_coa = d_trandalog_norse } - title:c_trandheim = { set_coa = c_trandheim_norse } - title:c_norwegian_more = { set_coa = c_norwegian_more_norse } - title:c_firdafylki = { set_coa = c_firdafylki_norse } - title:d_dalir = { set_coa = d_dalir_norse } - title:c_hedmork = { set_coa = c_hedmork_norse } - title:c_gudbrandsdalir = { set_coa = c_gudbrandsdalir_norse } - title:c_eystridalir = { set_coa = c_eystridalir_norse } - title:c_gauldala = { set_coa = c_gauldala_norse } - title:d_halogaland = { set_coa = d_halogaland_norse } - title:c_vastvag = { set_coa = c_vastvag_norse } - title:c_bothin = { set_coa = c_bothin_norse } - title:c_namdalfylki = { set_coa = c_namdalfylki_norse } - title:d_iceland = { set_coa = d_iceland_norse } - title:c_vestisland = { set_coa = c_vestisland_norse } - title:c_nordrland = { set_coa = c_nordrland_norse } - title:c_austisland = { set_coa = c_austisland_norse } - title:c_sudurland = { set_coa = c_sudurland_norse } - title:d_northern_isles = { set_coa = d_northern_isles_norse } - title:c_orkney = { set_coa = c_orkney_norse } - title:c_faereyar = { set_coa = c_faereyar_norse } - title:c_shetland = { set_coa = c_shetland_norse } - title:d_jamtland = { set_coa = d_jamtland_norse } - title:c_jamtfir = { set_coa = c_jamtfir_norse } - title:c_morarna = { set_coa = c_morarna_norse } - title:c_helgum = { set_coa = c_helgum_norse } - title:c_harjadalen = { set_coa = c_harjadalen_norse } - title:k_denmark = { set_coa = k_denmark_norse } - title:d_sjaelland = { set_coa = d_sjaelland_norse } - title:c_sjaelland = { set_coa = c_sjaelland_norse } - title:c_fyn = { set_coa = c_fyn_norse } - title:c_lolland_falster = { set_coa = c_lolland_falster_norse } - title:d_skane = { set_coa = d_skane_norse } - title:c_skane = { set_coa = c_skane_norse } - title:c_halland = { set_coa = c_halland_norse } - title:c_bornholm = { set_coa = c_bornholm_norse } - title:c_blekinge = { set_coa = c_blekinge_norse } - title:d_jylland = { set_coa = d_jylland_norse } - title:c_aarhus = { set_coa = c_aarhus_norse } - title:c_viborg = { set_coa = c_viborg_norse } - title:c_ringkobing = { set_coa = c_ringkobing_norse } - title:c_aalborg = { set_coa = c_aalborg_norse } - title:d_slesvig = { set_coa = d_slesvig_norse } - title:c_slesvig = { set_coa = c_slesvig_norse } - title:c_vorbasse = { set_coa = c_vorbasse_norse } - title:c_ribe = { set_coa = c_ribe_norse } - title:d_york = { set_coa = d_york_norse } - title:c_east_riding = { set_coa = c_east_riding_norse } - title:d_western_isles = { set_coa = d_western_isles_norse } - title:c_inner_hebrides = { set_coa = c_inner_hebrides_norse } - title:c_dublin = { set_coa = c_dublin_norse } - title:c_argyll = { set_coa = c_argyll_norse } - } - if = { - limit = { - game_start_date >= 1067.12.25 - } - title:k_england = { set_coa = k_england_norman } - } - if = { - limit = { - game_start_date >= 938.1.1 - } - title:k_viet = { set_coa = k_dai_viet } - } +# title:b_wulan.title_province = { add_great_building = the_great_wall_01 } +# title:b_fengan.title_province = { add_great_building = the_great_wall_01 } +# title:b_mingsha.title_province = { add_great_building = the_great_wall_01 } +# title:b_yaode.title_province = { add_great_building = the_great_wall_01 } +# title:b_huile.title_province = { add_great_building = the_great_wall_01 } +# title:b_baojing.title_province = { add_great_building = the_great_wall_01 } +# title:b_huaiyuan.title_province = { add_great_building = the_great_wall_01 } +# title:b_shengwei.title_province = { add_great_building = the_great_wall_01 } +# title:b_hequ.title_province = { add_great_building = the_great_wall_01 } +# title:b_helan.title_province = { add_great_building = the_great_wall_01 } +# title:b_dengkou.title_province = { add_great_building = the_great_wall_01 } +# title:b_wuluhai.title_province = { add_great_building = the_great_wall_01 } +# title:b_yongfeng.title_province = { add_great_building = the_great_wall_01 } +# title:b_jiuyuan.title_province = { add_great_building = the_great_wall_01 } +# title:b_tiande.title_province = { add_great_building = the_great_wall_01 } +# +# title:b_jincheng.title_province = { add_great_building = the_great_wall_02 } +# title:b_huichuan.title_province = { add_great_building = the_great_wall_02 } +# title:b_huairong_2.title_province = { add_great_building = the_great_wall_02 } +# title:b_pinggao.title_province = { add_great_building = the_great_wall_02 } +# title:b_huaide.title_province = { add_great_building = the_great_wall_02 } +# title:b_fangqu.title_province = { add_great_building = the_great_wall_02 } +# title:b_huaian_2.title_province = { add_great_building = the_great_wall_02 } +# title:b_luoyuan.title_province = { add_great_building = the_great_wall_02 } +# title:b_hengshan_3.title_province = { add_great_building = the_great_wall_02 } +# title:b_wuyan.title_province = { add_great_building = the_great_wall_02 } +# title:b_ningshuo.title_province = { add_great_building = the_great_wall_02 } +# title:b_longquan.title_province = { add_great_building = the_great_wall_02 } +# title:b_rulin.title_province = { add_great_building = the_great_wall_02 } +# title:b_kaiguang.title_province = { add_great_building = the_great_wall_02 } +# title:b_linzhou_yincheng.title_province = { add_great_building = the_great_wall_02 } +# title:b_xiazhou_dejing_east.title_province = { add_great_building = the_great_wall_02 } +# +# title:b_xuande.title_province = { add_great_building = the_great_wall_03 } +# title:b_baishui.title_province = { add_great_building = the_great_wall_03 } +# title:b_rouxuan.title_province = { add_great_building = the_great_wall_03 } +# title:b_cirlxj_yangcheng.title_province = { add_great_building = the_great_wall_03 } +# +# ### COA ### +# if = { +# limit = { +# game_start_date <= 1000.1.1 +# } +# title:e_scandinavia = { set_coa = e_scandinavia_norse } +# title:k_sweden = { set_coa = k_sweden_norse } +# title:d_svealand = { set_coa = d_svealand_norse } +# title:c_upland = { set_coa = c_upland_norse } +# title:c_gastrikland = { set_coa = c_gastrikland_norse } +# title:c_sodermannaland = { set_coa = c_sodermannaland_norse } +# title:c_aland = { set_coa = c_aland_norse } +# title:d_bergslagen = { set_coa = d_bergslagen_norse } +# title:c_vastmanland = { set_coa = c_vastmanland_norse } +# title:c_varmland = { set_coa = c_varmland_norse } +# title:c_dalarna = { set_coa = c_dalarna_norse } +# title:c_dalabergslagen = { set_coa = c_dalabergslagen_norse } +# title:d_vastergotland = { set_coa = d_vastergotland_norse } +# title:c_vastergotland = { set_coa = c_vastergotland_norse } +# title:c_skara = { set_coa = c_skara_norse } +# title:c_dal = { set_coa = c_dal_norse } +# title:c_nordmark = { set_coa = c_nordmark_norse } +# title:d_ostergotland = { set_coa = d_ostergotland_norse } +# title:c_ostergotland = { set_coa = c_ostergotland_norse } +# title:c_kinda = { set_coa = c_kinda_norse } +# title:c_narke = { set_coa = c_narke_norse } +# title:d_smaland = { set_coa = d_smaland_norse } +# title:c_more = { set_coa = c_more_norse } +# title:c_sevede = { set_coa = c_sevede_norse } +# title:c_varend = { set_coa = c_varend_norse } +# title:c_njudung = { set_coa = c_njudung_norse } +# title:c_finnveden = { set_coa = c_finnveden_norse } +# title:c_oland = { set_coa = c_oland_norse } +# title:d_norrland = { set_coa = d_norrland_norse } +# title:c_halsingland = { set_coa = c_halsingland_norse } +# title:c_medelpad = { set_coa = c_medelpad_norse } +# title:c_angermanland = { set_coa = c_angermanland_norse } +# title:d_gotland = { set_coa = d_gotland_norse } +# title:c_gutland = { set_coa = c_gutland_norse } +# title:k_norway = { set_coa = k_norway_norse } +# title:d_viken = { set_coa = d_viken_norse } +# title:c_vingulmork = { set_coa = c_vingulmork_norse } +# title:c_raniriki = { set_coa = c_raniriki_norse } +# title:c_vestfold = { set_coa = c_vestfold_norse } +# title:c_telemark = { set_coa = c_telemark_norse } +# title:d_agder = { set_coa = d_agder_norse } +# title:c_nedenes = { set_coa = c_nedenes_norse } +# title:c_agdeside = { set_coa = c_agdeside_norse } +# title:d_vestlandi = { set_coa = d_vestlandi_norse } +# title:c_rogalandi = { set_coa = c_rogalandi_norse } +# title:c_hordalandi = { set_coa = c_hordalandi_norse } +# title:c_sogn = { set_coa = c_sogn_norse } +# title:d_trandalog = { set_coa = d_trandalog_norse } +# title:c_trandheim = { set_coa = c_trandheim_norse } +# title:c_norwegian_more = { set_coa = c_norwegian_more_norse } +# title:c_firdafylki = { set_coa = c_firdafylki_norse } +# title:d_dalir = { set_coa = d_dalir_norse } +# title:c_hedmork = { set_coa = c_hedmork_norse } +# title:c_gudbrandsdalir = { set_coa = c_gudbrandsdalir_norse } +# title:c_eystridalir = { set_coa = c_eystridalir_norse } +# title:c_gauldala = { set_coa = c_gauldala_norse } +# title:d_halogaland = { set_coa = d_halogaland_norse } +# title:c_vastvag = { set_coa = c_vastvag_norse } +# title:c_bothin = { set_coa = c_bothin_norse } +# title:c_namdalfylki = { set_coa = c_namdalfylki_norse } +# title:d_iceland = { set_coa = d_iceland_norse } +# title:c_vestisland = { set_coa = c_vestisland_norse } +# title:c_nordrland = { set_coa = c_nordrland_norse } +# title:c_austisland = { set_coa = c_austisland_norse } +# title:c_sudurland = { set_coa = c_sudurland_norse } +# title:d_northern_isles = { set_coa = d_northern_isles_norse } +# title:c_orkney = { set_coa = c_orkney_norse } +# title:c_faereyar = { set_coa = c_faereyar_norse } +# title:c_shetland = { set_coa = c_shetland_norse } +# title:d_jamtland = { set_coa = d_jamtland_norse } +# title:c_jamtfir = { set_coa = c_jamtfir_norse } +# title:c_morarna = { set_coa = c_morarna_norse } +# title:c_helgum = { set_coa = c_helgum_norse } +# title:c_harjadalen = { set_coa = c_harjadalen_norse } +# title:k_denmark = { set_coa = k_denmark_norse } +# title:d_sjaelland = { set_coa = d_sjaelland_norse } +# title:c_sjaelland = { set_coa = c_sjaelland_norse } +# title:c_fyn = { set_coa = c_fyn_norse } +# title:c_lolland_falster = { set_coa = c_lolland_falster_norse } +# title:d_skane = { set_coa = d_skane_norse } +# title:c_skane = { set_coa = c_skane_norse } +# title:c_halland = { set_coa = c_halland_norse } +# title:c_bornholm = { set_coa = c_bornholm_norse } +# title:c_blekinge = { set_coa = c_blekinge_norse } +# title:d_jylland = { set_coa = d_jylland_norse } +# title:c_aarhus = { set_coa = c_aarhus_norse } +# title:c_viborg = { set_coa = c_viborg_norse } +# title:c_ringkobing = { set_coa = c_ringkobing_norse } +# title:c_aalborg = { set_coa = c_aalborg_norse } +# title:d_slesvig = { set_coa = d_slesvig_norse } +# title:c_slesvig = { set_coa = c_slesvig_norse } +# title:c_vorbasse = { set_coa = c_vorbasse_norse } +# title:c_ribe = { set_coa = c_ribe_norse } +# title:d_york = { set_coa = d_york_norse } +# title:c_east_riding = { set_coa = c_east_riding_norse } +# title:d_western_isles = { set_coa = d_western_isles_norse } +# title:c_inner_hebrides = { set_coa = c_inner_hebrides_norse } +# title:c_dublin = { set_coa = c_dublin_norse } +# title:c_argyll = { set_coa = c_argyll_norse } +# } +# if = { +# limit = { +# game_start_date >= 1067.12.25 +# } +# title:k_england = { set_coa = k_england_norman } +# } +# if = { +# limit = { +# game_start_date >= 938.1.1 +# } +# title:k_viet = { set_coa = k_dai_viet } +# } ### GRANDEUR ### #Royal Court: Set starting Grandeur to be the same as Expected @@ -1322,27 +1322,27 @@ on_game_start = { } } # DYNASTIC CYCLE SETUP - situation:dynastic_cycle ?= { - title:h_china = { - set_variable = { - name = years_since_imperial_examination - value = 0 - } - } - if = { - limit = { game_start_date < 868.1.1 } - tgp_set_wuking_element_effect = { ELEMENT = earth } # Tang - every_situation_sub_region = { - add_takeover_phase_points = { - phase = situation_dynastic_cycle_phase_chaos - points = 800 - } - } - } - else = { - tgp_set_wuking_element_effect = { ELEMENT = fire } # Song - } - } +# situation:dynastic_cycle ?= { +# title:h_china = { +# set_variable = { +# name = years_since_imperial_examination +# value = 0 +# } +# } +# if = { +# limit = { game_start_date < 868.1.1 } +# tgp_set_wuking_element_effect = { ELEMENT = earth } # Tang +# every_situation_sub_region = { +# add_takeover_phase_points = { +# phase = situation_dynastic_cycle_phase_chaos +# points = 800 +# } +# } +# } +# else = { +# tgp_set_wuking_element_effect = { ELEMENT = fire } # Song +# } +# } setup_tributaries_effect = yes # defined in 00_tributary_setup_effect.txt ### FERTILE LANDS ### @@ -2198,27 +2198,27 @@ on_game_start = { } } - # TGP: extra legitimacy for the Hegemon, so you don't fold over immediately - if = { - limit = { has_tgp_dlc_trigger = yes } - title:h_china.holder = { - # and even more for the Song, as they were in a pretty good shape on our start dates - if = { - limit = { - situation:dynastic_cycle ?= { - OR = { - situation_current_phase = situation_dynastic_cycle_phase_stability_expansion - situation_current_phase = situation_dynastic_cycle_phase_stability_advancement - } - } - } - add_legitimacy = 4500 - } - else = { - add_legitimacy = 3000 - } - } - } +# # TGP: extra legitimacy for the Hegemon, so you don't fold over immediately +# if = { +# limit = { has_tgp_dlc_trigger = yes } +# title:h_china.holder = { +# # and even more for the Song, as they were in a pretty good shape on our start dates +# if = { +# limit = { +# situation:dynastic_cycle ?= { +# OR = { +# situation_current_phase = situation_dynastic_cycle_phase_stability_expansion +# situation_current_phase = situation_dynastic_cycle_phase_stability_advancement +# } +# } +# } +# add_legitimacy = 4500 +# } +# else = { +# add_legitimacy = 3000 +# } +# } +# } ### TGP SILK ROAD INNOVATIONS tgp_silk_road_innovation_setup_effect = yes @@ -2694,16 +2694,16 @@ on_game_start_after_lobby = { } } } - ### INITIAL BUDGET CALC, ONE MORE AFTER THE EVERY_RULER ASSIGNS PROVINCE TYPES ### - if = { - limit = { - exists = title:h_china.holder - has_tgp_dlc_trigger = yes - } - title:h_china.holder ?= { - enact_treasury_budgets_init = yes - } - } +# ### INITIAL BUDGET CALC, ONE MORE AFTER THE EVERY_RULER ASSIGNS PROVINCE TYPES ### +# if = { +# limit = { +# exists = title:h_china.holder +# has_tgp_dlc_trigger = yes +# } +# title:h_china.holder ?= { +# enact_treasury_budgets_init = yes +# } +# } @@ -8120,441 +8120,441 @@ on_game_start_after_lobby = { } } } - ### TGP SETUP ### - if = { - limit = { has_tgp_dlc_trigger = yes } - ### JAPAN - - # History defaults e_japan to feudal + single heir so partial DLC / no AuH bookmarks load cleanly. - # Restore Ritsuryō Kampaku when All Under Heaven is active (must run before noble-family / bureaucracy setup). - if = { - limit = { has_dlc_feature = all_under_heaven } - title:e_japan.holder ?= { - # can_get_government for japan_administrative checks top_liege for japanese government OR this flag; independent Kampaku is neither until flagged. - if = { - limit = { - NOT = { government_has_flag = government_is_japan_administrative } - OR = { - has_government = feudal_government - has_government = japan_feudal_government - } - } - add_character_flag = tgp_japan_restore_japanese_government_flag - change_government = japan_administrative_government - remove_character_flag = tgp_japan_restore_japanese_government_flag - } - # Separate if (not else_if): first block can flip government same pass; law must still run for that case and for history Ritsuryō holders missing the law. - if = { - limit = { - government_has_flag = government_is_japan_administrative - NOT = { has_realm_law = japanese_regency_succession_law } - } - add_realm_law_skip_effects = japanese_regency_succession_law - } - } - } - - # Special variable that UI uses to display correct title - title:e_japan = { - # More starting house relations - holder = { - every_noble_family = { - holder.house ?= { - save_temporary_scope_as = house_temp - every_house_member = { - limit = { - is_married = yes - exists = primary_spouse.house - NOT = { - primary_spouse.house = { has_house_relation_with = scope:house_temp } - } - } - save_temporary_scope_as = member_temp - primary_spouse = { save_temporary_scope_as = spouse_temp } - house = { - change_house_relation_effect = { - HOUSE = scope:member_temp.primary_spouse.house - VALUE = house_relation_improve_minor_value - REASON = preexisting_marriage - CHAR = scope:member_temp - TARGET_CHAR = scope:spouse_temp - TITLE = scope:dummy_gender - } - } - } - } - } - } - } - - ### IMPERIAL FAMILY - title:k_chrysanthemum_throne.holder ?= { - save_scope_as = japanese_emperor - # Give him some cash - add_gold = monumental_gold_value - house = { - # ENSURE MEMBERS REMAIN IN COURT OF EMPEROR - every_house_member = { - limit = { - is_ruler = no - is_married = no - NOT = { liege = scope:japanese_emperor } - } - save_scope_as = imperial_family_member - scope:japanese_emperor = { add_courtier = scope:imperial_family_member } - } - } - # GET THOSE ROOKIE NUMBERS UP - dynasty = { - while = { - limit = { dynasty_prestige_level < high_dynasty_prestige_level } - add_dynasty_prestige_level = 1 - } - } - } - - ### DYNASTY TRACKING SETUP - japan_dynasty_tracker_setup_effect = yes - - - ### TGP NOBLE FAMILIES & DOMICILE SETUP ### - # Required due to landless top liege - title:e_japan.holder ?= { - add_realm_law_skip_effects = japanese_bureaucracy_1 - noble_family_title_realm_setup_effect = yes - every_vassal_or_below = { # Move Soryo domiciles to their own realm - limit = { - government_has_flag = government_is_japan_feudal - } - domicile ?= { move_domicile = owner.capital_province } - } - every_vassal_or_below = { # Move Ritsuryo domiciles to the capital - limit = { - government_has_flag = government_is_japan_administrative - } - domicile ?= { move_domicile = title:e_japan.holder.capital_province } - } - } - - if = { - limit = { - has_dlc_feature = all_under_heaven - exists = title:e_japan.holder - } - tgp_setup_historical_house_bloc_effect = yes - } - - - ### MANDALA - - #Starting Mandala Temple Complexes - #Dvaravati - province:10822 = { - add_great_building = mandala_capital_01 - if = { - limit = { - game_start_date >= 1066.1.1 - } - ruin_great_building = yes - } - add_to_global_variable_list = { # Add to list so it can be found by the PoI - name = mandala_poi_list - target = this - } - } - #Haripunjaya - province:11441 = { - add_great_building = mandala_capital_01 - add_to_global_variable_list = { # Add to list so it can be found by the PoI - name = mandala_poi_list - target = this - } - } - #Pagan - province:9550 = { - if = { - limit = { - game_start_date < 1066.1.1 - } - add_great_building = mandala_capital_01 - } - else_if = { - limit = { game_start_date >= 1066.1.1 } - add_great_building = mandala_capital_02 - } - add_to_global_variable_list = { # Add to list so it can be found by the PoI - name = mandala_poi_list - target = this - } - } - #Angkor - province:10816 = { - if = { - limit = { - game_start_date < 1066.1.1 - } - add_great_building = mandala_capital_01 - } - else_if = { - limit = { game_start_date > 1066.09.15 } - add_great_building = mandala_capital_03 - } - else = { - add_great_building = mandala_capital_02 - } - add_to_global_variable_list = { # Add to list so it can be found by the PoI - name = mandala_poi_list - target = this - } - } - #Srivijaya/Palembang - province:11296 = { - add_great_building = mandala_capital_02 - if = { - limit = { - game_start_date >= 1066.1.1 - } - ruin_great_building = yes #Could also be completely destroyed - almost nothing left today - } - add_to_global_variable_list = { # Add to list so it can be found by the PoI - name = mandala_poi_list - target = this - } - } - #Mataram - #Prambanan - province:11343 = { - add_great_building = mandala_capital_01 - if = { - limit = { - game_start_date >= 1066.1.1 - } - ruin_great_building = yes - } - add_to_global_variable_list = { # Add to list so it can be found by the PoI - name = mandala_poi_list - target = this - } - } - #Champa - #Indrapura - province:10830 = { - if = { - limit = { - game_start_date < 1066.1.1 - } - add_great_building = mandala_capital_01 - add_to_global_variable_list = { # Add to list so it can be found by the PoI - name = mandala_poi_list - target = this - } - } - } - #Vijaya - province:10827 = { - if = { - limit = { game_start_date >= 1066.1.1 } - add_great_building = mandala_capital_01 - add_to_global_variable_list = { # Add to list so it can be found by the PoI - name = mandala_poi_list - target = this - } - } - } - #Apply the Godking AI story to Maharajas with a temple - every_independent_ruler = { - limit = { government_has_flag = government_is_mandala } - if = { - limit = { - is_ai = yes - highest_held_title_tier >= tier_kingdom - has_mandala_capital_trigger = yes - trigger_if = { - limit = { has_ruined_mandala_capital_trigger = yes } - less_than_max_amount_of_mandala_capitals_trigger = yes - } - } - create_story = story_mandala - } - } - #Tai Migrations - every_county_in_region = { # save all migration counties to variable list - region = custom_tai_migration_target - add_to_global_variable_list = { - name = tai_migration_target_counties - target = this - } - } - every_in_global_list = { # give all saved migration county holders the story - variable = tai_migration_target_counties - holder = { - if = { - limit = { - NOT = { - any_owned_story = { - type = story_tai_migrations - } - } - has_tgp_dlc_trigger = yes - any_realm_province = { - culture = { - NOT = { - has_cultural_pillar = heritage_tai - } - } - } - } - create_story = story_tai_migrations - } - } - } - } - ### TGP MERIT AND TREASURY HANDOUT ON GAME START ### - if = { - limit = { - has_tgp_dlc_trigger = yes - } - title:h_china.holder ?= { - # If the hegemon is from the ruler designer, let's ensure we got decent starting values - if = { - limit = { - is_from_ruler_designer = yes - } - if = { - limit = { # If we don't have enough legitimacy, let's increase it - legitimacy < legitimacy_level_3 - } - add_legitimacy = { - value = legitimacy_level_3 - add = 100 # To provide a margin and not drop down a level too quickly - subtract = legitimacy - } - } - if = { - limit = { # If the royal court is enabled, set it to a decent default - has_royal_court = yes - } - set_current_court_grandeur = court_grandeur_minimum_expected - } - # Let's add some starting currencies - add_prestige = 1000 - add_piety = 500 - change_influence = 1000 - dynasty ?= { add_dynasty_prestige = 500 } - } - # Set Grand Chancellor as Chinese diarchy - try_start_diarchy = grand_secretariat - } - } - ### TGP KOREA SETUP - if = { - # Special variable that UI uses to display correct title - limit = { - exists = title:e_goryeo.holder - has_tgp_dlc_trigger = yes - game_start_date >= 1066.1.1 - } - # GORYEO GOVERNORSHIP SETUP - title:d_bukgye = { add_to_temporary_list = goryeo_military_provinces } - title:d_donggye = { add_to_temporary_list = goryeo_military_provinces } - title:d_yukju = { add_to_temporary_list = goryeo_military_provinces } - every_in_list = { - list = goryeo_military_provinces - limit = { - holder ?= { is_governor = yes } - } - holder = { - vassal_contract_set_obligation_level = { - type = meritocratic_provinces - level = meritocratic_province_military - } - add_realm_law_skip_effects = meritocratic_military_appointment_succession_law - } - } - } - else_if = { - limit = { - exists = title:k_silla.holder - has_tgp_dlc_trigger = yes - game_start_date = 867.1.1 - } - # SILLA GOVERNORSHIP SETUP - title:d_bukgye = { add_to_temporary_list = silla_military_provinces } - title:d_donggye = { add_to_temporary_list = silla_military_provinces } - title:d_yukju = { add_to_temporary_list = silla_military_provinces } - every_in_list = { - list = silla_military_provinces - limit = { - holder ?= { is_governor = yes } - } - holder = { - vassal_contract_set_obligation_level = { - type = meritocratic_provinces - level = meritocratic_province_military - } - add_realm_law_skip_effects = meritocratic_military_appointment_succession_law - } - } - } - ### TGP JAPAN SETUP - if = { - limit = { - exists = title:e_japan.holder - has_tgp_dlc_trigger = yes - } - title:c_chikuzen ?= { # Dazaifu - if = { - limit = { - holder ?= { is_governor = yes } - } - holder = { - vassal_contract_set_obligation_level = { - type = japan_administrative_provinces - level = japan_administrative_province_trade - } - } - } - } - title:d_hitakami ?= { add_to_temporary_list = japan_military_provinces } # Mutsu - title:d_nushiro ?= { add_to_temporary_list = japan_military_provinces } # Dewa - every_in_list = { - list = japan_military_provinces - limit = { - holder ?= { is_governor = yes } - } - holder = { - vassal_contract_set_obligation_level = { - type = japan_administrative_provinces - level = japan_administrative_province_military - } - add_realm_law_skip_effects = japanese_military_appointment_succession_law - } - } - if = { - limit = { - game_start_date >= 1066.1.1 - game_start_date < 1178.10.1 - } - title:e_japan.holder = { - trigger_event = tgp_japan_career.0001 - every_vassal = { - trigger_event = tgp_japan_career.0001 - } - } - } - } - ##TEACH CHINESE TO RELEVENT NOBLES### - title:e_japan.holder ?= { - add_to_list = holder_to_learn_chinese - } - title:e_goryeo.holder ?= { - add_to_list = holder_to_learn_chinese - } - title:h_china.holder ?= { - every_tributary = { - add_to_list = holder_to_learn_chinese - } - } +# ### TGP SETUP ### +# if = { +# limit = { has_tgp_dlc_trigger = yes } +# ### JAPAN +# +# # History defaults e_japan to feudal + single heir so partial DLC / no AuH bookmarks load cleanly. +# # Restore Ritsuryō Kampaku when All Under Heaven is active (must run before noble-family / bureaucracy setup). +# if = { +# limit = { has_dlc_feature = all_under_heaven } +# title:e_japan.holder ?= { +# # can_get_government for japan_administrative checks top_liege for japanese government OR this flag; independent Kampaku is neither until flagged. +# if = { +# limit = { +# NOT = { government_has_flag = government_is_japan_administrative } +# OR = { +# has_government = feudal_government +# has_government = japan_feudal_government +# } +# } +# add_character_flag = tgp_japan_restore_japanese_government_flag +# change_government = japan_administrative_government +# remove_character_flag = tgp_japan_restore_japanese_government_flag +# } +# # Separate if (not else_if): first block can flip government same pass; law must still run for that case and for history Ritsuryō holders missing the law. +# if = { +# limit = { +# government_has_flag = government_is_japan_administrative +# NOT = { has_realm_law = japanese_regency_succession_law } +# } +# add_realm_law_skip_effects = japanese_regency_succession_law +# } +# } +# } +# +# # Special variable that UI uses to display correct title +# title:e_japan = { +# # More starting house relations +# holder = { +# every_noble_family = { +# holder.house ?= { +# save_temporary_scope_as = house_temp +# every_house_member = { +# limit = { +# is_married = yes +# exists = primary_spouse.house +# NOT = { +# primary_spouse.house = { has_house_relation_with = scope:house_temp } +# } +# } +# save_temporary_scope_as = member_temp +# primary_spouse = { save_temporary_scope_as = spouse_temp } +# house = { +# change_house_relation_effect = { +# HOUSE = scope:member_temp.primary_spouse.house +# VALUE = house_relation_improve_minor_value +# REASON = preexisting_marriage +# CHAR = scope:member_temp +# TARGET_CHAR = scope:spouse_temp +# TITLE = scope:dummy_gender +# } +# } +# } +# } +# } +# } +# } +# +# ### IMPERIAL FAMILY +# title:k_chrysanthemum_throne.holder ?= { +# save_scope_as = japanese_emperor +# # Give him some cash +# add_gold = monumental_gold_value +# house = { +# # ENSURE MEMBERS REMAIN IN COURT OF EMPEROR +# every_house_member = { +# limit = { +# is_ruler = no +# is_married = no +# NOT = { liege = scope:japanese_emperor } +# } +# save_scope_as = imperial_family_member +# scope:japanese_emperor = { add_courtier = scope:imperial_family_member } +# } +# } +# # GET THOSE ROOKIE NUMBERS UP +# dynasty = { +# while = { +# limit = { dynasty_prestige_level < high_dynasty_prestige_level } +# add_dynasty_prestige_level = 1 +# } +# } +# } +# +# ### DYNASTY TRACKING SETUP +# japan_dynasty_tracker_setup_effect = yes +# +# +# ### TGP NOBLE FAMILIES & DOMICILE SETUP ### +# # Required due to landless top liege +# title:e_japan.holder ?= { +# add_realm_law_skip_effects = japanese_bureaucracy_1 +# noble_family_title_realm_setup_effect = yes +# every_vassal_or_below = { # Move Soryo domiciles to their own realm +# limit = { +# government_has_flag = government_is_japan_feudal +# } +# domicile ?= { move_domicile = owner.capital_province } +# } +# every_vassal_or_below = { # Move Ritsuryo domiciles to the capital +# limit = { +# government_has_flag = government_is_japan_administrative +# } +# domicile ?= { move_domicile = title:e_japan.holder.capital_province } +# } +# } +# +# if = { +# limit = { +# has_dlc_feature = all_under_heaven +# exists = title:e_japan.holder +# } +# tgp_setup_historical_house_bloc_effect = yes +# } +# +# +# ### MANDALA +# +# #Starting Mandala Temple Complexes +# #Dvaravati +# province:10822 = { +# add_great_building = mandala_capital_01 +# if = { +# limit = { +# game_start_date >= 1066.1.1 +# } +# ruin_great_building = yes +# } +# add_to_global_variable_list = { # Add to list so it can be found by the PoI +# name = mandala_poi_list +# target = this +# } +# } +# #Haripunjaya +# province:11441 = { +# add_great_building = mandala_capital_01 +# add_to_global_variable_list = { # Add to list so it can be found by the PoI +# name = mandala_poi_list +# target = this +# } +# } +# #Pagan +# province:9550 = { +# if = { +# limit = { +# game_start_date < 1066.1.1 +# } +# add_great_building = mandala_capital_01 +# } +# else_if = { +# limit = { game_start_date >= 1066.1.1 } +# add_great_building = mandala_capital_02 +# } +# add_to_global_variable_list = { # Add to list so it can be found by the PoI +# name = mandala_poi_list +# target = this +# } +# } +# #Angkor +# province:10816 = { +# if = { +# limit = { +# game_start_date < 1066.1.1 +# } +# add_great_building = mandala_capital_01 +# } +# else_if = { +# limit = { game_start_date > 1066.09.15 } +# add_great_building = mandala_capital_03 +# } +# else = { +# add_great_building = mandala_capital_02 +# } +# add_to_global_variable_list = { # Add to list so it can be found by the PoI +# name = mandala_poi_list +# target = this +# } +# } +# #Srivijaya/Palembang +# province:11296 = { +# add_great_building = mandala_capital_02 +# if = { +# limit = { +# game_start_date >= 1066.1.1 +# } +# ruin_great_building = yes #Could also be completely destroyed - almost nothing left today +# } +# add_to_global_variable_list = { # Add to list so it can be found by the PoI +# name = mandala_poi_list +# target = this +# } +# } +# #Mataram +# #Prambanan +# province:11343 = { +# add_great_building = mandala_capital_01 +# if = { +# limit = { +# game_start_date >= 1066.1.1 +# } +# ruin_great_building = yes +# } +# add_to_global_variable_list = { # Add to list so it can be found by the PoI +# name = mandala_poi_list +# target = this +# } +# } +# #Champa +# #Indrapura +# province:10830 = { +# if = { +# limit = { +# game_start_date < 1066.1.1 +# } +# add_great_building = mandala_capital_01 +# add_to_global_variable_list = { # Add to list so it can be found by the PoI +# name = mandala_poi_list +# target = this +# } +# } +# } +# #Vijaya +# province:10827 = { +# if = { +# limit = { game_start_date >= 1066.1.1 } +# add_great_building = mandala_capital_01 +# add_to_global_variable_list = { # Add to list so it can be found by the PoI +# name = mandala_poi_list +# target = this +# } +# } +# } +# #Apply the Godking AI story to Maharajas with a temple +# every_independent_ruler = { +# limit = { government_has_flag = government_is_mandala } +# if = { +# limit = { +# is_ai = yes +# highest_held_title_tier >= tier_kingdom +# has_mandala_capital_trigger = yes +# trigger_if = { +# limit = { has_ruined_mandala_capital_trigger = yes } +# less_than_max_amount_of_mandala_capitals_trigger = yes +# } +# } +# create_story = story_mandala +# } +# } +# #Tai Migrations +# every_county_in_region = { # save all migration counties to variable list +# region = custom_tai_migration_target +# add_to_global_variable_list = { +# name = tai_migration_target_counties +# target = this +# } +# } +# every_in_global_list = { # give all saved migration county holders the story +# variable = tai_migration_target_counties +# holder = { +# if = { +# limit = { +# NOT = { +# any_owned_story = { +# type = story_tai_migrations +# } +# } +# has_tgp_dlc_trigger = yes +# any_realm_province = { +# culture = { +# NOT = { +# has_cultural_pillar = heritage_tai +# } +# } +# } +# } +# create_story = story_tai_migrations +# } +# } +# } +# } +# ### TGP MERIT AND TREASURY HANDOUT ON GAME START ### +# if = { +# limit = { +# has_tgp_dlc_trigger = yes +# } +# title:h_china.holder ?= { +# # If the hegemon is from the ruler designer, let's ensure we got decent starting values +# if = { +# limit = { +# is_from_ruler_designer = yes +# } +# if = { +# limit = { # If we don't have enough legitimacy, let's increase it +# legitimacy < legitimacy_level_3 +# } +# add_legitimacy = { +# value = legitimacy_level_3 +# add = 100 # To provide a margin and not drop down a level too quickly +# subtract = legitimacy +# } +# } +# if = { +# limit = { # If the royal court is enabled, set it to a decent default +# has_royal_court = yes +# } +# set_current_court_grandeur = court_grandeur_minimum_expected +# } +# # Let's add some starting currencies +# add_prestige = 1000 +# add_piety = 500 +# change_influence = 1000 +# dynasty ?= { add_dynasty_prestige = 500 } +# } +# # Set Grand Chancellor as Chinese diarchy +# try_start_diarchy = grand_secretariat +# } +# } +# ### TGP KOREA SETUP +# if = { +# # Special variable that UI uses to display correct title +# limit = { +# exists = title:e_goryeo.holder +# has_tgp_dlc_trigger = yes +# game_start_date >= 1066.1.1 +# } +# # GORYEO GOVERNORSHIP SETUP +# title:d_bukgye = { add_to_temporary_list = goryeo_military_provinces } +# title:d_donggye = { add_to_temporary_list = goryeo_military_provinces } +# title:d_yukju = { add_to_temporary_list = goryeo_military_provinces } +# every_in_list = { +# list = goryeo_military_provinces +# limit = { +# holder ?= { is_governor = yes } +# } +# holder = { +# vassal_contract_set_obligation_level = { +# type = meritocratic_provinces +# level = meritocratic_province_military +# } +# add_realm_law_skip_effects = meritocratic_military_appointment_succession_law +# } +# } +# } +# else_if = { +# limit = { +# exists = title:k_silla.holder +# has_tgp_dlc_trigger = yes +# game_start_date = 867.1.1 +# } +# # SILLA GOVERNORSHIP SETUP +# title:d_bukgye = { add_to_temporary_list = silla_military_provinces } +# title:d_donggye = { add_to_temporary_list = silla_military_provinces } +# title:d_yukju = { add_to_temporary_list = silla_military_provinces } +# every_in_list = { +# list = silla_military_provinces +# limit = { +# holder ?= { is_governor = yes } +# } +# holder = { +# vassal_contract_set_obligation_level = { +# type = meritocratic_provinces +# level = meritocratic_province_military +# } +# add_realm_law_skip_effects = meritocratic_military_appointment_succession_law +# } +# } +# } +# ### TGP JAPAN SETUP +# if = { +# limit = { +# exists = title:e_japan.holder +# has_tgp_dlc_trigger = yes +# } +# title:c_chikuzen ?= { # Dazaifu +# if = { +# limit = { +# holder ?= { is_governor = yes } +# } +# holder = { +# vassal_contract_set_obligation_level = { +# type = japan_administrative_provinces +# level = japan_administrative_province_trade +# } +# } +# } +# } +# title:d_hitakami ?= { add_to_temporary_list = japan_military_provinces } # Mutsu +# title:d_nushiro ?= { add_to_temporary_list = japan_military_provinces } # Dewa +# every_in_list = { +# list = japan_military_provinces +# limit = { +# holder ?= { is_governor = yes } +# } +# holder = { +# vassal_contract_set_obligation_level = { +# type = japan_administrative_provinces +# level = japan_administrative_province_military +# } +# add_realm_law_skip_effects = japanese_military_appointment_succession_law +# } +# } +# if = { +# limit = { +# game_start_date >= 1066.1.1 +# game_start_date < 1178.10.1 +# } +# title:e_japan.holder = { +# trigger_event = tgp_japan_career.0001 +# every_vassal = { +# trigger_event = tgp_japan_career.0001 +# } +# } +# } +# } +# ##TEACH CHINESE TO RELEVENT NOBLES### +# title:e_japan.holder ?= { +# add_to_list = holder_to_learn_chinese +# } +# title:e_goryeo.holder ?= { +# add_to_list = holder_to_learn_chinese +# } +# title:h_china.holder ?= { +# every_tributary = { +# add_to_list = holder_to_learn_chinese +# } +# } every_in_list = { list = holder_to_learn_chinese tgp_learn_chinese_effect_game_start = yes diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index c8c509b0..3f52a00f 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -64,28 +64,28 @@ on_title_destroyed = { frankokratia_latin_emp_end_msg_effect = yes } #Create byz collapse variable that defines anarchy period - else_if = { - limit = { - scope:landed_title = { - this = title:e_byzantium - } - } - if = { - limit = { - exists = global_var:byz_collapse_counter - } - remove_global_variable = byz_collapse_counter - } - set_global_variable = { - name = byz_collapse_counter - value = { - value = current_year - add = 100 - } - } - # Silk Road prosperity gets hit if Byzantium dies - tgp_silk_road_byzantium_destroyed_effect = yes - } +# else_if = { +# limit = { +# scope:landed_title = { +# this = title:e_byzantium +# } +# } +# if = { +# limit = { +# exists = global_var:byz_collapse_counter +# } +# remove_global_variable = byz_collapse_counter +# } +# set_global_variable = { +# name = byz_collapse_counter +# value = { +# value = current_year +# add = 100 +# } +# } +# # Silk Road prosperity gets hit if Byzantium dies +# tgp_silk_road_byzantium_destroyed_effect = yes +# } else_if = { limit = { scope:landed_title = title:h_china @@ -107,44 +107,44 @@ on_title_destroyed = { reset_title_name = yes } } - else_if = { # Danelaw-England partition calc. - limit = { - # Partition must be active. - exists = global_var:partition_active_danelaw - # And the destroyed title must be one of the two partitioned entities. - OR = { - scope:landed_title = title:k_england - scope:landed_title = title:k_danelaw - } - } - # If k_england has been destroyed, set k_danelaw as the de jure inheritor. - if = { - limit = { scope:landed_title = title:k_england } - title:k_danelaw = { save_scope_as = partition_winner } - # Try to grab the old holder for down the line. - if = { - limit = { - exists = this - is_alive = yes - } - save_scope_as = loser - } - } - # If k_danelaw has been destroyed, set k_england as the de jure inheritor. - if = { - limit = { scope:landed_title = title:k_danelaw } - title:k_england = { save_scope_as = partition_winner } - if = { - limit = { - exists = this - is_alive = yes - } - save_scope_as = loser - } - } - # Either way, trigger the maintenance event. - trigger_event = british_isles.1041 - } +# else_if = { # Danelaw-England partition calc. +# limit = { +# # Partition must be active. +# exists = global_var:partition_active_danelaw +# # And the destroyed title must be one of the two partitioned entities. +# OR = { +# scope:landed_title = title:k_england +# scope:landed_title = title:k_danelaw +# } +# } +# # If k_england has been destroyed, set k_danelaw as the de jure inheritor. +# if = { +# limit = { scope:landed_title = title:k_england } +# title:k_danelaw = { save_scope_as = partition_winner } +# # Try to grab the old holder for down the line. +# if = { +# limit = { +# exists = this +# is_alive = yes +# } +# save_scope_as = loser +# } +# } +# # If k_danelaw has been destroyed, set k_england as the de jure inheritor. +# if = { +# limit = { scope:landed_title = title:k_danelaw } +# title:k_england = { save_scope_as = partition_winner } +# if = { +# limit = { +# exists = this +# is_alive = yes +# } +# save_scope_as = loser +# } +# } +# # Either way, trigger the maintenance event. +# trigger_event = british_isles.1041 +# } # Safety against invalid house bloc members else_if = { limit = { @@ -1325,31 +1325,31 @@ on_title_gain = { tier >= tier_empire } } - # Byzantine-only: The Patriarch refuses to crown you as new emperor because you have a criminal trait (e.g. kinslayer) - if = { - limit = { - valid_for_byz_emperor_content_trigger = yes - has_ep3_dlc_trigger = yes - exists = root.faith.religious_head - this != faith.religious_head - faith.religious_head = { - opinion = { - target = root - value <= 0 - } - location = root.location - } - has_any_criminal_trait_in_faith_trigger = { - CHARACTER = root - FAITH = root.faith - } - NOT = { has_character_flag = has_had_ep3_2020 } - } - trigger_event = { - id = ep3_emperor_yearly.2020 - days = 1 - } - } +# # Byzantine-only: The Patriarch refuses to crown you as new emperor because you have a criminal trait (e.g. kinslayer) +# if = { +# limit = { +# valid_for_byz_emperor_content_trigger = yes +# has_ep3_dlc_trigger = yes +# exists = root.faith.religious_head +# this != faith.religious_head +# faith.religious_head = { +# opinion = { +# target = root +# value <= 0 +# } +# location = root.location +# } +# has_any_criminal_trait_in_faith_trigger = { +# CHARACTER = root +# FAITH = root.faith +# } +# NOT = { has_character_flag = has_had_ep3_2020 } +# } +# trigger_event = { +# id = ep3_emperor_yearly.2020 +# days = 1 +# } +# } ### EP3 Admin Emperor Flavor ### if = { limit = { @@ -1378,303 +1378,303 @@ on_title_gain = { days = 5 } } - #Byzantium is reborn! - if = { - limit = { - scope:title = { - this = title:e_byzantium - } - exists = global_var:byz_collapse_counter - } - save_scope_as = byz_emperor - title:e_byzantium = { - every_in_de_jure_hierarchy = { - limit = { - tier <= tier_kingdom - tier >= tier_county - is_title_created = yes - exists = holder - } - if = { - limit = { - holder ?= { - is_alive = yes - NOR = { - is_in_list = byz_return_notify - any_held_title = { - this = title:e_byzantium - } - } - } - } - holder = { - add_to_list = byz_return_notify - } - } - } - } - title:e_latin_empire = { - every_in_de_jure_hierarchy = { - limit = { - tier <= tier_kingdom - tier >= tier_county - is_title_created = yes - exists = holder - } - if = { - limit = { - holder = { - is_alive = yes - NOR = { - is_in_list = byz_return_notify - any_held_title = { - this = title:e_byzantium - } - } - } - } - holder = { - add_to_list = byz_return_notify - } - } - } - } - every_in_list = { - list = byz_return_notify - trigger_event = ep3_frankokratia_events.0130 - } - remove_global_variable = byz_collapse_counter - } +# #Byzantium is reborn! +# if = { +# limit = { +# scope:title = { +# this = title:e_byzantium +# } +# exists = global_var:byz_collapse_counter +# } +# save_scope_as = byz_emperor +# title:e_byzantium = { +# every_in_de_jure_hierarchy = { +# limit = { +# tier <= tier_kingdom +# tier >= tier_county +# is_title_created = yes +# exists = holder +# } +# if = { +# limit = { +# holder ?= { +# is_alive = yes +# NOR = { +# is_in_list = byz_return_notify +# any_held_title = { +# this = title:e_byzantium +# } +# } +# } +# } +# holder = { +# add_to_list = byz_return_notify +# } +# } +# } +# } +# title:e_latin_empire = { +# every_in_de_jure_hierarchy = { +# limit = { +# tier <= tier_kingdom +# tier >= tier_county +# is_title_created = yes +# exists = holder +# } +# if = { +# limit = { +# holder = { +# is_alive = yes +# NOR = { +# is_in_list = byz_return_notify +# any_held_title = { +# this = title:e_byzantium +# } +# } +# } +# } +# holder = { +# add_to_list = byz_return_notify +# } +# } +# } +# } +# every_in_list = { +# list = byz_return_notify +# trigger_event = ep3_frankokratia_events.0130 +# } +# remove_global_variable = byz_collapse_counter +# } # TGP CHINA - else_if = { - limit = { - scope:title = title:h_china - } - # When conquering China - Change to conquest phase - if = { - limit = { - OR = { - root.dynasty != scope:previous_holder.dynasty - is_lowborn = yes # in the rare instance that a lowborn theocrat reunites China - } - } - if = { - limit = { - is_valid_celestial_dynasty = no - } - situation:dynastic_cycle = { - situation_top_sub_region = { - change_phase = { phase = situation_dynastic_cycle_phase_instability_conquest } - } - } - } - else_if = { - limit = { - situation:dynastic_cycle ?= { - situation_current_phase = situation_dynastic_cycle_phase_instability_conquest - } - } - situation:dynastic_cycle = { - situation_top_sub_region = { - change_phase = { phase = situation_dynastic_cycle_phase_instability } - } - } - } - } - # When inheriting China - Move towards instability/chaotic phase - if = { - limit = { - root.house != scope:previous_holder.house - current_date_is_start_date_trigger = no # We check this to avoid potentially triggering this immediately on game start - } - situation:dynastic_cycle = { - if = { - limit = { - situation_top_has_catalyst = catalyst_new_dynasty_inherits - } - trigger_situation_catalyst = catalyst_new_dynasty_inherits - } - } - } - # Clear the Strengthen Capital great project cooldown - situation:dynastic_cycle ?= { - if = { - limit = { has_variable = gp_strengthen_capital_cooldown } - remove_variable = gp_strengthen_capital_cooldown - } - } - #setup Grand Secretariat - if = { - limit = { - has_dlc_feature = all_under_heaven - NOT = { has_diarchy_type = grand_secretariat } - } - if = {# Clear out any old diarchy - limit = { has_active_diarchy = yes } - end_diarchy = yes - } - if = { - limit = { - has_realm_law = grand_chancellor_law - exists = title:h_china.holder.cp:councillor_chancellor - } - try_start_diarchy = grand_secretariat - set_diarch = title:h_china.holder.cp:councillor_chancellor - } - else_if = { - limit = { - has_realm_law = grand_marshal_law - exists = title:h_china.holder.cp:minister_grand_marshal - } - try_start_diarchy = grand_secretariat - set_diarch = title:h_china.holder.cp:minister_grand_marshal - } - else_if = { - limit = { - exists = title:h_china.holder.cp:councillor_spymaster - } - try_start_diarchy = grand_secretariat - set_diarch = title:h_china.holder.cp:councillor_spymaster - } - } - root.house.house_head.domicile ?= { - set_family_accomplishment_effect = { ACCOMPLISHMENT = family_accomplishment_dynasty } - } - } - # left them in enum since we can not avoid touch here with encapsulated macro - else_if = { - limit = { - OR = { - scope:title = title:e_minister_chancellor - scope:title = title:e_minister_censor - scope:title = title:e_minister_grand_marshal - scope:title = title:e_minister_of_personnel - scope:title = title:e_minister_of_revenue - scope:title = title:e_minister_of_rites - scope:title = title:e_minister_of_war - scope:title = title:e_minister_of_justice - scope:title = title:e_minister_of_works - } - } - # set up the council holder as dejure liege of the ministry title, as this effect is not called with the same scope as council onactions - scope:title.de_jure_liege.holder = { - save_scope_as = councillor_liege - } - # If we get a minister title, make sure we set things up correctly - switch = { - trigger = scope:title - title:e_minister_chancellor = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_chancellor MINISTER_POSITION = councillor_chancellor } - } - title:e_minister_censor = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_censor MINISTER_POSITION = councillor_spymaster } - } - title:e_minister_grand_marshal = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_grand_marshal MINISTER_POSITION = minister_grand_marshal } - } - title:e_minister_of_personnel = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_personnel MINISTER_POSITION = minister_personnel } - } - title:e_minister_of_revenue = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_revenue MINISTER_POSITION = councillor_steward } - } - title:e_minister_of_rites = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_rites MINISTER_POSITION = councillor_court_chaplain } - } - title:e_minister_of_war = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_war MINISTER_POSITION = councillor_marshal } - } - title:e_minister_of_justice = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_justice MINISTER_POSITION = minister_justice } - } - title:e_minister_of_works = { - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_works MINISTER_POSITION = minister_works } - } - } - } - # TGP JAPAN - else_if = { - limit = { scope:title = title:e_japan } - # TGP RETIRED EMPEROR - if = { - limit = { - exists = title:e_japan.var:administrative_ui_special_title - has_title = title:e_japan.var:administrative_ui_special_title - } - # Flavourization setup - title:e_japan = { remove_variable = shogun_flag } - remove_character_flag = shogun_flag - if = { # Flavourization setup - limit = { has_global_variable = tenno_restored } - title:e_japan = { set_variable = ceremonial_liege_flag } - add_character_flag = ceremonial_liege_flag - trigger_event = { - id = tgp_japan_general.9100 - days = 1 - } - } - else = { # Event to abdicate and become Joko - trigger_event = { - id = tgp_japan_general.9120 - days = 1 - } - } - } - # TGP SHOGUN - else_if = { - limit = { - has_government = japan_feudal_government - has_global_variable = shogunate_established - } - title:e_japan = { remove_variable = ceremonial_liege_flag } - remove_character_flag = ceremonial_liege_flag - title:e_japan = { set_variable = shogun_flag } - add_character_flag = shogun_flag - } - # TGP KAMPAKU - else = { - title:e_japan = { remove_variable = ceremonial_liege_flag } - remove_character_flag = ceremonial_liege_flag - title:e_japan = { remove_variable = shogun_flag } - remove_character_flag = shogun_flag - } - # Japanese regent laws - if = { - limit = { - tgp_realm_has_ceremonial_liege_trigger = yes - government_is_japanese_trigger = yes - NOR = { - has_global_variable = shogunate_established - has_global_variable = tenno_restored - } - } - if = { - limit = { - government_has_flag = government_is_japan_administrative - NOT = { has_realm_law = japanese_regency_succession_law } - } - add_realm_law_skip_effects = japanese_regency_succession_law - } - else_if = { - limit = { - government_has_flag = government_is_japan_feudal - has_realm_law = japanese_regency_succession_law - } - remove_realm_law = japanese_regency_succession_law - } - } - } - # ROME - else_if = { - limit = { - OR = { - scope:title = title:h_roman_empire - scope:title = title:h_eastern_roman_empire - } - NOT = { has_trait = augustus } - } - trigger_event = roman_restoration.0005 - } +# else_if = { +# limit = { +# scope:title = title:h_china +# } +# # When conquering China - Change to conquest phase +# if = { +# limit = { +# OR = { +# root.dynasty != scope:previous_holder.dynasty +# is_lowborn = yes # in the rare instance that a lowborn theocrat reunites China +# } +# } +# if = { +# limit = { +# is_valid_celestial_dynasty = no +# } +# situation:dynastic_cycle = { +# situation_top_sub_region = { +# change_phase = { phase = situation_dynastic_cycle_phase_instability_conquest } +# } +# } +# } +# else_if = { +# limit = { +# situation:dynastic_cycle ?= { +# situation_current_phase = situation_dynastic_cycle_phase_instability_conquest +# } +# } +# situation:dynastic_cycle = { +# situation_top_sub_region = { +# change_phase = { phase = situation_dynastic_cycle_phase_instability } +# } +# } +# } +# } +# # When inheriting China - Move towards instability/chaotic phase +# if = { +# limit = { +# root.house != scope:previous_holder.house +# current_date_is_start_date_trigger = no # We check this to avoid potentially triggering this immediately on game start +# } +# situation:dynastic_cycle = { +# if = { +# limit = { +# situation_top_has_catalyst = catalyst_new_dynasty_inherits +# } +# trigger_situation_catalyst = catalyst_new_dynasty_inherits +# } +# } +# } +# # Clear the Strengthen Capital great project cooldown +# situation:dynastic_cycle ?= { +# if = { +# limit = { has_variable = gp_strengthen_capital_cooldown } +# remove_variable = gp_strengthen_capital_cooldown +# } +# } +# #setup Grand Secretariat +# if = { +# limit = { +# has_dlc_feature = all_under_heaven +# NOT = { has_diarchy_type = grand_secretariat } +# } +# if = {# Clear out any old diarchy +# limit = { has_active_diarchy = yes } +# end_diarchy = yes +# } +# if = { +# limit = { +# has_realm_law = grand_chancellor_law +# exists = title:h_china.holder.cp:councillor_chancellor +# } +# try_start_diarchy = grand_secretariat +# set_diarch = title:h_china.holder.cp:councillor_chancellor +# } +# else_if = { +# limit = { +# has_realm_law = grand_marshal_law +# exists = title:h_china.holder.cp:minister_grand_marshal +# } +# try_start_diarchy = grand_secretariat +# set_diarch = title:h_china.holder.cp:minister_grand_marshal +# } +# else_if = { +# limit = { +# exists = title:h_china.holder.cp:councillor_spymaster +# } +# try_start_diarchy = grand_secretariat +# set_diarch = title:h_china.holder.cp:councillor_spymaster +# } +# } +# root.house.house_head.domicile ?= { +# set_family_accomplishment_effect = { ACCOMPLISHMENT = family_accomplishment_dynasty } +# } +# } +# # left them in enum since we can not avoid touch here with encapsulated macro +# else_if = { +# limit = { +# OR = { +# scope:title = title:e_minister_chancellor +# scope:title = title:e_minister_censor +# scope:title = title:e_minister_grand_marshal +# scope:title = title:e_minister_of_personnel +# scope:title = title:e_minister_of_revenue +# scope:title = title:e_minister_of_rites +# scope:title = title:e_minister_of_war +# scope:title = title:e_minister_of_justice +# scope:title = title:e_minister_of_works +# } +# } +# # set up the council holder as dejure liege of the ministry title, as this effect is not called with the same scope as council onactions +# scope:title.de_jure_liege.holder = { +# save_scope_as = councillor_liege +# } +# # If we get a minister title, make sure we set things up correctly +# switch = { +# trigger = scope:title +# title:e_minister_chancellor = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_chancellor MINISTER_POSITION = councillor_chancellor } +# } +# title:e_minister_censor = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_censor MINISTER_POSITION = councillor_spymaster } +# } +# title:e_minister_grand_marshal = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_grand_marshal MINISTER_POSITION = minister_grand_marshal } +# } +# title:e_minister_of_personnel = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_of_personnel MINISTER_POSITION = minister_personnel } +# } +# title:e_minister_of_revenue = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_of_revenue MINISTER_POSITION = councillor_steward } +# } +# title:e_minister_of_rites = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_of_rites MINISTER_POSITION = councillor_court_chaplain } +# } +# title:e_minister_of_war = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_of_war MINISTER_POSITION = councillor_marshal } +# } +# title:e_minister_of_justice = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_of_justice MINISTER_POSITION = minister_justice } +# } +# title:e_minister_of_works = { +# got_minister_position_effect = { MINISTER_TITLE = e_minister_of_works MINISTER_POSITION = minister_works } +# } +# } +# } +# # TGP JAPAN +# else_if = { +# limit = { scope:title = title:e_japan } +# # TGP RETIRED EMPEROR +# if = { +# limit = { +# exists = title:e_japan.var:administrative_ui_special_title +# has_title = title:e_japan.var:administrative_ui_special_title +# } +# # Flavourization setup +# title:e_japan = { remove_variable = shogun_flag } +# remove_character_flag = shogun_flag +# if = { # Flavourization setup +# limit = { has_global_variable = tenno_restored } +# title:e_japan = { set_variable = ceremonial_liege_flag } +# add_character_flag = ceremonial_liege_flag +# trigger_event = { +# id = tgp_japan_general.9100 +# days = 1 +# } +# } +# else = { # Event to abdicate and become Joko +# trigger_event = { +# id = tgp_japan_general.9120 +# days = 1 +# } +# } +# } +# # TGP SHOGUN +# else_if = { +# limit = { +# has_government = japan_feudal_government +# has_global_variable = shogunate_established +# } +# title:e_japan = { remove_variable = ceremonial_liege_flag } +# remove_character_flag = ceremonial_liege_flag +# title:e_japan = { set_variable = shogun_flag } +# add_character_flag = shogun_flag +# } +# # TGP KAMPAKU +# else = { +# title:e_japan = { remove_variable = ceremonial_liege_flag } +# remove_character_flag = ceremonial_liege_flag +# title:e_japan = { remove_variable = shogun_flag } +# remove_character_flag = shogun_flag +# } +# # Japanese regent laws +# if = { +# limit = { +# tgp_realm_has_ceremonial_liege_trigger = yes +# government_is_japanese_trigger = yes +# NOR = { +# has_global_variable = shogunate_established +# has_global_variable = tenno_restored +# } +# } +# if = { +# limit = { +# government_has_flag = government_is_japan_administrative +# NOT = { has_realm_law = japanese_regency_succession_law } +# } +# add_realm_law_skip_effects = japanese_regency_succession_law +# } +# else_if = { +# limit = { +# government_has_flag = government_is_japan_feudal +# has_realm_law = japanese_regency_succession_law +# } +# remove_realm_law = japanese_regency_succession_law +# } +# } +# } +# # ROME +# else_if = { +# limit = { +# OR = { +# scope:title = title:h_roman_empire +# scope:title = title:h_eastern_roman_empire +# } +# NOT = { has_trait = augustus } +# } +# trigger_event = roman_restoration.0005 +# } #Mongol empire and GoK should lose other empires # You just inherited an Emperor title!! if = { @@ -4782,65 +4782,65 @@ on_vassal_change = { } ### If a minister becomes independent we destroy the ministry title - if = { - limit = { - # independent title - OR = { - liege ?= { tgp_has_access_to_ministry_trigger = no } - this = top_liege - } - - # has a ministry title that is not being swapped - tgp_has_minister_title = yes - } - every_held_title = { - limit = { - tgp_is_minister_title = yes - } - root = { destroy_title = prev } - } - } +# if = { +# limit = { +# # independent title +# OR = { +# liege ?= { tgp_has_access_to_ministry_trigger = no } +# this = top_liege +# } +# +# # has a ministry title that is not being swapped +# tgp_has_minister_title = yes +# } +# every_held_title = { +# limit = { +# tgp_is_minister_title = yes +# } +# root = { destroy_title = prev } +# } +# } # Make sure independent rulers and their vassals leave movements if they are part of the Dynastic Cycle - if = { - limit = { - exists = top_participant_group:dynastic_cycle - NOT = { - has_title = title:h_china - } - OR = { - liege = root - liege.top_participant_group:dynastic_cycle ?= { - participant_group_type = other_rulers - } - } - } - remove_variable = movement_member - every_vassal_or_below = { - remove_variable = movement_member - } - recalculate_participant_group = situation:dynastic_cycle - } +# if = { +# limit = { +# exists = top_participant_group:dynastic_cycle +# NOT = { +# has_title = title:h_china +# } +# OR = { +# liege = root +# liege.top_participant_group:dynastic_cycle ?= { +# participant_group_type = other_rulers +# } +# } +# } +# remove_variable = movement_member +# every_vassal_or_below = { +# remove_variable = movement_member +# } +# recalculate_participant_group = situation:dynastic_cycle +# } # Additional Flavor Title additional_flavor_check_effect = yes - if = { - limit = { - # We have become independent! - scope:old_liege != root - liege = root - tgp_use_chinese_naming_trigger = yes - tgp_chinese_naming_tier_trigger = yes - primary_title = { - has_custom_title_name = no # sanity check - } - OR = { - tgp_has_unique_chinese_naming = yes - primary_title = title:h_china # failsafe, in case this somehow ends up here - } - } - tgp_fire_china_realm_name_event_effect = yes - } +# if = { +# limit = { +# # We have become independent! +# scope:old_liege != root +# liege = root +# tgp_use_chinese_naming_trigger = yes +# tgp_chinese_naming_tier_trigger = yes +# primary_title = { +# has_custom_title_name = no # sanity check +# } +# OR = { +# tgp_has_unique_chinese_naming = yes +# primary_title = title:h_china # failsafe, in case this somehow ends up here +# } +# } +# tgp_fire_china_realm_name_event_effect = yes +# } if = { limit = { scope:old_liege = root diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index 3544dff8..3aae3d70 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -3,683 +3,683 @@ yearly_global_pulse = { effect = { # Historical character spawner - if = { - limit = { - NOT = { - has_game_rule = no_historical_characters - } - } - spawn_historical_characters_effect = yes - } - # Visigothic culture split - ## Deprecated; to reenable, remove always = no line & decomment the trigger_event section. - if = { - limit = { - always = no - current_date <= 920.1.1 # No need to check this in later starts - NOT = { has_global_variable = visigothic_culture_split } - current_date >= 850.1.1 - } - random = { - chance = 0 # No chance the first year of play if starting in 867 - modifier = { - add = 10 - current_date >= 868.1.1 - } - modifier = { - add = 10 # 20% chance - current_date >= 875.1.1 - } - modifier = { - add = 10 # 30% chance - current_date >= 890.1.1 - } - set_global_variable = { - name = visigothic_culture_split - value = yes - } - #trigger_event = { - #id = global_culture.0001 - #days = { 60 300 } - #} - } - } - # Norse culture split. - if = { - limit = { - current_date < 990.1.1 - NOT = { has_global_variable = norse_culture_split } - current_date >= 950.1.1 - } - random = { - chance = 10 - modifier = { - add = 20 # 30% chance - current_date >= 960.1.1 - } - modifier = { - add = 30 # 60% chance - current_date >= 970.1.1 - } - modifier = { - add = 40 # 100% chance - current_date >= 980.1.1 - } - set_global_variable = { - name = norse_culture_split - value = yes - } - trigger_event = { - id = global_culture.0011 - days = { 60 300 } - } - } - } - # Anglo-Saxon -> Scottish Culture Shift - if = { - limit = { - current_date <= 1066.1.1 # No need to check this in later starts - NOT = { has_global_variable = scottish_culture_creation } - current_date >= 867.1.1 - } - random = { - chance = 0 # No chance the first year of play if starting in 867 - modifier = { - add = 2 # 2% chance per year - current_date >= 900.1.1 - } - modifier = { - add = 8 # 10% chance per year - current_date >= 950.1.1 - } - modifier = { - add = 15 # 25% chance per year - current_date >= 1000.1.1 - } - set_global_variable = { - name = scottish_culture_creation - value = yes - } - trigger_event = { - id = global_culture.0031 - days = { 60 300 } - } - } - } - # Mongol Invasion - if = { limit = { has_game_rule = never_mongol_invasion } } - else_if = { - limit = { - has_game_rule = random_mongol_invasion - NOT = { has_global_variable = mongols_have_appeared } - #Greatest of khans hasn't come along - NOT = { has_global_variable = greatest_of_khans_title } - #Someone's not currently trying to be greatest of khans - NOT = { has_global_variable = mpo_gok_war_ongoing } - #Temujin dying prevents Mongol invasion for at least 50 years - NOT = { - has_global_variable = temujin_failed - } - } - random = { - chance = temujin_appearance_base_chance - modifier = { - factor = 0.25 - current_date < 1180.1.1 - } - modifier = { - add = 3 - current_date > 1200.1.1 - } - modifier = { - add = 5 - current_date > 1220.1.1 - } - modifier = { - add = 5 - current_date > 1235.1.1 - } - set_global_variable = { - name = mongols_have_appeared - value = yes - } - debug_log = "Attempting to spawn mongol invasion within 240 days" - trigger_event = { - id = mongol_invasion.0001 - days = { 2 240 } - } - } - } - else = { - if = { - limit = { - current_date > 1180.1.1 - current_date < 1250.1.1 - NOT = { has_global_variable = mongols_have_appeared } - #Greatest of khans hasn't come along - NOT = { has_global_variable = greatest_of_khans_title } - #Someone's not currently trying to be greatest of khans - NOT = { has_global_variable = mpo_gok_war_ongoing } - trigger_if = { - limit = { - game_start_date = 1178.10.1 - } - years_from_game_start >= 20 - } - #Temujin dying prevents Mongol invasion for at least 50 years - NOT = { - has_global_variable = temujin_failed - } - } - debug_log = "Checking for chance of spawning mongols under historical settings" - random = { - chance = temujin_appearance_base_chance - modifier = { - add = 9 - current_date > 1200.1.1 - } - modifier = { - add = 10 - current_date > 1220.1.1 - } - modifier = { - add = 20 - current_date > 1235.1.1 - } - modifier = { - add = 30 - exists = character:125501 # Temüjin - character:125501 = { - is_physically_able_ai_adult = yes - } - } - set_global_variable = { - name = mongols_have_appeared - value = yes - } - debug_log = "Attempting to spawn mongol invasion within 240 days" - trigger_event = { - id = mongol_invasion.0001 - days = { 2 240 } - } - } - } - } - # Almohad Invasion - if = { - limit = { - current_date >= 1110.1.1 - current_date < 1150.1.1 - NOT = { has_global_variable = spawned_almohads } - } - random = { - chance = almohad_appearance_base_chance - modifier = { - add = 3 - current_date >= 1130.1.1 - } - modifier = { - add = 3 - current_date >= 1140.1.1 - } - debug_log = "Attempting to spawn Almohads within 240 days" - trigger_event = { - id = almohad.0001 - days = { 2 240 } - } - } - } - # Jomsvikings form autonomously. - if = { - limit = { - # Do we have the correct flavour pack? - has_fp1_dlc_trigger = yes - # Must be within the 10th century. - current_date >= 900.1.1 - current_date < 1000.1.1 - # The Jomsvikings cannot have already formed for any reason & by any method. - fp1_jomsvikings_have_not_existed_trigger = yes - # Must be a valid target somewhere in the appropriate region. - any_county_in_region = { - region = dlc_fp1_region_non_scandinavian_southern_baltic - holder = { fp1_ruler_eligible_for_jomsviking_coup = yes } - } - } - random = { - # Low initial chance, to give the player time. - chance = 5 - # Add 5% every decade for the first half of the century. - modifier = { - add = 5 - current_date >= 910.1.1 - } - modifier = { - add = 5 - current_date >= 920.1.1 - } - modifier = { - add = 5 - current_date >= 930.1.1 - } - modifier = { - add = 5 - current_date >= 940.1.1 - } - modifier = { - add = 5 - current_date >= 950.1.1 - } - # And then add another 25% solid chance for the whole of the latter half of the century. - modifier = { - add = 25 - current_date >= 960.1.1 - } - # Fire the event. - trigger_event = { - id = fp1_jomsvikings.1011 - days = { 30 300 } - } - } - } - # A wandering French monk appears. - if = { - limit = { - # Do we have the correct flavour pack? - has_fp2_dlc_trigger = yes - # Must be before the monk would likely die. - current_date <= 880.1.1 - # The monk hasn't already tried to turn up somewhere. - NOT = { - is_target_in_global_variable_list = { - name = unavailable_unique_events - target = flag:lyonese_monk_event - } - } - } - # If there's a player in this region, we wait for one to become eligible. - if = { - limit = { - any_player = { - capital_province = { geographical_region = dlc_fp2_lyonese_monk_region } - } - } - if = { - limit = { - OR = { - any_player = { - capital_province = { geographical_region = dlc_fp2_lyonese_monk_region } - fp2_lyonese_monk_0002_valid_character_configuration_trigger = yes - } - current_date = 880.1.1 - } - } - # Fire the event. - trigger_event = { - id = fp2_lyonese_monk.0002 - days = { 30 90 } - } - } - } - # Otherwise, we roll randomly per year immediately. - else_if = { - limit = { - any_county_in_region = { - region = dlc_fp2_lyonese_monk_region - holder = { fp2_lyonese_monk_0002_valid_court_trigger = yes } - } - } - random = { - # Low initial chance, to give the player time. - chance = 5 - # Slowly ramp up the chance till *someone* is selected, assuming we have any valid candidates. - modifier = { - add = 20 - current_date >= 870.1.1 - } - modifier = { - add = 25 - current_date >= 873.1.1 - } - modifier = { - add = 25 - current_date >= 876.1.1 - } - modifier = { - add = 25 - current_date = 880.1.1 - } - # Fire the event. - trigger_event = { - id = fp2_lyonese_monk.0002 - days = { 30 90 } - } - } - } - } - - # Rabbinicism becomes Monogamous - if = { - limit = { - # Rabbi Gershom bans polygamy sometime in the 11th century - current_date > "1000.01.01" - # Make sure this hasn't happened already - faith:rabbinism = { - has_doctrine = doctrine_polygamy - NOT = { - has_variable = rabbinicism_accepted_monogamy - has_variable = rabbinicism_rejected_monogamy - } - } - } - religion:judaism_religion = { - every_faith = { - limit = { - has_doctrine = doctrine_polygamy - has_doctrine = temple_authority_rabbinic_doctrine - } - if = { - limit = { - exists = religious_head - } - if = { - limit = { - religious_head = { top_liege != this } - religious_head.top_liege.faith = this - } - religious_head.top_liege = { trigger_event = jewish_events.0001 } - } - else_if = { - limit = { - religious_head = { top_liege != this } - religious_head.liege.faith = this - } - religious_head.liege = { trigger_event = jewish_events.0001 } - } - else = { - religious_head = { trigger_event = jewish_events.0001 } - } - } - else_if = { - limit = { - any_player = { # Checking players is more performant than checking faith characters and limiting it to players - faith = prev - } - } - random_player = { - limit = { faith = prev } - trigger_event = jewish_events.0001 - } - } - else = { - random_faith_character = { - trigger_event = jewish_events.0001 - } - } - } - } - } - - # The Rise of the Seljuk - if = { limit = { has_game_rule = never_seljuk_invasion } } - else_if = { # Random Seljuk Invasion - limit = { - has_game_rule = random_seljuk_invasion - NOR = { - exists = global_var:seljuk_invasion_happened - exists = struggle:persian_struggle # We don't allow it during the struggle (not that it can happen in 930) - } - } - random = { - chance = fp3_seljuk_chance_of_appearance - modifier = { - add = 5 - current_date > 965.1.1 - } - modifier = { - add = 5 - current_date > 985.1.1 - } - modifier = { - add = 5 - current_date > 1005.1.1 - } - modifier = { - factor = 0.25 - OR = { - culture:turkish = { culture_number_of_counties = 0 } - faith:ashari = { has_followers_trigger = no } - } - } - set_global_variable = { - name = seljuk_invasion_happened - value = yes - } - debug_log = "Attempting to spawn seljuk invasion within 240 days" - trigger_event = { - id = fp3_story_cycle_seljuks_invasion_events.0001 - days = { 2 240 } - } - } - } - else_if = { # Historical Seljuk Invasion - limit = { - current_date < 1066.1.1 - current_date >= 945.1.1 - NOR = { - exists = global_var:seljuk_invasion_happened - exists = struggle:persian_struggle # We don't allow it during the struggle (not that it can happen in 930) - } - } - random = { - chance = fp3_seljuk_chance_of_appearance - modifier = { - add = 5 - current_date > 965.1.1 - } - modifier = { - add = 5 - current_date > 985.1.1 - } - modifier = { - add = 5 - current_date > 1005.1.1 - } - modifier = { - factor = 0.25 - OR = { - culture:turkish = { culture_number_of_counties = 0 } - faith:ashari = { has_followers_trigger = no } - } - } - set_global_variable = { - name = seljuk_invasion_happened - value = yes - } - debug_log = "Attempting to spawn seljuk invasion within 240 days" - trigger_event = { - id = fp3_story_cycle_seljuks_invasion_events.0001 - days = { 2 240 } - } - } - } - - # Zanj Rebellion - if = { - limit = { - current_date = 868.1.2 - NOT = { exists = global_var:zanj_rebellion_happened } - } - debug_log = "Zanj Rebellion Story Cycle Started" - trigger_event = { - id = fp3_story_cycle_zanj_rebellion_events.0001 - days = { 100 5000 } - } - set_global_variable = { - name = zanj_rebellion_happened - value = yes - } - } - #Grant latin emperor a de jure kingdom after 100 years, if they've failed to grab any de jure lands yet - if = { - limit = { - exists = global_var:byz_collapse_counter - current_year >= global_var:byz_collapse_counter - exists = title:e_latin_empire.holder - title:e_latin_empire.holder = { - is_alive = yes - primary_title = title:e_latin_empire - capital_county.kingdom = { - empire = title:e_byzantium - any_de_jure_county = { - percent >= 0.5 - holder.top_liege = { - this = title:e_latin_empire.holder - } - } - } - } - NOT = { - title:e_latin_empire = { - any_in_de_jure_hierarchy = { - tier <= tier_kingdom - } - } - } - } - title:e_latin_empire.holder = { - trigger_event = ep3_frankokratia_events.0140 - } - } - #Greek anarchy CB becomes unavailable when things are settled - if = { - limit = { - exists = global_var:byz_collapse_counter - current_year >= global_var:byz_collapse_counter - OR = { - NOT = { - exists = title:e_latin_empire.holder - } - title:e_latin_empire.holder ?= { - NOT = { - any_realm_county = { - OR = { - empire = title:e_latin_empire - empire = title:e_byzantium - } - } - } - } - title:e_latin_empire.holder ?= { - any_held_title = { - this = title:e_byzantium - } - } - } - } - remove_global_variable = byz_collapse_counter - - #Send notification out to everyone in de jure latin empire - if = { - limit = { - title:e_latin_empire = { - any_in_de_jure_hierarchy = { - holder ?= { - is_ai = no - } - } - } - } - title:e_latin_empire = { - every_in_de_jure_hierarchy = { - limit = { - holder ?= { - is_ai = no - } - } - if = { - limit = { - holder ?= { - NOT = { is_in_list = latin_byz_notify } - } - } - holder = { - add_to_list = latin_byz_notify - } - } - } - } - } - if = { - limit = { - title:e_byzantium = { - any_in_de_jure_hierarchy = { - holder ?= { - is_ai = no - } - } - } - } - title:e_byzantium = { - every_in_de_jure_hierarchy = { - limit = { - holder ?= { - is_ai = no - } - } - if = { - limit = { - holder = { - NOT = { is_in_list = latin_byz_notify } - } - } - holder = { - add_to_list = latin_byz_notify - } - } - } - } - } - title:e_latin_empire.holder = { - if = { - limit = { - is_ai = no - NOT = { is_in_list = latin_byz_notify } - } - add_to_list = latin_byz_notify - } - trigger_event = ep3_frankokratia_events.0081 - } - title:e_byzantium.holder = { - if = { - limit = { - is_ai = no - NOT = { is_in_list = latin_byz_notify } - } - add_to_list = latin_byz_notify - } - } - title:e_byzantium = { - save_scope_as = byzantium - } - if = { - limit = { - any_in_list = { - list = latin_byz_notify - count > 0 - } - } - every_in_list = { - list = latin_byz_notify - send_interface_message = { - type = msg_frankokratia_anarchy_end - title = msg_greek_anarchy_cb_loss.t - desc = msg_greek_anarchy_cb_loss.desc - right_icon = scope:byzantium - custom_tooltip = lose_greek_anarchy_cb_tt - } - } - } - } +# if = { +# limit = { +# NOT = { +# has_game_rule = no_historical_characters +# } +# } +# spawn_historical_characters_effect = yes +# } +# # Visigothic culture split +# ## Deprecated; to reenable, remove always = no line & decomment the trigger_event section. +# if = { +# limit = { +# always = no +# current_date <= 920.1.1 # No need to check this in later starts +# NOT = { has_global_variable = visigothic_culture_split } +# current_date >= 850.1.1 +# } +# random = { +# chance = 0 # No chance the first year of play if starting in 867 +# modifier = { +# add = 10 +# current_date >= 868.1.1 +# } +# modifier = { +# add = 10 # 20% chance +# current_date >= 875.1.1 +# } +# modifier = { +# add = 10 # 30% chance +# current_date >= 890.1.1 +# } +# set_global_variable = { +# name = visigothic_culture_split +# value = yes +# } +# #trigger_event = { +# #id = global_culture.0001 +# #days = { 60 300 } +# #} +# } +# } +# # Norse culture split. +# if = { +# limit = { +# current_date < 990.1.1 +# NOT = { has_global_variable = norse_culture_split } +# current_date >= 950.1.1 +# } +# random = { +# chance = 10 +# modifier = { +# add = 20 # 30% chance +# current_date >= 960.1.1 +# } +# modifier = { +# add = 30 # 60% chance +# current_date >= 970.1.1 +# } +# modifier = { +# add = 40 # 100% chance +# current_date >= 980.1.1 +# } +# set_global_variable = { +# name = norse_culture_split +# value = yes +# } +# trigger_event = { +# id = global_culture.0011 +# days = { 60 300 } +# } +# } +# } +# # Anglo-Saxon -> Scottish Culture Shift +# if = { +# limit = { +# current_date <= 1066.1.1 # No need to check this in later starts +# NOT = { has_global_variable = scottish_culture_creation } +# current_date >= 867.1.1 +# } +# random = { +# chance = 0 # No chance the first year of play if starting in 867 +# modifier = { +# add = 2 # 2% chance per year +# current_date >= 900.1.1 +# } +# modifier = { +# add = 8 # 10% chance per year +# current_date >= 950.1.1 +# } +# modifier = { +# add = 15 # 25% chance per year +# current_date >= 1000.1.1 +# } +# set_global_variable = { +# name = scottish_culture_creation +# value = yes +# } +# trigger_event = { +# id = global_culture.0031 +# days = { 60 300 } +# } +# } +# } +# # Mongol Invasion +# if = { limit = { has_game_rule = never_mongol_invasion } } +# else_if = { +# limit = { +# has_game_rule = random_mongol_invasion +# NOT = { has_global_variable = mongols_have_appeared } +# #Greatest of khans hasn't come along +# NOT = { has_global_variable = greatest_of_khans_title } +# #Someone's not currently trying to be greatest of khans +# NOT = { has_global_variable = mpo_gok_war_ongoing } +# #Temujin dying prevents Mongol invasion for at least 50 years +# NOT = { +# has_global_variable = temujin_failed +# } +# } +# random = { +# chance = temujin_appearance_base_chance +# modifier = { +# factor = 0.25 +# current_date < 1180.1.1 +# } +# modifier = { +# add = 3 +# current_date > 1200.1.1 +# } +# modifier = { +# add = 5 +# current_date > 1220.1.1 +# } +# modifier = { +# add = 5 +# current_date > 1235.1.1 +# } +# set_global_variable = { +# name = mongols_have_appeared +# value = yes +# } +# debug_log = "Attempting to spawn mongol invasion within 240 days" +# trigger_event = { +# id = mongol_invasion.0001 +# days = { 2 240 } +# } +# } +# } +# else = { +# if = { +# limit = { +# current_date > 1180.1.1 +# current_date < 1250.1.1 +# NOT = { has_global_variable = mongols_have_appeared } +# #Greatest of khans hasn't come along +# NOT = { has_global_variable = greatest_of_khans_title } +# #Someone's not currently trying to be greatest of khans +# NOT = { has_global_variable = mpo_gok_war_ongoing } +# trigger_if = { +# limit = { +# game_start_date = 1178.10.1 +# } +# years_from_game_start >= 20 +# } +# #Temujin dying prevents Mongol invasion for at least 50 years +# NOT = { +# has_global_variable = temujin_failed +# } +# } +# debug_log = "Checking for chance of spawning mongols under historical settings" +# random = { +# chance = temujin_appearance_base_chance +# modifier = { +# add = 9 +# current_date > 1200.1.1 +# } +# modifier = { +# add = 10 +# current_date > 1220.1.1 +# } +# modifier = { +# add = 20 +# current_date > 1235.1.1 +# } +# modifier = { +# add = 30 +# exists = character:125501 # Temüjin +# character:125501 = { +# is_physically_able_ai_adult = yes +# } +# } +# set_global_variable = { +# name = mongols_have_appeared +# value = yes +# } +# debug_log = "Attempting to spawn mongol invasion within 240 days" +# trigger_event = { +# id = mongol_invasion.0001 +# days = { 2 240 } +# } +# } +# } +# } +# # Almohad Invasion +# if = { +# limit = { +# current_date >= 1110.1.1 +# current_date < 1150.1.1 +# NOT = { has_global_variable = spawned_almohads } +# } +# random = { +# chance = almohad_appearance_base_chance +# modifier = { +# add = 3 +# current_date >= 1130.1.1 +# } +# modifier = { +# add = 3 +# current_date >= 1140.1.1 +# } +# debug_log = "Attempting to spawn Almohads within 240 days" +# trigger_event = { +# id = almohad.0001 +# days = { 2 240 } +# } +# } +# } +# # Jomsvikings form autonomously. +# if = { +# limit = { +# # Do we have the correct flavour pack? +# has_fp1_dlc_trigger = yes +# # Must be within the 10th century. +# current_date >= 900.1.1 +# current_date < 1000.1.1 +# # The Jomsvikings cannot have already formed for any reason & by any method. +# fp1_jomsvikings_have_not_existed_trigger = yes +# # Must be a valid target somewhere in the appropriate region. +# any_county_in_region = { +# region = dlc_fp1_region_non_scandinavian_southern_baltic +# holder = { fp1_ruler_eligible_for_jomsviking_coup = yes } +# } +# } +# random = { +# # Low initial chance, to give the player time. +# chance = 5 +# # Add 5% every decade for the first half of the century. +# modifier = { +# add = 5 +# current_date >= 910.1.1 +# } +# modifier = { +# add = 5 +# current_date >= 920.1.1 +# } +# modifier = { +# add = 5 +# current_date >= 930.1.1 +# } +# modifier = { +# add = 5 +# current_date >= 940.1.1 +# } +# modifier = { +# add = 5 +# current_date >= 950.1.1 +# } +# # And then add another 25% solid chance for the whole of the latter half of the century. +# modifier = { +# add = 25 +# current_date >= 960.1.1 +# } +# # Fire the event. +# trigger_event = { +# id = fp1_jomsvikings.1011 +# days = { 30 300 } +# } +# } +# } +# # A wandering French monk appears. +# if = { +# limit = { +# # Do we have the correct flavour pack? +# has_fp2_dlc_trigger = yes +# # Must be before the monk would likely die. +# current_date <= 880.1.1 +# # The monk hasn't already tried to turn up somewhere. +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_events +# target = flag:lyonese_monk_event +# } +# } +# } +# # If there's a player in this region, we wait for one to become eligible. +# if = { +# limit = { +# any_player = { +# capital_province = { geographical_region = dlc_fp2_lyonese_monk_region } +# } +# } +# if = { +# limit = { +# OR = { +# any_player = { +# capital_province = { geographical_region = dlc_fp2_lyonese_monk_region } +# fp2_lyonese_monk_0002_valid_character_configuration_trigger = yes +# } +# current_date = 880.1.1 +# } +# } +# # Fire the event. +# trigger_event = { +# id = fp2_lyonese_monk.0002 +# days = { 30 90 } +# } +# } +# } +# # Otherwise, we roll randomly per year immediately. +# else_if = { +# limit = { +# any_county_in_region = { +# region = dlc_fp2_lyonese_monk_region +# holder = { fp2_lyonese_monk_0002_valid_court_trigger = yes } +# } +# } +# random = { +# # Low initial chance, to give the player time. +# chance = 5 +# # Slowly ramp up the chance till *someone* is selected, assuming we have any valid candidates. +# modifier = { +# add = 20 +# current_date >= 870.1.1 +# } +# modifier = { +# add = 25 +# current_date >= 873.1.1 +# } +# modifier = { +# add = 25 +# current_date >= 876.1.1 +# } +# modifier = { +# add = 25 +# current_date = 880.1.1 +# } +# # Fire the event. +# trigger_event = { +# id = fp2_lyonese_monk.0002 +# days = { 30 90 } +# } +# } +# } +# } +# +# # Rabbinicism becomes Monogamous +# if = { +# limit = { +# # Rabbi Gershom bans polygamy sometime in the 11th century +# current_date > "1000.01.01" +# # Make sure this hasn't happened already +# faith:rabbinism = { +# has_doctrine = doctrine_polygamy +# NOT = { +# has_variable = rabbinicism_accepted_monogamy +# has_variable = rabbinicism_rejected_monogamy +# } +# } +# } +# religion:judaism_religion = { +# every_faith = { +# limit = { +# has_doctrine = doctrine_polygamy +# has_doctrine = temple_authority_rabbinic_doctrine +# } +# if = { +# limit = { +# exists = religious_head +# } +# if = { +# limit = { +# religious_head = { top_liege != this } +# religious_head.top_liege.faith = this +# } +# religious_head.top_liege = { trigger_event = jewish_events.0001 } +# } +# else_if = { +# limit = { +# religious_head = { top_liege != this } +# religious_head.liege.faith = this +# } +# religious_head.liege = { trigger_event = jewish_events.0001 } +# } +# else = { +# religious_head = { trigger_event = jewish_events.0001 } +# } +# } +# else_if = { +# limit = { +# any_player = { # Checking players is more performant than checking faith characters and limiting it to players +# faith = prev +# } +# } +# random_player = { +# limit = { faith = prev } +# trigger_event = jewish_events.0001 +# } +# } +# else = { +# random_faith_character = { +# trigger_event = jewish_events.0001 +# } +# } +# } +# } +# } +# +# # The Rise of the Seljuk +# if = { limit = { has_game_rule = never_seljuk_invasion } } +# else_if = { # Random Seljuk Invasion +# limit = { +# has_game_rule = random_seljuk_invasion +# NOR = { +# exists = global_var:seljuk_invasion_happened +# exists = struggle:persian_struggle # We don't allow it during the struggle (not that it can happen in 930) +# } +# } +# random = { +# chance = fp3_seljuk_chance_of_appearance +# modifier = { +# add = 5 +# current_date > 965.1.1 +# } +# modifier = { +# add = 5 +# current_date > 985.1.1 +# } +# modifier = { +# add = 5 +# current_date > 1005.1.1 +# } +# modifier = { +# factor = 0.25 +# OR = { +# culture:turkish = { culture_number_of_counties = 0 } +# faith:ashari = { has_followers_trigger = no } +# } +# } +# set_global_variable = { +# name = seljuk_invasion_happened +# value = yes +# } +# debug_log = "Attempting to spawn seljuk invasion within 240 days" +# trigger_event = { +# id = fp3_story_cycle_seljuks_invasion_events.0001 +# days = { 2 240 } +# } +# } +# } +# else_if = { # Historical Seljuk Invasion +# limit = { +# current_date < 1066.1.1 +# current_date >= 945.1.1 +# NOR = { +# exists = global_var:seljuk_invasion_happened +# exists = struggle:persian_struggle # We don't allow it during the struggle (not that it can happen in 930) +# } +# } +# random = { +# chance = fp3_seljuk_chance_of_appearance +# modifier = { +# add = 5 +# current_date > 965.1.1 +# } +# modifier = { +# add = 5 +# current_date > 985.1.1 +# } +# modifier = { +# add = 5 +# current_date > 1005.1.1 +# } +# modifier = { +# factor = 0.25 +# OR = { +# culture:turkish = { culture_number_of_counties = 0 } +# faith:ashari = { has_followers_trigger = no } +# } +# } +# set_global_variable = { +# name = seljuk_invasion_happened +# value = yes +# } +# debug_log = "Attempting to spawn seljuk invasion within 240 days" +# trigger_event = { +# id = fp3_story_cycle_seljuks_invasion_events.0001 +# days = { 2 240 } +# } +# } +# } +# +# # Zanj Rebellion +# if = { +# limit = { +# current_date = 868.1.2 +# NOT = { exists = global_var:zanj_rebellion_happened } +# } +# debug_log = "Zanj Rebellion Story Cycle Started" +# trigger_event = { +# id = fp3_story_cycle_zanj_rebellion_events.0001 +# days = { 100 5000 } +# } +# set_global_variable = { +# name = zanj_rebellion_happened +# value = yes +# } +# } +# #Grant latin emperor a de jure kingdom after 100 years, if they've failed to grab any de jure lands yet +# if = { +# limit = { +# exists = global_var:byz_collapse_counter +# current_year >= global_var:byz_collapse_counter +# exists = title:e_latin_empire.holder +# title:e_latin_empire.holder = { +# is_alive = yes +# primary_title = title:e_latin_empire +# capital_county.kingdom = { +# empire = title:e_byzantium +# any_de_jure_county = { +# percent >= 0.5 +# holder.top_liege = { +# this = title:e_latin_empire.holder +# } +# } +# } +# } +# NOT = { +# title:e_latin_empire = { +# any_in_de_jure_hierarchy = { +# tier <= tier_kingdom +# } +# } +# } +# } +# title:e_latin_empire.holder = { +# trigger_event = ep3_frankokratia_events.0140 +# } +# } +# #Greek anarchy CB becomes unavailable when things are settled +# if = { +# limit = { +# exists = global_var:byz_collapse_counter +# current_year >= global_var:byz_collapse_counter +# OR = { +# NOT = { +# exists = title:e_latin_empire.holder +# } +# title:e_latin_empire.holder ?= { +# NOT = { +# any_realm_county = { +# OR = { +# empire = title:e_latin_empire +# empire = title:e_byzantium +# } +# } +# } +# } +# title:e_latin_empire.holder ?= { +# any_held_title = { +# this = title:e_byzantium +# } +# } +# } +# } +# remove_global_variable = byz_collapse_counter +# +# #Send notification out to everyone in de jure latin empire +# if = { +# limit = { +# title:e_latin_empire = { +# any_in_de_jure_hierarchy = { +# holder ?= { +# is_ai = no +# } +# } +# } +# } +# title:e_latin_empire = { +# every_in_de_jure_hierarchy = { +# limit = { +# holder ?= { +# is_ai = no +# } +# } +# if = { +# limit = { +# holder ?= { +# NOT = { is_in_list = latin_byz_notify } +# } +# } +# holder = { +# add_to_list = latin_byz_notify +# } +# } +# } +# } +# } +# if = { +# limit = { +# title:e_byzantium = { +# any_in_de_jure_hierarchy = { +# holder ?= { +# is_ai = no +# } +# } +# } +# } +# title:e_byzantium = { +# every_in_de_jure_hierarchy = { +# limit = { +# holder ?= { +# is_ai = no +# } +# } +# if = { +# limit = { +# holder = { +# NOT = { is_in_list = latin_byz_notify } +# } +# } +# holder = { +# add_to_list = latin_byz_notify +# } +# } +# } +# } +# } +# title:e_latin_empire.holder = { +# if = { +# limit = { +# is_ai = no +# NOT = { is_in_list = latin_byz_notify } +# } +# add_to_list = latin_byz_notify +# } +# trigger_event = ep3_frankokratia_events.0081 +# } +# title:e_byzantium.holder = { +# if = { +# limit = { +# is_ai = no +# NOT = { is_in_list = latin_byz_notify } +# } +# add_to_list = latin_byz_notify +# } +# } +# title:e_byzantium = { +# save_scope_as = byzantium +# } +# if = { +# limit = { +# any_in_list = { +# list = latin_byz_notify +# count > 0 +# } +# } +# every_in_list = { +# list = latin_byz_notify +# send_interface_message = { +# type = msg_frankokratia_anarchy_end +# title = msg_greek_anarchy_cb_loss.t +# desc = msg_greek_anarchy_cb_loss.desc +# right_icon = scope:byzantium +# custom_tooltip = lose_greek_anarchy_cb_tt +# } +# } +# } +# } # TGP House Relations tracking every_active_dynasty = { every_dynasty_house = { @@ -702,47 +702,47 @@ yearly_global_pulse = { } } } - if = { - limit = { - title:h_china.holder ?= { - can_have_tributaries_trigger = yes - any_tributary = { - count < 20 # hol' up with this if China already has 20 tributaries or more - } - } - } - random_county_in_region = { - region = tgp_china_tributary_region - limit = { - holder.top_overlord = { - is_ai = yes - is_independent_ruler = yes - any_county_in_region = { - region = tgp_china_tributary_region - this = prev.primary_title - } - NOR = { - any_owned_story = { - OR = { - story_type = story_mongol_invasion - story_type = story_greatest_of_khans - } - } - mpo_has_gok_mongol_empire_trigger = yes - has_trait = conqueror - has_trait = greatest_of_khans - is_gurkhan = yes - } - } - } - holder.top_overlord = { - set_variable = { - name = wants_to_become_tributary_of_china - years = 10 # if they haven't completed a tribute mission within 10 years we stop trying - } - } - } - } +# if = { +# limit = { +# title:h_china.holder ?= { +# can_have_tributaries_trigger = yes +# any_tributary = { +# count < 20 # hol' up with this if China already has 20 tributaries or more +# } +# } +# } +# random_county_in_region = { +# region = tgp_china_tributary_region +# limit = { +# holder.top_overlord = { +# is_ai = yes +# is_independent_ruler = yes +# any_county_in_region = { +# region = tgp_china_tributary_region +# this = prev.primary_title +# } +# NOR = { +# any_owned_story = { +# OR = { +# story_type = story_mongol_invasion +# story_type = story_greatest_of_khans +# } +# } +# mpo_has_gok_mongol_empire_trigger = yes +# has_trait = conqueror +# has_trait = greatest_of_khans +# is_gurkhan = yes +# } +# } +# } +# holder.top_overlord = { +# set_variable = { +# name = wants_to_become_tributary_of_china +# years = 10 # if they haven't completed a tribute mission within 10 years we stop trying +# } +# } +# } +# } } on_actions = { diff --git a/common/religion/doctrine_types/30_core_tenets.txt b/common/religion/doctrine_types/30_core_tenets.txt index 40e90f70..e2fd5254 100644 --- a/common/religion/doctrine_types/30_core_tenets.txt +++ b/common/religion/doctrine_types/30_core_tenets.txt @@ -3573,7 +3573,7 @@ } is_shown = { - religion_tag = magyar_religion + religion_tag = hungaric_religion } parameters = { diff --git a/common/script_values/02_religion_values.txt b/common/script_values/02_religion_values.txt index 00f1ad93..966d0c7b 100644 --- a/common/script_values/02_religion_values.txt +++ b/common/script_values/02_religion_values.txt @@ -1157,7 +1157,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith.religion = { OR = { - this = religion:finno_ugric_religion + this = religion:finnic_religion this = religion:siberian_religion } } @@ -1176,7 +1176,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith.religion = { OR = { - this = religion:finno_ugric_religion + this = religion:finnic_religion this = religion:siberian_religion } } @@ -1196,7 +1196,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith.religion = { OR = { - this = religion:finno_ugric_religion + this = religion:finnic_religion this = religion:siberian_religion } } @@ -1253,7 +1253,7 @@ great_holy_war_target_kingdom_weight = { # Magyar heartlands else_if = { limit = { - scope:the_faith.religion = religion:magyar_religion + scope:the_faith.religion = religion:hungaric_religion title_capital_county.title_province = { geographical_region = ghw_region_hungary } } add = ghw_target_heartlands @@ -1261,7 +1261,7 @@ great_holy_war_target_kingdom_weight = { # Magyar frontier else_if = { limit = { - scope:the_faith.religion = religion:magyar_religion + scope:the_faith.religion = religion:hungaric_religion title_capital_county.title_province = { OR = { geographical_region = ghw_region_balkans @@ -1276,7 +1276,7 @@ great_holy_war_target_kingdom_weight = { # Magyar fringe else_if = { limit = { - scope:the_faith.religion = religion:magyar_religion + scope:the_faith.religion = religion:hungaric_religion title_capital_county.title_province = { OR = { geographical_region = ghw_region_mainland_greece @@ -1983,7 +1983,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith.religion = { OR = { - this = religion:finno_ugric_religion + this = religion:finnic_religion this = religion:siberian_religion } } @@ -2017,7 +2017,7 @@ great_holy_war_target_kingdom_weight = { } # Taltosist Paganism else_if = { - limit = { scope:the_faith.religion = religion:magyar_religion } + limit = { scope:the_faith.religion = religion:hungaric_religion } if = { limit = { title_capital_county = { @@ -2393,7 +2393,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith.religion = { OR = { - this = religion:finno_ugric_religion + this = religion:finnic_religion this = religion:siberian_religion } } @@ -2427,7 +2427,7 @@ great_holy_war_target_kingdom_weight = { } # Taltosist Paganism else_if = { - limit = { scope:the_faith.religion = religion:magyar_religion } + limit = { scope:the_faith.religion = religion:hungaric_religion } if = { limit = { title_capital_county = { @@ -2803,7 +2803,7 @@ great_holy_war_target_kingdom_weight = { limit = { scope:the_faith.religion = { OR = { - this = religion:finno_ugric_religion + this = religion:finnic_religion this = religion:siberian_religion } } @@ -2837,7 +2837,7 @@ great_holy_war_target_kingdom_weight = { } # Taltosist Paganism else_if = { - limit = { scope:the_faith.religion = religion:magyar_religion } + limit = { scope:the_faith.religion = religion:hungaric_religion } if = { limit = { title_capital_county = { diff --git a/common/scripted_effects/00_scheme_scripted_effects.txt b/common/scripted_effects/00_scheme_scripted_effects.txt index d2766d59..228ffc44 100644 --- a/common/scripted_effects/00_scheme_scripted_effects.txt +++ b/common/scripted_effects/00_scheme_scripted_effects.txt @@ -13715,7 +13715,7 @@ set_random_religious_text_effect = { random_list = { 1 = { #Christian - trigger = { faith.religion = religion:christianity_religion } + trigger = { OR = { faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion faith.religion = religion:eastern_orthodox_religion } } save_scope_value_as = { name = religious_book_title value = flag:golden_legend @@ -13723,7 +13723,7 @@ set_random_religious_text_effect = { } 1 = { #Christian - trigger = { faith.religion = religion:christianity_religion } + trigger = { OR = { faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion faith.religion = religion:eastern_orthodox_religion } } save_scope_value_as = { name = religious_book_title value = flag:city_of_god @@ -13732,7 +13732,7 @@ set_random_religious_text_effect = { 1 = { #Christian trigger = { - faith.religion = religion:christianity_religion + OR = { faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion faith.religion = religion:eastern_orthodox_religion } NOT = { faith = faith:orthodox } } save_scope_value_as = { @@ -13743,7 +13743,7 @@ set_random_religious_text_effect = { 1 = { #Christian trigger = { - faith.religion = religion:christianity_religion + OR = { faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion faith.religion = religion:eastern_orthodox_religion } NOT = { faith = faith:orthodox } } save_scope_value_as = { diff --git a/common/scripted_triggers/00_building_requirement_triggers.txt b/common/scripted_triggers/00_building_requirement_triggers.txt index 2617338f..4357f25f 100644 --- a/common/scripted_triggers/00_building_requirement_triggers.txt +++ b/common/scripted_triggers/00_building_requirement_triggers.txt @@ -136,7 +136,7 @@ building_hall_of_heroes_requirement = { OR = { has_religion = religion:baltic_religion has_religion = religion:slavic_religion - has_religion = religion:finno_ugric_religion + has_religion = religion:finnic_religion has_religion = religion:siberian_religion } } diff --git a/common/scripted_triggers/00_clothing_triggers.txt b/common/scripted_triggers/00_clothing_triggers.txt index aa5f5ce4..0c28539a 100644 --- a/common/scripted_triggers/00_clothing_triggers.txt +++ b/common/scripted_triggers/00_clothing_triggers.txt @@ -3099,7 +3099,7 @@ portrait_religious_siberian_trigger = { # these probably need dlc check? portrait_religious_sami_trigger = { has_cp4_dlc_trigger = yes - religion = religion:finno_ugric_religion + religion = religion:finnic_religion portrait_sami_clothing_trigger = yes } @@ -3122,24 +3122,24 @@ portrait_religious_shamanism_nivkh_trigger = { # same as above but shamanists wi portrait_religious_steppe_trigger = { OR = { - religion = religion:tengrism_religion - religion = religion:qiangic_religion - religion = religion:siberian_religion - religion = religion:mundhum_religion - religion = religion:tani_religion - religion = religion:magyar_religion - faith = { - portrait_religious_faith_or_foundational_trigger = { FAITH = faith:old_bon } - } +# religion = religion:tengrism_religion +# religion = religion:qiangic_religion +# religion = religion:siberian_religion +# religion = religion:mundhum_religion +# religion = religion:tani_religion + religion = religion:hungaric_religion +# faith = { +# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:old_bon } +# } } } portrait_religious_buddhist_trigger = { OR = { religion = religion:buddhism_religion - faith = { - portrait_religious_faith_or_foundational_trigger = { FAITH = faith:bon } - } +# faith = { +# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:bon } +# } } } @@ -3160,11 +3160,11 @@ portrait_religious_zoroastrian_trigger = { religion = religion:zoroastrianism_religion religion = religion:yazidi_religion religion = religion:zunism_religion - faith = { - portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mandeaism } - } +# faith = { +# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mandeaism } +# } religion = religion:dualism_religion - religion = religion:basque_religion +# religion = religion:basque_religion } } diff --git a/common/scripted_triggers/10_ach_scripted_triggers.txt b/common/scripted_triggers/10_ach_scripted_triggers.txt index 0e0132da..8d9d1faf 100644 --- a/common/scripted_triggers/10_ach_scripted_triggers.txt +++ b/common/scripted_triggers/10_ach_scripted_triggers.txt @@ -135,7 +135,7 @@ coronation_proper_artifact_regalia_trigger = { religion = { OR = { this = religion:buddhism_religion - this = religion:finno_ugric_religion + this = religion:finnic_religion this = religion:hinduism_religion this = religion:jainism_religion this = religion:slavic_religion @@ -152,7 +152,7 @@ coronation_proper_artifact_regalia_trigger = { # donyipolism_religion # folkgerman_religion # islam_religion -# magyar_religion +# hungaric_religion # mundhum_religion # north_african_religion # paganism_religion diff --git a/common/traits/00_traits.txt b/common/traits/00_traits.txt index fe61a367..1fa2680a 100644 --- a/common/traits/00_traits.txt +++ b/common/traits/00_traits.txt @@ -9026,7 +9026,7 @@ faith_warrior = { desc = trait_crusader_judaism } triggered_desc = { - trigger = { faith = { religion_tag = magyar_religion } } + trigger = { faith = { religion_tag = hungaric_religion } } desc = trait_crusader_magyar } triggered_desc = { @@ -9038,7 +9038,7 @@ faith_warrior = { desc = trait_crusader_slavic } triggered_desc = { - trigger = { faith = { religion_tag = finno_ugric_religion } } + trigger = { faith = { religion_tag = finnic_religion } } desc = trait_crusader_finno_ugric } triggered_desc = { @@ -14117,7 +14117,7 @@ crusader_king = { desc = trait_crusader_king_judaism } # triggered_desc = { -# trigger = { faith = { religion_tag = magyar_religion } } +# trigger = { faith = { religion_tag = hungaric_religion } } # desc = trait_crusader_king_magyar # } # triggered_desc = { @@ -14130,13 +14130,13 @@ crusader_king = { # } # triggered_desc = { # trigger = { -# faith = { religion_tag = finno_ugric_religion } +# faith = { religion_tag = finnic_religion } # is_female = yes # } # desc = trait_crusader_king_finno_ugric_female # } # triggered_desc = { -# trigger = { faith = { religion_tag = finno_ugric_religion } } +# trigger = { faith = { religion_tag = finnic_religion } } # desc = trait_crusader_king_finno_ugric_male # } # triggered_desc = { diff --git a/events/activities/pilgrimage_activity/pilgrimage_events.txt b/events/activities/pilgrimage_activity/pilgrimage_events.txt index 0c81c723..41eeb9fc 100644 --- a/events/activities/pilgrimage_activity/pilgrimage_events.txt +++ b/events/activities/pilgrimage_activity/pilgrimage_events.txt @@ -11656,7 +11656,7 @@ pilgrimage.6760 = { faith = faith:orthodox faith.religion = religion:catholic_religion } - faith.religion ?= religion:christianity_religion + OR = { faith.religion = religion:protestant_religion faith.religion = religion:eastern_orthodox_religion } } add = 100 } diff --git a/events/artifacts/artifact_events.txt b/events/artifacts/artifact_events.txt index 42874136..db209248 100644 --- a/events/artifacts/artifact_events.txt +++ b/events/artifacts/artifact_events.txt @@ -3591,10 +3591,10 @@ scripted_trigger artifact_4070_valid_relic_trigger = { } trigger_else_if = { limit = { - var:relic = flag:finno_ugric_religion + var:relic = flag:finnic_religion } previous_owner ?= { - NOT = { faith.religion = religion:finno_ugric_religion } + NOT = { faith.religion = religion:finnic_religion } } } trigger_else = { diff --git a/events/decisions_events/east_europe_events.txt b/events/decisions_events/east_europe_events.txt index bd1e3e3f..b3d1f778 100644 --- a/events/decisions_events/east_europe_events.txt +++ b/events/decisions_events/east_europe_events.txt @@ -548,7 +548,7 @@ east_europe.0034 = { #Magyar_pagans are happy about this unexpected turn of events! option = { name = east_europe.0034.a - trigger = { religion = religion:magyar_religion } + trigger = { religion = religion:hungaric_religion } add_stress = minor_stress_loss } @@ -557,7 +557,7 @@ east_europe.0034 = { name = east_europe.0034.b trigger = { top_liege = root - NOT = { religion = religion:magyar_religion } + NOT = { religion = religion:hungaric_religion } } set_character_faith_with_conversion = faith:magyar_pagan if = { diff --git a/events/dlc/ep3/ep3_decisions_events.txt b/events/dlc/ep3/ep3_decisions_events.txt index 9dd4f653..bf0b2a7a 100644 --- a/events/dlc/ep3/ep3_decisions_events.txt +++ b/events/dlc/ep3/ep3_decisions_events.txt @@ -3548,9 +3548,19 @@ ep3_decisions_event.4010 = { scripted_trigger ask_help_valid_for_crusades_trigger = { # There is in the world a christian faith with crusades and a HoF to call them (mainly Catholic) - religion:christianity_religion = { - exists = var:variable_ghw_unlocked - NOT = { exists = var:variable_first_ghw_cooldown } + OR = { + religion:protestant_religion = { + exists = var:variable_ghw_unlocked + NOT = { exists = var:variable_first_ghw_cooldown } + } + religion:catholic_religion = { + exists = var:variable_ghw_unlocked + NOT = { exists = var:variable_first_ghw_cooldown } + } + religion:eastern_orthodox_religion = { + exists = var:variable_ghw_unlocked + NOT = { exists = var:variable_first_ghw_cooldown } + } } scope:pope = { is_imprisoned = no diff --git a/events/dlc/ep3/ep3_governor_yearly_3.txt b/events/dlc/ep3/ep3_governor_yearly_3.txt index 22adab67..e25cf2b7 100644 --- a/events/dlc/ep3/ep3_governor_yearly_3.txt +++ b/events/dlc/ep3/ep3_governor_yearly_3.txt @@ -5394,7 +5394,7 @@ ep3_governor_yearly.3060 = { trigger = { scope:emperor = { capital_county = title:c_byzantion - religion = religion:christianity_religion + OR = { religion = religion:catholic_religion religion = religion:eastern_orthodox_religion religion = religion:protestant_religion } NOT = { has_character_flag = ep3_new_emperor_afield } @@ -5407,7 +5407,7 @@ ep3_governor_yearly.3060 = { NOT = { scope:emperor = { capital_county = title:c_byzantion - religion = religion:christianity_religion + OR = { religion = religion:catholic_religion religion = religion:eastern_orthodox_religion religion = religion:protestant_religion } } } scope:emperor = { @@ -5463,7 +5463,7 @@ ep3_governor_yearly.3060 = { left_portrait = { character = scope:emperor triggered_animation = { - trigger = { religion = religion:christianity_religion } + trigger = { OR = { religion = religion:catholic_religion religion = religion:eastern_orthodox_religion religion = religion:protestant_religion } } animation = acknowledging # anim uses crucifix scepter } animation = war_over_win diff --git a/events/religion_events/great_holy_war_events.txt b/events/religion_events/great_holy_war_events.txt index a28009b8..28999e24 100644 --- a/events/religion_events/great_holy_war_events.txt +++ b/events/religion_events/great_holy_war_events.txt @@ -1042,8 +1042,16 @@ great_holy_war.0010 = { current_date >= 2600.1.1 } AND = { # I learned it from you! - Muslims second. - religion:christianity_religion = { - exists = var:variable_ghw_unlocked + OR = { + religion:eastern_orthodox_religion = { + exists = var:variable_ghw_unlocked + } + religion:catholic_religion = { + exists = var:variable_ghw_unlocked + } + religion:protestant_religion = { + exists = var:variable_ghw_unlocked + } } religion:islam_religion = root.religion any_holy_site = { @@ -1054,8 +1062,16 @@ great_holy_war.0010 = { } } AND = { # And we learned it from you! - Everyone else last. - religion:christianity_religion = { - exists = var:variable_ghw_unlocked + OR = { + religion:eastern_orthodox_religion = { + exists = var:variable_ghw_unlocked + } + religion:catholic_religion = { + exists = var:variable_ghw_unlocked + } + religion:protestant_religion = { + exists = var:variable_ghw_unlocked + } } religion:islam_religion = { exists = var:variable_ghw_unlocked @@ -1081,7 +1097,7 @@ great_holy_war.0010 = { title:c_jerusalem.holder = { NOT = { OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } } } - current_date >= 1095.1.1 + current_date >= 2695.1.1 OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } } modifier = { # Historical push for overall Islamic control. @@ -1089,7 +1105,7 @@ great_holy_war.0010 = { title:c_jerusalem.holder.top_liege = { NOT = { faith.religion = religion:islam_religion } } - current_date >= 1095.1.1 + current_date >= 2695.1.1 root.religion = religion:islam_religion } } diff --git a/map_data/geographical_regions/geographical_region.txt b/map_data/geographical_regions/geographical_region.txt index db7f0ecd..54927857 100644 --- a/map_data/geographical_regions/geographical_region.txt +++ b/map_data/geographical_regions/geographical_region.txt @@ -5937,4 +5937,25 @@ custom_swedish_empire = { d_giemajohka d_west_karelia } +} + +custom_left_bank_rhine = { + kingdoms = { + k_belgium + k_lotharingia + } + duchies = { + d_alsace + d_palatinate + } +} + +custom_alpine_france = { + kingdoms = { + k_rhodania + } + duchies = { + d_upper_burgundy + d_savoie + } } \ No newline at end of file