Skip to content

Commit

Permalink
Selection event, confirmed to work
Browse files Browse the repository at this point in the history
Just need an event image now!
  • Loading branch information
Danarca committed Jan 23, 2025
1 parent aa208f6 commit 422dd6b
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/on_actions/imperia_on_monthtly_pulse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}

Expand Down
91 changes: 91 additions & 0 deletions events/imperia_british_republican_flag_events.txt
Original file line number Diff line number Diff line change
@@ -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
}
}
}
13 changes: 12 additions & 1 deletion localization/english/imperia_misc_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,15 @@

afro_american_acceptance: "Afro-American Acceptance"

imperia_british_india_mortality_modifier: "Oppressive Agrarianization"
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)"

0 comments on commit 422dd6b

Please sign in to comment.