From 422dd6b4e7699684e6421f2cb565a0e7e8a3c465 Mon Sep 17 00:00:00 2001 From: Danarca <44327039+Danarca@users.noreply.github.com> Date: Thu, 23 Jan 2025 19:47:15 +0100 Subject: [PATCH] Selection event, confirmed to work Just need an event image now! --- .../on_actions/imperia_on_monthtly_pulse.txt | 1 + ...imperia_british_republican_flag_events.txt | 91 +++++++++++++++++++ .../english/imperia_misc_l_english.yml | 13 ++- 3 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 events/imperia_british_republican_flag_events.txt diff --git a/common/on_actions/imperia_on_monthtly_pulse.txt b/common/on_actions/imperia_on_monthtly_pulse.txt index 637fcc505..35d6452e7 100644 --- a/common/on_actions/imperia_on_monthtly_pulse.txt +++ b/common/on_actions/imperia_on_monthtly_pulse.txt @@ -447,6 +447,7 @@ } events = { infamy_rebalance.1 #updates provinces each month + british_republican_flag_events.1 # British republican flag event, should fire only once. } } diff --git a/events/imperia_british_republican_flag_events.txt b/events/imperia_british_republican_flag_events.txt new file mode 100644 index 000000000..934d30729 --- /dev/null +++ b/events/imperia_british_republican_flag_events.txt @@ -0,0 +1,91 @@ +namespace = british_republican_flag_events + +# Slect one of the five flags for the British Republic +british_republican_flag_events.1 = { + type = country_event + event_image = { + ## Placeholder image + # Replace with the .dds file of the flags, so people can see what they're voting for + texture = "gfx/event_pictures/shoe_throwable.dds" + } + on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear" + on_opened_soundeffect = "event:/SFX/Events/unspecific/signed_contract" + icon = "gfx/interface/icons/event_icons/event_newspaper.dds" + title = british_republican_flag_events.1.t + desc = british_republican_flag_events.1.desc + flavor = british_republican_flag_events.1.f + duration = 3 + trigger = { + root ?= c:GBR + OR = { + has_law = law_type:law_parliamentary_republic + has_law = law_type:law_presidential_republic + } + NOT = { + has_variable = british_republican_flag_variant + } + } + immediate = { + # Just to initialise so this event doesn't keep firing + set_variable = { + name = british_republican_flag_variant + value = 0 + } + } + # Spartacus Union Jack (bottom blues replaced with green + option = { + name = british_republican_flag_events.1.a + default_option = yes + set_variable = { + name = british_republican_flag_variant + value = 1 + } + ai_chance = { + base = 20 + } + } + # Chartist tricolour (red, white, green) + option = { + name = british_republican_flag_events.1.b + set_variable = { + name = british_republican_flag_variant + value = 2 + } + ai_chance = { + base = 20 + } + } + # Spartacus tricolour (blue, white, green) + option = { + name = british_republican_flag_events.1.c + set_variable = { + name = british_republican_flag_variant + value = 3 + } + ai_chance = { + base = 20 + } + } + # Union flag (Blue, white-with-red, green, combination of the Chartist and Spartacus tricolours) + option = { + name = british_republican_flag_events.1.d + set_variable = { + name = british_republican_flag_variant + value = 4 + } + ai_chance = { + base = 20 + } + } + # Union stripe (blue, white-with-red, blue) + option = { + name = british_republican_flag_events.1.e + set_variable = { + name = british_republican_flag_variant + value = 5 + } + ai_chance = { + base = 20 + } + } +} \ No newline at end of file diff --git a/localization/english/imperia_misc_l_english.yml b/localization/english/imperia_misc_l_english.yml index a245c498d..31d78160a 100644 --- a/localization/english/imperia_misc_l_english.yml +++ b/localization/english/imperia_misc_l_english.yml @@ -133,4 +133,15 @@ afro_american_acceptance: "Afro-American Acceptance" - imperia_british_india_mortality_modifier: "Oppressive Agrarianization" \ No newline at end of file + imperia_british_india_mortality_modifier: "Oppressive Agrarianization" + + # British Republican flags + british_republican_flag_events.1.t: "The British Republican Flag" + british_republican_flag_events.1.desc: "The British Republican Flag will be hoisted over the capital, marking the end of the monarchy and the beginning of a new era. The flag is a symbol of the new [ROOT.GetCountry.GetNameNoFlag], and the people are proud to see it flying high.\nIt's just...\n\nWhich one should we choose?" + british_republican_flag_events.1.f: "To retract, to retreat, is, at this time, absolutely impossible..." + + british_republican_flag_events.1.a: "The Spartacus Union Jack (bottom blues replaced with green)" + british_republican_flag_events.1.b: "The Chartist tricolour (red, white, green)" + british_republican_flag_events.1.c: "The Spartacus tricolour (blue, white, green)" + british_republican_flag_events.1.d: "The Union Flag (blue, white-with-red, green)" + british_republican_flag_events.1.e: "The Union Stripe Flag (blue, white-with-red, blue)" \ No newline at end of file