-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved flag change to event, get the opportunity to change every time …
…you go republican or change republic type Credits must be given to the VTM Spain author, who wrote this in their on_law_activated documentation; # root = ?????????????????? # DOCUMENTATION SAYS COUNTRY BUT ITS LAW # WHY DO YOU LIE???????????? # WHY??? Without that I would've been lost. o7
- Loading branch information
Showing
6 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
change_british_flag = { | ||
is_shown = { | ||
root ?= c:GBR | ||
has_variable = can_change_british_flag | ||
} | ||
possible = { | ||
OR = { | ||
has_law = law_type:law_parliamentary_republic | ||
has_law = law_type:law_presidential_republic | ||
} | ||
} | ||
when_taken = { | ||
remove_variable = can_change_british_flag | ||
trigger_event = { | ||
id = british_republican_flag_events.1 | ||
popup = yes | ||
} | ||
} | ||
ai_chance = { | ||
base = 0 | ||
# AI will only do if flag haven't been set before | ||
modifier = { | ||
trigger = { | ||
NOT = { | ||
has_variable = british_republican_flag_variant | ||
} | ||
} | ||
add = 100 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# root = law | ||
# type = law_type | ||
# owner = the country activating the law | ||
# Courtesy of VTMs headaches | ||
on_imperia_law_activated = { | ||
effect = { | ||
if = { | ||
limit = { | ||
owner ?= c:GBR | ||
OR = { | ||
type = law_type:law_parliamentary_republic | ||
type = law_type:law_presidential_republic | ||
} | ||
} | ||
owner = { | ||
set_variable = can_change_british_flag | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters