List of double-scopes triggers
Jump to navigation
Jump to search
This article lists all possible event triggers.
See also the List of province scope triggers, the List of country scope triggers and for more info on writing/modding events, please see structure of events.
Syntax key
Name | Explanation | |
---|---|---|
ℕ | natural numbers | ℕ means { 0, 1, 2, 3, ...}. |
ℤ | integers | ℤ means {..., −3, −2, −1, 0, 1, 2, 3, ...}. |
[0,1] | positive real interval | [0,1] mean any real number between 0 and 1, for example 0 and 0.05. 0.05 mean 5%. |
[-1,1] | real interval | [-1,1] mean any real number between -1 and 1, for example -0.8 and 0. -0.8 mean -80%. |
THIS | country | THIS is always the country/the province that fire the event, the mission or the decision. Generally used with scopes to compare scope with THIS. |
FROM | country | The country that triggered the event. |
<...> | code name | Any code name as defined in the relevant game files. You can add new code yourself in. |
yes/no | Boolean | Obviously, yes return true and no return false |
All Scopes
Availability | Syntax | Values | Comment | |
---|---|---|---|---|
year | ![]() |
year = | ℕ | Returns true if the current year is ℕ or later. |
month | ![]() |
month = | ℕ | Returns true if the current month is ℕ or later. ℕ = {0,...,11} where 0 = January and 11 = December |
is_religion_enabled | ![]() |
is_religion_enabled = | <religion type> | Returns true if the specified religion is enabled. |
exists | ![]() |
exists = | <country tag> | Returns true if the specified country exists. |
num_of_electors | ![]() |
num_of_electors = | ℕ | Returns true if there are currently ℕ electors or more. |
AI | ![]() |
ai = | yes/![]() |
Returns true if the country is handled by the AI. |
revolution_target_exists | ![]() |
revolution_target_exists = | yes/no | Returns true if a revolution target has been chosen. |
check_variable | ![]() |
check_variable = { } | which = <variable name> value = ℤ | Returns true if the variable exists and its value is more than ℤ. ![]() |
has_global_flag | ![]() |
has_global_flag = | <name of flag> | Returns true if the global flag exists. |
had_global_flag | ![]() |
had_global_flag = { } | flag = <name of flag> days/months/years = ℕ | Returns true if the global flag has been set for ℕ days/months/years or longer. |
papacy_active | ![]() |
papacy_active = | yes/no | Returns true if the papacy has not been deactivated. |
hre_size | ![]() |
hre_size = | ℕ | Returns true if there are at least ℕ member countries in the Holy Roman Empire. |
national_focus | ![]() |
national_focus = | province ID#/THIS | Returns true if the target is the National Focus. |
start_date | ![]() |
start_date = | YYYY.MM.DD | Returns true if the game started on this exact start date. |
has_hre_member_modifier | ![]() |
has_hre_member_modifier = | <modifier name> | Returns true if the HRE member countries has the modifier. |
has_hre_emperor_modifier | ![]() |
has_hre_emperor_modifier = | <modifier name> | Returns true if emperor has the modifier. |
imperial_influence | ![]() |
imperial_influence = | ℕ | Returns true if imperial influence is equal to ℕ or higher. ℕ = {0,...,100} |
religion_years | ![]() |
religion_years = { } | <religion name> = ℕ | Returns true if religion name has been enabled for ℕ years or longer. |
shogun_exists | ![]() |
shogun_exists = | yes/no | Returns true if any country is shogun |
kampaku_exists | ![]() |
kampaku_exists = | yes/no | Returns true if any country is kampaku. |
shogun_influence | ![]() |
shogun_influence = | ℕ | Returns true if the shogun has influence equal to ℕ or higher. ℕ = {0,...,100} |
shogunate_civil_war | ![]() |
shogunate_civil_war = | yes/no | Returns true if at least two daimyos are at war with each other. |
num_of_daimyos | ![]() |
num_of_daimyos = | ℕ | Returns true if the number of daimyos is equal to ℕ or higher. |