== TRIGGER DOCUMENTATION ==text - For 'desc={trigger={' use. Shows custom texttext = Supported Scopes: allSupported Targets: nonecustom_tooltip - Replaces the tooltips for the enclosed triggers with a custom textcustom_tooltip = {text = fail_text = success_text = Supported Scopes: allSupported Targets: noneif - Evaluates the triggers if the display_triggers of the limit are metif = { limit = { } }Supported Scopes: allSupported Targets: noneany_playable_country - Checks if any playable country meet the specified criteriaany_playable_country = { }Supported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_mission - Checks if the observation post has a specific missionhas_mission = technological_enlightenment_4Supported Scopes: fleetSupported Targets: noneswitch - Switch case for a triggerswitch = {trigger = pop_has_ethicethic_xenophile = { }ethic_xenophobe = { }default = { }Supported Scopes: allSupported Targets: ???num_fleets - Checks the country's number of fleetsnum_fleets < 8Supported Scopes: countrySupported Targets: ???num_ships - Checks the country/fleet's number of shipsnum_ships > 39Supported Scopes: country fleetSupported Targets: ???research_leader - Checks if the country's researcher in a specific field meets the specified criteriaresearch_leader = { area = engineering }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_fleet_order - Checks if the ship/fleet has a specific fleet orderhas_fleet_order = survey_planet_orderSupported Scopes: ship fleetSupported Targets: noneclosest_system - Checks if any close-by systems meet the criteriaclosest_system = { min_steps = 2 max_steps = 20 }Supported Scopes: allSupported Targets: ???any_owned_fleet - Checks if any of the country's owned fleets meet the specified criteriaany_owned_fleet = { }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_orbital_station - Checks if the planet has any kind of orbital stationhas_orbital_station = yesSupported Scopes: planetSupported Targets: noneany_orbital_station - Checks if the planet's orbital station meets the specified criteriaany_orbital_station = { }Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVelse_if - Evaluates the enclosed triggers if the display_triggers of the preceding `if` or `else_if` is not met and its own display_trigger of the limit is metif = { limit = { } }else_if = { limit = { } }Supported Scopes: allSupported Targets: nonehappiness - Checks the pop's happiness percentagehappiness < 90Supported Scopes: popSupported Targets: noneis_half_species - Check if scoped species is half species of specific/any speciesis_half_species = Supported Scopes: speciesSupported Targets: nonefaction_approval - Checks the scoped faction's approval percentagefaction_approval < 90Supported Scopes: popSupported Targets: nonelast_building_changed - Checks if the last building queued/unqueued/built/demolished/upgraded was the specified buildinglast_building_changed = building_capitolSupported Scopes: planetSupported Targets: noneempire_size - Checks the empire's sizeempire_size < 20Supported Scopes: countrySupported Targets: ???last_district_changed - Checks if the last district queued/unqueued/built/demolished/upgraded was the specified districtlast_district_changed = district_capitolSupported Scopes: planetSupported Targets: nonehas_ring - Checks if the planet has a planetary ringhas_ring = yesSupported Scopes: planetSupported Targets: noneis_moon - Checks if the planet is the moon of another planetis_moon = yesSupported Scopes: planetSupported Targets: noneopinion - Checks the country's opinion of the target countryopinion = { who = value = -70 }Supported Scopes: countrySupported Targets: ???ideal_planet_class - Checks if the country's ideal planet class is a specific classideal_planet_class = pc_tundraSupported Scopes: countrySupported Targets: noneethos - Checks the average ethics divergence on the planetethos < 0.4Supported Scopes: planetSupported Targets: nonedistance - Checks the ship/fleet/planet/leader/pop/system's galaxy map distance to target in absolute unitsdistance = { source = min = 50 max = 120 type= uses_bypass= bypass_empire= min_jumps = 2 max_jumps = 10 }Supported Scopes: planet ship pop fleet galactic_object leaderSupported Targets: noneis_pirate - Checks if the country is a pirate countryis_pirate = yesSupported Scopes: countrySupported Targets: noneplanet_size - Checks the planet's sizeplanet_size < 20Supported Scopes: planetSupported Targets: ???gender - Checks the leader's gendergender = femaleSupported Scopes: leaderSupported Targets: ???any_planet_within_border - Checks if any planets within the country's borders meet the specified criteriaany_planet_within_border = { }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_owned_ship - Checks if any of the country's ships meet the specified criteriaany_owned_ship = { }Supported Scopes: country fleetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_ship - Checks if any ships in the game meet the specified criteriaany_ship = { }Supported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVpop_has_ethic - Checks if the pop has a specific ethospop_has_ethic = ethic_fanatic_xenophileSupported Scopes: popSupported Targets: nonepop_has_trait - Checks if the pop has a specific traitpop_has_trait = trait_decadentSupported Scopes: popSupported Targets: nonehas_observation_outpost - Checks if the planet has an observation posthas_observation_outpost = yesSupported Scopes: planetSupported Targets: nonestarting_system - Checks if the system is the starting system for any countrystarting_system = yesSupported Scopes: galactic_objectSupported Targets: nonegraphical_culture - Checks if the country has specific graphical culturegraphical_culture = fungoid_01Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVvassals - Checks the country's number of vassalsvassals > 0Supported Scopes: countrySupported Targets: ???exists - Checks if a target scope existsexists = Supported Scopes: allSupported Targets: ???has_edict - Checks if the country has a specific edict enabledhas_edict = crystal_sonarSupported Scopes: countrySupported Targets: ???is_designable - Checks if the scoped ship design, ship or fleet (all ships) has a designable ship size.is_designable = yesSupported Scopes: ship fleet designSupported Targets: noneis_in_cluster - Checks if the planet/system belongs to a specific spawning clusteris_in_cluster = resource_cluster_3Supported Scopes: planet galactic_objectSupported Targets: ???any_moon - Checks if any of the planet's moons meet the specified criteriaany_moon = { }Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVnum_empires - Checks the number of regular empires in the galaxynum_empires > 3Supported Scopes: countrySupported Targets: noneleader_class - Checks if the leader is of a specific classleader_class = scientistSupported Scopes: leaderSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVobservation_outpost_owner - Checks if the planet's observation post's owner meets the specified criteriaobservation_outpost_owner = { }Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVobservation_outpost - Checks if the planet's observation post meets the specified criteriaobservation_outpost = { }Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_deposit - Checks if the planet has any, or a specific, deposithas_deposit = yeshas_deposit = d_immense_engineering_depositSupported Scopes: planet depositSupported Targets: noneis_same_value - Checks if the current scope and the target scope are the same thingis_same_value = Supported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_pop_faction_flag - Checks if the pop faction has a specific flaghas_pop_faction_flag = Supported Scopes: pop pop_factionSupported Targets: nonenum_communications - Checks the country's number of established communicationsnum_communications > 3Supported Scopes: countrySupported Targets: nonelast_changed_policy - Checks if the last policy changed by the country was a specific policylast_changed_policy = slaverySupported Scopes: countrySupported Targets: ???is_species - Checks if the pop/country's founder species is of a specific pre-defined speciesis_species = ROBOT_POP_SPECIES_2Supported Scopes: pop leader speciesSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVlast_increased_tech - Checks if the country's last researched technology was a specific techlast_increased_tech = tech_gene_expressionsSupported Scopes: countrySupported Targets: ???any_war - Checks if any wars meet the specified criteriaany_war = { }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_defender - Checks if any of the defenders in the war meet the specified criteriaany_defender = { }Supported Scopes: warSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_attacker - Checks if any attackers in the war meet the specified criteriaany_attacker = { }Supported Scopes: warSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVoriginal_owner - Checks if the planet is still owned by its first colonizeroriginal owner = yesSupported Scopes: planetSupported Targets: nonetech_unlocked_ratio - Checks the relative amount of already-researched tech between the country and target countrytech_unlocked_ratio = { who = ratio = 0.4 }Supported Scopes: countrySupported Targets: ???can_colonize - Checks if the planet can be colonized by target countrycan_colonize = { who = status = yes }Supported Scopes: planetSupported Targets: nonehas_special_project - Checks if the country has a specific special project availablehas_special_project = EMERGENCY_BUOY_PROJECTSupported Scopes: countrySupported Targets: noneis_subspecies - Checks if the pop/country/species is a subspecies of the target pop/country/speciesis_subspecies = Supported Scopes: country pop speciesSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_valid - Checks to see if target scope is valid for the country/planet/armyis_valid = Supported Scopes: planet country armySupported Targets: ???check_pop_faction_parameter - Checks if one of the faction's parameters is the same as target scopecheck_pop_faction_parameter = { which = value = }Supported Scopes: pop_factionSupported Targets: noneis_robot_pop - Checks if the pop is a robotis_robot_pop = yesSupported Scopes: popSupported Targets: nonenum_fallen_empires - Checks the number of fallen empires in the galaxynum_fallen_empires > 3Supported Scopes: countrySupported Targets: noneis_preferred_weapons - Checks if the country's AI prefers weapons using this component tagis_preferred_weapons = weapon_type_energySupported Scopes: countrySupported Targets: nonehas_access_fleet - Checks if the system is accessible to the target country with construction vesselshas_access_construction = Supported Scopes: galactic_objectSupported Targets: ???is_point_of_interest - Checks if the planet/country/ship/system/ambient object has a specific point of interest for a specific event chain for a specific countryis_point_of_interest = { id = event_chain = owner = }Supported Scopes: planet country ship galactic_object ambient_objectSupported Targets: ???terraformed_by - Checks if planet is terraformed by country.Supported Scopes: planetSupported Targets: nonehas_megastructure - Checks if a country or star has a mega structure.Supported Scopes: country galactic_objectSupported Targets: nonerecently_lost_war - Checks if the country is at waris_at_war = yesSupported Scopes: countrySupported Targets: nonecount_diplo_ties - Checks the number of diplomatic in the scope that fulfill the specified criteriacount_countries = { count < 6 limit = { } }Supported Scopes: countrySupported Targets: nonehas_research_agreement - Checks if two countries have a research agreement.Supported Scopes: countrySupported Targets: nonehas_tributary - Checks if two countries have a research agreement.Supported Scopes: countrySupported Targets: noneupgrade_days_left - Checks a mega structure amount of upgrade days left.upgrade_days_left > 360Supported Scopes: megastructureSupported Targets: nonehas_any_megastructure - Checks if the scope has a megastructurehas_any_megastructure = yesSupported Scopes: planet galactic_objectSupported Targets: noneformer_living_standard_type - Compares the former living standard type with the given one.former_living_standard_type = living_standard_normalSupported Scopes: popSupported Targets: noneformer_citizenship_type - Compares the former citizenship type with the given one.former_citizenship_type = citizenship_fullSupported Scopes: popSupported Targets: noneformer_military_service_type - Compares the former military service type with the given one.former_military_service_type = military_service_fullSupported Scopes: popSupported Targets: noneformer_slavery_type - Compares the former slavery type with the given one.former_slavery_type = slavery_normalSupported Scopes: popSupported Targets: noneformer_purge_type - Compares the former purge type with the given one.former_purge_type = purge_normalSupported Scopes: popSupported Targets: noneformer_population_control_type - Compares the former population control type with the given one.former_population_control_type = population_control_yesSupported Scopes: popSupported Targets: noneformer_migration_control_type - Compares the former migration control type with the given one.former_migration_control_type = migration_control_yesSupported Scopes: popSupported Targets: noneis_alliance_fleet - Checks if the scoped fleet is an alliance fleet.is_alliance_fleet = Supported Scopes: fleetSupported Targets: noneis_researching_special_project - Checks if the country is currently researching a specific special projectis_researching_special_project = special_project_nameSupported Scopes: country leaderSupported Targets: noneand - all inside trigger must be trueSupported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVor - At least one entry inside the trigger must be trueSupported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVnot - An inverted triggerSupported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_planet - Checks if any planet in the system meets the specified criteriaany_planet = { }Supported Scopes: galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_star - Checks if the planet is a staris_star = yesSupported Scopes: planetSupported Targets: noneis_asteroid - Checks if the planet is an asteroidis_asteroid = yesSupported Scopes: planetSupported Targets: nonespecies_portrait - Checks if the species (or pop/empire's dominant species) uses a certain portraitspecies_portrait = rep13Supported Scopes: country pop speciesSupported Targets: noneis_neutral_to - Checks if the country has a neutral attitude towards target countryis_neutral_to = Supported Scopes: countrySupported Targets: nonetrust - Checks the country's trust of the target countrytrust = { who = value = 50 }Supported Scopes: countrySupported Targets: ???hidden_trigger - Hides the tooltip for the triggers withinhidden_trigger = { }Supported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_district - Checks if the planet has any, or a specific, districthas_district = yeshas_district = district_miningSupported Scopes: planetSupported Targets: nonefree_district_slots - Checks the planet's number of slots available for new constructionsfree_district_slots > 2Supported Scopes: planetSupported Targets: ???has_owner - Checks if the planet/system is colonizedhas_owner = yesSupported Scopes: planet galactic_objectSupported Targets: noneany_owned_planet - Checks if any of the country's owned planets meet the specified criteriaany_owned_planet = { }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVfree_housing - Checks the planet's available housingfree_housing > 5Supported Scopes: planetSupported Targets: ???any_controlled_planet - Checks if any of the country's controlled planets meet the specified criteriaany_controlled_planet = { }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_ai - Checks if the country is played by the AIis_ai = noSupported Scopes: countrySupported Targets: nonealways - Sets trigger to be either always true or falsealways = yesSupported Scopes: allSupported Targets: nonehas_trait - Checks if a pop/leader/species/country's dominant species has a certain traithas_trait = leader_trait_carefreeSupported Scopes: country pop leader speciesSupported Targets: nonehas_ethic - Checks if a country has a certain ethoshas_ethic = ethic_fanatic_pacifistSupported Scopes: country popSupported Targets: noneis_owned_by - Checks if the planet/system/army/ship is owned by the target countryis_owned_by = Supported Scopes: planet ship galactic_object armySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVpop_can_live_on_planet - Checks if the pop's species is allowed to live on its planetpop_can_live_on_planet = yesSupported Scopes: popSupported Targets: nonedays_passed - Checks the number of in-game days passed since the 2200.1.1 startdays_passed < 15Supported Scopes: allSupported Targets: nonefree_amenities - Checks the planet's available amenitiesfree_amenities > 5Supported Scopes: planetSupported Targets: ???has_deficit - Checks if the country has a deficit of the defined resourcehas_deficit = mineralsSupported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_commercial_pact - Check if the country has a commercial pact with target countryhas_commercial_pact = Supported Scopes: countrySupported Targets: noneis_being_assimilated - Checks if the pop is being purgedis_being_assimilated = yesSupported Scopes: popSupported Targets: nonenum_guaranteed_colonies - Checks the number of guaranteed colonies defined in setupnum_guaranteed_colonies > 1Supported Scopes: allSupported Targets: nonehas_branch_office - Check if the planet has a branch office owned by target country/any country/no countryhas_branch_office = Supported Scopes: planetSupported Targets: noneis_same_species - checks if the scoped object is of the same species as another objectis_same_species = Supported Scopes: country ship pop leader army speciesSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_criminal_syndicate - Checks if the country is a criminal syndicateis_criminal_syndicate = yesSupported Scopes: countrySupported Targets: noneis_blocker - Checks if scoped deposit is a blocker-typeis_blocker = yesSupported Scopes: depositSupported Targets: noneis_same_empire - Checks if the country is the same as another, target countryis_same_empire = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVfree_branch_office_building_slots - Checks the planet's number of branch office slots available for new constructionsfree_building_slots > 2Supported Scopes: planetSupported Targets: ???branch_office_value - Checks the planet's branch officevaluebranch_office_value = { who = value > 10 }Supported Scopes: planetSupported Targets: ???free_jobs - Checks the number of jobs compared to pops on the planetfree_jobs > 12Supported Scopes: planetSupported Targets: noneis_planet_class - Checks if the planet is of a certain classis_planet_class = pc_tundraSupported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_strategic_resource - Checks if the planet has any strategic resourcehas_strategic_resource = yesSupported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_star_class - Checks if the system/planet(star) is of a certain classis_star_class = sc_black_holeSupported Scopes: planet galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_technology - Checks if the country has a technology (of at least a specific level)has_technology = tech_spaceport_4Supported Scopes: countrySupported Targets: noneany_fleet_in_orbit - Checks if any fleet in orbit of the planet meet the specified criteriaany_fleet_in_orbit = { }Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVplanet_devastation - Checks the planet's devastationplanet_devastation > 10Supported Scopes: planetSupported Targets: ???is_pop_category - Checks if the pop has the chosen pop categoryis_pop_category = Supported Scopes: popSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVwon_the_game - Checks if scoped country won the gamewon_the_game = yesSupported Scopes: countrySupported Targets: noneplanet_stability - Compares the stability present on the planet with the given valueplanet_stability > 50Supported Scopes: planetSupported Targets: noneperc_communications_with_playable - Checks the country's percentage of communications with playable empiresnum_communications > 3Supported Scopes: countrySupported Targets: noneplanet_crime - Compares the crime present on the planet with the given valueplanet_crime > 50Supported Scopes: planetSupported Targets: nonehas_job - Checks if the pop has a specific job, or any job if set to yeshas_job = Supported Scopes: popSupported Targets: nonehas_planet_modifier - Checks if the planet has a specific planet modifierhas_planet_modifier = pm_titanic_lifeSupported Scopes: planetSupported Targets: noneis_deposit_type - Checks if deposit is specified typeis_deposit_type = d_immense_engineering_depositSupported Scopes: depositSupported Targets: nonehas_built_species - Checks if country has a built species definedhas_built_species = yes/noSupported Scopes: countrySupported Targets: ???num_buildings - Checks the number the planet has of any, or a specific, buildingnum_buildings = { type = value > 2 }Supported Scopes: planetSupported Targets: nonenum_districts - Checks the number the planet has of any, or a specific, districtnum_districts = { type = value > 2 }Supported Scopes: planetSupported Targets: nonenum_free_districts - Checks the number of available slots the planet has of any, or a specific, districtnum_free_districts = { type = value > 2 }Supported Scopes: planetSupported Targets: nonehas_planet_flag - Checks if the planet has a specific flaghas_planet_flag = Supported Scopes: planetSupported Targets: nonehas_country_flag - Checks if the empire has a specific flaghas_country_flag = Supported Scopes: countrySupported Targets: nonehas_fleet_flag - Checks if the fleet has a specific flaghas_fleet_flag = Supported Scopes: fleetSupported Targets: nonehas_ship_flag - Checks if the ship has a specific flagships_flag = Supported Scopes: shipSupported Targets: noneis_ship_class - Checks if the ship/fleet/design is a specific classis_ship_class = shipclass_colonizerSupported Scopes: ship fleet designSupported Targets: noneis_ship_size - Checks if the ship/fleet/design is a specific ship sizeis_ship_size = mining_stationSupported Scopes: ship fleet designSupported Targets: noneis_capital - Checks if the planet is its owner's capitalis_capital = yesSupported Scopes: planetSupported Targets: nonehas_ground_combat - Checks if ground combat is taking place on the planethas_ground_combat = yesSupported Scopes: planetSupported Targets: noneis_at_war - Checks if the country is at waris_at_war = yesSupported Scopes: countrySupported Targets: nonenum_owned_planets - Checks the country's number of owned planetsnum_owned_planets < 8Supported Scopes: countrySupported Targets: nonehas_government - Checks if the country has a specific government typehas_government = despotic_hegemonySupported Scopes: countrySupported Targets: nonenum_pops - Checks the number of pops on the planet/country/pop factionnum_pops > 12Supported Scopes: planet country pop_factionSupported Targets: noneis_primitive - Checks if the country is a primitive, pre-FTL civilizationis_primitive = yesSupported Scopes: countrySupported Targets: noneis_inside_nebula - checks if the planet/ship/fleet/system is inside a nebulais_inside_nebula = yesSupported Scopes: planet ship fleet galactic_objectSupported Targets: noneis_inside_border - Checks if the planet/ship/fleet/system is inside the borders of the target countryis_inside_border = Supported Scopes: planet ship fleet galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_country - Iterate through all countriesany_country = { > }Supported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_pop - Checks if any of the planet/species/pop faction pops meet the specified criteriaany_pop = { }Supported Scopes: planet species pop_factionSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_overlord - Checks if the country is the overlord of any subject countriesis_overlord = yesSupported Scopes: countrySupported Targets: noneis_at_war_with - Checks if the country is at war with the target countryis_at_war_with = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVtheir_opinion - Checks target country's opinion value of the current countrytheir_opinion = { who = value > 25 }Supported Scopes: countrySupported Targets: ???is_same_species_class - Checks if the pop/country is of the same species class as another pop/countryis_same_species_class = Supported Scopes: country popSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_federation - Checks if the country is in a federationhas_federation = yesSupported Scopes: countrySupported Targets: noneis_colonizable - Checks if the planet can theoretically be colonizedis_colonizable = yesSupported Scopes: planetSupported Targets: nonehas_level - Checks if the leader has a specific experience levelhas_level > 2Supported Scopes: leaderSupported Targets: ???num_minerals - Checks the planet's total amount of mineralsnum_minerals < 20Supported Scopes: planetSupported Targets: nonenum_physics - Checks the planet's total amount of physics researchnum_physics = 8Supported Scopes: planetSupported Targets: nonenum_society - Checks the planet's total amount of society researchnum_society > 8Supported Scopes: planetSupported Targets: nonenum_engineering - Checks the planet's total amount of engineering researchnum_engineering < 8Supported Scopes: planetSupported Targets: nonenum_modifiers - Checks the planet's number of modifiersnum_modifiers < 3Supported Scopes: planetSupported Targets: nonehas_any_strategic_resource - Checks if the planet has any strategic resourcehas_any_strategic_resource = yesSupported Scopes: planetSupported Targets: nonehas_pop_flag - Checks if the pop has a specific flaghas_pop_flag = Supported Scopes: popSupported Targets: noneis_occupied_flag - Checks if the planet is under military occupationis_occupied_flag = yesSupported Scopes: planetSupported Targets: noneis_damaged - Checks if the ship is damagedis_damaged = yesSupported Scopes: shipSupported Targets: nonehas_hp - Checks the ship's hull pointshas_hp > 200Supported Scopes: shipSupported Targets: noneis_surveyed - Checks if the planet/system has been survey by target countryis_surveyed = { who = status = yes }Supported Scopes: planet galactic_objectSupported Targets: nonehas_global_flag - Checks if a Global Flag has been sethas_global_flag = Supported Scopes: allSupported Targets: nonecheck_variable - Checks a variable for the country/leader/planet/system/fleetcheck_variable = { which = value < 4 }Supported Scopes: planet country fleet galactic_object leaderSupported Targets: noneis_colony - Checks if the planet is colonizedis_colony = yesSupported Scopes: planetSupported Targets: nonehabitability - Checks the planet's habitability (0 to 1) for target pop/specieshabitability = { who = value = 0.6 }Supported Scopes: planetSupported Targets: nonehas_building - Checks if the planet has any, or a specific, buildinghas_building = yeshas_building = building_capital_3Supported Scopes: planetSupported Targets: noneis_controlled_by - Checks if the planet is controlled by the target countryis_controlled_by = Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_terraformed - Checks if the planet has ever been terraformedis_terraformed = yesSupported Scopes: planetSupported Targets: noneis_terraforming - Checks if the planet is currently being terraformedis_terraforming = yesSupported Scopes: planetSupported Targets: noneis_federation_leader - Checks if the country is the leader of their federationis_federation_leader = yesSupported Scopes: countrySupported Targets: nonehas_star_flag - Checks if the solar system has a specific flaghas_star_flag = Supported Scopes: galactic_objectSupported Targets: nonehas_mining_station - Checks if the planet has an orbital mining stationhas_mining_station = yesSupported Scopes: planetSupported Targets: nonehas_research_station - Checks if the planet has an orbital researc stationhas_research_station = yesSupported Scopes: planetSupported Targets: noneany_research_station - Checks if the planet's orbital research station meets the specified criteriaany_research_station = { }Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_mining_station - Checks if the planet's orbital mining station meets the specified criteriaany_mining_station = { }Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVarmy_type - Checks the army's typearmy_type = assault_armySupported Scopes: armySupported Targets: nonehas_army - Checks if the planet has an armyhas_army = yesSupported Scopes: planetSupported Targets: noneis_advisor_active - checks if a country has an advisorSupported Scopes: countrySupported Targets: nonecount_pops - Checks the number of pops in the scope that fulfill the specified criteriacount_pops = { limit = { } count < 6 }Supported Scopes: planet species pop_factionSupported Targets: noneis_enslaved - Checks if the pop is a slaveis_enslaved = yesSupported Scopes: popSupported Targets: noneis_being_purged - Checks if the pop is being purgedis_being_purged = yesSupported Scopes: popSupported Targets: noneincome - Checks the country's monthly energy credit incomeincome < 90Supported Scopes: countrySupported Targets: noneexpenses - Checks the country's monthly energy credit expensesexpenses > 28Supported Scopes: countrySupported Targets: noneproduced_energy - Checks the country's gross amount of produced energy creditsproduced_energy < 100Supported Scopes: countrySupported Targets: nonetrade_income - Checks the country's energy credits income from trade for the previous monthtrade_income < 30Supported Scopes: countrySupported Targets: nonetrade_expenses - Checks the country's energy credits expenses from trade for the previous monthtrade_expenses < 30Supported Scopes: countrySupported Targets: noneship_maintenance - Checks the country's total ship maintenance expenses for the previous month, in energy creditsship_maintenance < 226Supported Scopes: countrySupported Targets: nonearmy_maintenance - Checks the country's total army maintenance expenses for the previous month, in energy creditsarmy_maintenance > 226Supported Scopes: countrySupported Targets: nonecolony_maintenance - Checks the country's total colony maintenance expenses for the previous month, in energy creditscolony_maintenance > 25Supported Scopes: countrySupported Targets: nonestation_maintenance - Checks the country's total orbital station maintenance expenses for the previous month, in energy creditsstation_maintenance > 126Supported Scopes: countrySupported Targets: noneconstruction_expenses - Checks the country's construction expenses for the previous monthconstruction_expenses > 290Supported Scopes: countrySupported Targets: nonefederation_expenses - Checks the country's federation expenses for the previous monthfederation_expenses < 1000Supported Scopes: countrySupported Targets: nonehas_anomaly - Checks if the planet has an anomalyhas_anomaly = yesSupported Scopes: planetSupported Targets: nonestored_physics_points - Checks the country's amount of stored physics researchstored_physics_pointsSupported Scopes: countrySupported Targets: nonestored_society_points - Checks the country's amount of stored society researchstored_society_pointsSupported Scopes: countrySupported Targets: nonestored_engineering_points - Checks the country's amount of stored engineering researchstored_engineering_pointsSupported Scopes: countrySupported Targets: nonebalance - Checks the country's energy credit balancebalance < 39Supported Scopes: countrySupported Targets: nonerunning_balance - Checks the country's running energy credit balancerunning_balance > 61Supported Scopes: countrySupported Targets: noneis_planet - Checks if the planet is the same as target planetis_planet = Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_pop - Checks if the pop is the same as target popis_pop = Supported Scopes: popSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_ship - Checks if the ship is the same as target shipis_ship = Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_army - Checks if the army is the same as target armyis_army = Supported Scopes: armySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_country - Checks if the country is the same as target countryis_country = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_tutorial_level - Checks the country's tutorial level (0 off, 1 limited, 2 full)is_tutorial_level = 0Supported Scopes: countrySupported Targets: noneis_multiplayer - Checks if the game is running in multiplayeris_multiplayer = yesSupported Scopes: allSupported Targets: nonehas_event_chain - Checks if the country has a specific event chainhas_event_chain = old_gods_chainSupported Scopes: countrySupported Targets: noneis_species_class - Checks if the pop/country's founder species is a specific species classis_species_class = MAMSupported Scopes: country pop speciesSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_opinion_modifier - Checks if the country has a specific opinion modifier towards target country or anyonehas_opinion_modifier = { who = modifier = encroaching_colony is_reverse = no }Supported Scopes: countrySupported Targets: nonehas_established_contact - Checks if the country has established contact with target countryhas_established_contact = Supported Scopes: countrySupported Targets: nonehas_completed_event_chain_counter - Checks if the country has completed a specific counter in an event chainhas_completed_event_chain_counter = { event_chain = amoebas_2_chain counter = amoebas_slaughtered }Supported Scopes: countrySupported Targets: nonehas_planet_class - Checks if the system has planet of specific classhas_planet_class = pc_tundraSupported Scopes: galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_disabled - Checks if the ship/fleet is disabledis_disabled = yesSupported Scopes: ship fleetSupported Targets: ???has_existing_ship_design - Checks if the country has a specific ship design availableSupported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_resource - Checks if the planet has a specific amount of a specific resourcehas_resource = { type = minerals amount < 5 }has_resource = noSupported Scopes: planet country depositSupported Targets: ???has_building_construction - Checks if the planet has any, or a specific, ongoing building constructionhas_building_construction = yeshas_building_construction = building_capital_3Supported Scopes: planetSupported Targets: noneany_deposit - Checks if any deposits on the planet meet the criteriaany_deposit = { }Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVfree_building_slots - Checks the planet's number of slots available for new constructionsfree_building_slots > 2Supported Scopes: planetSupported Targets: ???has_relation_flag - Checks if the country has a relation flag towards target countryhas_relation_flag = { who = flag = }Supported Scopes: countrySupported Targets: ???reverse_has_relation_flag - Checks if the target country has a relation flag towards the countryreverse_has_relation_flag = { who = flag = }Supported Scopes: countrySupported Targets: ???has_moon - Checks if the planet has a moonhas_moon = yesSupported Scopes: planetSupported Targets: nonenum_moons - Checks the planet's number of moonsnum_moons < 4Supported Scopes: planetSupported Targets: noneis_sapient - Checks if the pop is sapientis_sapient = noSupported Scopes: pop speciesSupported Targets: noneis_preventing_anomaly - Checks if the planet is prevented from generating anomaliesis_preventing_anomaly = yesSupported Scopes: planetSupported Targets: ???has_deposit_for - Checks if the planet has a deposit for a specific ship classhas_deposit_for = shipclass_mining_stationSupported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVcolony_age - Checks the planet's (colony's) age in monthscolony_age > 12Supported Scopes: planetSupported Targets: noneis_bottleneck_system - Checks if the system is bottleneck within the range NDefines::NGameplay::SYSTEM_BOTTLENECK_RADIUSis_bottleneck_system = yesSupported Scopes: galactic_objectSupported Targets: ???is_rim_system - Checks if the system is on the galactic rimis_rim_system = yesSupported Scopes: galactic_objectSupported Targets: ???any_rim_system - Iterate through all rim systemsany_rim_system = { > }Supported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_country_type - Checks if the country is a specific typeis_country_type = fallen_empireSupported Scopes: countrySupported Targets: nonehas_modifier - Checks if the country/planet/pop/system has a certain modifierhas_modifier = Supported Scopes: planet country ship pop galactic_object pop_factionSupported Targets: noneany_ship_in_system - Checks if any ships in the system meet the specified criteriaany_ship_in_system = { }Supported Scopes: galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVmission_progress - Checks if the observation post has achieved specific progress in a missionmission_progress > 0.7Supported Scopes: fleetSupported Targets: nonenum_ethics - Checks the country/pop's number of ethicsnum_ethics = 3Supported Scopes: country popSupported Targets: nonenum_traits - Checks the country/pop/leader/species' number of traitsnum_traits < 3Supported Scopes: country pop leader speciesSupported Targets: nonehas_truce - Checks if the country has a truce with target countryhas_truce = Supported Scopes: countrySupported Targets: noneis_ringworld - Checks if the planet is a ringworldis_ringworld = yesSupported Scopes: planetSupported Targets: nonemember_of_faction - Checks if the pop belongs to any, or a specific, factionmember_of_faction = noSupported Scopes: popSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVsupport - Checks the faction's support levelsupport > 0.5Supported Scopes: pop_factionSupported Targets: noneis_ideal_planet_class - Checks if the planet is of the ideal class for target countryis_ideal_planet_class = { who = status = yes }Supported Scopes: planetSupported Targets: noneis_pop_faction_type - Checks the faction's typeis_pop_faction_type = malcontent_slavesSupported Scopes: pop_factionSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVintel_level - Checks the country's intel level of target systemintel_level = { level > low system = }Supported Scopes: countrySupported Targets: noneis_researching_area - Checks the scientist's field of researchis_researching_area = societySupported Scopes: leaderSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_owned_leader - Checks if any of the country's leaders meet the specified criteriaany_owned_leader = { }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_owned_pop - Iterate through all owned popsany_owned_pop = { > }Supported Scopes: planet country pop_factionSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_faction - Checks if the country has any instance of target faction typehas_faction = planet_separatistsSupported Scopes: countrySupported Targets: nonecount_owned_pops - Count the number of owned pops in the country that fulfill the specified criteriacount_owned_pops = { limit = { } count > 12 }Supported Scopes: planet country pop_factionSupported Targets: nonecan_declare_war - Checks if the country can declare war against target countrycan_declare_war = {target = attacker_war_goal = Supported Scopes: countrySupported Targets: ???is_hostile - Checks if the country is hostile towards target countryis_hostile = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_communications - Checks if the country has established communications with target countryhas_communications = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_country_resource - Checks the country's amount of a specific stored resourcehas_country_resource = { type = minerals amount > 99 }Supported Scopes: countrySupported Targets: ???has_leader_flag - Checks if the leader has a specific flaghas_leader_flag = Supported Scopes: leaderSupported Targets: nonenum_killed_ships - Checks how many of target country's ships that the country has destroyednum_killed_ships = { target = value > 5 }Supported Scopes: countrySupported Targets: ???num_taken_planets - Checks how many planets the country has taken from target countrynum_taken_planets = { target = value > 1 }Supported Scopes: countrySupported Targets: ???count_ships - Checks the number of ships in the galaxy that meet the specified criteriacount_ships = { limit = { } count < 20 }Supported Scopes: allSupported Targets: ???count_owned_ships - Checks the country's number of ships that meet the specified criteriacount_owned_ships = { limit = { } count < 20 }Supported Scopes: countrySupported Targets: ???leader_of_faction - Checks if the leader is the leader of a factionleader_of_faction = yesSupported Scopes: leaderSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_scope_valid - Checks if the current scope is validis_scope_valid = yesSupported Scopes: allSupported Targets: noneopposing_ethics_divergence - Checks how far removed the country/pop's ethos is from target'sopposing_ethics_divergence = { steps > 1 who = }Supported Scopes: country popSupported Targets: ???is_war_leader - Checks if the country leads in a waris_war_leader = yesSupported Scopes: country pop_factionSupported Targets: noneis_in_federation_with - Checks if the country is in a federation with target countryis_in_federation_with = Supported Scopes: countrySupported Targets: nonecan_change_policy - Checks if the country can change a specific policycan_change_policy = slavery_not_allowedSupported Scopes: countrySupported Targets: ???count_pop_factions - Checks the country's number of factions that meet the criteriacount_pop_factions = { limit = { } count < 2 }Supported Scopes: countrySupported Targets: noneis_ironman - Check if current game is running in ironman modeis_ironman = yesSupported Scopes: allSupported Targets: nonehas_monthly_income - Checks the country's monthly income of a specific resourcehas_monthly_income = { resource = engineering_research value < 20 }Supported Scopes: countrySupported Targets: ???else - Evaluates the triggers if the display_triggers of preceding 'if' or 'else_if' is not metif = { limit = { } }else = { }Supported Scopes: allSupported Targets: nonehas_policy_flag - Checks if the country has a specific policyhas_policy_flag = slavery_not_allowedSupported Scopes: countrySupported Targets: nonecount_deposits - Checks the number of deposits on the tile/planet that meet the specified criteriacount_deposits = { limit = { count < 2 }Supported Scopes: planetSupported Targets: ???has_tech_option - Checks if the country has a tech research option currently availablehas_tech_option = tech_mining_network_2Supported Scopes: countrySupported Targets: nonecount_tech_options - Checks the country's number available tech research options in a specific fieldcount_tech_options = { area = physics count > 0 }Supported Scopes: countrySupported Targets: ???has_point_of_interest - Checks if the scoped country has a specific point of interest in its situation loghas_point_of_interest = { poi = }Supported Scopes: planet country ship fleet galactic_object ambient_objectSupported Targets: ???is_being_repaired - Checks if the ship/fleet is being repairedis_being_repaired = yesSupported Scopes: ship fleetSupported Targets: noneany_ambient_object - Checks if any ambient objects in the game meet the specified criteriaany_ambient_object = { }Supported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVany_system_ambient_object - Checks if any ambient objects in the system meet the specified criteriaany_system_ambient_object = { }Supported Scopes: galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_ambient_object_flag - Checks if the ambient object has a specific flaghas_ambient_object_flag = Supported Scopes: ambient_objectSupported Targets: noneany_bordering_country - Iterate through all bordering countries of a systemany_bordering_country = { > }Supported Scopes: galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVgalaxy_percentage - Checks if the country has a specific percentage (0.00-1.00) of the galaxy within its bordersgalaxy_percentage > 0.40Supported Scopes: countrySupported Targets: ???custom_tooltip_fail - Shows custom text only when the associated trigger failscustom_tooltip_fail = {text = Supported Scopes: allSupported Targets: nonecount_armies - Checks the number of armies on/in the planet/country that meet the specified criteriacount_armies = { limit = { } count < 12 }Supported Scopes: planet countrySupported Targets: noneis_in_combat - Checks if the ship/fleet is engaged in combatis_in_combat = yesSupported Scopes: ship fleetSupported Targets: noneany_member - Checks if any members of the alliance meet the specified criteriaany_member = { }Supported Scopes: allianceSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_guaranteeing - Checks if the country is guaranteeing the independence of target countryis_guaranteeing = Supported Scopes: countrySupported Targets: noneis_war_participant - Checks if target country is participating in the war on the specified sideis_war_participant = { who = side = }Supported Scopes: warSupported Targets: noneis_homeworld - Checks if the planet is its owner's homeworldis_homeworld = yesSupported Scopes: planetSupported Targets: noneis_friendly_to - Checks if the country has a friendly attitude towards target countryis_friendly_to = Supported Scopes: countrySupported Targets: noneis_hostile_to - Checks if the country has a hostile attitude towards target countryis_hostile_to = Supported Scopes: countrySupported Targets: noneis_protective_to - Checks if the country has a protective attitude towards target countryis_protective_to = Supported Scopes: countrySupported Targets: noneis_threatened_to - Checks if the country has a threatened attitude towards target countryis_threatened_to = Supported Scopes: countrySupported Targets: noneyears_passed - Checks the number of in-game years passed since the 2200 startyears_passed < 150Supported Scopes: allSupported Targets: nonemid_game_years_passed - Checks the number of in-game years passed since the mid-game start datemid_game_years_passed >= 50Supported Scopes: allSupported Targets: noneend_game_years_passed - Checks the number of in-game years passed since the end-game start dateend_game_years_passed >= 50Supported Scopes: allSupported Targets: noneis_dismissive_to - Checks if the country has a dismissive attitude towards target countryis_dismissive_to = Supported Scopes: countrySupported Targets: noneis_patronizing_to - Checks if the country has a patronizing attitude towards target countryis_patronizing_to = Supported Scopes: countrySupported Targets: noneis_angry_to - Checks if the country has an angry attitude towards target countryis_angry_to = Supported Scopes: countrySupported Targets: noneis_neighbor_of - Checks if the country/planet is neighbors with target countryis_neighbor_of = Supported Scopes: planet country ship fleet galactic_objectSupported Targets: noneis_rival - Checks if the country has a rival attitude towards target countryis_rival = Supported Scopes: countrySupported Targets: noneis_unfriendly_to - Checks if the country has an unfriendly attitude towards target countryis_unfriendly_to = Supported Scopes: countrySupported Targets: noneis_loyal_to - Checks if the country has a loyal attitude towards target countryis_loyal_to = Supported Scopes: countrySupported Targets: noneis_disloyal_to - Checks if the country has a disloyal attitude towards target countryis_disloyal_to = Supported Scopes: countrySupported Targets: noneis_cordial_to - Checks if the country has a cordial attitude towards target countryis_cordial_to = Supported Scopes: countrySupported Targets: noneis_domineering_to - Checks if the country has a domineering attitude towards target countryis_domineering_to = Supported Scopes: countrySupported Targets: nonefleet_power - Checks the scope's total fleet powerfleet_power > 2500Supported Scopes: country fleetSupported Targets: nonehas_election_type - Checks if the country has a specific election typehas_election_type = oligarchicSupported Scopes: countrySupported Targets: nonehas_ai_personality - Checks if an AI empire has a certain personality typehas_ai_personality = fanatic_befriendersSupported Scopes: countrySupported Targets: nonehas_ai_personality_behaviour - Checks if a country has a certain AI personality behaviorhas_ai_personality_behaviour = slaverSupported Scopes: countrySupported Targets: nonehas_valid_ai_personality - Checks if the country has a valid AI personalityhas_valid_ai_personality = yesSupported Scopes: countrySupported Targets: nonehas_migration_access - Checks if the country has migration access to target countryhas_migration_access = Supported Scopes: countrySupported Targets: nonelogged_in_to_pdx_account - Checks if the local human is logged in to a Pdx account. This WILL cause an out of sync if used for anything that can change the game stateSupported Scopes: allSupported Targets: ???would_join_war - Checks if the country would join the side of target country in a hypothetical warwould_join_war = { attacker = defender = side = }Supported Scopes: countrySupported Targets: nonecan_be_subject - Checks if the country can be a subject of a specific type under target countrycan_be_subject = { subject_type = tributary overlord = }Supported Scopes: countrySupported Targets: ???count_war_participants - Checks the number of participants in the war on a specific side that meet the specified criteriacount_war_participants = { limit = { } side = target count < 4Supported Scopes: warSupported Targets: nonecount_potential_war_participants - Checks the amount of potential war participants in a specific war that meet the specified criteriacount_potential_war_participants = { attacker = defender = side = limit = { } count > 2Supported Scopes: allSupported Targets: nonehas_skill - Checks if the leader has a specific experience levelhas_skill > 2Supported Scopes: leaderSupported Targets: nonehas_experience - Checks if the leader has a specific amount of experiencehas_experience < 900Supported Scopes: leaderSupported Targets: noneany_neighbor_system - Checks if any of the system's neighboring systems meet the specified criteriaany_neighbor_system = { ignore_hyperlanes = }Supported Scopes: galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_under_colonization - Checks if the planet is being colonizedis_under_colonization = yesSupported Scopes: planetSupported Targets: nonehas_colony_progress - Checks the planet's progress towards completing colonizationhas_colony_progress > 20Supported Scopes: planetSupported Targets: nonedistance_to_empire - Checks the ship/fleet/planet/system's galaxy map distance to target empiredistance = { who = distance = x }Supported Scopes: planet ship fleet galactic_objectSupported Targets: noneis_unemployed - Checks if the pop is unemployedis_unemployed = yesSupported Scopes: popSupported Targets: noneyears_of_peace - Checks the number of in-game years country has been at peace, with optional parameter to delay from start of gameyears_of_peace = { value > 10 delay = 0 }Supported Scopes: countrySupported Targets: noneis_within_borders_of - Checks if the planet/system is within the borders of the target countryis_within_borders_of = Supported Scopes: planet galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVnum_marauder_empires_to_spawn - Checks the number of marauder empires specified by the galaxy setupnum_marauder_empires_to_spawn > 1Supported Scopes: allSupported Targets: nonehas_species_flag - Checks if the species has a specific flaghas_species_flag = Supported Scopes: speciesSupported Targets: nonehas_auto_move_target - Checks if the fleet/ship has an active auto-move target sethas_auto_move_target = yesSupported Scopes: ship fleetSupported Targets: nonecount_system_ships - Checks the system's number of ships that meet the specified criteriacount_system_ships = { limit = { } count < 20 }Supported Scopes: galactic_objectSupported Targets: ???count_starbase_modules - Checks the number of starbase modules that are of the specified typecount_starbase_modules = { type = anchorage count < 12 }Supported Scopes: starbaseSupported Targets: noneis_belligerent_to - Checks if the country has a belligerent attitude towards target countryis_belligerent_to = Supported Scopes: countrySupported Targets: noneis_imperious_to - Checks if the country has a imperious attitude towards target countryis_imperious_to = Supported Scopes: countrySupported Targets: noneis_arrogant_to - Checks if the country has a arrogant attitude towards target countryis_arrogant_to = Supported Scopes: countrySupported Targets: nonehas_association_status - Check if the country has federation association status with target countryhas_association_status = Supported Scopes: countrySupported Targets: noneis_original_owner - Checks if the target country is the planet's original owneris_original_owner = Supported Scopes: planetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVcan_work_job - Checks if the pop can work a jobcan_work_job = yesSupported Scopes: popSupported Targets: nonesubject_can_diplomacy - Checks if the country is allowed by its overlord to take diplomatic action towards target countrysubject_can_diplomacy = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_surveyed_class - Checks if the country has surveyed any planet of a specific classhas_surveyed_class = pc_tundraSupported Scopes: countrySupported Targets: nonefleet_size - Checks the fleet's fleet sizefleet_size < 125Supported Scopes: fleetSupported Targets: nonehost_has_dlc - Checks if the host has a specific DLC enabledSupported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVlocal_has_dlc - Checks if the local player has a specific DLC enabledSupported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVnum_rare_techs - Checks the country's number of researched rare technologiesnum_rare_techs < 4Supported Scopes: countrySupported Targets: nonehas_mandate - Checks if the leader has any, or a specific, mandatehas_mandate = nohas_mandate = mandate_shipwrightSupported Scopes: leaderSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVnor - An inverted OR triggerSupported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVnand - An inverted AND triggerSupported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVnum_energy - Checks the planet's total amount of energynum_energy > 19Supported Scopes: planetSupported Targets: nonenum_armies - Checks the country's number of armiesnum_armies < 20Supported Scopes: countrySupported Targets: ???has_war_goal - Checks if a war goal is set.has_war_goal = yesSupported Scopes: allSupported Targets: ???max_naval_capacity - Checks the country's max naval capacity in absolute numbersmax_naval_capacity > 120Supported Scopes: countrySupported Targets: noneused_naval_capacity_integer - Checks the country's used naval capacity in absolute numbersused_naval_capacity_integer < 89Supported Scopes: countrySupported Targets: noneused_naval_capacity_percent - Checks the country's used naval capacity in relative terms (0.00-1.00)used_naval_capacity_percent < 0.75Supported Scopes: countrySupported Targets: nonewar_begun_num_fleets_gone_mia - Checks amount of target country's fleets that went MIA when the war beganwar_begun_num_fleets_gone_mia = { who = value < 10 }Supported Scopes: warSupported Targets: nonecustom_tooltip_success - Shows custom text only when the associated trigger passescustom_tooltip_success = {text = Supported Scopes: allSupported Targets: nonehas_active_event - Checks if country has active events:has_active_event = {event.1event.2event.nSupported Scopes: countrySupported Targets: nonesuccess_text - For 'desc={trigger={' use. Shows custom text when the associated trigger passes.success_text = {text = Supported Scopes: allSupported Targets: nonefail_text - For 'desc={trigger={' use. Shows custom text when the associated trigger fails.fail_text = {text = Supported Scopes: allSupported Targets: noneis_subject_type - Checks if the country is a specific type of subjectis_subject_type = vassalSupported Scopes: countrySupported Targets: nonehas_defensive_pact - Checks if the country has a defensive pact with target countryhas_defensive_pact = Supported Scopes: countrySupported Targets: nonecalc_true_if - Returns true if the specified number of sub-triggers return truecalc_true_if = { amount = 2 }Supported Scopes: allSupported Targets: noneis_researching_technology - Checks if the country is currently researching a specific technologyis_researching_technology = tech_gene_seed_purificationSupported Scopes: countrySupported Targets: noneis_subject - Checks if the country is a subject of any other countryis_subject = noSupported Scopes: countrySupported Targets: noneany_subject - Checks if any of the country's subject states meet the specified criteriaany_subject = { }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVlog - Prints a message to game.log for debugging purposeslog = Supported Scopes: planet country ship pop fleetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_enigmatic_to - Checks if the country has a enigmatic attitude towards target countryis_enigmatic_to = Supported Scopes: countrySupported Targets: noneis_berserker_to - Checks if the country has a berserker attitude towards target countryis_berserker_to = Supported Scopes: countrySupported Targets: nonehas_same_ethos - Checks if a country has the same ethos (complete set of ethics) as a country or pophas_same_ethos = Supported Scopes: country popSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_majority_species - checks if a planet/country has a particular species as its dominant speciesSupported Scopes: planet popSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_closed_borders - Check if the country has closed its borders to target countryhas_closed_borders = Supported Scopes: countrySupported Targets: noneis_difficulty - Checks the game's difficulty level (0 normal, 1 hard, 2 insane)is_difficulty = 2Supported Scopes: allSupported Targets: noneis_exact_same_species - Checks if the scoped object is originally of the same species, or currently of the exact same species instance, as another objectis_exact_same_species = Supported Scopes: country ship pop leader army speciesSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVcan_control_access_for - Checks if the country is allowed to control target country's border access to the countrycan_control_access_for = Supported Scopes: countrySupported Targets: noneis_overlord_to - Checks if the country has an overlord attitude towards target countryis_overlord_to = Supported Scopes: countrySupported Targets: nonedistance_to_core_percent - Checks the ship/fleet/planet/leader/pop/system's distance to the galactic core in percent, where center = 0 and galactic rim = 100distance_to_core_percent < 60Supported Scopes: allSupported Targets: ???has_non_aggression_pact - Check if the country has a non-aggression pact with target countryhas_non_aggression_pact = Supported Scopes: countrySupported Targets: nonehappiness_planet - Checks the average happiness on the planethappiness_planet < 60Supported Scopes: planetSupported Targets: nonecount_fleet_ships - Checks the number of ships in the fleet that meet the specified criteriacount_fleet_ships = { limit = { } count > 15 }Supported Scopes: fleetSupported Targets: ???pre_ruler_leader_class - Checks the rulers previous leader classpre_ruler_leader_class = scientistSupported Scopes: leaderSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_hp_percentage - Checks a fleet or ship's hit points percentagehas_hp_percentage > 0.5Supported Scopes: ship fleetSupported Targets: nonecan_join_factions - Checks if scoped pop can join a factionSupported Scopes: popSupported Targets: ???is_custodial_to - Checks if the country has a custodial attitude towards target countryis_custodial_to = Supported Scopes: countrySupported Targets: nonehas_valid_civic - Checks if the current country has a certain civic and if its validatedhas_valid_civic = my_test_civic_1Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_non_swapped_tradition - Checks if a country has the given tradition and it is not swapped.has_non_swapped_tradition = tr_my_santa_claus_traditionSupported Scopes: countrySupported Targets: nonehas_swapped_tradition - Checks if a country has the given swapped tradition.has_swapped_tradition = tr_my_santa_claus_traditionSupported Scopes: countrySupported Targets: noneis_event_leader - Checks if a leader is a special event leader (defined in create_leader)is_event_leader = noSupported Scopes: leaderSupported Targets: ???is_crises_allowed - Check if current game allows crisesis_crises_allowed = yesSupported Scopes: allSupported Targets: noneis_custom_capital_location - Checks if the spatial object is its owner's custom capital locationis_custom_capital_location = yesSupported Scopes: planet ship fleet galactic_objectSupported Targets: ???resource_stockpile_compare - Checks specific resource stockpile for the country scope:resource_stockpile_compare = {resource = value ><= Supported Scopes: countrySupported Targets: ???resource_income_compare - Checks specific resource income value for the country scope:resource_income_compare = {resource = value ><= Supported Scopes: countrySupported Targets: ???pop_percentage - Checks the percentage of pops in the scope that fulfill the specified criteriapop_percentage = { percentage > 0.74 limit = { } }Supported Scopes: planet country pop_factionSupported Targets: nonenum_species - Checks if the number of species on a planet, in an empire or in a pop faction is according to the argument. Does not count genetically modified species as unique.num_species > 8Supported Scopes: planet country pop_factionSupported Targets: nonenum_unique_species - Checks if the number of species on a planet, in an empire or in a pop faction is according to the argument. Counts genetically modified species as unique.num_unique_species < 12Supported Scopes: planet country pop_factionSupported Targets: nonehas_diplo_migration_treaty - Checks if two countries have a migration treaty.Supported Scopes: countrySupported Targets: nonehas_presence - Checks if a system contains any fleets, stations, mega structures or colonized planets.has_presence = yesSupported Scopes: galactic_objectSupported Targets: noneis_megastructure_type - is_megastructure_type = . Compares the type of scope's mega structure to a type from the databaseSupported Scopes: megastructureSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_upgrading - is_upgrading = . Checks if the scope's fleet or mega structure is currently upgradingSupported Scopes: megastructure fleetSupported Targets: ???relative_power - Compares relative power between two countries. relative_power = { who = category = value ><= Supported Scopes: countrySupported Targets: ???has_tradition - Checks if a country has the given tradition.has_tradition = tr_my_santa_claus_traditionSupported Scopes: countrySupported Targets: noneany_relation - Iterate through all relationsany_relation = { > }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_megastructure_flag - Checks if the mega structure has a specific flaghas_megastructure_flag = Supported Scopes: megastructureSupported Targets: nonehas_citizenship_type - Checks if a species/pop/leader has a particular citizenship type in their countryhas_citizenship_type = { country = type = }Supported Scopes: pop leader speciesSupported Targets: nonehas_population_control - Checks if the pop is prevented from reproducinghas_population_control = yesSupported Scopes: popSupported Targets: ???has_migration_control - Checks if the pop is prevented from migratinghas_migration_control = yesSupported Scopes: popSupported Targets: ???species_planet_slave_percentage - Checks if a pop's planet has a specific percentage (0.00-1.00) of the same species enslavedspecies_planet_slave_percentage > 0.40Supported Scopes: popSupported Targets: ???has_ascension_perk - Checks if a country has the given ascension perk.has_ascension_perk = ap_my_ascension_perkSupported Scopes: countrySupported Targets: nonenum_ascension_perks - Compares the number of AP points the country has spent with the given valuenum_ascension_perks > 7Supported Scopes: countrySupported Targets: nonepop_produces_resource - Checks if a pop is currently producing a particular resourcepop_produces_resource = { type = minerals amount < 5 }Supported Scopes: popSupported Targets: ???has_military_service_type - Checks if a species/pop/leader has a particular military service type in their countryhas_military_service_type = { country = type = }Supported Scopes: pop leader speciesSupported Targets: nonehas_purge_type - Checks if a species/pop/leader has a particular purge type in their countryhas_purge_type = { country = type = }Supported Scopes: pop leader speciesSupported Targets: nonehas_slavery_type - Checks if a species/pop/leader has a particular slavery type in their countryhas_slavery_type = { country = type = }Supported Scopes: pop leader speciesSupported Targets: nonehas_living_standard - Checks if a species/pop/leader has a particular living standard in their countryhas_living_standard = { country = type = }Supported Scopes: pop leader speciesSupported Targets: nonecount_planets - Checks the planets in system that meet the criteriacount_planets = { limit = { } count < 2 }Supported Scopes: galactic_objectSupported Targets: nonenum_ascension_perk_slots - Compares the number of unlocked ascension perk slots of the scope with the given valuenum_ascension_perks > 7Supported Scopes: countrySupported Targets: noneis_fleet_idle - Checks if the ship/fleet is idfleis_fleet_idle = yesSupported Scopes: ship fleetSupported Targets: nonedebug_break - Trigger an assertion to stop the debugger when encountering this trigger; returns the value it is assigneddebug_break = yesSupported Scopes: allSupported Targets: ???has_civic - Checks if the current country has the specified civichas_civic = my_test_civic_1Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_authority - Checks if the current country has the specified government authorityhas_government_authority = democraticSupported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_invalid_civic - Checks if the current country has a certain civic and if its invalidatedhas_invalid_civic = my_test_civic_1Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_colonization_control - Checks if the pop is prevented from migratinghas_colonization_control = yesSupported Scopes: pop speciesSupported Targets: nonehas_trade_route - Checks if a system has trade route going through.has_trade_route = Supported Scopes: galactic_objectSupported Targets: nonetrade_route_value - Checks the trade value going through the system.trade_route_value >=< 40Supported Scopes: galactic_objectSupported Targets: nonetrade_intercepted_percentage - Checks the intercepted trade value ratio going through the system.trade_intercepted_percentage >=< 40Supported Scopes: galactic_objectSupported Targets: nonetrade_intercepted_value - Checks the intercepted trade value going through the system.trade_intercepted_value >=< 40Supported Scopes: galactic_objectSupported Targets: nonetrade_protected_value - Checks the protected trade value going through the system.trade_protected_value >=< 40Supported Scopes: galactic_objectSupported Targets: nonetrade_protected_percentage - Checks the protected trade value ratio going through the system.trade_protected_percentage >=< 40Supported Scopes: galactic_objectSupported Targets: nonenum_trade_routes - Counts the number trade routes in the empire.num_trade_routes >=< 40Supported Scopes: countrySupported Targets: nonecount_species - Counts the number of species in the scope that fulfill the specified criteria, not counting sub-species as unique.count_species = { count > 4 limit = { } }Supported Scopes: planet countrySupported Targets: nonecount_exact_species - Counts the number of species in the scope that fulfill the specified criteria, counting sub-species as unique.count_exact_species = { count > 4 limit = { } }Supported Scopes: planet countrySupported Targets: noneis_constructing - Checks if the scoped construction ship is building the specified thingis_constructing = megastructure | | starbase | mining_station | research_station | observation_post | Supported Scopes: ship fleetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_ruler_trait - Checks if a leader has a certain ruler trait, even if they are not currently rulerhas_ruler_trait = leader_trait_carefreeSupported Scopes: leaderSupported Targets: nonenum_trait_points - Checks the country/pop/leader/species' number of traits points spentnum_traits < 3Supported Scopes: country pop leader speciesSupported Targets: nonehas_component - Checks if a ship has a certain componenthas_component = Supported Scopes: shipSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_notification_modifier - Checks if a country has a certain notification modifierhas_notification_modifier = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVpop_maintenance_cost - Checks the maintenace costs of a poppop_maintenance_cost > 0Supported Scopes: popSupported Targets: noneconditional_tooltip - The enclosed trigger will be completely ignored if the condition in "trigger" isn't true. Useful to hide part of tooltips that are not relevant.Supported Scopes: allSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_natural_wormhole - Returns true if the scopes system contains at least one natural wormholehas_natural_wormhole = yesSupported Scopes: galactic_objectSupported Targets: nonehas_claim - Checks if the country has claims on the given country or system.has_claim = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVnum_active_gateways - Checks the number of active gateways in the galaxynum_active_gateways < 3Supported Scopes: allSupported Targets: noneattacker_war_exhaustion - Checks the war exhaustion of the war's attackersattacker_exhaustion_score > 60Supported Scopes: warSupported Targets: ???defender_war_exhaustion - Checks the war exhaustion of the war's defendersdefender_war_exhaustion < 20Supported Scopes: warSupported Targets: ???off_war_exhaustion_sum - Checks the country's total war exhaustion for all offensive warsoff_war_exhaustion_sum < 10Supported Scopes: countrySupported Targets: ???def_war_exhaustion_sum - Checks the country's total war exhaustion for all defemsove warsdef_war_exhaustion_sum > 75Supported Scopes: countrySupported Targets: ???has_starbase_module - Checks if the starbase has a specific modulehas_starbase_module = Supported Scopes: starbaseSupported Targets: nonehas_starbase_building - Checks if the starbase has a specific buildinghas_starbase_building = Supported Scopes: starbaseSupported Targets: nonehas_starbase_size - Compares the starbase ship sizehas_starbase_size >= Supported Scopes: starbaseSupported Targets: nonehas_seen_any_bypass - Checks the scoped country has ever encountered a bypass of a given type beforehas_seen_any_bypass = bypass_typeSupported Scopes: countrySupported Targets: nonehas_seen_specific_bypass - Checks the scoped country has encountered a specific bypass beforehas_seen_specific_bypass = ROOTSupported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVowns_any_bypass - Checks if the scoped country controls any system containing a bypass of a specific typeowns_any_bypass = bypass_typeSupported Scopes: countrySupported Targets: ???has_casus_belli - Checks if the country has a valid casus belli (any casus belli or a specific one) on the given country.has_casus_belli = {target = type = #optionalSupported Scopes: countrySupported Targets: THISnum_starbases - Counts the number of starbases owned by the scoped countrynum_starbases >= 1Supported Scopes: countrySupported Targets: ???num_owned_active_gateways - Checks the number of active gateways owned by the scoped countrynum_owned_active_gateways < 3Supported Scopes: countrySupported Targets: noneusing_war_goal - Checks if a war has a specific war goalusing_war_goal = { type = owner = }Supported Scopes: warSupported Targets: nonehas_status - Checks the current status of the scoped ship or fleet.has_status = #charging/firingSupported Scopes: ship fleetSupported Targets: nonevalid_planet_killer_target - Checks if the scoped fleet can target the given planet with its planet killer weaponvalid_planet_killer_target = Supported Scopes: fleetSupported Targets: nonehas_orbital_bombardment - Checks whether a planet is under bombardmenthas_orbital_bombardment = yesSupported Scopes: planetSupported Targets: nonehas_orbital_bombardment_stance - Checks to what degree the planet is being bombardedhas_orbital_bombardment_stance = selectiveSupported Scopes: planetSupported Targets: nonecount_starbase_sizes - Checks if the scoped country has a specified quantity of a starbase sizecount_starbase_sizes = {starbase_size = count >= 2}Supported Scopes: countrySupported Targets: nonecommand_limit - Checks the country's command limitcommand_limit > 120Supported Scopes: countrySupported Targets: nonehas_hyperlane_to - Checks if the system has a hyperlane connection to target systemhas_hyperlane_to = Supported Scopes: galactic_objectSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_bridge - Checks if a system has the bridge flag or not.is_bridge = Supported Scopes: galactic_objectSupported Targets: noneinverted_switch - Switch case for a trigger treated as NOT.inverted_switch = {trigger = pop_has_ethicethic_xenophile = { }ethic_xenophobe = { }default = { }Supported Scopes: allSupported Targets: ???is_scope_set - Checks if the scope is set for appropriate targetis_scope_set = Supported Scopes: planet country ship pop fleetSupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVis_primary_star - Checks if the planet is the system's primary staris_primary_star = yesSupported Scopes: planetSupported Targets: nonelast_changed_species_rights_type - Check if the last species rights type changed for the pop or leader is of type typelast_changed_species_rights_type = Supported Scopes: pop leaderSupported Targets: nonecontrolled_systems - Checks the country's number of controlled systemscontrolled_systems < 3Supported Scopes: countrySupported Targets: noneexploitable_planets - Checks the country has planets that are unexploitedexploitable_planets < 3Supported Scopes: countrySupported Targets: nonecontrolled_colonizable - Checks the country controls planets that are colonizablecontrolled_colonizable > 0Supported Scopes: countrySupported Targets: noneai_colonize_plans - Checks how many plans the AI have for colonization (lighter than controlled_colonizable for AI)ai_colonize_plans > 0Supported Scopes: countrySupported Targets: nonescientist_count - Checks the countrys' number of scientistsscientist_count < 4Supported Scopes: countrySupported Targets: nonehas_ai_expansion_plan - Checks if the country AI has any plans to expandhas_ai_expansion_plan = noSupported Scopes: countrySupported Targets: noneis_on_market - Checks if resource is enabled on the Galactic Marketis_on_market = Supported Scopes: allSupported Targets: nonehighest_threat - Checks the countrys' highest threat against ithighest_threat > 100Supported Scopes: countrySupported Targets: nonehas_rival - Checks if the target country is the country's rivalhas_rival = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_overlord - Checks if the target country is the country's overlordhas_overlordo = Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVhas_sector_type - Checks if the sector has a specific typehas_sector_type = Supported Scopes: sector (unknown)Supported Targets: nonenum_sectors - Counts the number of sectors owned by the scoped countrynum_sectors >= 1Supported Scopes: countrySupported Targets: noneany_owned_army - Iterate through each army that is owned by the countryany_owned_army = { > }Supported Scopes: countrySupported Targets: THIS ROOT PREV FROM OWNER CONTROLLER CAPITAL SOLAR_SYSTEM LEADER RANDOM FROMFROM PREVPREV PREVPREVPREV PREVPREVPREVPREVcount_owned_army - Iterate through each army that is owned by the countrycount_owned_army = {