Triggers
Diplomatic conditions:
alliance = { country = aaa country = bbb }
Checks if aaa and bbb are in the same military alliance.
dynastic = { country = aaa country = bbb }
Checks if aaa and bbb have a royal marriage.
vassal = { country = aaa country = bbb }
Checks if country bbb is a vassal of aaa.
union = { country = aaa country = bbb }
Checks if country aaa is in a personal union with country bbb.
war = { country = aaa country = bbb }
Checks if country aaa is at war with country bbb.
truce = { country = aaa country = bbb }
Checks if there is currently a truce between country aaa and country bbb.
atwar = yes / no
Checks if the country is at war.
isvassal = yes / no
Checks if the country is a vassal of any country.
isoverlord = yes / no
Checks if the country has at least one vassal.
access = aaa
Checks if the country was granted military access by country aaa.
relation = { country = aaa data = x }
Is true if the receiving country has relation x or better with country aaa.
Conditions based on leaders or monarchs:
leader = xxxx
Is true if leader with id xxxx is alive in any country.
monarch = xxxx
Is true if monarch with id xxxx is ruling the country receiving the event.
Conditions based on countries:
religion = religion_name
Checks the state religion of the receiving country.
culture = culture_name
Checks if that culture is an accepted one for the receiving country.
technology = techgroup_name
Checks the tech group of the receiving country.
continent = continent_name
Checks on which continent the capital of the receiving country lies.
region = region_name
Checks in which region the capital of the receiving country lies.
area = area_name
Checks in which area the capital of the receiving country lies.
countrysize = x
Is true if the receiving country has x provinces or more. Cities and colonies are counted.
badboy = x
Is true if badboy is x or higher.
inflation = x
Is true if inflation is equal or above x (scale is 0 to 1).
treasury = x
Is true if treasury is equal or above x.
manpower = x
Is true if the country has at least x manpower.
diplomats = x
Is true if the country has x diplomats or more.
merchants = x
Is true if the country has x merchants or more.
colonists = x
Is true if the country has x colonists or more.
missionaries = x
Is true if the country has x missionaries or more.
elector = yes / no
Checks if the receiving country is an Elector of the HRE or not.
emperor = yes / no
Checks if the ruler of the receiving country is Holy Roman Emperor or not.
hre = yes / no
Checks if the receiving country's capital province is in the Holy Roman Empire or not.
neighbour = x
Is true if the receiving country is neighbour with country x.
tag = aaa
The event will only fire for this tag, mostly useful for province specific events.
no_dynastic = yes / no
Checks if the receiving country is able to form royal marriages (i.e. it is not in the game's no_dynastic list and its current monarch is not marked "dynastic = no").
knows = x
Is true if the receiving country has diplomatic relations with x (has discovered x's capital).
frontier = yes / no
Is true if the receiving country is a frontier country (i.e. borders an uncolonized province, same as the check for bonus colonists).
num_of_goods = { type = [goods] data = x }
Is true if the country owns at least x provinces that produce this type of goods.
num_of_buildings = { type = [building] data = x }
Is true if the country owns at least x provinces that contain this building.
Valid buildings are: bailiff, courthouse, cityrights, shipyard, barrack, fortress, luxury, weapons, naval, refinery, and goods.
num_of_leaders = { type = [leader] data = x }
Is true if the country has at least x active leaders of this type.
Valid leader types are: general, admiral, conquistador, explorer, privateer, and monarch.
armysize = x
Is true if the country has at least x land troops (counting 10 artillery as 1000 troops).
navysize = x
Is true if the country has at least x ships.
income_monthly = x
Is true if the country has at least x ducats of monthly income.
income_yearly = x
Is true if the country has at least x ducats of yearly income, including 12 months of monthly income plus yearly census tax.
is_production_leader = [goods]
Is true if the country is the world leader of producing this type of goods.
Conditions based on domestic affairs:
domestic = { type = aristocracy/ centralization/ innovative/ mercantilism/ land/ offensive/ quality/ serfdom value = x }
Checks if a domestic policy slider is at value x or higher. (0 to 10)
land = x
Checks if the land tech level is at x or higher.
naval = x
Checks if the naval tech level is at x or higher.
stability = x
Checks if stability is at x or higher. (-3 to 3)
trade = x
Checks if the trade tech level is at x or higher.
infra = x
Checks if the infra tech level is at x or higher.
Conditions based on provinces:
capital = x
Checks if province x is the capital of the receiving country.
core_national = { province = x data = aaa }
Is true if province x is a naional core province of country aaa (if data = -1 then it is for the country receiving the event).
core_claim = { province = x data = aaa }
Is true if province x is a claim core province of country aaa (if data = -1 then it is for the country receiving the event).
core_casusbelli = { province = x data = aaa }
Is true if province x is a casusbelli core province of country aaa (if data = -1 then it is for the country receiving the event).
provinceculture = { province = x data = y }
Is true if province x has culture y.
cityculture = { province = x data = y }
Is true if province x uses culture y for its city sprite.
provincereligion = { province = x data = y }
Is true if province x have religion y.
owned = { province = x data = aaa }
Is true if province x is owned by country aaa (if data = -1 then it is for the country receiving the event)
control = { province = x data = aaa }
Is true if province x is controlled by country aaa (if data = -1 then it is for the country receiving the event)
any_owned = continent/region/area
Is true if the receiving country owns any province in the given place.
all_owned = continent/region/area
Is true if the receiving country owns all provinces in the given place.
any_controlled = continent/region/area
Is true if the receiving country controls any province in the given place.
all_controlled = continent/region/area
Is true if the receiving country controls all provinces in the given place.
ownerchange = { province = x years = y months = m days = d }
Is true if province x has been owned by the current owner for at least y years, m months and d days (not all time fields have to be filled, one is enough).
controlchange = { province = x years = y months = m days = d }
Is true if province x has been controlled by the current controller for at least y years, m months and d days (not all time fields have to be filled, one is enough).
discovered = x
Is true if province x has been discovered by the country receiving the event.
any_discovered = continent/region/area
Is true if the receiving country has discovered any province in the given place.
all_discovered = continent/region/area
Is true if the receiving country has discovered all provinces in the given place.
cot = x
Is true if there is a centre of trade in province x.
fortresslevel = { province = x data = y }
Is true if province x contains a fortress of level y or higher.
provincepopulation = { province = x data = y }
Is true if province x has a population of y or higher.
tradingpost = x
Is true if province x is a trading post.
colony = x
Is true if province x has a population between 10 and 999, and is not a trading post.
colonialcity = x
Is true if province x has a population between 1000 and 4999.
city = x
Is true if province x has a population of at least 5000..
is_hre = x
Is true if province x is part of the Holy Roman Empire.
General conditions:
ai = yes / no
Checks if the country receiving the event is AI controlled or not.
event = xxxx
Checks if event with id xxxx has happened.
decision = xxxx
Checks if the decision with id xxxx has been taken by this country, or if it is a unique decision, checks whether any country has taken it.
decision = { tag = x data = y }
Checks if the decision with id y has been taken by country x, regardless of whether it is a unique decision.
flag = flag name
or integer value
Checks if the country flag with the specified name is set.
If used with a number x, checks if global flag x has been set. See the list of global flags in the flag command.
exists = aaa
Is true if country aaa exists.
year = x
Checks if the year is x or later.
month = x
Checks if the month is x or later.
day = x
Checks if the day of the month is x or later.
fantasy = yes / no
Checks if this is a fantasia scenario ("desc = fantasy" in the scenario file).
random = x
The event will only have x% chance to fire every time the event is checked.
aaa = {
conditions
}
Is true if the conditions are true for country aaa.
someof = {
number = x
conditions
}
Is true if at least x of the listed conditions are true.
emperor = {
conditions
}
Is true if the conditions are true for the Holy Roman Emperor (if there is one).
overlord = {
conditions
}
Is true if the conditions are true for this country's overlord or senior union partner (if there is one).
any_country = {
conditions
}
Is true if the conditions are true for ANY country in the world.
any_neighbour = {
conditions
}
Is true if the conditions are true for any neighboring country (if there is one).
any_vassal = {
conditions
}
Is true if the conditions are true for any of this country's vassals (if there is at least one).
custom_tooltip = {
tooltip = x
conditions
}
Is true if the conditions are true for this country (same as an AND trigger), but when used in a decision, the game will use x as the tooltip and not generate tooltips for any trigger inside the block.