List of country scope triggers

From Europa Universalis 3 Wiki
Jump to navigation Jump to search

This article lists all possible event triggers.

See also the List of province scope triggers, the List of double-scopes 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 receives 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

Triggers

Triggers that only work on country scope
Availability Syntax Values Comment

Diplomatic conditions

war EU3.gif war = yes/no If the current country is at war.
num_of_allies EU3.gif num_of_allies = If the number of allies the country has is ℕ or more.
num_of_royal_marriages EU3.gif nnum_of_royal_marriages = If the number of royal marriages a country has is ℕ or more.
num_of_vassals EU3.gif num_of_vassals = If the number of vassals a country has is ℕ or more.
num_of_unions EU3.gif num_of_unions = If the number of unions a country has is ℕ or more.
relation EU3.gif relation = { } who = <country tag>/THIS value = ℤ If the specified country has a relation value of ℤ or higher.
is_emperor EU3.gif is_emperor = yes/no If the current country is emperor of the HRE.
preferred_emperor IN.gif preferred_emperor = <country tag>/THIS/FROM If the specified country is the one that the current country prefers to vote for emperor of the HRE.
elector EU3.gif elector = yes/no If the current country is elector of the HRE.
casus_belli EU3.gif casus_belli = <country tag>/DW.pngTHIS If the current country has a casus belli against the specified country.
knows_country EU3.gif knows_country = <country tag> If the current country has discovered the specified country’s capital.
neighbour EU3.gif neighbour = <country tag> If the current country is a neighbour to the specified country.
war_with EU3.gif war_with = <country tag> If the current country is at war with the specified country. In Divine Wind this includes "horde wars".
truce_with NA.gif truce_with = <country tag>/THIS/FROM If the current country has a truce with the specified country.
vassal_of NA.gif vassal_of = <country tag>/THIS/FROM If the country is a vassal of the specified country. Might be buggy?
alliance_with NA.gif alliance_with = <country tag>/THIS/FROM If the country is allied with the specified country.
marriage_with NA.gif marriage_with = <country tag>/THIS/FROM If the country has a royal marriage with the specified country.
junior_union_with NA.gif junior_union_with = <country tag>/THIS/FROM If the country is the junior partner in a personal union with the specified country.
senior_union_with NA.gif senior_union_with = <country tag>/THIS/FROM If the country is the senior partner in a personal union with the specified country.
is_subject IN.gif is_subject = yes/no If the country is a vassal.
is_lesser_in_union IN.gif is_lesser_in_union = yes/no If the country is a junior partner in a personal union.
is_rival IN.gif is_rival = yes/no/DW.png<country tag> If the country is a rival. If <country tag>, If the country considers country tag a rival.
is_threat IN.gif is_threat = yes/no/DW.png<country tag> If the country is a threat. If <country tag>, If the country considers country tag a threat.
overlord_of IN.gif overlord_of = <country tag>/THIS/FROM(?) If the country has the specified country as a vassal.
border_friction_claim HTTT.png border_friction_claim = <country tag> If the scope country has a Border Friction CB on the target
colony_claim HTTT.png colony_claim = <country tag> If the scope country has a Colony Claim CB on the target
core_claim HTTT.png core_claim = <country tag> If the scope country has a Core CB on the target
culture_group_claim HTTT.png culture_group_claim = <country tag> If the scope country has a Culture Group CB on the target
religion_group_claim HTTT.png religion_group_claim = <country tag> If scope country has a Religion Group CB on the target
succession_claim HTTT.png succession_claim = <country tag> If scope country has a Succession Group CB on the target
horde_war DW.png horde_war = yes/no If the country is in a horde war.
has_sphere DW.png has_sphere = yes/no If the country has at least one country in its sphere.
in_sphere DW.png in_sphere = <country tag> If the country is in the sphere of country tag.
is_shogun DW.png is_shogun = yes/no If the country is shogun.
is_kampaku DW.png is_kampaku = yes/no If the country is kampaku.
is_daimyo DW.png is_daimyo = yes/no If the country is daimyo.

Warfare conditions

wartax EU3.gif wartax = yes/no If the country is raising war taxes.
war_exhaustion EU3.gif war_exhaustion = If the country’s war exhaustion is equal to ℕ or above.
blockade EU3.gif blockade = [0,1] If the blockade percentage is equal to [0,1] or above.
land_maintenance EU3.gif land_maintenance = [0,1] If the country has a land maintenance value of [0,1] or higher.
naval_maintenance EU3.gif naval_maintenance = [0,1] If the country has a naval maintenance value of [0,1] or higher.
infantry EU3.gif infantry = If the country has ℕ or more infantry.
cavalry EU3.gif cavalry = If the country has ℕ or more cavalry.
artillery EU3.gif artillery = If the country has ℕ or more artillery.
big_ship EU3.gif big_ship = If the country has ℕ or more big ship.
light_ship EU3.gif light_ship = If the country has ℕ or more light ship.
galley EU3.gif galley = If the country has ℕ or more galley.
transport EU3.gif transport = If the country has ℕ or more transport ships.
infantry_fraction EU3.gif infantry_fraction = [0,1] If the country has an infantry fraction of [0,1] or higher.
cavalry_fraction EU3.gif cavalry_fraction = [0,1] If the country has an cavalry fraction of [0,1] or higher.
artillery_fraction EU3.gif artillery_fraction = [0,1] If the country has an artillery fraction of [0,1] or higher.
big_ship_fraction EU3.gif big_ship_fraction = [0,1] If the country has an big ship fraction of [0,1] or higher.
light_ship_fraction EU3.gif light_ship_fraction = [0,1] If the country has an light ship fraction of [0,1] or higher.
galley_fraction EU3.gif galley_fraction = [0,1] If the country has an galley fraction of [0,1] or higher.
transport_fraction EU3.gif transport_fraction = [0,1] If the country has an transport fraction of [0,1] or higher.
unit_in_battle EU3.gif unit_in_battle = yes/no If the country has any unit that is fighting a battle.
unit_in_siege EU3.gif unit_in_siege = yes/no If the country has any unit that is taking part in a siege.
unit_has_leader EU3.gif unit_has_leader = yes/no If any unit in the current country has a leader.
navy_size_percentage NA.gif navy_size_percentage = [0,1] If the country has built a fraction of its navy size limit of [0,1] or higher.
army_size_percentage NA.gif army_size_percentage = [0,1] If the country has built a fraction of its army size limit of [0,1] or higher.
land_forcelimit IN.gif land_forcelimit = If the army size limit of the country is at least ℕ.
naval_forcelimit IN.gif naval_forcelimit = If the naval size limit of the country is at least ℕ.
army IN.gif army = ℕ/THIS/FROM If compared with a number: If the specified country has at least ℕ men in its army.
navy IN.gif navy = ℕ/THIS/FROM If compared with a number: If the specified country has at least ℕ ships in its navy.
war_score IN.gif war_score = If the country has at least ℤ war score in ANY war it's currently fighting. ℤ = {-200,...,200}
land_morale DW.png land_morale = If the country has a land morale equal to ℕ or higher.
naval_morale DW.png naval_morale = If the country has a naval morale equal to ℕ or higher.
unit_type DW.png unit_type = <technology group> If the country's unit type is of the specified technology group.
own specific unit type DW.png <unit type> = If the current country has ℕ or more units of the specified unit type.

Trade conditions

num_of_monopolys EU3.gif num_of_monopolys = If the country has ℕ monopolies or more.
num_of_cots EU3.gif num_of_cots = If the country has ℕ number of Centre of Trades or more.
num_of_trade_agreements EU3.gif num_of_trade_agreements = If the number of trade agreements the country has is ℕ or more.
num_of_trade_embargos EU3.gif num_of_trade_embargos = If the number of trade embargoes the country has is ℕ or more.
placed_merchants NA.gif placed_merchants = If the sum of all merchants from the country trading in any cot is at least ℕ.
total_merchants NA.gif total_merchants = Returns true the country has at least ℕ merchants in total (trading or not).
trade_agreement_with NA.gif trade_agreement_with = <country tag>/THIS/FROM If the country has a trade agreement with the specified country.
trade_embargo_by NA.gif trade_embargo_by = <country tag>/THIS/FROM If the country is embargoed by the specified country.
open_market IN.gif open_market = <country tag>/THIS/FROM If the specified country has opened its market to the current country.
in_league HTTT.png in_league = yes/no If the scope country is in a trade league
num_of_league_members HTTT.png num_of_league_members = If the country has ℕ or more members in its Trade League.
num_of_trade_agreements HTTT.png num_of_trade_agreements = If the country has ℕ or more Trade Agreements (changed somehow from ?)
num_of_trade_rights HTTT.png num_of_trade_rights = If the country has ℕ or more Trade Rights
trade_rights HTTT.png trade_rights = { } tag = <country tag> trade_goods = <trade good> If the scope country has trade rights of the specific kind with the target country.
production_leader DW.png production_leader = { } trade_goods = <trade good> value = yes/no If the country is production leader in the specified good.
trade_leader DW.png trade_leader = { } trade_goods = <trade good> value = yes/no If the country is trade leader in the specified good.
trading_bonus DW.png trading_bonus = { } trade_goods = <trade good> value = yes/no If the country receives a trading bonus from the specified good.
trading_part DW.png trading_part = { } trade_goods = <trade good> value = [0,1] If the country's traded value in the specified goods is equal or higher than [0,1] compared to what is world produced.
num_trade_leader DW.png num_trade_leader = If the country is trade leader in ℕ or more goods.
trade_embargoing DW.png trade_embargoing = <country tag> If the country is embargoing country tag.

