This is a detailed rundown of changes to triggers, effects and modifiers which come with Nemesis update, based on Stellaris Dev Diary #204: Scripting Language and Moddability Improvements by @Caligula Caesar, triggger_docs therein attached, (and 3.0.1 files now that it is released).
NOTE 1: This list is subject to change upon Nemesis release and does not include modifiers (and now includes modifiers) .
NOTE 2: List includes new triggers (113), removed/renamed triggers (18) and changed triggers (either by documentation or extension of their function).
It also includes 104 effects that were added, 11 that were removed/renamed, and changed ones. See second post.
NOTE 3: In some cases extended functionality might simply mean functions have been added to documentation.
NOTE 4 : Updated for 3.0.1 Nemesis release, now includes modifiers. 951 modifiers added, none removed.
Source view is available as a GitHub diff page (see second one, compare_versions/current_game_triggers.txt). Green is added, red is removed. Any red check if it does not exist elsewhere as green as it might have been just moved during formatting).
Added localisation documentation in trigger_docs.
== Quick remove/rename reference ==
Removed/Renamed triggers:
== TRIGGER DOCUMENTATION ==
Changes
Extended functionality (3.0.3b):
formerly: just pop, no options
Extended functionality (3.0.3b):
formerly: just pop, no options
Extended functionality (3.0.3b):
formerly: no leader, no options
Added trigger (3.0.1):
Added trigger (3.0.1):
Added trigger (3.0.1):
Documentation improvement:
Extended functionality:
formerly: no use_bypasses
Extended functionality:
formerly: has_designation = col_rural
Extended functionality:
formerly: colony_type = col_rural
Changed trigger name:
formerly: opinion_change = { who = <target> value >= 25 }
Extended functionality:
formerly: ideal_planet_class = pc_tundra
Documentation improvement:
Extended functionality:
formerly: no same_solar_system value, less scopes supported
Extended functionality:
formerly: gender = female
Extended functionality:
formerly: no count
Removed trigger:
Extended functionality:
formerly: no count
Added trigger:
Extended functionality:
formerly: no count
Extended functionality:
formerly: no count
Removed trigger:
Added trigger:
Removed trigger:
Added trigger:
Extended functionality:
formerly: no leader scope
Changed functionality:
formerly: is_valid = <target>
Removed trigger:
Added trigger:
Removed trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Extended functionality:
formerly: less scopes supported
Extended functionality:
formerly: is_planet_class = pc_tundra
Extended functionality:
formerly: is_star_class = sc_black_hole
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Extended functionality:
formerly: less scopes supported
Extended functionality:
formerly: less scopes supported
Added trigger:
Added trigger:
Deprecated trigger:
Note: use any_owned_pop/any_species_pop instead
Extended functionality:
formerly: less scopes supported
Added trigger:
Extended functionality:
note: greatly expanded, see dev diary 204
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Deprecated trigger:
note: use count_owned_pop/count_species_pop
Added trigger:
Removed trigger:
Extended functionality:
formerly: less task scopes supported, less targets
Removed trigger:
Removed trigger:
Removed trigger:
Removed trigger:
Removed trigger:
Removed trigger:
Removed trigger:
Extended functionality:
formerly: has_planet_class = pc_tundra
Extended functionality:
formerly: no count
formerly: less scopes supported
Extended functionality:
formerly: no count
Extended functionality:
formerly: less scopes supported
Extended functionality:
formerly: less scopes supported
Extended functionality:
formerly: no count
Extended functionality:
formerly: less scopes supported
Deprecated trigger:
Note: use count_owned_pop
Removed trigger:
Extended functionality:
formerly: less scopes supported
Added trigger:
Extended functionality:
formerly: less scopes supported, less parameters
Changed functionality:
formerly: no count, option to ignore_hyperlanes
Extended functionality:
formerly: less scopes supported
Added trigger:
Extended functionality:
formerly: no count
Extended functionality:
formerly: less scopes supported
Extended functionality:
note: Also returns true if the tradition is swapped but has inherit_effects = yes (i.e. it's a cosmetic flavor swap).
Added trigger:
Extended functionality:
formerly: no mult
Added trigger:
Extended functionality:
formerly: less scopes supported, less options
Extended functionality:
formerly: has_colonization_control = yes
Extended functionality:
formerly: pop_maintenance_cost > 0
Extended functionality:
formerly: less scopes supported
Added trigger:
Extended functionality:
formerly: less scopes supported
Extended functionality:
formerly: less scopes supported
Extended functionality:
formerly: less scopes supported
Extended functionality:
formerly: less scopes supported
Added trigger:
Added trigger:
Added trigger:
Extended functionality:
formerly: no count
Extended functionality:
formerly: no count
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Removed trigger:
Added trigger:
Removed trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Removed trigger:
Removed trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
Added trigger:
NOTE 1: This list is subject to change upon Nemesis release
NOTE 2: List includes new triggers (113), removed/renamed triggers (18) and changed triggers (either by documentation or extension of their function).
It also includes 104 effects that were added, 11 that were removed/renamed, and changed ones. See second post.
NOTE 3: In some cases extended functionality might simply mean functions have been added to documentation.
NOTE 4 : Updated for 3.0.1 Nemesis release, now includes modifiers. 951 modifiers added, none removed.
Source view is available as a GitHub diff page (see second one, compare_versions/current_game_triggers.txt). Green is added, red is removed. Any red check if it does not exist elsewhere as green as it might have been just moved during formatting).
Added localisation documentation in trigger_docs.
=================
[19:56:08][game_application.cpp:1925]:
== LOCALIZATION DOCUMENTATION ==
This is a list of all hardcoded scoped localization commands in the game. It does not include scripted locs (see game/customizable_localization).
In most cases, it is also possible to get the value of variables: [Scope.my_variable].
There are also several unscoped commands: GetDate, GetMidGameDate, GetLateGameDate, GetYear, LastKilledCountryName.
A single opening square bracket '[' will begin a scoped localization statement.
Two consecutive opening square brackets '[[' will escape it, making a single square bracket show up in text instead, i.e. '[[example]' in loc will display as '[example]' in-game.
--Country--
Promotions:
Capital
Ruler
Heir
Species
Federation
Properties
GetName
GetAdj
GetAdjective
GetSpeciesName
GetSpeciesAdj
GetSpeciesNamePlural
GetSpeciesClass
GetSpeciesClassPlural
GetAllianceName
GetRulerName
GetRulerTitle
GetHeirName
GetHeirTitle
GetPersonalityName
GetSpeciesNameInsult
GetSpeciesNamePluralInsult
GetSpeciesNameCompliment
GetSpeciesNamePluralCompliment
GetSpeciesSpawnName
GetSpeciesSpawnNamePlural
GetSpeciesOrganName
GetSpeciesOrganNamePlural
GetSpeciesMouthName
GetSpeciesHandName
GetSpeciesHandNamePlural
GetSpeciesEarName
GetSpeciesEarNamePlural
GetSpeciesToothName
GetSpeciesToothNamePlural
GetRandomSpeciesSound
GetHomeWorldName
GetLastLostRelic
GetLastReceivedRelic
GetGovernmentName
GetRealName
GetCountryType
--Planet--
Promotions:
Owner
System
MoonOf
Sector
Properties
GetName
GetAdj
GetStarName
GetPlanetMoon
GetPlanetMoonCap
GetNebula
GetOwnerName
GetControllerName
GetClassName
GetClassAdj
--Ship (and Starbase)--
Promotions:
Owner
Fleet
Properties
GetName
GetNebula
GetFleetName
GetLeaderName
GetStarName
GetShipSizeName
GetShipSizeNamePlural
GetDesignName
--Pop--
Promotions:
Planet
Faction
Species
Properties
GetName
GetSpeciesName
GetSpeciesNamePlural
GetSpeciesAdj
--System--
Promotions:
Owner
Sector
Properties
GetName
GetAdj
GetNebula
GetClassName
--Fleet--
Promotions:
Owner
Leader
System
Properties
GetName
GetFleetName
GetLeaderName
GetStarName
GetRulerName
GetAdj
--Leader--
Promotions:
Owner
Species
Properties
GetName
GetRegnalName
GetPopFactionName
GetSubjectPronoun
GetSheHe
GetHeShe
GetSubjectPronounCap
GetSheHeCap
GetHeSheCap
GetObjectPronoun
GetHerHim
GetHimHer
GetPossPronoun
GetHerHis
GetHisHer
GetPossPronounCap
GetHerHisCap
GetHisHerCap
GetReflexivePronoun
GetHerselfHimself
GetHimselfHerself
GetRulerTitle
GetTitle
GetRulerName
GetFirstName
GetFirstNameFull
GetSecondName
GetAge
--Army--
Promotions:
Owner
Planet
Leader
Properties
GetName
GetRulerName
--Ambient Object--
Promotions:
Properties
GetName
GetStarName
GetNebula
--Species--
Promotions:
Properties
GetName
GetAdj
GetNamePlural
GetClass
GetClassPlural
GetNameInsult
GetNamePluralInsult
GetNameCompliment
GetNamePluralCompliment
GetSpawnName
GetSpawnNamePlural
GetOrganName
GetOrganNamePlural
GetMouthName
GetHandName
GetHandNamePlural
GetEarName
GetEarNamePlural
GetToothName
GetToothNamePlural
GetRandomSpeciesSound
--War--
Promotions:
MainDefender
MainAttacker
Properties
GetName
GetNumPlayerFleetsGoneMIA
--Pop Faction--
Promotions:
Owner
Leader
Properties
GetName
--Archaeological Site--
Promotions:
Planet
AmbientObject
Fleet
Ship
GalacticObject
Properties
--Federation--
Promotions:
Leader
Properties
GetName
--First Contact--
Promotions:
Leader
Owner
ContactCountry
System
Properties
GetName
--Espionage Operation--
Promotions:
SpyNetwork
Target
Owner
Leader (3.0.3b)
Properties
GetName
--Espionage Asset--
Promotions:
Properties
GetName
--Spy Network--
Promotions:
Target
Owner
Leader
Properties
--Deposit--
Promotions:
Planet
Properties
GetName
--Megastructure--
Promotions:
Owner
System
Planet
Properties
GetName
--Sector--
Promotions:
Owner
Capital
Leader
Properties
GetName
GetFocus
GetType
=================
[19:56:08][game_application.cpp:1925]:
== LOCALIZATION DOCUMENTATION ==
This is a list of all hardcoded scoped localization commands in the game. It does not include scripted locs (see game/customizable_localization).
In most cases, it is also possible to get the value of variables: [Scope.my_variable].
There are also several unscoped commands: GetDate, GetMidGameDate, GetLateGameDate, GetYear, LastKilledCountryName.
A single opening square bracket '[' will begin a scoped localization statement.
Two consecutive opening square brackets '[[' will escape it, making a single square bracket show up in text instead, i.e. '[[example]' in loc will display as '[example]' in-game.
--Country--
Promotions:
Capital
Ruler
Heir
Species
Federation
Properties
GetName
GetAdj
GetAdjective
GetSpeciesName
GetSpeciesAdj
GetSpeciesNamePlural
GetSpeciesClass
GetSpeciesClassPlural
GetAllianceName
GetRulerName
GetRulerTitle
GetHeirName
GetHeirTitle
GetPersonalityName
GetSpeciesNameInsult
GetSpeciesNamePluralInsult
GetSpeciesNameCompliment
GetSpeciesNamePluralCompliment
GetSpeciesSpawnName
GetSpeciesSpawnNamePlural
GetSpeciesOrganName
GetSpeciesOrganNamePlural
GetSpeciesMouthName
GetSpeciesHandName
GetSpeciesHandNamePlural
GetSpeciesEarName
GetSpeciesEarNamePlural
GetSpeciesToothName
GetSpeciesToothNamePlural
GetRandomSpeciesSound
GetHomeWorldName
GetLastLostRelic
GetLastReceivedRelic
GetGovernmentName
GetRealName
GetCountryType
--Planet--
Promotions:
Owner
System
MoonOf
Sector
Properties
GetName
GetAdj
GetStarName
GetPlanetMoon
GetPlanetMoonCap
GetNebula
GetOwnerName
GetControllerName
GetClassName
GetClassAdj
--Ship (and Starbase)--
Promotions:
Owner
Fleet
Properties
GetName
GetNebula
GetFleetName
GetLeaderName
GetStarName
GetShipSizeName
GetShipSizeNamePlural
GetDesignName
--Pop--
Promotions:
Planet
Faction
Species
Properties
GetName
GetSpeciesName
GetSpeciesNamePlural
GetSpeciesAdj
--System--
Promotions:
Owner
Sector
Properties
GetName
GetAdj
GetNebula
GetClassName
--Fleet--
Promotions:
Owner
Leader
System
Properties
GetName
GetFleetName
GetLeaderName
GetStarName
GetRulerName
GetAdj
--Leader--
Promotions:
Owner
Species
Properties
GetName
GetRegnalName
GetPopFactionName
GetSubjectPronoun
GetSheHe
GetHeShe
GetSubjectPronounCap
GetSheHeCap
GetHeSheCap
GetObjectPronoun
GetHerHim
GetHimHer
GetPossPronoun
GetHerHis
GetHisHer
GetPossPronounCap
GetHerHisCap
GetHisHerCap
GetReflexivePronoun
GetHerselfHimself
GetHimselfHerself
GetRulerTitle
GetTitle
GetRulerName
GetFirstName
GetFirstNameFull
GetSecondName
GetAge
--Army--
Promotions:
Owner
Planet
Leader
Properties
GetName
GetRulerName
--Ambient Object--
Promotions:
Properties
GetName
GetStarName
GetNebula
--Species--
Promotions:
Properties
GetName
GetAdj
GetNamePlural
GetClass
GetClassPlural
GetNameInsult
GetNamePluralInsult
GetNameCompliment
GetNamePluralCompliment
GetSpawnName
GetSpawnNamePlural
GetOrganName
GetOrganNamePlural
GetMouthName
GetHandName
GetHandNamePlural
GetEarName
GetEarNamePlural
GetToothName
GetToothNamePlural
GetRandomSpeciesSound
--War--
Promotions:
MainDefender
MainAttacker
Properties
GetName
GetNumPlayerFleetsGoneMIA
--Pop Faction--
Promotions:
Owner
Leader
Properties
GetName
--Archaeological Site--
Promotions:
Planet
AmbientObject
Fleet
Ship
GalacticObject
Properties
--Federation--
Promotions:
Leader
Properties
GetName
--First Contact--
Promotions:
Leader
Owner
ContactCountry
System
Properties
GetName
--Espionage Operation--
Promotions:
SpyNetwork
Target
Owner
Leader (3.0.3b)
Properties
GetName
--Espionage Asset--
Promotions:
Properties
GetName
--Spy Network--
Promotions:
Target
Owner
Leader
Properties
--Deposit--
Promotions:
Planet
Properties
GetName
--Megastructure--
Promotions:
Owner
System
Planet
Properties
GetName
--Sector--
Promotions:
Owner
Capital
Leader
Properties
GetName
GetFocus
GetType
=================
== Quick remove/rename reference ==
Removed/Renamed triggers:
- any_ship (removed, use any_galaxy_fleet)
- count_ships (removed, use count_galaxy_fleet)
- has_completed_special_project (now: has_completed_special_project_in_log)
- has_failed_special_project (now: has_failed_special_project_in_log)
- any_planet (now: any_galaxy_planet)
- count_planets (now: count_galaxy_planet)
- produced_energy (removed)
- trade_expenses (removed)
- ship_maintenance (removed)
- army_maintenance (removed)
- colony_maintenance (removed)
- station_maintenance (removed)
- construction_expenses (removed)
- federation_expenses (removed)
- any_recruited_leader (removed, use any_owned_leader)
- count_recruited_leader (removed, use count_owned_leader)
- any_sector (now: any_galaxy_sector)
- count_sector (now: count_galaxy_sector)
- every_ship (removed, use every_galaxy_fleet)
- every_sector (now: every_galaxy_sector)
- random_sector (now: random_galaxy_sector)
- every_planet (now: every_galaxy_planet)
- random_planet (now: random_galaxy_planet)
- every_war_defender (now: every_defender)
- random_war_defender (now: random_defender)
- every_war_attacker (now: every_attacker)
- random_war_attacker (now random_attacker)
- every_recruited_leader (removed, use every_owned_leader)
- random_recruited_leader (removed, use random_owned_leader)
== TRIGGER DOCUMENTATION ==
Changes
Extended functionality (3.0.3b):
Code:
has_population_control - Checks if the pop is prevented from reproducing
has_population_control = { value = bool country = scope }
Supported Scopes: pop leader species
Extended functionality (3.0.3b):
Code:
has_migration_control - Checks if the pop is prevented from migrating
has_migration_control = { value = bool country = scope }
Supported Scopes: pop leader species
Extended functionality (3.0.3b):
Code:
has_colonization_control - Checks if the pop is prevented from migrating
has_colonization_control = { value = bool country = scope }
Supported Scopes: pop leader species
Added trigger (3.0.1):
Code:
has_active_building - Checks if the planet has a specific building, and that that building is not disabled or ruined.
has_building = yes
has_active_building = building_capital_3
Supported Scopes: planet
Added trigger (3.0.1):
Code:
is_total_war - Checks if a war is a total war
is_total_war = yes/no
Supported Scopes: war
Added trigger (3.0.1):
Code:
has_job_category - Checks if the pop is currently working this strata job (worker, specialist, complex_drone, etc.) Returns false if unemployed.
has_job_category = <key>
Supported Scopes: pop
Documentation improvement:
Code:
has_fleet_order - Checks if the ship/fleet has a specific fleet order
has_fleet_order - Checks if the ship/fleet has a specific fleet order. Fleet orders include: move_to_system_point_order orbit_planet_order build_orbital_station_order build_space_station_order colonize_planet_order survey_planet_order research_discovery_orde research_anomaly_order collect_data_fleet_order upgrade_design_at_starbase_fleet_order upgrade_design_at_orbitable_fleet_order return_fleet_order repair_fleet_order evade_hostiles_order follow_order assist_research_order land_armies_order merge_fleet_order aggressive_stance_fleet_order auto_explore_order auto_patrol_order build_megastructure_fleet_order destroy_planet_order planet_killer_weapon_windup_order planet_killer_weapon_fire_order explore_bypass_order use_bypass_order jumpdrive_order jumpdrive_windup experimental_subspace_navigation_fleet_order excavate_archaeological_site_fleet_order
has_fleet_order = survey_planet_order
Supported Scopes: ship fleet
Extended functionality:
Code:
closest_system - Finds the closest system within the given hyperlane steps and limit = { <triggers> }. If this system does not exist, it returns false. If it does exist, it is checked against the triggers outside of the limit = {}.
closest_system = {
limit = { <triggers> }
min_steps = 2
max_steps = 20
use_bypasses = yes/no (default: no)
<triggers>
}
Supported Scopes: all
Extended functionality:
Code:
has_designation = col_rural/<planet scope>
Supported Scopes: planet
Extended functionality:
Code:
colony_type = col_rural/<planet scope>
Supported Scopes: planet
Changed trigger name:
Code:
envoy_opinion_change = { who = <target> value >= 25 }
Supported Scopes: country
Extended functionality:
Code:
ideal_planet_class = pc_tundra/<planet scope>
Supported Scopes: planet
Documentation improvement:
Code:
ethos - Checks the average ethics divergence on the planet, i.e. num of pops not of the country's ethics / total num of pops
ethos < 0.4
Supported Scopes: planet
Extended functionality:
Code:
distance = {
source = <target>
min_distance >= 50
max_distance <= 120
type=<hyperlane/euclidean>
bypass_empire=<empire>
min_jumps = 2
max_jumps = 10
same_solar_system = yes/no (default: no; this toggles whether the trigger checks galaxy map or solar system distances)
}
Supported Scopes: megastructure planet ship pop fleet galactic_object leader ambient_object starbase deposit archaeological_site first_contact
Extended functionality:
Code:
gender - Checks the leader's gender
gender = female/male/indeterminable
Supported Scopes: leader
Extended functionality:
Code:
any_planet_within_border - Iterate through each planet within the current empire's borders - checks whether the enclosed triggers return true for any of them
any_planet_within_border = { <count=<num/all>> <triggers> }
Supported Scopes: country
Removed trigger:
Code:
any_ship - Checks if any ships in the game meet the specified criteria
any_ship = { <triggers> }
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
Extended functionality:
Code:
any_moon - Iterate through each moon of the planet - checks whether the enclosed triggers return true for any of them
any_moon = { <count=<num/all>> <triggers> }
Supported Scopes: planet
Added trigger:
Code:
intel - Checks the country's Intel on the target country
intel = { who = <target> value = 70 }
Supported Scopes: country
Extended functionality:
Code:
any_defender - Iterate through all defenders in the current war - checks whether the enclosed triggers return true for any of them
any_defender = { <count=<num/all>> <triggers> }
Supported Scopes: war
Extended functionality:
Code:
any_attacker - Iterate through all attackers in the current war - checks whether the enclosed triggers return true for any of them
any_attacker = { <count=<num/all>> <triggers> }
Supported Scopes: war
Removed trigger:
Code:
has_completed_special_project - Checks if the country has completed a specific special project as part of an in-progress event chain
has_completed_special_project = EMERGENCY_BUOY_PROJECT
Supported Scopes: country
Added trigger:
Code:
has_completed_special_project_in_log - Checks if the country has completed a specific special project as part of an in-progress event chain
has_completed_special_project_in_log = EMERGENCY_BUOY_PROJECT
Supported Scopes: country
Removed trigger:
Code:
has_failed_special_project - Checks if the country has failed, timed out or aborted a specific special project as part of an in-progress event chain
has_completed_special_project = EMERGENCY_BUOY_PROJECT
Supported Scopes: country
Added trigger:
Code:
has_failed_special_project_in_log - Checks if the country has failed, timed out or aborted a specific special project as part of an in-progress event chain
has_failed_special_project_in_log = EMERGENCY_BUOY_PROJECT
Supported Scopes: country
Extended functionality:
Code:
is_subspecies - Checks if the pop/country/species is a subspecies of the target species
is_subspecies = <target>
Supported Scopes: country pop leader species
Changed functionality:
Code:
is_valid - Checks to see if target scope is valid for the country/planet/army
is_valid = yes/no
Supported Scopes: planet country army
Removed trigger:
Code:
any_planet - Checks if any planet ANYWHERE meets the specified criteria
any_planet = { <triggers> }
Supported Scopes: all
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
Added trigger:
Code:
any_galaxy_planet - Iterate through each planet ANYWHERE in the game; warning: resource intensive! - checks whether the enclosed triggers return true for any of them
any_galaxy_planet = { <count=<num/all>> <triggers> }
Supported Scopes: all
Removed trigger:
Code:
count_planets - Checks the planets in system that meet the criteria
count_planets = { limit = { <triggers> } count < 2 }
Supported Scopes: galactic_object
Supported Targets: none
Added trigger:
Code:
count_galaxy_planet - Iterate through each planet ANYWHERE in the game; warning: resource intensive! - checks whether the enclosed triggers return true for X/all of them
count_galaxy_planet = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: all
Added trigger:
Code:
is_galactic_custodian - Checks if an empire is Custodian of the Galactic Council
is_galactic_custodian = yes/no
Supported Scopes: country
Added trigger:
Code:
has_galactic_custodian - Checks if the Galactic Community has named a Custodian
has_galactic_custodian = yes/no
Supported Scopes: all
Added trigger:
Code:
is_galactic_emperor - Checks if an empire is the Galactic Emperor
is_galactic_emperor = yes/no
Supported Scopes: country
Added trigger:
Code:
has_galactic_emperor - Checks if the Galactic Emperor has taken over
has_galactic_emperor = yes/no
Supported Scopes: all
Added trigger:
Code:
imperial_authority - Checks imperial authority.
imperial_authority >=< 40
Supported Scopes: all
Added trigger:
Code:
has_stage_modifier - Checks if the espionage operation has a certain modifier specific for the current stage
has_modifier = <modifier>
Supported Scopes: espionage_operation
Added trigger:
Code:
galactic_defense_force_exists - Checks if the Galactic Defense Force or Imperial Armada exists
galactic_defense_force_exists = yes/no
Supported Scopes: all
Added trigger:
Code:
has_intel_level - Checks the country's intel level on a category for the target country
has_intel_level = { who = <target> category = economy level = 2 }
Supported Scopes: country
Added trigger:
Code:
has_intel_report - Checks if the country has intel report of at least the specified level on a category for the target country
has_intel_report = { who = <target> category = economy level = 2 }
Supported Scopes: country
Added trigger:
Code:
has_intel - Checks if the specified intel is available for the target country (stale intel will not return true)
has_intel = { who = <target> intel = system_low_intel }
Supported Scopes: country
Added trigger:
Code:
has_stale_intel - Checks if the specified intel is stale for the target country (available intel will not return true)
has_stale_intel = { who = <target> intel = system_low_intel }
Supported Scopes: country
Extended functionality:
Code:
is_owned_by - Checks if the planet/system/army/ship is owned by the target country
is_owned_by = <target>
Supported Scopes: megastructure planet ship pop fleet galactic_object leader army pop_faction starbase deposit sector archaeological_site first_contact spy_network espionage_operation
Extended functionality:
Code:
is_planet_class - Checks if the planet is of a certain class
is_planet_class = pc_tundra/<planet scope>
Supported Scopes: planet
Extended functionality:
Code:
is_star_class - Checks if the system/planet(star) is of a certain class
is_star_class = sc_black_hole/<system scope>
Supported Scopes: planet galactic_object
Added trigger:
Code:
can_research_technology - Checks whether the current country is allowed to have the specified technology, i.e. does it fulfil the potential = { } field for that tech, and for any prereq techs that tech has.
can_research_technology = <tech key>
Supported Scopes: country
Added trigger:
Code:
can_copy_random_tech_from - Checks whether the target country has a technology the current country can steal via copy_random_tech_from effect
can_copy_random_tech_from = {
who = <country>
category = computing (optional)
area = physics (optional)
}
Supported Scopes: country
Added trigger:
Code:
can_set_policy - Checks if the country is allowed to set its policy to a specific one using set_policy effect
can_set_policy = { policy = <key> option = <key> }
Supported Scopes: country
Added trigger:
Code:
has_first_contact_flag - Checks if the first contact site has a specific flag
has_first_contact_flag = <flag>
Supported Scopes: first_contact
Added trigger:
Code:
is_capital_system - Checks if the solar has its owner's capital
is_capital_system = yes
Supported Scopes: galactic_object
Extended functionality:
Code:
num_owned_planets - Checks the country's or sector's number of owned planets
num_owned_planets < 8
Supported Scopes: country sector
Extended functionality:
Code:
num_pops - Checks the number of pops on the planet/country/pop faction/sector
num_pops > 12
Supported Scopes: planet country pop_faction sector
Added trigger:
Code:
num_unemployed - Checks the number of unemployed pops on the planet
num_unemployed > 3
Supported Scopes: planet
Added trigger:
Code:
would_work_job - Checks if the pop will work a specific job if a vacancy becomes available (i.e. does it meet the requirements, would it have a higher job weight?)
would_work_job = <key>
Supported Scopes: pop
Deprecated trigger:
Code:
any_pop - Checks if any of the planet/species/pop faction pops meet the specified criteria. Warning: deprecated, use any_owned_pop/any_species_pop
any_pop = { <triggers> }
Supported Scopes: planet species pop_faction
Extended functionality:
Code:
is_same_species_class - Checks if the pop/country is of the same species class as another pop/country
is_same_species_class = <target>
Supported Scopes: country ship pop leader army species
Added trigger:
Code:
is_variable_set - Checks if the specified variable is set on the current scope. Use to avoid unset variables errors
is_variable_set = my_var
Supported Scopes: megastructure planet country ship pop fleet galactic_object leader army species pop_faction war federation starbase sector first_contact
Extended functionality:
Code:
check_variable - Checks a variable for the country/leader/planet/system/fleet
check_variable = { which = <variable> value < <float>/<variable>/<scope> / value = { scope = <scope> variable >=< <variable> } }
Supported Scopes: megastructure planet country ship pop fleet galactic_object leader army species pop_faction war federation starbase sector first_contact
Added trigger:
Code:
check_variable_arithmetic - Checks a variable for the scope if a certain amount of arithmetic is done to it (note: the variable's value is not changed by this trigger)
check_variable_arithmetic = {
which = <variable>
by = <float>/<variable>/<scope> / by = { scope = <scope> variable = <variable> }
mode = add/subtract/multiply/divide/modulo
value < <float>/<variable>/<scope> / value = { scope = <scope> variable >=< <variable> }
}
Supported Scopes: megastructure planet country ship pop fleet galactic_object leader army species pop_faction war federation starbase sector first_contact
Added trigger:
Code:
check_modifier_value - Checks the value of a specified modifier in the current scope against a value.
check_modifier_value = { modifier = pop_growth_speed_reduction value > 1.05
Supported Scopes: megastructure planet country ship pop fleet galactic_object leader army species design pop_faction spy_network espionage_operation
Added trigger:
Code:
check_galaxy_setup_value - Checks the value for a specific option from the galaxy setup
check_galaxy_setup_value = { setting = <string> value >=< <float> ] }
possible values: num_empires, num_advanced_empires, num_fallen_empires, num_marauder_empires, mid_game_year, end_game_year, victory_year, num_guaranteed_colonies, num_gateways, num_wormhole_pairs, num_hyperlanes, habitable_worlds_scale, primitive_worlds_scale, crisis_strength_scale, tech_costs_scale
Supported Scopes: all
Added trigger:
Code:
is_mobile - Checks if the scoped fleet can move.
is_mobile = <yes/no>
Supported Scopes: fleet
Added trigger:
Code:
is_in_sensor_range - Checks if the specified ship, fleet, planet or system is within sensor range of the scoped country.
is_in_sensor_range = <ship/fleet/system>
Supported Scopes: country
Added trigger:
Code:
is_in_sensor_range_of_country - Checks if the scoped ship, fleet, planet or system is within sensor range of the specified country.
is_in_sensor_rangeof_country = root.owner
Supported Scopes: planet ship fleet galactic_object
Added trigger:
Code:
is_defensive_army - Checks if the army is defensive
is_defensive_army = yes
Supported Scopes: army
Deprecated trigger:
Code:
count_pops - Checks the number of pops in the scope that fulfill the specified criteria. Warning: deprecated, use count_owned_pop/count_species_pop
count_pops = { limit = { <triggers> } count < 6 }
Supported Scopes: planet species pop_faction
Added trigger:
Code:
is_idle - Checks if scoped leader is idle
is_idle = yes
Supported Scopes: leader
Removed trigger:
Code:
produced_energy - Checks the country's gross amount of produced energy credits
produced_energy < 100
Supported Scopes: country
Supported Targets: none
Extended functionality:
Code:
has_envoy_task - Checks the scoped envoy's task.
has_envoy_task = {
task = improve_relations/harm_relations/federation/galactic_community/spy_network/first_contact/strengthen_imperial_authority/undermine_imperial_authority/none
target = <country> (optional)
}
Supported Scopes: leader
Removed trigger:
Code:
trade_expenses - Checks the country's energy credits expenses from trade for the previous month
trade_expenses < 30
Supported Scopes: country
Supported Targets: none
Removed trigger:
Code:
ship_maintenance - Checks the country's total ship maintenance expenses for the previous month, in energy credits
ship_maintenance < 226
Supported Scopes: country
Supported Targets: none
Removed trigger:
Code:
army_maintenance - Checks the country's total army maintenance expenses for the previous month, in energy credits
army_maintenance > 226
Supported Scopes: country
Supported Targets: none
Removed trigger:
Code:
colony_maintenance - Checks the country's total colony maintenance expenses for the previous month, in energy credits
colony_maintenance > 25
Supported Scopes: country
Supported Targets: none
Removed trigger:
Code:
station_maintenance - Checks the country's total orbital station maintenance expenses for the previous month, in energy credits
station_maintenance > 126
Supported Scopes: country
Supported Targets: none
Removed trigger:
Code:
construction_expenses - Checks the country's construction expenses for the previous month
construction_expenses > 290
Supported Scopes: country
Supported Targets: none
Removed trigger:
Code:
federation_expenses - Checks the country's federation expenses for the previous month
federation_expenses < 1000
Supported Scopes: country
Supported Targets: none
Extended functionality:
Code:
has_planet_class - Checks if the system has planet of specific class
has_planet_class = pc_tundra/<scope>
Supported Scopes: galactic_object
Extended functionality:
Code:
any_deposit - Iterate through each deposit on the planet - checks whether the enclosed triggers return true for any of them
any_deposit = { <count=<num/all>> <triggers> }
Supported Scopes: planet
Code:
has_modifier - Checks if the scope object has a certain modifier
has_modifier = <modifier>
Supported Scopes: megastructure planet country ship pop galactic_object pop_faction federation spy_network espionage_operation
Extended functionality:
Code:
any_ship_in_system - Iterate through each ship in the current system - checks whether the enclosed triggers return true for any of them
any_ship_in_system = { <count=<num/all>> <triggers> }
Supported Scopes: galactic_object
Extended functionality:
Code:
member_of_faction - Checks if the pop belongs to any, or a specific, faction
member_of_faction = no/<pop faction scope>/isolationist
Supported Scopes: pop
Extended functionality:
Code:
is_ideal_planet_class - Checks if the planet is of the ideal class for target country, species or pop
is_ideal_planet_class = { who = <target> status = yes/no }
Supported Scopes: planet
Extended functionality:
Code:
any_owned_leader - Iterate through each leader that is owned by the country - checks whether the enclosed triggers return true for any of them
any_owned_leader = { <count=<num/all>> <triggers> }
Supported Scopes: country
Extended functionality:
Code:
any_owned_pop - Iterate through all owned pops - checks whether the enclosed triggers return true for any of them
any_owned_pop = { <count=<num/all>> <triggers> }
Supported Scopes: planet country pop_faction sector
Deprecated trigger:
Code:
count_owned_pops - Count the number of owned pops in the country that fulfill the specified criteria. Warning: deprecated, use count_owned_pop
count_owned_pops = { limit = { <triggers> } count > 12 }
Supported Scopes: planet country pop_faction
Removed trigger:
Code:
count_ships - Checks the number of ships in the galaxy that meet the specified criteria
count_ships = { limit = { <triggers> } count < 20 }
Supported Scopes: all
Supported Targets: ???
Extended functionality:
Code:
leader_of_faction - Checks if the leader is the leader of a faction
leader_of_faction = yes/no/<pop faction scope>/isolationist
Supported Scopes: leader
Added trigger:
Code:
compare_distance - Checks whether the current scope is closer to a specified object than it is to a second specified object within the same solar system.
compare_distance = { closer_object = root further_object = from }
Supported Scopes: megastructure planet ship pop fleet galactic_object leader ambient_object starbase deposit archaeological_site first_contact
Extended functionality:
Code:
is_war_participant - Checks if target country is participating in the war on the specified side
is_war_participant = { who = <target>/war = <target> side = attackers/defenders/<target> }
Supported Scopes: country war
Changed functionality:
Code:
any_neighbor_system - Iterate through all a system's neigboring systems by hyperlane - checks whether the enclosed triggers return true for any of them
any_neighbor_system = { <count=<num/all>> <triggers> }
Supported Scopes: galactic_object
Extended functionality:
Code:
is_within_borders_of - Checks if the planet/system/fleet/ship is within the borders of the target country
is_within_borders_of = <target>
Supported Scopes: planet ship fleet galactic_object
Added trigger:
Code:
num_repeatable_techs - Checks the country's number of researched repeatable technologies
num_repeatable_techs < 4
Supported Scopes: country
Extended functionality:
Code:
any_subject - Iterate through all subjects of the scoped country - checks whether the enclosed triggers return true for any of them
any_subject = { <count=<num/all>> <triggers> }
Supported Scopes: country
Extended functionality:
Code:
is_majority_species - checks if the current species is the dominant species of the specified country.
is_majority_species = <country>
Supported Scopes: planet pop leader species
Extended functionality:
Code:
has_non_swapped_tradition - Checks if a country has the given tradition and it is not swapped. Also returns true if the tradition is swapped but has inherit_effects = yes (i.e. it's a cosmetic flavor swap).
has_non_swapped_tradition = tr_my_santa_claus_tradition
Supported Scopes: country
Added trigger:
Code:
allowed_crisis_type - Checks which crisis is allowed to spawn in the current game
allowed_crisis_type = prethoryn/unbidden/contingency/all
Supported Scopes: all
Extended functionality:
Code:
resource_stockpile_compare - Checks specific resource stockpile for the country scope:
resource_stockpile_compare = {
resource = <resource_name>
value ><= <value>
mult = <variable> (optional: multiply the value by a variable, e.g. for when you are doing the same with add_resource)
}
Supported Scopes: country
Added trigger:
Code:
market_resource_price - Checks market price of a specific resource for the current country:
market_resource_price = {
resource = <resource_name>
amount = <value> (how much are you buying/selling)
trade_type = market_buy/market_sell/not_set (i.e. price without market fees)
value ><= <value>
}
Supported Scopes: country
Extended functionality:
Code:
pop_percentage = {
percentage > 0.74
limit = { <triggers> }
exclude = { <triggers> } (optional: specifies pops to exclude from the calculation)
}
Supported Scopes: planet country pop_faction sector
Extended functionality:
Code:
has_colonization_control - Checks if the pop is prevented from migrating
has_colonization_control = { value = bool country = scope }
Supported Scopes: pop species
Extended functionality:
Code:
pop_maintenance_cost - Checks the maintenace costs of a pop
pop_maintenance_cost = { value > 0.5 resource = energy }
Supported Scopes: pop
Extended functionality:
Code:
controlled_systems - Checks the country's or sector's number of owned systems
controlled_systems < 3
Supported Scopes: country sector
Added trigger:
Code:
can_buy_on_market - Checks if the current country can buy the specified resource on the market or galactic market
can_buy_on_market = <resource_name>
Supported Scopes: country
Extended functionality:
Code:
is_site_last_die_result - Compares the last dice roll.
is_site_last_die_result >= <int>
Supported Scopes: archaeological_site first_contact
Extended functionality:
Code:
is_current_stage_difficulty - Compares the current stage difficulty.
is_current_stage_difficulty >= <int>
Supported Scopes: archaeological_site first_contact
Extended functionality:
Code:
is_site_current_stage_score - Compares the current stage discovery score.
is_site_current_stage_score >= <int>
Supported Scopes: archaeological_site first_contact
Extended functionality:
Code:
is_site_current_stage_score_no_die - Compares the current stage discovery score excluding the current die roll.
is_site_current_stage_score_no_die >= <int>
Supported Scopes: archaeological_site first_contact
Added trigger:
Code:
is_artificial - Checks if the planet is artificial (as set in planet_classes)
is_artificial = yes
Supported Scopes: planet
Added trigger:
Code:
num_members - Checks number of members in scoped federation
num_members >=< <integer value>
Supported Scopes: federation
Added trigger:
Code:
num_associates - Checks number of associates in scoped federation
num_associates >=< <integer value>
Supported Scopes: federation
Extended functionality:
Code:
any_owned_species - Check if any of the species <on the planet/in the country> meet the specified criteria - checks whether the enclosed triggers return true for any of them
any_owned_species = { <count=<num/all>> <triggers> }
Supported Scopes: planet country
Extended functionality:
Code:
any_enslaved_species - Check if any of the species with enslaved pops <on the planet/in the country> meet the specified criteria - checks whether the enclosed triggers return true for any of them
any_enslaved_species = { <count=<num/all>> <triggers> }
Supported Scopes: planet country
Added trigger:
Code:
num_defensive_pacts - Checks the number of defensive pacts the current country has.
num_defensive_pacts > 2
Supported Scopes: country
Added trigger:
Code:
num_support_independence - Checks the number of empires the current country is supporting the independence of.
num_support_independence > 2
Supported Scopes: country
Added trigger:
Code:
num_guarantees - Checks the number of empires the current country is guaranteeing.
num_guarantees > 2
Supported Scopes: country
Added trigger:
Code:
num_non_aggression_pacts - Checks the number of non-aggression pacts the current country has.
num_non_aggression_pacts > 2
Supported Scopes: country
Added trigger:
Code:
num_commercial_pacts - Checks the number of commercial pacts the current country has.
num_commercial_pacts > 2
Supported Scopes: country
Added trigger:
Code:
num_research_agreements - Checks the number of research agreements a country has
num_research_agreements > 2
Supported Scopes: country
Added trigger:
Code:
num_migration_pacts - Checks the number of migration pacts a country has
num_migration_pacts > 2
Supported Scopes: country
Added trigger:
Code:
num_rivals - Checks the number of rivalries a country has
num_rivals > 2
Supported Scopes: country
Added trigger:
Code:
num_closed_borders - Checks the number of countries the country has closed borders to
num_closed_borders > 2
Supported Scopes: country
Added trigger:
Code:
num_truces - Checks the number of truces country has
num_truces > 2
Supported Scopes: country
Added trigger:
Code:
has_active_first_contact_with - Checks if the scoped country has an active First Contact site with the target country
has_active_first_contact_with = <country>
Supported Scopes: country
Added trigger:
Code:
is_current_first_contact_stage - Checks if the scoped first contact is at the specified stage.
is_current_first_contact_stage = default_stage_2
Supported Scopes: first_contact
Added trigger:
Code:
has_spynetwork - Checks if scoped country has any spynetworks with a value > 0
has_spynetwork = yes
Supported Scopes: country
Added trigger:
Code:
has_espionage_asset - Checks if the scope hold an asset of specified type
has_espionage_asset = <asset type>
Supported Scopes: spy_network espionage_operation
Added trigger:
Code:
has_espionage_operation_flag - Checks if the espionage operation has a specific flag
has_espionage_operation_flag = <flag>
Supported Scopes: espionage_operation
Added trigger:
Code:
has_menace_perk - Checks if a country has a specific Menace Perk unlocked.
has_menace_perk = <menace_perk_name>
Supported Scopes: country
Added trigger:
Code:
has_menace_perk - Checks if a country has a specific Menace Perk unlocked.
has_menace_perk = <menace_perk_name>
Supported Scopes: country
Added trigger:
Code:
num_organic_pops_per_year - Checks how many organic pops the planet expects to gain in a year on average (through growth and assembly) at the current rate.
num_organic_pops_grown_per_year > 0.41
Supported Scopes: planet
Added trigger:
Code:
num_artificial_pops_per_year - Checks how many artificial pops the planet expects to assemble in a year on average at the current rate.
num_artificial_pops_grown_per_year > 0.41
Supported Scopes: planet
Added trigger:
Code:
has_spy_power - Compares the spy power of the network
has_spy_power = <num>
Supported Scopes: spy_network
Added trigger:
Code:
has_available_spy_power - Compares the available spy power of the network
has_available_spy_power = <num>
Supported Scopes: spy_network
Added trigger:
Code:
has_espionage_category - Checks if the scope is of a specific category
has_espionage_category = <espionage category key>
Supported Scopes: espionage_operation
Added trigger:
Code:
is_running_espionage_operation - Checks if the scope is currently running an espionage operation
is_running_espionage_operation = <bool>
Supported Scopes: country spy_network
Added trigger:
Code:
has_espionage_type - Checks if the scope is of a specific type
has_espionage_type = <espionage type key>
Supported Scopes: espionage_operation
Added trigger:
Code:
relative_encryption_decryption - Divides the encryption value of the scope object with the decryption value of the target and compares with value.
Target is only used for country scope.
relative_encryption_decryption = {
target = <country>
value > 1.0
}
Supported Scopes: country spy_network espionage_operation
Added trigger:
Code:
is_espionage_operation_days_to_next_die_roll - Compares days to next die roll.
is_espionage_operation_days_to_next_die_roll >= <value>
Supported Scopes: espionage_operation
Added trigger:
Code:
is_espionage_operation_chapter - Compares the current espionage operation chapter index.
is_espionage_operation_chapter >= <int>
Supported Scopes: espionage_operation
Added trigger:
Code:
is_espionage_operation_difficulty - Compares the espionage operation difficulty.
is_espionage_operation_difficulty >= <value>
Supported Scopes: espionage_operation
Added trigger:
Code:
is_espionage_operation_score_no_die - Compares the current espionage score excluding the current die roll.
is_espionage_operation_score_no_die >= <value>
Supported Scopes: espionage_operation
Added trigger:
Code:
is_espionage_operation_score - Compares the current espionage score.
is_espionage_operation_score >= <value>
Supported Scopes: espionage_operation
Added trigger:
Code:
is_espionage_operation_last_die_result - Compares the last dice roll.
is_espionage_operation_last_die_result >= <int>
Supported Scopes: espionage_operation
Removed trigger:
Code:
any_recruited_leader - Iterate through each leader that is owned by the country
any_recruited_leader = { <count=<num/all>> <triggers> }
Supported Scopes: country
Supported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREV
Added trigger:
Code:
num_espionage_assets - Compares the number of assets associated with the scope object.
num_espionage_assets = <int>
Supported Scopes: spy_network espionage_operation
Removed trigger:
Code:
count_recruited_leader - Iterate through each leader that is owned by the country
count_recruited_leader = { <count=<num/all>> <triggers> }
Supported Scopes: country
Supported Targets: none
Added trigger:
Code:
has_ship_owner_type - Checks if the ship/fleet/design has a specific owner type (country/federation/galactic_community/global_ship_design)
has_ship_owner_type = galactic_community
Supported Scopes: ship fleet design
Added trigger:
Code:
has_crisis_level - Checks if a country has a specific Crisis Level unlocked.
has_crisis_level = <crisis_level_name>
Supported Scopes: country
Added trigger:
Code:
has_spynetwork_value - Compares spy network value of the scoped object
has_spynetwork_value >= <value>
Supported Scopes: spy_network
Added trigger:
Code:
is_spynetwork_level - Compares spy network level of the scoped object
is_spynetwork_level >= <int>
Supported Scopes: spy_network
Added trigger:
Code:
is_counter_espionage - Compares counter espionage of the scoped object
is_counter_espionage >= <value>
Supported Scopes: country
Added trigger:
Code:
has_embassy - Check if the country has an embassy with the target country
has_embassy = <target>
Supported Scopes: country
Added trigger:
Code:
is_spynetwork_max_level - Compares spy network max level of the scoped object
is_spynetwork_max_level >= <int>
Supported Scopes: spy_network
Added trigger:
Code:
any_ground_combat_defender - Iterate through each army currently defending the planet in ground combat - checks whether the enclosed triggers return true for any of them
any_ground_combat_defender = { <count=<num/all>> <triggers> }
Supported Scopes: planet
Added trigger:
Code:
count_ground_combat_defender - Iterate through each army currently defending the planet in ground combat - checks whether the enclosed triggers return true for X/all of them
count_ground_combat_defender = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: planet
Added trigger:
Code:
any_ground_combat_attacker - Iterate through each army currently attacking the planet in ground combat - checks whether the enclosed triggers return true for any of them
any_ground_combat_attacker = { <count=<num/all>> <triggers> }
Supported Scopes: planet
Added trigger:
Code:
count_ground_combat_attacker - Iterate through each army currently attacking the planet in ground combat - checks whether the enclosed triggers return true for X/all of them
count_ground_combat_attacker = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: planet
Removed trigger:
Code:
any_sector - Iterate through all sectors
any_sector = { <count=<num/all>> <triggers> }
Supported Scopes: all
Removed trigger:
Code:
count_sector - Iterate through all sectors
count_sector = { <count=<num/all>> <triggers> }
Supported Scopes: all
Supported Targets: none
Added trigger:
Code:
count_subject - Iterate through all subjects of the scoped country - checks whether the enclosed triggers return true for X/all of them
count_subject = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country
Added trigger:
Code:
any_spynetwork - Iterate through each spynetwork - checks whether the enclosed triggers return true for any of them
any_spynetwork = { <count=<num/all>> <triggers> }
Supported Scopes: country no_scope
Added trigger:
Code:
count_spynetwork - Iterate through each spynetwork - checks whether the enclosed triggers return true for X/all of them
count_spynetwork = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country no_scope
Added trigger:
Code:
any_espionage_operation - Iterate through each espionage operation - checks whether the enclosed triggers return true for any of them
any_espionage_operation = { <count=<num/all>> <triggers> }
Supported Scopes: country no_scope spy_network
Added trigger:
Code:
count_espionage_operation - Iterate through each espionage operation - checks whether the enclosed triggers return true for X/all of them
count_espionage_operation = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country no_scope spy_network
Added trigger:
Code:
any_espionage_asset - Iterate through each espionage asset - checks whether the enclosed triggers return true for any of them
any_espionage_asset = { <count=<num/all>> <triggers> }
Supported Scopes: no_scope spy_network espionage_operation
Added trigger:
Code:
count_espionage_asset - Iterate through each espionage asset - checks whether the enclosed triggers return true for X/all of them
count_espionage_asset = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: no_scope spy_network espionage_operation
Added trigger:
Code:
any_first_contact - Iterate through each first contact (both active and complete) that this country is engaging in - checks whether the enclosed triggers return true for any of them
any_first_contact = { <count=<num/all>> <triggers> }
Supported Scopes: country
Added trigger:
Code:
count_first_contact - Iterate through each first contact (both active and complete) that this country is engaging in - checks whether the enclosed triggers return true for X/all of them
count_first_contact = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country
Added trigger:
Code:
any_active_first_contact - Iterate through each active (non-completed) first contact that this country is engaging in - checks whether the enclosed triggers return true for any of them
any_active_first_contact = { <count=<num/all>> <triggers> }
Supported Scopes: country
Added trigger:
Code:
count_active_first_contact - Iterate through each active (non-completed) first contact that this country is engaging in - checks whether the enclosed triggers return true for X/all of them
count_active_first_contact = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country
Added trigger:
Code:
any_galaxy_fleet - Iterate through each fleet in the entire game - checks whether the enclosed triggers return true for any of them
any_galaxy_fleet = { <count=<num/all>> <triggers> }
Supported Scopes: all
Added trigger:
Code:
count_galaxy_fleet - Iterate through each fleet in the entire game - checks whether the enclosed triggers return true for X/all of them
count_galaxy_fleet = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: all
Added trigger:
Code:
count_owned_leader - Iterate through each leader that is owned by the country - checks whether the enclosed triggers return true for X/all of them
count_owned_leader = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country
Added trigger:
Code:
any_associate - Iterate through each associate member of the federation - checks whether the enclosed triggers return true for any of them
any_associate = { <count=<num/all>> <triggers> }
Supported Scopes: federation
Added trigger:
Code:
count_associate - Iterate through each associate member of the federation - checks whether the enclosed triggers return true for X/all of them
count_associate = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: federation
Added trigger:
Code:
count_system_planet - Iterate through each planet in the current system - checks whether the enclosed triggers return true for X/all of them
count_system_planet = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: galactic_object
Added trigger:
Code:
count_planet_within_border - Iterate through each planet within the current empire's borders - checks whether the enclosed triggers return true for X/all of them
count_planet_within_border = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country
Added trigger:
Code:
count_owned_planet - Iterate through each inhabited planet owned by the current empire - checks whether the enclosed triggers return true for X/all of them
count_owned_planet = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country sector
Added trigger:
Code:
count_controlled_planet - Iterate through each inhabited planet controlled by the current empire - checks whether the enclosed triggers return true for X/all of them
count_controlled_planet = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: country
Added trigger:
Code:
count_moon - Iterate through each moon of the planet - checks whether the enclosed triggers return true for X/all of them
count_moon = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: planet
Added trigger:
Code:
any_species_pop - Iterate through each pop that belongs to this species; warning: resource-intensive! - checks whether the enclosed triggers return true for any of them
any_species_pop = { <count=<num/all>> <triggers> }
Supported Scopes: species
Added trigger:
Code:
count_species_pop - Iterate through each pop that belongs to this species; warning: resource-intensive! - checks whether the enclosed triggers return true for X/all of them
count_species_pop = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: species
Added trigger:
Code:
any_galaxy_sector - Iterate through all sectors in the game - checks whether the enclosed triggers return true for any of them
any_galaxy_sector = { <count=<num/all>> <triggers> }
Supported Scopes: all
Added trigger:
Code:
count_galaxy_sector - Iterate through all sectors in the game - checks whether the enclosed triggers return true for X/all of them
count_galaxy_sector = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: all
Added trigger:
Code:
count_ship_in_system - Iterate through each ship in the current system - checks whether the enclosed triggers return true for X/all of them
count_ship_in_system = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: galactic_object
Added trigger:
Code:
any_neighbor_system_euclidean - Iterate through all a system's neigboring systems (by closeness, not by hyperlanes) - checks whether the enclosed triggers return true for any of them
any_neighbor_system_euclidean = { <count=<num/all>> <triggers> }
Supported Scopes: galactic_object
Added trigger:
Code:
count_neighbor_system_euclidean = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: galactic_object
Added trigger:
Code:
count_attacker - Iterate through all attackers in the current war - checks whether the enclosed triggers return true for X/all of them
count_attacker = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: war
Added trigger:
Code:
count_defender - Iterate through all defenders in the current war - checks whether the enclosed triggers return true for X/all of them
count_defender = {
count = <num/all>
limit = { <triggers> }
}
Supported Scopes: war
Last edited:
- 15