From 00d2f92cc483c2c56cc004bbca2e46c4f34e72c1 Mon Sep 17 00:00:00 2001 From: Damimani Date: Thu, 20 Aug 2026 17:48:03 +0200 Subject: [PATCH] carpathia done --- common/decisions/major_decisions_NEOW.txt | 126 ++++++++++++++++++ common/landed_titles/NEOW_special_titles.txt | 6 + .../00_major_decisions_scripted_effects.txt | 51 +++++++ .../replace/zz_NEOW_decisions_l_english.yml | 11 ++ 4 files changed, 194 insertions(+) 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/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"