From 9d3e89f01622156e50e45bc05f62cd0852af1a3f Mon Sep 17 00:00:00 2001 From: Heidesommer Date: Thu, 21 May 2026 05:14:39 -0400 Subject: [PATCH] Lion of the North --- .../coat_of_arms/NEOW_landed_titles.txt | 1 - .../coat_of_arms/coat_of_arms/scandinavia.txt | 22 +++ common/decisions/major_decisions_NEOW.txt | 73 ++++++++++ common/landed_titles/NEOW_special_titles.txt | 18 +++ common/nicknames/NEOW_nicknames.txt | 5 +- .../00_major_decisions_scripted_effects.txt | 130 ++++++++++++++++++ events/NEOW_decisions.txt | 1 + .../english/replace/titles_l_english.yml | 2 + .../replace/zz_NEOW_decisions_l_english.yml | 12 +- .../geographical_region.txt | 15 ++ 10 files changed, 276 insertions(+), 3 deletions(-) create mode 100644 events/NEOW_decisions.txt diff --git a/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt b/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt index 1c95e5c2..1ecfefb8 100644 --- a/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt +++ b/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt @@ -4405,7 +4405,6 @@ k_sweden = { } - k_denmark = { pattern="pattern_horizontal_split_01.dds" color1=red diff --git a/common/coat_of_arms/coat_of_arms/scandinavia.txt b/common/coat_of_arms/coat_of_arms/scandinavia.txt index 10acd596..8229e161 100644 --- a/common/coat_of_arms/coat_of_arms/scandinavia.txt +++ b/common/coat_of_arms/coat_of_arms/scandinavia.txt @@ -32,3 +32,25 @@ k_gotaland={ } } + +e_sweden = { + pattern="pattern_horizontal_split_01.dds" + color1=blue + color2=yellow_light + color3=red + colored_emblem={ + color1=blue + texture="ce_block_02.dds" + instance={ + depth=1.010000 + } + + } + + colored_emblem={ + color1=blue + color2=yellow_light + texture="NEOW_ce_cross_nordic.dds" + } + +} \ No newline at end of file diff --git a/common/decisions/major_decisions_NEOW.txt b/common/decisions/major_decisions_NEOW.txt index 5f96ae40..17fc7a65 100644 --- a/common/decisions/major_decisions_NEOW.txt +++ b/common/decisions/major_decisions_NEOW.txt @@ -406,3 +406,76 @@ form_the_kingdom_of_rhineland_decision = { ai_will_do = { base = 100 } } + +restore_swedish_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = restore_swedish_empire_decision_desc + selection_tooltip = restore_swedish_empire_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 = { + has_title = title:k_sweden + is_ruler = yes + is_playable_character = yes + #Visible to dukes and kings. + highest_held_title_tier >= tier_duchy + highest_held_title_tier <= tier_kingdom + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_swedish_empire + } + } + } + + is_valid = { + highest_held_title_tier = tier_kingdom + completely_controls_region = custom_swedish_empire + } + + 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_swedish_empire_decision_effect_tooltip + gain_heroic_legend_seed_tooltip_effect = yes + show_as_tooltip = { + restore_swedish_empire_effect = yes + } + hidden_effect = { + restore_swedish_empire_effect = yes + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:restored_swedish_empire + } + set_global_variable = { + name = flag_restored_swedish_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} \ No newline at end of file diff --git a/common/landed_titles/NEOW_special_titles.txt b/common/landed_titles/NEOW_special_titles.txt index 4119fcb2..91ba31b5 100644 --- a/common/landed_titles/NEOW_special_titles.txt +++ b/common/landed_titles/NEOW_special_titles.txt @@ -1,4 +1,10 @@ # special titles + +@correct_culture_primary_score = 100 +@better_than_the_alternatives_score = 50 +@always_primary_score = 1000 +@never_primary_score = -1000 + h_europa = { color = { 0 51 153 } @@ -11,6 +17,18 @@ h_europa = { } } +e_sweden = { + color = { 5 50 90 } + + capital = c_stockholm + + ai_primary_priority = { + add = @always_primary_score + } +} + + + #e_europa = { # color = { 0 51 153 } # capital = c_brabant # Brussels diff --git a/common/nicknames/NEOW_nicknames.txt b/common/nicknames/NEOW_nicknames.txt index f1ac4e90..0bdbf787 100644 --- a/common/nicknames/NEOW_nicknames.txt +++ b/common/nicknames/NEOW_nicknames.txt @@ -13,4 +13,7 @@ nick_NEOW_the_menhir = {} nick_NEOW_the_phantom = {} nick_NEOW_the_oracle = {} nick_NEOW_the_cimbrian = {} -nick_NEOW_the_monolith = {} \ No newline at end of file +nick_NEOW_the_monolith = {} + +# Decision Nicknames +nick_the_lion_of_the_north = {} \ 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 73a7077a..2b85d061 100644 --- a/common/scripted_effects/00_major_decisions_scripted_effects.txt +++ b/common/scripted_effects/00_major_decisions_scripted_effects.txt @@ -3862,3 +3862,133 @@ found_empire_of_hindustan_scripted_effect = { add_legitimacy_effect = { LEGITIMACY = massive_legitimacy_gain } dynasty ?= { add_dynasty_prestige = massive_dynasty_prestige_value } } + + + +restore_swedish_empire_effect = { + add_prestige = massive_prestige_gain + add_piety = massive_piety_gain + give_nickname = nick_the_lion_of_the_north + save_scope_as = scoped_ruler + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:e_sweden = { + change_title_holder = { + holder = scope:scoped_ruler + change = scope:change + } + hidden_effect = { + copy_title_history = title:k_sweden + } + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { + set_primary_title_to = title:e_sweden + title:d_vasterbottena = { set_de_jure_liege_title = title:k_sweden } + title:d_norrbottena = { set_de_jure_liege_title = title:k_sweden } + title:d_giemajohka = { set_de_jure_liege_title = title:k_finland } + title:d_west_karelia = { set_de_jure_liege_title = title:k_finland } + title:k_finland = { set_de_jure_liege_title = title:e_sweden } + title:d_west_karelia = { set_de_jure_liege_title = title:k_finland } + title:k_esthonia = { set_de_jure_liege_title = title:e_sweden } + title:k_sweden = { set_de_jure_liege_title = title:e_sweden } + if = { + limit = { + exists = title:gotaland + } + destroy_title = title:gotaland + } + if = { + limit = { title:k_gotaland ?= { is_titular = no } } + title:k_gotaland = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_duchy } + set_de_jure_liege_title = title:k_sweden + } + } + } + if = { + limit = { + title:k_norway = { is_titular = no } + OR = { + has_title = title:k_norway + completely_controls = title:k_norway + } + } + title:k_norway = { set_de_jure_liege_title = title:e_sweden } + } + if = { + limit = { + title:k_latvia = { is_titular = no } + OR = { + has_title = title:k_latvia + completely_controls = title:k_latvia + } + } + title:k_latvia = { set_de_jure_liege_title = title:e_sweden } + } + if = { + limit = { + title:k_lithuania = { is_titular = no } + OR = { + has_title = title:k_lithuania + completely_controls = title:k_lithuania + } + } + title:k_lithuania = { set_de_jure_liege_title = title:e_sweden } + } + if = { + limit = { + title:k_schleswig_holstein = { is_titular = no } + OR = { + has_title = title:k_schleswig_holstein + completely_controls = title:k_schleswig_holstein + } + } + title:k_schleswig_holstein = { set_de_jure_liege_title = title:e_sweden } + } + if = { + limit = { + title:k_karelia = { is_titular = no } + OR = { + has_title = title:k_karelia + completely_controls = title:k_karelia + } + } + title:k_karelia = { set_de_jure_liege_title = title:e_sweden } + } + if = { + limit = { + title:k_poland = { is_titular = no } + OR = { + has_title = title:k_poland + completely_controls = title:k_poland + } + } + title:k_poland = { set_de_jure_liege_title = title:e_sweden } + } + if = { + limit = { + title:k_poland = { is_titular = no } + OR = { + has_title = title:k_poland + completely_controls = title:k_poland + } + } + title:k_poland = { set_de_jure_liege_title = title:e_sweden } + } + if = { + limit = { + title:k_petrograd = { is_titular = no } + OR = { + has_title = title:k_petrograd + completely_controls = title:k_petrograd + } + } + title:k_petrograd = { set_de_jure_liege_title = title:e_sweden } + } + } +} \ No newline at end of file diff --git a/events/NEOW_decisions.txt b/events/NEOW_decisions.txt new file mode 100644 index 00000000..6b487774 --- /dev/null +++ b/events/NEOW_decisions.txt @@ -0,0 +1 @@ +namespace = NEOW_decisions diff --git a/localization/english/replace/titles_l_english.yml b/localization/english/replace/titles_l_english.yml index d0cef2df..b1ff4391 100644 --- a/localization/english/replace/titles_l_english.yml +++ b/localization/english/replace/titles_l_english.yml @@ -3384,6 +3384,8 @@ d_napoli_adj:0 "Campanian" h_europa:0 "Europa" h_europa_adj:0 "European" + e_sweden:0 "Sweden" + e_sweden_adj:0 "Swedish" c_ticino:0 "Ticino" c_ticino_adj:0 "Ticinon" b_thusis:0 "Sion" diff --git a/localization/english/replace/zz_NEOW_decisions_l_english.yml b/localization/english/replace/zz_NEOW_decisions_l_english.yml index 815ed1e5..5e424b51 100644 --- a/localization/english/replace/zz_NEOW_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_decisions_l_english.yml @@ -1570,4 +1570,14 @@ reforge_crown_wenceslas_decision_desc: "Reforge the Crown of St. Wenceslas, which has been dismantled and ashamed for far too long." reforge_crown_wenceslas_decision_tooltip: "Reforge the Crown of St. Wenceslas" reforge_crown_wenceslas_decision_confirm: "To the forge!" - must_have_crown_wenceslas:0 "You must possess the #color_white $crown_wenceslas_name$" \ No newline at end of file + must_have_crown_wenceslas:0 "You must possess the #color_white $crown_wenceslas_name$" + + restore_swedish_empire_decision:0 "Restore the Swedish Empire" + restore_swedish_empire_decision_confirm:0 "The Lion of the North roars!" + restore_swedish_empire_decision_tooltip:0 "Sweden's glory must be restored." + restore_swedish_empire_decision_desc:0 "Long before the deluge, legends speak of Sweden holding an empire spanning the Baltic Sea. By retaking these old lands, we can restore the glory of Sweden." + restore_swedish_empire_decision_effect_tooltip:0 "The Swedish Empire will be restored and acquire the [de_jure|E] of all currently held kingdoms around the Baltic." + nick_the_lion_of_the_north:0 "the Lion of the North" + nick_the_lion_of_the_north_desc:1 "The master of Northern Europe, [CHARACTER.GetShortUINameNoTooltipNoFormat] [CharHaveHas(CHARACTER)] brought a glory back to Sweden not seen in a thousand years." + custom_swedish_empire:0 "Core Territories of the Swedish Empire" + diff --git a/map_data/geographical_regions/geographical_region.txt b/map_data/geographical_regions/geographical_region.txt index d10c99fe..db7f0ecd 100644 --- a/map_data/geographical_regions/geographical_region.txt +++ b/map_data/geographical_regions/geographical_region.txt @@ -5923,3 +5923,18 @@ paddy_fields_region = { graphical_east_asia } } + +custom_swedish_empire = { + kingdoms = { + k_sweden + k_gotaland + k_finland + k_esthonia + } + duchies = { + d_vasterbottena + d_norrbottena + d_giemajohka + d_west_karelia + } +} \ No newline at end of file