Religion & culture conditions

defender_of_faith EU3.gif defender_of_faith = yes/no If the country is the defender of faith.
tolerance_to_this DW.png tolerance_to_this = If the country has a tolerance equal to ℕ or higher for the state religion.
force_converted DW.png force_converted = yes/no If the country has been force converted.
is_crusade_target DW.png is_crusade_target = yes/no If the country is crusade target.
culture_group EU3.gif culture_group = <culture group name>/THIS If the country in the current scope belongs to the same culture-group.
primary_culture EU3.gif primary_culture = <culture name>/THIS If the country in the current scope has the specified culture.
accepted_culture EU3.gif accepted_culture = <culture name>/THIS If the country in the current scope accepts the specified culture.
religion EU3.gif religion = <religion name>/THIS If the country/province in the current scope follows the same religion.
excommunicated DW.png excommunicated = yes/no If the ruler is excommunicated.
religion_group EU3.gif religion_group = <religion group name>/THIS If the country in the current scope belongs to the same religion-group.
is_papal_controller EU3.gif is_papal_controller = yes/no If the current country is the papal controller.
papal_influence HTTT.png papal_influence = [0,1] If the scope country's Papal Influence is equal to [0,1] or higher.
num_of_religion EU3.gif num_of_religion = { } religion = <religion type> value = ℕ/IN.gif[0,1] If value = ℕ, If the there are ℕ or more followers of the specified religion type. If value = [0,1], it checks for the percentage within the country.
tolerance to religion EU3.gif <religion name> = If the current country has a tolerance equal to ℕ or higher for the specified religion type.
at_war_with_religious_enemy NA.gif at_war_with_religious_enemy = yes/no If the country is at war with a country with a different state religion.
has_border_with_religious_enemy NA.gif has_border_with_religious_enemy = yes/no If the country borders another country with a different state religion.
dominant_culture IN.gif dominant_culture = <culture name>/DW.pngTHIS/CAPITAL Return true if the checked culture has the most provinces in the country. THIS check the state primary culture and CAPITAL check the capital province culture.
dominant_religion IN.gif dominant_religion = <religion name>/DW.pngTHIS/CAPITAL Return true if the checked religion has the most provinces in the country. THIS check the state religion and CAPITAL check the capital province religion.
num_of_cardinals IN.gif num_of_cardinals = If the number of cardinals in the Curia currently controlled by the country is at least ℕ.
primitives DW.png primitives = yes/no If the country has a religion that allows it to be annexed.

Characters conditions

