diff --git a/common/decisions/major_decisions_NEOW.txt b/common/decisions/major_decisions_NEOW.txt index 6b3edfa29..d361fb4fe 100644 --- a/common/decisions/major_decisions_NEOW.txt +++ b/common/decisions/major_decisions_NEOW.txt @@ -1137,7 +1137,7 @@ declare_doggerlaw = { is_shown = { is_ruler = yes - is_playable_character = years + is_playable_character = yes culture = culture:doggerlander has_title = title:k_doggerland title:k_doggerlaw = { is_titular = yes } @@ -1171,6 +1171,66 @@ declare_doggerlaw = { always = yes } + ai_will_do = { + base = 100 + } +} + +restore_great_moravia = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = restore_great_moravia_desc + selection_tooltip = restore_great_moravia_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 = { + culture = culture:NEOW_slovak + culture = culture:NEOW_moravian + } + title:k_great_moravia = { is_titular = yes } + } + + is_valid = { + completely_controls = title:k_slovakia + completely_controls = title:d_moravia + completely_controls = title:d_tatra + } + + 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 = { + restore_great_moravia_effect = yes + } + + hidden_effect = { + restore_great_moravia_effect = yes + } + } + + ai_potential = { + always = yes + } + ai_will_do = { base = 100 } diff --git a/common/landed_titles/visegrad.txt b/common/landed_titles/visegrad.txt index 7027dd514..be6dafb3e 100644 --- a/common/landed_titles/visegrad.txt +++ b/common/landed_titles/visegrad.txt @@ -2386,6 +2386,17 @@ e_visegrad = { k_czechoslovakia = { color = { 43 50 124 } + capital = c_praha } + + k_great_moravia = { + color = { 255 55 55 } + + cultural_names = { + name_list_NEOW_slovak = cn_velka_morava + } + + capital = c_brno # Brno + } } \ 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 ee02eeb8f..d99c3bdea 100644 --- a/common/scripted_effects/00_major_decisions_scripted_effects.txt +++ b/common/scripted_effects/00_major_decisions_scripted_effects.txt @@ -4652,4 +4652,151 @@ declare_doggerlaw_effect = { title:d_norfolk = { set_de_jure_liege_title = title:k_doggerlaw } } } +} + +restore_great_moravia_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:k_great_moravia = { + change_title_holder = { + holder = scope:scoped_ruler + change = scope:change + } + } + + resolve_title_and_vassal_change = scope:change + + hidden_effect = { + set_primary_title_to = title:k_great_moravia + + title:d_moravia = { set_de_jure_liege_title = title:k_great_moravia } + title:d_nyitra = { set_de_jure_liege_title = title:k_great_moravia } + title:d_banska_bystrica = { set_de_jure_liege_title = title:k_great_moravia } + title:d_trencin = { set_de_jure_liege_title = title:k_great_moravia } + title:d_tatra = { set_de_jure_liege_title = title:k_great_moravia } + + if = { + limit = { + title:k_hungary = { is_titular = no } + OR = { + has_title = title:k_hungary + completely_controls = title:k_hungary + } + } + destroy_title = title:k_hungary + } + + if = { + limit = { + title:k_bohemia = { is_titular = no } + OR = { + has_title = title:k_bohemia + completely_controls = title:k_bohemia + } + } + destroy_title = title:k_bohemia + } + + if = { + limit = { + title:k_galicia-volhynia = { is_titular = no } + OR = { + has_title = title:k_galicia-volhynia + completely_controls = title:k_galicia-volhynia + } + } + destroy_title = title:k_galicia-volhynia + } + + + + if = { + limit = { + title:d_gyor = { is_titular = no } + OR = { + has_title = title:d_gyor + completely_controls = title:d_gyor + } + } + title:d_gyor = { set_de_jure_liege_title = title:k_great_moravia } + } + if = { + limit = { + title:d_visegrad = { is_titular = no } + OR = { + has_title = title:d_visegrad + completely_controls = title:d_visegrad + } + } + title:d_visegrad = { set_de_jure_liege_title = title:k_great_moravia } + } + if = { + limit = { + title:d_somogy = { is_titular = no } + OR = { + has_title = title:d_somogy + completely_controls = title:d_somogy + } + } + title:d_somogy = { set_de_jure_liege_title = title:k_great_moravia } + } + if = { + limit = { + title:d_szekesfehervar = { is_titular = no } + OR = { + has_title = title:d_szekesfehervar + completely_controls = title:d_szekesfehervar + } + } + title:d_szekesfehervar = { set_de_jure_liege_title = title:k_great_moravia } + } + if = { + limit = { + title:d_bacs = { is_titular = no } + OR = { + has_title = title:d_bacs + completely_controls = title:d_bacs + } + } + title:d_bacs = { set_de_jure_liege_title = title:k_great_moravia } + } + if = { + limit = { + title:d_tiszantul = { is_titular = no } + OR = { + has_title = title:d_tiszantul + completely_controls = title:d_tiszantul + } + } + title:d_tiszantul = { set_de_jure_liege_title = title:k_great_moravia } + } + if = { + limit = { + title:d_ungvar = { is_titular = no } + OR = { + has_title = title:d_ungvar + completely_controls = title:d_ungvar + } + } + title:d_ungvar = { set_de_jure_liege_title = title:k_great_moravia } + } + if = { + limit = { + title:d_transcarpathia = { is_titular = no } + OR = { + has_title = title:d_transcarpathia + completely_controls = title:d_transcarpathia + } + } + title:d_transcarpathia = { set_de_jure_liege_title = title:k_great_moravia } + } + } } \ No newline at end of file diff --git a/localization/english/replace/titles_cultural_names_l_english.yml b/localization/english/replace/titles_cultural_names_l_english.yml index 742e58d44..aa1ccf2dc 100644 --- a/localization/english/replace/titles_cultural_names_l_english.yml +++ b/localization/english/replace/titles_cultural_names_l_english.yml @@ -7279,9 +7279,10 @@ cn_laubn:0 "Laubn" cn_lub_a_act__n_crn_:0 "Lubáň" - ## Doggerlaw + ## Formables cn_doggerlagen:0 "Doggerlagen" + cn_velka_morava:0 "Veľká Morava" ### N3OW COSMETIC TITLES ### diff --git a/localization/english/replace/titles_l_english.yml b/localization/english/replace/titles_l_english.yml index cef7ddf5d..f859dd8b2 100644 --- a/localization/english/replace/titles_l_english.yml +++ b/localization/english/replace/titles_l_english.yml @@ -17592,6 +17592,8 @@ k_gondwana_adj:0 "Gondwanan" k_gujarat:0 "Gujarat" k_gujarat_adj:0 "Gujarati" + k_great_moravia:0 "Great Moravia" + k_great_moravia_adj:0 "Moravian" k_hammadid:0 "Hammadid" k_hansa_article:0 "the " k_hansa:0 "Hansa" diff --git a/localization/english/replace/zz_NEOW_decisions_l_english.yml b/localization/english/replace/zz_NEOW_decisions_l_english.yml index f13621961..dfc997045 100644 --- a/localization/english/replace/zz_NEOW_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_decisions_l_english.yml @@ -1705,6 +1705,12 @@ declare_doggerlaw_desc:0 "The British Empire has made us their subjects a multitude of times in the past. Now, with them severely weakened, it is time to turn the table on them." declare_doggerlaw_effect_tooltip:0 "A new kingdom will be created in our territories of Northumbria and southern Scotland" + restore_great_moravia:0 "Restore Great Moravia" + restore_great_moravia_confirm:0 "Our ancient lands will be restored!" + restore_great_moravia_tooltip:0 "Reunite the Moravians and Slovaks." + 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." + ### Restoring Czechoslovakia ### reform_czechoslovakia_decision:0 "Reform Czechoslovakia" reform_czechoslovakia_decision_confirm:0 "Unite the Separated Brothers"