List of double-scopes triggers

From Europa Universalis 3 Wiki
Revision as of 19:33, 12 December 2014 by Meneth (talk | contribs) (→‎All Scopes: Remove import category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Boolean container
Availability Syntax Values Comment
AND EU3.gif AND = { } <trigger syntax> Return true if all the triggers inside the bracket return true.
OR EU3.gif OR = { } <trigger syntax> Return true if one of the triggers inside the bracket return true.
NOT EU3.gif NOT = { } <trigger syntax> Return true if all the triggers inside the bracket return false.
Values
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

Triggers that works on any scope
Availability Syntax Values Comment
year EU3.gif year = Returns true if the current year is ℕ or later.
month EU3.gif month = Returns true if the current month is ℕ or later. ℕ = {0,...,11} where 0 = January and 11 = December
is_religion_enabled EU3.gif is_religion_enabled = <religion type> Returns true if the specified religion is enabled.
exists EU3.gif exists = <country tag> Returns true if the specified country exists.
num_of_electors EU3.gif num_of_electors = Returns true if there are currently ℕ electors or more.
AI NA.gif ai = yes/IN.gifno Returns true if the country is handled by the AI.
revolution_target_exists NA.gif revolution_target_exists = yes/no Returns true if a revolution target has been chosen.
check_variable NA.gif check_variable = { } which = <variable name> value = ℤ Returns true if the variable exists and its value is more than ℤ. IN.gif: equal or more than ℤ.
has_global_flag IN.gif has_global_flag = <name of flag> Returns true if the global flag exists.
had_global_flag HTTT.png 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 HTTT.png papacy_active = yes/no Returns true if the papacy has not been deactivated.
hre_size HTTT.png hre_size = Returns true if there are at least ℕ member countries in the Holy Roman Empire.
national_focus HTTT.png national_focus = province ID#/THIS Returns true if the target is the National Focus.
start_date DW.png start_date = YYYY.MM.DD Returns true if the game started on this exact start date.
has_hre_member_modifier DW.png has_hre_member_modifier = <modifier name> Returns true if the HRE member countries has the modifier.
has_hre_emperor_modifier DW.png has_hre_emperor_modifier = <modifier name> Returns true if emperor has the modifier.
imperial_influence DW.png imperial_influence = Returns true if imperial influence is equal to ℕ or higher. ℕ = {0,...,100}
religion_years DW.png religion_years = { } <religion name> = ℕ Returns true if religion name has been enabled for ℕ years or longer.
shogun_exists DW.png shogun_exists = yes/no Returns true if any country is shogun
kampaku_exists DW.png kampaku_exists = yes/no Returns true if any country is kampaku.
shogun_influence DW.png shogun_influence = Returns true if the shogun has influence equal to ℕ or higher. ℕ = {0,...,100}
shogunate_civil_war DW.png shogunate_civil_war = yes/no Returns true if at least two daimyos are at war with each other.
num_of_daimyos DW.png num_of_daimyos = Returns true if the number of daimyos is equal to ℕ or higher.