From d70662027239c2b1d379184c29b58d5157348978 Mon Sep 17 00:00:00 2001 From: Heidesommer Date: Sun, 7 Jun 2026 10:42:52 -0400 Subject: [PATCH] Poland-Lithuania basics --- .../NEOW_historical_formation_decisions.txt | 323 ++++++++++++++++++ common/landed_titles/NEOW_special_titles.txt | 64 ++-- .../NEOW_historical_formation_decisions.txt | 22 ++ .../english/replace/titles_l_english.yml | 22 +- .../replace/zz_NEOW_decisions_l_english.yml | 27 ++ 5 files changed, 430 insertions(+), 28 deletions(-) create mode 100644 common/decisions/NEOW_historical_formation_decisions.txt create mode 100644 common/scripted_effects/NEOW_historical_formation_decisions.txt diff --git a/common/decisions/NEOW_historical_formation_decisions.txt b/common/decisions/NEOW_historical_formation_decisions.txt new file mode 100644 index 00000000..f4469918 --- /dev/null +++ b/common/decisions/NEOW_historical_formation_decisions.txt @@ -0,0 +1,323 @@ +#european_union +#rhineland + +#restore_austria_hungary_decision = { +# picture = { +# reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" +# } +# desc = restore_austria_hungary_decision_desc +# selection_tooltip = restore_austria_hungary_decision_tooltip +# decision_group_type = major +# +# ai_check_interval_by_tier = { +# barony = 0 +# county = 0 +# duchy = 0 +# kingdom = 120 +# empire = 120 +# hegemony = 0 +# } +# +# is_shown = { +# is_ruler = yes +# is_playable_character = yes +# NOT = { +# is_target_in_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_restored_austria_hungary +# } +# } +# OR = { +# } +# } +# +# is_valid = { +# NOT = { has_title = title:e_europa } +# has_title = title:k_austria +# has_title = title:k_hungary +# completely_controls_region = custom_alpine_france +# } +# +# is_valid_showing_failures_only = { +# is_landed = yes +# is_capable_adult = yes +# is_imprisoned = no +# top_liege = this +# is_at_war = no +# } +# +# effect = { +# custom_tooltip = restore_austria_hungary_decision_effect_tooltip +# show_as_tooltip = { +# restore_austria_hungary_decision_effect = yes +# } +# hidden_effect = { +# restore_austria_hungary_decision_effect +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_restored_austria_hungary +# } +# set_global_variable = { +# name = flag_restored_austria_hungary +# value = root +# } +# } +# } +# +# ai_potential = { +# always = yes +# } +# +# ai_will_do = { +# base = 100 +# } +#} + +restore_poland_lithuania_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = restore_poland_lithuania_decision_desc + selection_tooltip = restore_poland_lithuania_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + OR = { + has_title = title:k_poland + has_title = title:k_lithuania + } + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_poland_lithuania + } + } + NEOW_religion_is_broadly_christian_trigger = yes + } + + is_valid = { + has_title = title:k_poland + has_title = title:k_lithuania + prestige_level >= 3 + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = restore_poland_lithuania_decision_effect_tooltip + show_as_tooltip = { + restore_poland_lithuania_decision_effect = yes + } + hidden_effect = { + restore_poland_lithuania_decision_effect = yes + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_poland_lithuania + } + set_global_variable = { + name = flag_restored_poland_lithuania + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +restore_poland_lithuania_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = restore_poland_lithuania_decision_desc + selection_tooltip = restore_poland_lithuania_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + OR = { + has_title = title:k_poland + has_title = title:k_lithuania + } + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_poland_lithuania + } + } + NEOW_religion_is_broadly_christian_trigger = yes + } + + is_valid = { + has_title = title:k_poland + has_title = title:k_lithuania + prestige_level >= 3 + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = restore_poland_lithuania_decision_effect_tooltip + show_as_tooltip = { + restore_poland_lithuania_decision_effect = yes + } + hidden_effect = { + restore_poland_lithuania_decision_effect = yes + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_poland_lithuania + } + set_global_variable = { + name = flag_restored_poland_lithuania + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +restore_polish_borders_decision = { + decision_group_type = major + is_shown = { + has_title = title:k_poland + is_ruler = yes + is_playable_character = yes + NOR = { + title:k_poland = { OR = { is_de_jure_liege_or_above_target = title:d_lower_silesia is_de_jure_liege_or_above_target = title:d_upper_silesia } } + title:k_poland = { is_de_jure_liege_or_above_target = title:d_lesser_poland } + title:k_poland = { is_de_jure_liege_or_above_target = title:d_podkarpackie } + title:k_poland = { is_de_jure_liege_or_above_target = title:d_masuria } + } + } + is_valid = { + custom_tooltip = { + text = restore_polish_borders_decision_tt + OR = { + AND = { OR = { has_title = title:k_silesia completely_controls = title:k_silesia } NOT = { title:k_poland = { OR = { is_de_jure_liege_or_above_target = title:d_lower_silesia is_de_jure_liege_or_above_target = title:d_upper_silesia } } } } + AND = { OR = { has_title = title:d_lesser_poland completely_controls = title:d_lesser_poland } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_lesser_poland } } } + AND = { OR = { has_title = title:d_podkarpackie completely_controls = title:d_podkarpackie } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_podkarpackie} } } + AND = { OR = { has_title = title:d_masuria completely_controls = title:d_masuria } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_masuria } } } + } + } + } + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + + widget = { + gui = "decision_view_widget_option_list_generic" + controller = decision_option_list_controller + decision_to_second_step_button = "restore_polish_borders_decision_confirm" + show_from_start = yes + + item = { + value = restore_polish_borders_silesia + is_valid = { custom_tooltip = { text = restore_polish_borders_silesia_custom OR = { has_title = title:k_silesia completely_controls = title:k_silesia } NOT = { title:k_poland = { OR = { is_de_jure_liege_or_above_target = title:d_lower_silesia is_de_jure_liege_or_above_target = title:d_upper_silesia } } } } } + localization = restore_polish_borders_silesia + icon = "gfx/interface/icons/message_feed/activity.dds" + ai_chance = { value = 100 } + } + + item = { + value = restore_polish_borders_lesser_poland + is_valid = { custom_tooltip = { text = restore_polish_borders_lesser_poland_custom OR = { has_title = title:d_lesser_poland completely_controls = title:d_lesser_poland } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_lesser_poland } } } } + localization = restore_polish_borders_lesser_poland + icon = "gfx/interface/icons/message_feed/activity.dds" + ai_chance = { value = 100 } + } + + item = { + value = restore_polish_borders_podkarpackie + is_valid = { custom_tooltip = { text = restore_polish_borders_podkarpackie_custom OR = { has_title = title:d_podkarpackie completely_controls = title:d_podkarpackie } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_podkarpackie} } } } + localization = restore_polish_borders_podkarpackie + icon = "gfx/interface/icons/message_feed/activity.dds" + ai_chance = { value = 100 } + } + + item = { + value = restore_polish_borders_masuria + is_valid = { custom_tooltip = { text = restore_polish_borders_masuria_custom OR = { has_title = title:d_masuria completely_controls = title:d_masuria } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_masuria } } } } + localization = restore_polish_borders_masuria + icon = "gfx/interface/icons/message_feed/activity.dds" + ai_chance = { value = 100 } + } + } + + effect = { + if = { + limit = { scope:restore_polish_borders_silesia = yes } + if = { + limit = { exists = title:k_silesia } + destroy_title = title:k_silesia + } + title:d_lower_silesia = { set_de_jure_liege_title = title:k_poland } + title:d_upper_silesia = { set_de_jure_liege_title = title:k_poland } + } + if = { + limit = { scope:restore_polish_borders_lesser_poland = yes } + title:d_lesser_poland = { set_de_jure_liege_title = title:k_poland } + } + if = { + limit = { scope:restore_polish_borders_podkarpackie = yes } + title:d_podkarpackie = { set_de_jure_liege_title = title:k_poland } + } + if = { + limit = { scope:restore_polish_borders_masuria = yes } + title:d_masuria = { set_de_jure_liege_title = title:k_poland } + } + } + ai_check_interval = 0 +} diff --git a/common/landed_titles/NEOW_special_titles.txt b/common/landed_titles/NEOW_special_titles.txt index 91ba31b5..b5bed001 100644 --- a/common/landed_titles/NEOW_special_titles.txt +++ b/common/landed_titles/NEOW_special_titles.txt @@ -34,34 +34,44 @@ e_sweden = { # capital = c_brabant # Brussels #} -d_wisentland = { - color = { 127 255 255 } -} - -d_bundesreich = { - color = { 209 5 20 } -} - -d_luthermannien = { - color = { 46 142 243 } -} - -d_tauben = { - color = { 255 255 255 } -} - -d_toterpapsten = { - color = { 95 206 204 } -} - -d_arminien = { - color = { 127 106 0 } -} - -d_neddersassen = { - color = { 156 18 16 } -} +#d_wisentland = { +# color = { 127 255 255 } +#} +# +#d_bundesreich = { +# color = { 209 5 20 } +#} +# +#d_luthermannien = { +# color = { 46 142 243 } +#} +# +#d_tauben = { +# color = { 255 255 255 } +#} +# +#d_toterpapsten = { +# color = { 95 206 204 } +#} +# +#d_arminien = { +# color = { 127 106 0 } +#} +# +#d_neddersassen = { +# color = { 156 18 16 } +#} k_gwynedd = { color = { 1 146 1 } +} + +e_poland_lithuania = { + color = { 180 30 110 } + + capital = c_warsaw + + ai_primary_priority = { + add = @always_primary_score + } } \ No newline at end of file diff --git a/common/scripted_effects/NEOW_historical_formation_decisions.txt b/common/scripted_effects/NEOW_historical_formation_decisions.txt new file mode 100644 index 00000000..0f50423c --- /dev/null +++ b/common/scripted_effects/NEOW_historical_formation_decisions.txt @@ -0,0 +1,22 @@ +restore_poland_lithuania_decision_effect = { + add_prestige = massive_prestige_gain + add_piety = massive_piety_gain + save_scope_as = scoped_ruler + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:e_poland_lithuania = { + 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_poland_lithuania + title:k_poland = { set_de_jure_liege_title = title:e_poland_lithuania } + title:k_lithuania = { set_de_jure_liege_title = title:e_poland_lithuania } + } +} \ No newline at end of file diff --git a/localization/english/replace/titles_l_english.yml b/localization/english/replace/titles_l_english.yml index c48bd97c..93f6232d 100644 --- a/localization/english/replace/titles_l_english.yml +++ b/localization/english/replace/titles_l_english.yml @@ -25586,6 +25586,12 @@ k_goralia_adj:1 "Goralian" k_transylvania:0 "Transylvania" k_transylvania_adj:1 "Transylvanian" + d_tatra:0 "Tatra" + d_tatra_adj:1 "Tatran" + d_banska_bystrica:0 "Banska Bystrica" + d_banska_bystrica_adj:1 "Banska Bystrican" + d_tiszantul:0 "Tiszantul" + d_tiszantul_adj:1 "Tiszantulian" #### Finland #### @@ -25974,6 +25980,10 @@ c_chelm_adj:0 "Chełmski" d_lubelia:0 "Lubelia" d_lubelia_adj:0 "Lubelian" + d_podkarpackie:0 "Podkarpackie" + d_podkarpackie_adj:0 "Podkarpackian" + d_swietokrzyskie:0 "Swietokrzyskie" + d_swietokrzyskie_adj:0 "Swietokrzyskian" b_swidnik:0 "Świdnik" b_radzyn_podlaski:0 "Radzyń Podlaski" b_tomaszow_lubelski:0 "Tomaszów Lubelski" @@ -25987,6 +25997,8 @@ d_zakopane_adj:0 "Zakopiański" b_skarzysko_kamienna:0 "Skarżysko-Kamienna" b_starachowice:0 "Starachowice" + e_poland_lithuania:0 "Poland-Lithuania" + e_poland_lithuania_adj:0 "Polish-Lithuanian" ## Prussia d_prussia:0 "Korolevecgrad" d_prussia_adj:0 "Korolevgradskiy" @@ -26166,6 +26178,13 @@ b_temryuk:0 "Temryuk" d_naissus:0 "Nišavski " d_naissus_adj:0 "Nišavskin" + d_terek:0 "Terek" + d_terek_adj:0 "Terekian" + d_ossetia:0 "Ossetia" + d_ossetia_adj:0 "Ossetian" + c_naurskaya:0 "Naurskaya" + c_naurskaya_adj:0 "Naurskayan" + ### Ukraine d_kherson:0 "Kherson" @@ -26611,7 +26630,8 @@ b_komotini:0 "Komotini" b_adrianopolis:0 "Edirne" b_nesebar:0 "Nesebar" - + c_kynouria:0 "Kynouria" + c_kynouria_adj:0 "Kynourian" diff --git a/localization/english/replace/zz_NEOW_decisions_l_english.yml b/localization/english/replace/zz_NEOW_decisions_l_english.yml index 7f0cc381..b42380c1 100644 --- a/localization/english/replace/zz_NEOW_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_decisions_l_english.yml @@ -1612,4 +1612,31 @@ restore_alpine_border_novelist_france_decision_desc:0 "During the time of Roland I, [GetTitleByKey('e_france').GetNameNoTier] spanned from the North Sea to the Adriatic, before being slain by prefidious Albion and Europa. With the restoration of the natural borders we shall return to glory." restore_alpine_border_novelist_france_decision_effect_tooltip:0 "The [GetGeographicalRegion('custom_alpine_france').GetName] will be recorganized and made [de_jure|E] of [GetTitleByKey('e_france').GetDefinitiveName]" custom_alpine_france:0 "French Alps" + + + restore_polish_borders_decision:0 "Restore the Old Polish Borders" + restore_polish_borders_decision_confirm:0 "Reunite Poland" + restore_polish_borders_decision_tooltip:0 "Reunite Poland" + restore_polish_borders_decision_desc:0 "For many years Poland has lacked control over much of its core realm. By retaking these provinces we can reintegrate them into the state." + restore_polish_borders_decision_tt:0 "Control part of old Poland that is not dejure part of the [GetTitleByKey('k_poland').GetName]" + restore_polish_borders_decision_confirm:0 "Choose title" + restore_polish_borders_silesia:0 "Reclaim [GetTitleByKey('k_silesia').GetName]" + restore_polish_borders_silesia_tooltip:0 " Reclaim [GetTitleByKey('k_silesia').GetName]" + restore_polish_borders_silesia_custom:0 "Completely control or have the title of [GetTitleByKey('k_silesia').GetName]" + restore_polish_borders_lesser_poland:0 "Reclaim [GetTitleByKey('d_lesser_poland').GetName]" + restore_polish_borders_lesser_poland_tooltip:0 "Reclaim [GetTitleByKey('d_lesser_poland').GetName]" + restore_polish_borders_lesser_poland_custom:0 "Completely control or have the title of [GetTitleByKey('d_lesser_poland').GetName]" + restore_polish_borders_podkarpackie:0 "Reclaim [GetTitleByKey('d_podkarpackie').GetName]" + restore_polish_borders_podkarpackie_tooltip:0 "Reclaim [GetTitleByKey('d_podkarpackie').GetName]" + restore_polish_borders_podkarpackie_custom:0 "Completely control or have the title of [GetTitleByKey('d_podkarpackie').GetName]" + restore_polish_borders_masuria:0 "Reclaim [GetTitleByKey('d_masuria').GetName]" + restore_polish_borders_masuria_tooltip:0 "Reclaim [GetTitleByKey('d_masuria').GetName]" + restore_polish_borders_masuria_custom:0 "Completely control or have the title of [GetTitleByKey('d_masuria').GetName]" + + restore_poland_lithuania_decision:0 "Restore the Commonwealth" + restore_poland_lithuania_decision_confirm:0 "Recreate the Polish-Lithuanian Commonwealth" + restore_poland_lithuania_decision_tooltip:0 "Recreate the Polish-Lithuanian Commonwealth." + restore_poland_lithuania_decision_desc:0 "Recreate the Polish-Lithuanian Commonwealth" + restore_poland_lithuania_decision_effect_tooltip:0 "Poland and Lithuania will be united as the Polish-Lithuanian Commonwealth." + \ No newline at end of file