has_leader NA.gif has_leader = " " <name of leader> If the country has the specified leader.
has_leader_with DW.png has_leader_with = { } general/admiral = yes shock = ℕ fire = ℕ siege = ℕ maneuver = ℕ If the country has a leader meeting the specified values. All values are optional. ℕ = {0,...,6}, except siege where ℕ = {0,1,2}
general EU3.gif general = If the country has ℕ or more generals.
admirals EU3.gif admirals = If the country has ℕ or more admirals.
conquistador EU3.gif conquistador = If the country has ℕ or more conquistador.
explorer EU3.gif explorer = If the country has ℕ or more explorer.
is_monarch_leader EU3.gif is_monarch_leader = yes/no If the current monarch also is a leader.
has_ruler NA.gif has_ruler = " " <name of ruler> If the country is ruled by the specified person.
ADM EU3.gif ADM = If the current monarch has an administrative skill value equal to ℕ or higher. ℕ = {1,...,9}
DIP EU3.gif DIP = If the current monarch has a diplomatic skill value equal to ℕ or higher. ℕ = {1,...,9}
MIL EU3.gif MIL = If the current monarch has a military skill value equal to ℕ or higher. ℕ = {1,...,9}
dynasty HTTT.png dynasty = <country tag>/THIS/DW.png<dynasty name> If the scope country's dynasty is the same as the target country's. <dynasty name> is documented but do not work.
female IN.gif female = yes/no If the current ruler is a lady.
regency EU3.gif regency = yes/no If there is a regency or an interregnum.
has_heir HTTT.png has_heir = yes/no If the scope country has an heir.
heir_age HTTT.png heir_age = If the scope country's heir is higher than or equal to ℕ
heir_claim DW.png heir_claim = If the country's heir has a claim on the throne equal to ℕ or higher. ℕ = {0,...,100}
has_advisor DW.png has_advisor = yes/no If the country has at least one advisor.
advisor EU3.gif advisor = <advisor type> If country has hired an advisor of the specified advisor type.
advisor level EU3.gif <advisor type> = If the current country has an advisor with a skill value equal to ℕ or higher. ℕ = {1,...,6}

Conditions for countries and provinces

luck EU3.gif luck = yes/no If the current country is one of the lucky countries.
manpower EU3.gif EU3.gifmanpower =
NA.gifmax_manpower_greater_than =
If the country has a manpower value equal to ℕ or higher.
max_manpower EU3.gif max_manpower = If the country’s maximum manpower is equal to ℕ or higher.
manpower_percentage EU3.gif manpower_percentage = [0,1] If the country has a manpower percentage of [0,1] or above.
army_tradition EU3.gif army_tradition = [0,1] If the country has an army tradition value of [0,1] or higher.
navy_tradition EU3.gif navy_tradition = [0,1] If the country has an navy tradition value of [0,1] or higher.
production_efficiency EU3.gif production_efficiency = [0,1] If the country has a production efficiency of [0,1] or higher.
trade_efficiency EU3.gif trade_efficiency = [0,1] If the country has a trade efficiency of [0,1] or higher.
owns EU3.gif owns = province ID# If the country owns the specified province.
controls EU3.gif controls = province ID# If the country controls the specified province.
is_core EU3.gif is_core = province ID# If the specified province is a core of the current country. See also the province-scope version.
has_discovered EU3.gif has_discovered = <continent>/province ID# If the current country has discovered the specified continent or province.
num_of_cities EU3.gif num_of_cities = If the country has ℕ or more cities.
num_of_ports EU3.gif num_of_ports = If the country has ℕ or more ports, connected to the capital.
own building EU3.gif <building name> = If the current country own ℕ or more specified building type.
trade goods EU3.gif <trade good> = If the current country owns ℕ or more provinces with the specified trade goods type.
overseas_provinces_percentage NA.gif overseas_provinces_percentage = [0,1] If the percentage of overseas provinces owned by the country in relation with the total number of provinces he has is [0,1] or higher.
number_of_colonies NA.gif number_of_colonies = If the country has at least ℕ provinces with less than 1000 population.
can_create_vassals NA.gif can_create_vassals = yes/no/DW.png If the country can release at least one country. if ℕ, If the country can create ℕ or more vassals.
is_possible_vassal NA.gif is_possible_vassal = <country tag> If the specified country fulfils the conditions for being a vassal to this country.
tariff_efficiency IN.gif tariff_efficiency = [0,1] If the tariff efficiency of the country is at least [0,1].
capital DW.png capital = province ID# If province number province ID# is the capital of the country.
national_focus DW.png national_focus = province ID# If province province ID# has national focus.
total_num_of_ports DW.png total_num_of_ports = If the country has ℕ or more ports.
core_percentage DW.png core_percentage = [0,1] If the country has cores on [0,1] percentage or more of its provinces. (Overseas provinces are not included)

Domestic affairs conditions

