diff --git a/common/decisions/major_decisions_NEOW.txt b/common/decisions/major_decisions_NEOW.txt index d361fb4fe..b59c6bc3b 100644 --- a/common/decisions/major_decisions_NEOW.txt +++ b/common/decisions/major_decisions_NEOW.txt @@ -1231,6 +1231,132 @@ restore_great_moravia = { always = yes } + ai_will_do = { + base = 100 + } +} + +form_carpathia_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = form_carpathia_decision_desc + selection_tooltip = form_carpathia_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + OR = { + primary_title = title:k_hungary + primary_title = title:k_galicia-volhynia + primary_title = title:k_transylvania + } + title:e_carpathia = { is_titular = yes } + NOT = { culture = { has_cultural_pillar = heritage_hungarian } } + } + + is_valid = { + completely_controls = title:k_hungary + completely_controls = title:k_slovakia + completely_controls = title:k_galicia-volhynia + completely_controls = title:k_transylvania + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + show_as_tooltip = { + form_carpathia_effect = yes + } + + hidden_effect = { + form_carpathia_effect = yes + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +form_carpathia_hun_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = form_carpathia_hun_decision_desc + selection_tooltip = form_carpathia_hun_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + OR = { + primary_title = title:k_hungary + primary_title = title:k_galicia-volhynia + primary_title = title:k_transylvania + } + title:e_carpathia = { is_titular = yes } + culture = { has_cultural_pillar = heritage_hungarian } + } + + is_valid = { + completely_controls = title:k_hungary + completely_controls = title:k_slovakia + completely_controls = title:k_galicia-volhynia + completely_controls = title:k_transylvania + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + show_as_tooltip = { + form_carpathia_effect = yes + } + + hidden_effect = { + form_carpathia_effect = yes + } + } + + ai_potential = { + always = yes + } + ai_will_do = { base = 100 } diff --git a/common/landed_titles/NEOW_special_titles.txt b/common/landed_titles/NEOW_special_titles.txt index 27490ae55..b42340a57 100644 --- a/common/landed_titles/NEOW_special_titles.txt +++ b/common/landed_titles/NEOW_special_titles.txt @@ -144,4 +144,10 @@ e_NEOW_byzantium = { cultural_names = { name_list_NEOW_turkish = cn_bati_roma_imparatorlugu } +} + +e_carpathia = { + color = { 30 93 39 } + + capital = c_visegrad } \ No newline at end of file diff --git a/common/on_action/game_start.txt b/common/on_action/game_start.txt index 94f85382e..0f4095da0 100644 --- a/common/on_action/game_start.txt +++ b/common/on_action/game_start.txt @@ -2440,278 +2440,278 @@ on_game_start_after_lobby = { # Extra Nomad Regions #Tibet - if = { - limit = { - has_mpo_dlc_trigger = yes - has_game_rule = tibet_nomad_region_on - } - start_situation = { - type = game_rule_extra_nomads_tibet - start_phase = situation_steppe_abundant_grazing_season - save_scope_as = my_situation - } - scope:my_situation = { - every_situation_county = { - limit = { - holder = { - government_has_flag = government_is_tribal - } - } - holder = { - set_variable = { - name = steppe_game_start_var - years = 1 - } - every_held_title = { - if = { - limit = { - title_province = { - has_holding_type = tribal_holding - } - } - title_province = { - set_holding_type = nomad_holding - } - } - } - change_government = nomad_government - if = { - limit = { - OR = { - domicile.domicile_culture != capital_county.culture - domicile.domicile_faith != capital_county.faith - } - } - domicile = { - set_domicile_culture = prev.capital_county.culture - set_domicile_faith = prev.capital_county.faith - } - } - } - } - } - } + #if = { + # limit = { + # has_mpo_dlc_trigger = yes + # has_game_rule = tibet_nomad_region_on + # } + # start_situation = { + # type = game_rule_extra_nomads_tibet + # start_phase = situation_steppe_abundant_grazing_season + # save_scope_as = my_situation + # } + # scope:my_situation = { + # every_situation_county = { + # limit = { + # holder = { + # government_has_flag = government_is_tribal + # } + # } + # holder = { + # set_variable = { + # name = steppe_game_start_var + # years = 1 + # } + # every_held_title = { + # if = { + # limit = { + # title_province = { + # has_holding_type = tribal_holding + # } + # } + # title_province = { + # set_holding_type = nomad_holding + # } + # } + # } + # change_government = nomad_government + # if = { + # limit = { + # OR = { + # domicile.domicile_culture != capital_county.culture + # domicile.domicile_faith != capital_county.faith + # } + # } + # domicile = { + # set_domicile_culture = prev.capital_county.culture + # set_domicile_faith = prev.capital_county.faith + # } + # } + # } + # } + # } + #} #Sami - if = { - limit = { - has_mpo_dlc_trigger = yes - has_game_rule = sami_nomad_region_on - } - start_situation = { - type = game_rule_extra_nomads_sami - start_phase = situation_steppe_abundant_grazing_season - save_scope_as = my_situation - } - scope:my_situation = { - every_situation_county = { - limit = { - holder = { - OR = { - culture = culture:sami - culture = culture:karelian + #if = { + # limit = { + # has_mpo_dlc_trigger = yes + # has_game_rule = sami_nomad_region_on + # } + # start_situation = { + # type = game_rule_extra_nomads_sami + # start_phase = situation_steppe_abundant_grazing_season + # save_scope_as = my_situation + # } + # scope:my_situation = { + # every_situation_county = { + # limit = { + # holder = { + # OR = { + # culture = culture:sami + # culture = culture:karelian # culture = culture:samoyed - is_ai = no - } - } - } - holder = { - set_variable = { - name = steppe_game_start_var - years = 1 - } - every_held_title = { - if = { - limit = { - title_province = { - has_holding_type = tribal_holding - } - } - title_province = { - set_holding_type = nomad_holding - } - } - } - change_government = nomad_government - } - } - } - } + # is_ai = no + # } + # } + # } + # holder = { + # set_variable = { + # name = steppe_game_start_var + # years = 1 + # } + # every_held_title = { + # if = { + # limit = { + # title_province = { + # has_holding_type = tribal_holding + # } + # } + # title_province = { + # set_holding_type = nomad_holding + # } + # } + # } + # change_government = nomad_government + # } + # } + # } + #} #Arabia - if = { - limit = { - has_mpo_dlc_trigger = yes - has_game_rule = arabia_nomad_region_on - } - start_situation = { - type = game_rule_extra_nomads_arabs - start_phase = situation_steppe_severe_drought_season - save_scope_as = my_situation - sub_region = { - key = arabia_nomads - start_phase = situation_steppe_severe_drought_season - map_color = { 34 255 76 } - geographical_regions = { arab_nomad_area } - } - sub_region = { - key = egypt_nomads - start_phase = situation_steppe_abundant_grazing_season - map_color = { 24 155 76 } - geographical_regions = { egypt_nomad_area } - } - } - scope:my_situation = { - every_situation_county = { - limit = { - holder = { - government_has_flag = government_is_tribal - } - } - holder = { - set_variable = { - name = steppe_game_start_var - years = 1 - } - every_held_title = { - if = { - limit = { - title_province = { - has_holding_type = tribal_holding - } - } - title_province = { - set_holding_type = nomad_holding - } - } - } - change_government = nomad_government - } - } - } - } - #Sahel - if = { - limit = { - has_mpo_dlc_trigger = yes - has_game_rule = sahel_nomad_region_on - } - start_situation = { - type = game_rule_extra_nomads_sahel - start_phase = situation_steppe_severe_drought_season - save_scope_as = my_situation - sub_region = { - key = north_africa_nomads - start_phase = situation_steppe_abundant_grazing_season - map_color = { 155 62 0 } - geographical_regions = { sahel_north_africa_nomad_area } - } - sub_region = { - key = sahara_nomads - start_phase = situation_steppe_severe_drought_season - map_color = { 255 232 100 } - geographical_regions = { sahel_desert_nomad_area } - } - sub_region = { - key = sahel_nomads - start_phase = situation_steppe_abundant_grazing_season - map_color = { 100 46 92 } - geographical_regions = { sahel_sub_saharan_africa_nomad_area } - } - } - scope:my_situation = { - every_situation_county = { - limit = { - holder = { - government_has_flag = government_is_tribal - OR = { - culture = { has_cultural_pillar = heritage_berber } - culture = culture:bedouin - is_ai = no - } - NOR = { - culture = culture:welayta - culture = culture:ethiopian - culture = culture:nubian - culture = culture:daju - } - } - } - holder = { - set_variable = { - name = steppe_game_start_var - years = 1 - } - every_held_title = { - if = { - limit = { - title_province = { - has_holding_type = tribal_holding - } - } - title_province = { - set_holding_type = nomad_holding - } - } - } - change_government = nomad_government - } - } - } - } - #Horn of Africa - if = { - limit = { - has_mpo_dlc_trigger = yes - has_game_rule = horn_of_africa_nomad_region_on - } - start_situation = { - type = game_rule_extra_nomads_horn - start_phase = situation_steppe_severe_drought_season - save_scope_as = my_situation - } - scope:my_situation = { - every_situation_county = { - limit = { - holder = { - government_has_flag = government_is_tribal - OR = { - culture = culture:somali - culture = culture:beja - culture = culture:afar - culture = culture:bedouin - AND = { - is_ai = no - NOR = { - culture = culture:welayta - culture = culture:ethiopian - culture = culture:nubian - culture = culture:daju - } - } - } - } - } - holder = { - set_variable = { - name = steppe_game_start_var - years = 1 - } - every_held_title = { - if = { - limit = { - title_province = { - has_holding_type = tribal_holding - } - } - title_province = { - set_holding_type = nomad_holding - } - } - } - change_government = nomad_government - } - } - } - } + #if = { + # limit = { + # has_mpo_dlc_trigger = yes + # has_game_rule = arabia_nomad_region_on + # } + # start_situation = { + # type = game_rule_extra_nomads_arabs + # start_phase = situation_steppe_severe_drought_season + # save_scope_as = my_situation + # sub_region = { + # key = arabia_nomads + # start_phase = situation_steppe_severe_drought_season + # map_color = { 34 255 76 } + # geographical_regions = { arab_nomad_area } + # } + # sub_region = { + # key = egypt_nomads + # start_phase = situation_steppe_abundant_grazing_season + # map_color = { 24 155 76 } + # geographical_regions = { egypt_nomad_area } + # } + # } + # scope:my_situation = { + # every_situation_county = { + # limit = { + # holder = { + # government_has_flag = government_is_tribal + # } + # } + # holder = { + # set_variable = { + # name = steppe_game_start_var + # years = 1 + # } + # every_held_title = { + # if = { + # limit = { + # title_province = { + # has_holding_type = tribal_holding + # } + # } + # title_province = { + # set_holding_type = nomad_holding + # } + # } + # } + # change_government = nomad_government + # } + # } + # } + #} + ##Sahel + #if = { + # limit = { + # has_mpo_dlc_trigger = yes + # has_game_rule = sahel_nomad_region_on + # } + # start_situation = { + # type = game_rule_extra_nomads_sahel + # start_phase = situation_steppe_severe_drought_season + # save_scope_as = my_situation + # sub_region = { + # key = north_africa_nomads + # start_phase = situation_steppe_abundant_grazing_season + # map_color = { 155 62 0 } + # geographical_regions = { sahel_north_africa_nomad_area } + # } + # sub_region = { + # key = sahara_nomads + # start_phase = situation_steppe_severe_drought_season + # map_color = { 255 232 100 } + # geographical_regions = { sahel_desert_nomad_area } + # } + # sub_region = { + # key = sahel_nomads + # start_phase = situation_steppe_abundant_grazing_season + # map_color = { 100 46 92 } + # geographical_regions = { sahel_sub_saharan_africa_nomad_area } + # } + # } + # scope:my_situation = { + # every_situation_county = { + # limit = { + # holder = { + # government_has_flag = government_is_tribal + # OR = { + # culture = { has_cultural_pillar = heritage_berber } + # culture = culture:bedouin + # is_ai = no + # } + # NOR = { + # culture = culture:welayta + # culture = culture:ethiopian + # culture = culture:nubian + # culture = culture:daju + # } + # } + # } + # holder = { + # set_variable = { + # name = steppe_game_start_var + # years = 1 + # } + # every_held_title = { + # if = { + # limit = { + # title_province = { + # has_holding_type = tribal_holding + # } + # } + # title_province = { + # set_holding_type = nomad_holding + # } + # } + # } + # change_government = nomad_government + # } + # } + # } + #} + ##Horn of Africa + #if = { + # limit = { + # has_mpo_dlc_trigger = yes + # has_game_rule = horn_of_africa_nomad_region_on + # } + # start_situation = { + # type = game_rule_extra_nomads_horn + # start_phase = situation_steppe_severe_drought_season + # save_scope_as = my_situation + # } + # scope:my_situation = { + # every_situation_county = { + # limit = { + # holder = { + # government_has_flag = government_is_tribal + # OR = { + # culture = culture:somali + # culture = culture:beja + # culture = culture:afar + # culture = culture:bedouin + # AND = { + # is_ai = no + # NOR = { + # culture = culture:welayta + # culture = culture:ethiopian + # culture = culture:nubian + # culture = culture:daju + # } + # } + # } + # } + # } + # holder = { + # set_variable = { + # name = steppe_game_start_var + # years = 1 + # } + # every_held_title = { + # if = { + # limit = { + # title_province = { + # has_holding_type = tribal_holding + # } + # } + # title_province = { + # set_holding_type = nomad_holding + # } + # } + # } + # change_government = nomad_government + # } + # } + # } + #} # ### INITIAL BUDGET CALC, ONE MORE AFTER THE EVERY_RULER ASSIGNS PROVINCE TYPES ### # if = { # limit = { diff --git a/common/scripted_effects/00_major_decisions_scripted_effects.txt b/common/scripted_effects/00_major_decisions_scripted_effects.txt index d99c3bdea..b8a7b68c9 100644 --- a/common/scripted_effects/00_major_decisions_scripted_effects.txt +++ b/common/scripted_effects/00_major_decisions_scripted_effects.txt @@ -4799,4 +4799,55 @@ restore_great_moravia_effect = { title:d_transcarpathia = { set_de_jure_liege_title = title:k_great_moravia } } } +} + +form_carpathia_effect = { + add_prestige = massive_prestige_gain + + save_scope_as = scoped_ruler + + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + + title:e_carpathia = { + change_title_holder = { + holder = scope:scoped_ruler + change = scope:change + } + } + + resolve_title_and_vassal_change = scope:change + + hidden_effect = { + set_primary_title_to = title:e_carpathia + + title:k_hungary = { set_de_jure_liege_title = title:e_carpathia } + title:k_slovakia = { set_de_jure_liege_title = title:e_carpathia } + title:k_galicia-volhynia = { set_de_jure_liege_title = title:e_carpathia } + title:k_transylvania = { set_de_jure_liege_title = title:e_carpathia } + + if = { + limit = { + title:k_dacia = { is_titular = no } + OR = { + has_title = title:k_dacia + completely_controls = title:k_dacia + } + } + title:k_dacia = { set_de_jure_liege_title = title:e_carpathia } + } + if = { + limit = { + title:k_moldavia = { is_titular = no } + OR = { + has_title = title:k_moldavia + completely_controls = title:k_moldavia + } + } + title:k_moldavia = { set_de_jure_liege_title = title:e_carpathia } + } + } } \ No newline at end of file diff --git a/localization/english/replace/zz_NEOW_decisions_l_english.yml b/localization/english/replace/zz_NEOW_decisions_l_english.yml index de614bb1a..8d66e29b7 100644 --- a/localization/english/replace/zz_NEOW_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_decisions_l_english.yml @@ -1711,6 +1711,17 @@ restore_great_moravia_desc:0 "Legends tell of a great Kingdom of Moravians and Slovaks in Antediluvian times, created by King Mojmír, consisting of the lands surrounding the Morava River. Within a few years, it became the greatest polity of the West Slavs, its territories spanning from Silesia to the river Tisa. Eventually, it was destroyed by the vile Hungarians invading from the Steppe. Should we reconquer the territories lost in that disaster, we could restore this kingdom." restore_great_moravia_effect_tooltip:0 "Our territories in Moravia and the Pannonian Basin shall be united under a singular kingdom." + form_carpathia_decision:0 "Form the Empire of the Carpathians" + form_carpathia_decision_confirm:0 "A new beginning for the old basin." + form_carpathia_decision_tooltip:0 "A new empire will be formed based in the Pannonian Basin." + form_carpathia_decision_desc:0 "The Pannonian Basin, despite its perfect location for being the base of a defensible empire, has stood disunited and divided between multiple invaders. It is time we changed that, and established ourselves among the greats of Europe." + form_carpathia_effect_tooltip:0 "The kingdoms of the Pannonian Basin will be united under one empire." + + form_carpathia_hun_decision:0 "Restore the Crown of St. Stephen" + form_carpathia_hun_decision_confirm:0 "The Apostolic Kingdom shall return!" + form_carpathia_hun_decision_tooltip:0 "The kingdoms of the Carpathian will be united under a new empire." + form_carpathia_hun_decision_desc:0 "In the days of old, the Carpathian Basin was conquered by a confederation of hungarian tribes called the Hétmagyar, and later our rule was solidified over it by Saint Stephen of House Árpád. Now, that we have gotten back our lands, it is time we declared the Apostolic Kingdom again." + ### Restoring Czechoslovakia ### reform_czechoslovakia_decision:0 "Reform Czechoslovakia" reform_czechoslovakia_decision_confirm:0 "Unite the Separated Brothers"