inflation EU3.gif inflation = [0,1] If the current country’s inflation value is [0,1] or above.
number_of_loans EU3.gif number_of_loans = If the country has ℕ number of loans or more.
is_bankrupt EU3.gif is_bankrupt = yes/no If the country is bankrupt.
government EU3.gif government = <government name>/IN.gifmonarchy/republic/theocracy If the country has the specified government type.
idea EU3.gif idea = <name of the idea> If the country has the specified idea.
technology_group EU3.gif technology_group = <technology group name>/IN.gifTHIS/FROM If the country has the specified technology group.
total_ideas EU3.gif total_ideas = If the current country has ℕ or more ideas in total.
free_ideas EU3.gif free_ideas = If the current country has ℕ or more free ideas slots.
monthly_income EU3.gif monthly_income = If the current country has a monthly income of ℕ or more.
domestic policies EU3.gif <policies name> = If the country’s specified policy slider has a value of ℤ or higher. ℤ = (-5,...,5)
technology level EU3.gif <tech_table> = If the level of the specified technology is equal to ℕ or higher.
trade_income_percentage NA.gif trade_income_percentage = [0,1] If the percentage of trade income for the country is at least [0,1] from the total.
gold_income_percentage NA.gif gold_income_percentage = [0,1] If the percentage of gold income for the country is at least [0,1] from the total.
nomad HTTT.png nomad = yes/no If the country, or the owner of the province, is nomad.
tribal DW.png tribal = yes/no If the country has a government form marked as tribal.
is_colonial DW.png is_colonial = yes/no If the country is a colonial country.
years_of_income DW.png years_of_income = If the monthly income ×12 equals ℕ or higher.
has_factions DW.png has_factions = yes/no If the country has factions.
has_faction DW.png has_faction = <faction name> If the country has a faction called faction name.
faction_in_power DW.png faction_in_power = <faction name> If the country's leading faction is faction name.
faction_influence DW.png faction_influence = { } faction = <faction name> influence = ℕ If the faction name's influence is equal to ℕ or higher. ℕ = {0,...,100}
tech_difference DW.png tech_difference = If the country in the current scope has a combined tech level difference compared to the country in the previous scope.
stability EU3.gif stability = If the current stability value is equal to ℕ or above. ℕ = {-3,...,3}
num_of_revolts EU3.gif num_of_revolts = If there are ℕ or more revolts in the country.
revolt_percentage EU3.gif revolt_percentage = [0,1] If the percentage of revolts in the country are [0,1] or higher.

Top bar resources condition

infamy EU3.gif EU3.gifbadboy =

HTTT.pnginfamy =

If the country has an infamy (reputation) value of ℕ or higher.
prestige EU3.gif prestige = [-1,1]/IN.gifTHIS/FROM If the current country has [-1,1] or more prestige. THIS/FROM : If the former has the same or more prestige than the current scope.
legitimacy HTTT.png legitimacy = [0,1] If the country's legitimacy is [0,1] or higher. Theocracies and Republics always return true.
treasury EU3.gif treasury = If the treasury contains ℕ or more ducats.
diplomats EU3.gif diplomats = If the current country has ℕ or more diplomats available. ℕ = {0,...,5}
officials HTTT.png officials = If the current country has ℕ or more magistrates available. ℕ = {0,...,5}
spies EU3.gif spies = If the current country has ℕ or more spies available. ℕ = {0,...,5}
missionaries EU3.gif missionaries = If the current country has ℕ or more missionaries available. ℕ = {0,...,5}
colonists EU3.gif colonists = If the current country has ℕ or more colonists available. ℕ = {0,...,5}
merchants EU3.gif merchants = If the current country has ℕ or more merchants available. ℕ = {0,...,5}

Other conditions

has_country_flag EU3.gif has_country_flag = <flag name> If the current country has the specified country flag (added by a previous event or set in one of the history files).
had_country_flag HTTT.png had_country_flag = { } flag = <name of flag> days/months/years = ℕ Returns true if the current country has had the country flag set for ℕ days/months/years or longer.
has_country_modifier EU3.gif has_country_modifier = <modifier name> If the current country has the specified country modifier (added by a previous event).
tag EU3.gif tag = <country tag>/DW.pngTHIS If the current country has the specified country tag.
is_revolution_target NA.gif is_revolution_target = yes/no If the current country is the revolution target.
is_mission_country IN.gif is_mission_country = yes/no If the country is the mission target of THIS
active_mission IN.gif active_mission = <mission name> If the active mission for the country has the specified name.
last_mission IN.gif last_mission = <mission name> If the country's last mission was name of mission.
remove_fow IN.gif remove_fow = yes/no If the fog of war in the target country has been removed for your country.