"""
PDXLang Trigger 规则

此文件由 tools/generate_python_rules.py 自动生成
"""

from typing import Dict, List, Any

# 所有 triggers
ALL_TRIGGERS = {
    'acquired_specimen_count': {
        "description": "Returns the country's acquired specimens count",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'additional_crisis_strength': {
        "description": 'Checks the degree to which multiply_crisis_strength effect is increasing the strength of endgame crises',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'agreement_preset': {
        "description": 'Checks if the agreement has the specified preset',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'ai_colonize_plans': {
        "description": 'Checks how many plans the AI have for colonization (lighter than controlled_colonizable for AI)',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'ai_terraform_plans': {
        "description": 'Checks how many plans the AI have for terraforming',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'ai_wants_to_negotiate_agreement': {
        "description": 'Checks if the country AI wants to renegotiate any existing agreements',
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'allowed_crisis_type': {
        "description": 'Checks which crisis is allowed to spawn in the current game',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'always': {
        "description": 'Sets trigger to be either always true or false',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'and': {
        "description": 'all inside trigger must be true',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'any_active_first_contact': {
        "description": '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',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_agreement': {
        "description": 'Iterate through each agreement - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'comparison',
    },
    'any_ambient_object': {
        "description": 'Iterate through every ambient object in the game - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_archaeological_site': {
        "description": 'Iterate through every archaeological sites - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_associate': {
        "description": 'Iterate through each associate member of the federation - checks whether the enclosed triggers return true for any of them',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'any_astral_rift': {
        "description": 'Iterate through every astral rift - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_attacker': {
        "description": 'Iterate through all attackers in the current war - checks whether the enclosed triggers return true for any of them',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'any_available_debris': {
        "description": 'Iterate through all debris belong to available special projects of the scoped country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_bypass': {
        "description": 'Iterate through every bypass - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_bypass_in_system': {
        "description": 'Iterate through every bypass in the scoped galactic object. - checks whether the enclosed triggers return true for any of them',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_combatant_fleet': {
        "description": 'Iterate through each fleet this fleet is in combat with - checks whether the enclosed triggers return true for any of them',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'any_controlled_fleet': {
        "description": 'Iterate through each fleet controlled by the country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_controlled_planet': {
        "description": 'Iterate through each inhabited planet controlled by the current empire - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_controlled_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country', 'fleet'],
        "usage_format": 'comparison',
    },
    'any_cosmic_storm': {
        "description": 'Iterate through all cosmic storms in the galaxy - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_cosmic_storm_end_position': {
        "description": 'Iterate through all systems valid to be a storms end position - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_cosmic_storm_start_position': {
        "description": 'Iterate through all systems valid to be a storms start position - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_council_member': {
        "description": 'Iterate through each member of the galactic council - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_country': {
        "description": 'Iterate through all countries - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_country_neighbor_to_system': {
        "description": 'Iterate through all countries that own system 1 jump away from current system (bypasses included) - checks whether the enclosed triggers return true for any of them',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_defender': {
        "description": 'Iterate through all defenders in the current war - checks whether the enclosed triggers return true for any of them',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'any_deposit': {
        "description": 'Iterate through each deposit on the planet - checks whether the enclosed triggers return true for any of them',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'any_enslaved_species': {
        "description": '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',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'any_envoy': {
        "description": 'Iterate through each envoy available to the country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_espionage_asset': {
        "description": 'Iterate through each espionage asset - checks whether the enclosed triggers return true for any of them',
        "scopes": ['no_scope', 'spy_network', 'espionage_operation'],
        "usage_format": 'comparison',
    },
    'any_espionage_operation': {
        "description": 'Iterate through each espionage operation - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country', 'no_scope', 'spy_network'],
        "usage_format": 'comparison',
    },
    'any_exhibit': {
        "description": 'Iterate through every exhibit - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_existing_species_traits': {
        "description": 'Iterate through all existing species traits in the game - checks whether the enclosed triggers return true for any of them',
        "scopes": ['no_scope'],
        "usage_format": 'comparison',
    },
    'any_federation': {
        "description": 'Iterate through each federation - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_federation_ally': {
        "description": 'Iterate through all countries in a federation with the scoped country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_first_contact': {
        "description": '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',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_fleet_in_orbit': {
        "description": 'Iterate through each fleet orbiting the current planet/starbase/megastructure - checks whether the enclosed triggers return true for any of them',
        "scopes": ['megastructure', 'planet', 'starbase'],
        "usage_format": 'comparison',
    },
    'any_fleet_in_system': {
        "description": 'Iterate through each fleet in the current system - checks whether the enclosed triggers return true for any of them',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_galaxy_fleet': {
        "description": 'Iterate through each fleet in the entire game - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_galaxy_planet': {
        "description": 'Iterate through each planet ANYWHERE in the game; warning: resource intensive! - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_galaxy_sector': {
        "description": 'Iterate through all sectors in the game - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_galaxy_species': {
        "description": 'Check if any species in the galaxy meet the specified criteria - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_galcom_member': {
        "description": 'Iterate through each member of the galactic community - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_ground_combat_attacker': {
        "description": 'Iterate through each army currently attacking the planet in ground combat - checks whether the enclosed triggers return true for any of them',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'any_ground_combat_defender': {
        "description": 'Iterate through each army currently defending the planet in ground combat - checks whether the enclosed triggers return true for any of them',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'any_job_pop_group': {
        "description": 'Iterate through each pop group that contains this job - checks whether the enclosed triggers return true for any of them',
        "scopes": ['pop', 'job'],
        "usage_format": 'comparison',
    },
    'any_megastructure': {
        "description": 'Iterate through each megastructure - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_member': {
        "description": 'Iterate through each member of the federation - checks whether the enclosed triggers return true for any of them',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'any_moon': {
        "description": 'Iterate through each moon of the planet - checks whether the enclosed triggers return true for any of them',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'any_neighbor_country': {
        "description": 'Iterate through all neighbor countries - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_neighbor_system': {
        "description": "Iterate through all a system's neighboring systems by hyperlane - checks whether the enclosed triggers return true for any of them",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_neighbor_system_euclidean': {
        "description": "Iterate through all a system's neighboring systems (by closeness, not by hyperlanes) - checks whether the enclosed triggers return true for any of them",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_observed_pre_ftl_within_border': {
        "description": "Iterate through all pre-ftl countries with an observation post around their capital within the country's or sector's borders - checks whether the enclosed triggers return true for any of them",
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'any_orbital_station': {
        "description": 'Iterate through each orbital station owned by the current country or in the current system - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'any_owned_army': {
        "description": 'Iterate through each army that is owned by the country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_design': {
        "description": 'Iterate through all designs owned by the current country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_fleet': {
        "description": 'Iterate through each fleet owned by the country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_leader': {
        "description": 'Iterate through each leader that is owned by the country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_megastructure': {
        "description": 'Iterate through each owned megastructure - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_nonprimary_starbase': {
        "description": 'Iterate through every owned non-primary starbase (e.g. orbital rings), not including juggernauts - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_planet': {
        "description": 'Iterate through each inhabited planet owned by the current empire - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'any_owned_pop_group': {
        "description": 'Iterate through all owned pop groups - checks whether the enclosed triggers return true for any of them',
        "scopes": ['planet', 'country', 'galactic_object', 'pop_faction', 'sector'],
        "usage_format": 'comparison',
    },
    'any_owned_pop_job': {
        "description": 'Iterate through all owned pop jobs - checks whether the enclosed triggers return true for any of them',
        "scopes": ['planet', 'country', 'galactic_object', 'sector'],
        "usage_format": 'comparison',
    },
    'any_owned_pop_species': {
        "description": "Iterate through each species of a country's owned pops - checks whether the enclosed triggers return true for any of them",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_sector': {
        "description": 'Iterate through every owned sector - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country', 'fleet'],
        "usage_format": 'comparison',
    },
    'any_owned_species': {
        "description": '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',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'any_owned_starbase': {
        "description": 'Iterate through every owned primary starbase - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_owned_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_planet_army': {
        "description": 'Iterate through each army on the planet (not in ground combat), regardless of owner. - checks whether the enclosed triggers return true for any of them',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'any_planet_within_border': {
        "description": "Iterate through each planet within the current empire's borders - checks whether the enclosed triggers return true for any of them",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_playable_country': {
        "description": 'Iterate through all playable countries - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_pool_leader': {
        "description": 'Iterate through each leader that is recruitable for the country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_pop_faction': {
        "description": "Iterate through all the country's pop factions - checks whether the enclosed triggers return true for any of them",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_pre_ftl_within_border': {
        "description": "Iterate through all pre-ftl countries within the country's or sector's borders - checks whether the enclosed triggers return true for any of them",
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'any_relation': {
        "description": 'Iterate through all relations - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_rim_system': {
        "description": 'Iterate through all rim systems - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_rival_country': {
        "description": 'Iterate through all countries rivalled by the scoped country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_ship_in_system': {
        "description": 'Iterate through each ship in the current system - checks whether the enclosed triggers return true for any of them',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_situation': {
        "description": 'Iterate through each situation a country is experiencing - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_species_pop_group': {
        "description": 'Iterate through each pop group that belongs to this species; warning: resource-intensive! - checks whether the enclosed triggers return true for any of them',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'any_spynetwork': {
        "description": 'Iterate through each spynetwork - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'comparison',
    },
    'any_starbase_in_system': {
        "description": 'Iterate through every starbase in the scoped galactic object. - checks whether the enclosed triggers return true for any of them',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_subject': {
        "description": 'Iterate through all subjects of the scoped country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_system': {
        "description": 'Iterate through all systems - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_system_added_to_storm': {
        "description": 'Iterate through all systems added to the storm - checks whether the enclosed triggers return true for any of them',
        "scopes": ['cosmic_storm'],
        "usage_format": 'comparison',
    },
    'any_system_ambient_object': {
        "description": 'Iterate through every ambient object in the solar system - checks whether the enclosed triggers return true for any of them',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_system_colony': {
        "description": 'Iterate through each colony in the current system - checks whether the enclosed triggers return true for any of them',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_system_in_cosmic_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - checks whether the enclosed triggers return true for any of them',
        "scopes": ['cosmic_storm_influence_field'],
        "usage_format": 'comparison',
    },
    'any_system_megastructure': {
        "description": 'Iterate through each megastructure in system - checks whether the enclosed triggers return true for any of them',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'any_system_planet': {
        "description": 'Iterate through each planet (colony or not) in the current system - checks whether the enclosed triggers return true for any of them',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'any_system_removed_from_storm': {
        "description": 'Iterate through all systems removed from storm - checks whether the enclosed triggers return true for any of them',
        "scopes": ['cosmic_storm'],
        "usage_format": 'comparison',
    },
    'any_system_with_aura': {
        "description": 'Iterate through every system with an Aura - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_system_within_border': {
        "description": "Iterate through all systems within the country's or sector's borders - checks whether the enclosed triggers return true for any of them",
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'any_system_within_storm': {
        "description": 'Iterate through all systems within the storm - checks whether the enclosed triggers return true for any of them',
        "scopes": ['cosmic_storm'],
        "usage_format": 'comparison',
    },
    'any_targeting_situation': {
        "description": 'Iterate through each situation that is targeting the current planet - checks whether the enclosed triggers return true for any of them',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'any_trait_available_for_species': {
        "description": "Iterate through all species traits and check if scope species doesn't have this trait",
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'simple',
    },
    'any_trait_of_species': {
        "description": 'Iterate through each trait that the scoped species has',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'simple',
    },
    'any_war': {
        "description": 'Iterate through all wars the country is engaged in - checks whether the enclosed triggers return true for any of them',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'any_war_participant': {
        "description": 'Iterate through all war participants - checks whether the enclosed triggers return true for any of them',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'army_type': {
        "description": "Checks the army's type",
        "scopes": ['army'],
        "usage_format": 'comparison',
    },
    'artificial_pops_last_month_growth': {
        "description": 'Checks how many artificial pops the planet assembled last month.',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'astral_rift_relative_difficulty': {
        "description": "Checks the difference between an explorer's level and an Astral Rift current difficulty",
        "scopes": ['astral_rift'],
        "usage_format": 'comparison',
    },
    'astral_rifts_completed': {
        "description": 'Return how many Astral Rifts were completed by the country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'attacker_war_exhaustion': {
        "description": "Checks the war exhaustion of the war's attackers",
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'attunement': {
        "description": 'Checks the attunement level with the Shroud',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'balance': {
        "description": "Checks the country's energy credit balance",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'bioship_can_grow': {
        "description": 'Checks if the bioship can get growth progress.',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'branch_office_value': {
        "description": "Checks the planet's branch officevalue",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'built_on_planet': {
        "description": 'Checks if the scoped megastructure is built on a planet',
        "scopes": ['megastructure'],
        "usage_format": 'comparison',
    },
    'calc_true_if': {
        "description": 'Returns true if the specified number of sub-triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'can_access_system': {
        "description": 'Checks if the scoped fleet is able to enter the system. Note: Avoid overusing this, it is a performance-intensive trigger!',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'can_afford_special_offer': {
        "description": 'Checks if the scoped country can afford the offer given by the target country. Only works in certain parts of the script marked with ai_trade_facility.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'can_be_crisis_terraformed': {
        "description": 'Checks if a system has the can_be_crisis_terraformed flag or not.',
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'can_be_reanimated': {
        "description": 'Checks if the ship/design can be reanimated.',
        "scopes": ['ship', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'can_be_upgraded': {
        "description": "Checks if the scope's fleet, ship, starbase or megastructure can be upgraded.",
        "scopes": ['megastructure', 'ship', 'fleet', 'starbase'],
        "usage_format": 'comparison',
    },
    'can_buy_on_market': {
        "description": 'Checks if the current country can buy the specified resource on the market or galactic market',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'can_change_policy': {
        "description": 'Checks if the country can change a specific policy',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'can_colonize': {
        "description": 'Checks if the planet can be colonized by target country',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'can_control_access_for': {
        "description": "Checks if the country is allowed to control target country's border access to the country",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'can_copy_random_tech_from': {
        "description": 'Checks whether the target country has a technology the current country can steal via copy_random_tech_from effect',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'who', 'type': 'country'}],
    },
    'can_declare_war': {
        "description": 'Checks if the country can declare war against target country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target country'}, {'name': 'attacker_war_goal', 'type': 'war goal'}],
    },
    'can_give_specimen': {
        "description": 'Checks if can give a specific specimen. Checks if specimen is already given and if there is an available exhibit slot',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'can_go_mia': {
        "description": 'Checks if the scoped fleet can go MIA.',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'can_have_first_contact_site_with': {
        "description": 'Checks if the scoped country is allowed to have a First Contact site with the target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'can_join_factions': {
        "description": 'Checks if scoped pop group can join a faction',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'simple',
    },
    'can_live_on_planet': {
        "description": 'Checks if the pop group or species is allowed to live on a specified planet',
        "scopes": ['pop', 'pop_group', 'species'],
        "usage_format": 'comparison',
    },
    'can_lock_be_renewed': {
        "description": 'Returns true if the Bypass Lock can be renewed',
        "scopes": ['bypass'],
        "usage_format": 'comparison',
    },
    'can_research_technology': {
        "description": '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.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'can_research_tier': {
        "description": 'Checks whether the country can research a certain tech tier',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'can_set_policy': {
        "description": 'Checks if the country is allowed to set its policy to a specific one using set_policy effect',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'can_set_situation_approach': {
        "description": 'Checks if the specified approach is allowed to be picked (according to potential and allow triggers) on the scoped situation.',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'can_work_specific_job': {
        "description": 'Checks if the pop group can work a specific job if a vacancy becomes available',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'simple_value',
    },
    'capital_tier': {
        "description": "Checks the tier of the planet's capital building",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'caravaneers_enabled': {
        "description": 'Checks if Caravaneers are enabled in game setup',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'category_last_picked_tradition': {
        "description": 'Checks if the last picked tradition has the given tradition category. If there is no last picked tradition set, returns false.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'check_economic_production_modifier_for_job': {
        "description": 'Checks the value of economic production modifiers a pop has for producing a certain resource via a certain job. Can specify checking all modifiers or just those from traits. WARNING: expensive trigger',
        "scopes": ['planet', 'pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'minerals', 'type': 'value'}, {'name': 'energy', 'type': 'value'}],
    },
    'check_galaxy_setup_value': {
        "description": 'Checks the value for a specific option from the galaxy setup',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'setting', 'type': 'string'}],
    },
    'check_modifier_value': {
        "description": 'Checks the value of a specified modifier in the current scope against a value.',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'army', 'species', 'design', 'pop_faction', 'spy_network', 'espionage_operation'],
        "usage_format": 'comparison',
    },
    'check_pop_faction_parameter': {
        "description": "Checks if one of the faction's parameters is the same as target scope",
        "scopes": ['pop_faction'],
        "usage_format": 'comparison',
    },
    'check_variable': {
        "description": 'Checks a variable for the country/leader/planet/system/fleet',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'army', 'ambient_object', 'species', 'bypass', 'pop_faction', 'war', 'federation', 'starbase', 'deposit', 'sector', 'archaeological_site', 'first_contact', 'spy_network', 'espionage_operation', 'espionage_asset', 'agreement', 'situation', 'astral_rift', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'check_variable_arithmetic': {
        "description": "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)",
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'army', 'ambient_object', 'species', 'bypass', 'pop_faction', 'war', 'federation', 'starbase', 'deposit', 'sector', 'archaeological_site', 'first_contact', 'spy_network', 'espionage_operation', 'espionage_asset', 'agreement', 'situation', 'astral_rift', 'ship_growth_stage'],
        "usage_format": 'block',
        "params": [{'name': 'which', 'type': 'variable'}, {'name': 'modulo', 'type': 'float'}],
    },
    'city_graphical_culture': {
        "description": 'Checks if the country has a specific graphical culture for its city image or the same graphical culture as the target.',
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'civics_count': {
        "description": "Checks the country's number of civics",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'closest_system': {
        "description": '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 = {}.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'use_bypasses', 'type': 'value', 'default': 'no'}, {'name': 'min_steps', 'type': 'value'}, {'name': 'max_steps', 'type': 'value'}, {'name': 'use_bypasses', 'type': 'value'}, {'name': 'body', 'type': 'triggers'}],
    },
    'colony_age': {
        "description": "Checks the planet's (colony's) age in months",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'colony_age_years': {
        "description": "Checks the planet's (colony's) age in years",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'colony_type': {
        "description": 'Checks if the colony is of a certain type',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'command_limit': {
        "description": "Checks the country's command limit",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'compare_distance': {
        "description": 'Checks whether the current scope is closer to a specified object than it is to a second specified object within the same solar system.',
        "scopes": ['megastructure', 'planet', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'ambient_object', 'starbase', 'deposit', 'archaeological_site', 'first_contact'],
        "usage_format": 'comparison',
    },
    'conditional_tooltip': {
        "description": '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.',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'controlled_colonizable': {
        "description": "Returns the number of planets within the current country's borders that are habitable but have not been colonized",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'controlled_systems': {
        "description": "Checks the country's or sector's number of owned systems",
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'cosmic_storm_influence_value': {
        "description": 'Returns the amount of influence on a system',
        "scopes": ['galactic_object'],
        "usage_format": 'simple',
    },
    'cosmic_storm_system_influence': {
        "description": 'Checks the systems total cosmic storm influence',
        "scopes": ['galactic_object'],
        "usage_format": 'simple',
    },
    'council_agenda_progress': {
        "description": 'Checks the progress of the current Agenda.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'council_agenda_progress_percent': {
        "description": 'Compares the progress (0-1) of the current Agenda.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'council_legitimacy': {
        "description": 'Checks current value for council legitimacy for the scoped country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'count_active_first_contact': {
        "description": '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',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_agreement': {
        "description": 'Iterate through each agreement - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_ambient_object': {
        "description": 'Iterate through every ambient object in the game - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_archaeological_site': {
        "description": 'Iterate through every archaeological sites - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_associate': {
        "description": 'Iterate through each associate member of the federation - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['federation'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_astral_rift': {
        "description": 'Iterate through every astral rift - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_attacker': {
        "description": 'Iterate through all attackers in the current war - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_available_debris': {
        "description": 'Iterate through all debris belong to available special projects of the scoped country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_bypass': {
        "description": 'Iterate through every bypass - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_bypass_in_system': {
        "description": 'Iterate through every bypass in the scoped galactic object. - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_combatant_fleet': {
        "description": 'Iterate through each fleet this fleet is in combat with - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['fleet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_controlled_fleet': {
        "description": 'Iterate through each fleet controlled by the country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_controlled_planet': {
        "description": 'Iterate through each inhabited planet controlled by the current empire - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_controlled_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country', 'fleet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_cosmic_storm': {
        "description": 'Iterate through all cosmic storms in the galaxy - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_cosmic_storm_end_position': {
        "description": 'Iterate through all systems valid to be a storms end position - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_cosmic_storm_start_position': {
        "description": 'Iterate through all systems valid to be a storms start position - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_council_member': {
        "description": 'Iterate through each member of the galactic council - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_country': {
        "description": 'Iterate through all countries - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_country_neighbor_to_system': {
        "description": 'Iterate through all countries that own system 1 jump away from current system (bypasses included) - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_defender': {
        "description": 'Iterate through all defenders in the current war - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_deposit': {
        "description": 'Iterate through each deposit on the planet - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_deposits': {
        "description": 'Checks the number of deposits on the planet that meet the specified criteria',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'count_end_cycle_systems': {
        "description": 'Checks the amount of needed systems with the End Cycle psionic aura',
        "scopes": ['all'],
        "usage_format": 'unknown',
    },
    'count_enslaved_species': {
        "description": '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 X/all of them',
        "scopes": ['planet', 'country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_envoy': {
        "description": 'Iterate through each envoy available to the country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_espionage_asset': {
        "description": 'Iterate through each espionage asset - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['no_scope', 'spy_network', 'espionage_operation'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_espionage_operation': {
        "description": 'Iterate through each espionage operation - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country', 'no_scope', 'spy_network'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_exact_species': {
        "description": 'Counts the number of species in the scope that fulfill the specified criteria, counting sub-species as unique.',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'count_exhibit': {
        "description": 'Iterate through every exhibit - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_existing_species_traits': {
        "description": 'Iterate through all existing species traits in the game - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_federation': {
        "description": 'Iterate through each federation - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_federation_ally': {
        "description": 'Iterate through all countries in a federation with the scoped country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_first_contact': {
        "description": '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',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_fleet_in_orbit': {
        "description": 'Iterate through each fleet orbiting the current planet/starbase/megastructure - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['megastructure', 'planet', 'starbase'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_fleet_in_system': {
        "description": 'Iterate through each fleet in the current system - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_galaxy_fleet': {
        "description": 'Iterate through each fleet in the entire game - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_galaxy_planet': {
        "description": 'Iterate through each planet ANYWHERE in the game; warning: resource intensive! - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_galaxy_sector': {
        "description": 'Iterate through all sectors in the game - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_galaxy_species': {
        "description": 'Check if any species in the galaxy meet the specified criteria - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_galcom_member': {
        "description": 'Iterate through each member of the galactic community - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_ground_combat_attacker': {
        "description": 'Iterate through each army currently attacking the planet in ground combat - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_ground_combat_defender': {
        "description": 'Iterate through each army currently defending the planet in ground combat - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_job_pop_group': {
        "description": 'Iterate through each pop group that contains this job - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['pop', 'job'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_megastructure': {
        "description": 'Iterate through each megastructure - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_member': {
        "description": 'Iterate through each member of the federation - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['federation'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_moon': {
        "description": 'Iterate through each moon of the planet - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_neighbor_country': {
        "description": 'Iterate through all neighbor countries - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_neighbor_system': {
        "description": "Iterate through all a system's neighboring systems by hyperlane - checks whether the enclosed triggers return true for X/all of them",
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_neighbor_system_euclidean': {
        "description": "Iterate through all a system's neighboring systems (by closeness, not by hyperlanes) - checks whether the enclosed triggers return true for X/all of them",
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_observed_pre_ftl_within_border': {
        "description": "Iterate through all pre-ftl countries with an observation post around their capital within the country's or sector's borders - checks whether the enclosed triggers return true for X/all of them",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_orbital_station': {
        "description": 'Iterate through each orbital station owned by the current country or in the current system - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country', 'galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_army': {
        "description": 'Iterate through each army that is owned by the country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_design': {
        "description": 'Iterate through all designs owned by the current country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_fleet': {
        "description": 'Iterate through each fleet owned by the country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_leader': {
        "description": 'Iterate through each leader that is owned by the country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_megastructure': {
        "description": 'Iterate through each owned megastructure - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_nonprimary_starbase': {
        "description": 'Iterate through every owned non-primary starbase (e.g. orbital rings), not including juggernauts - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_planet': {
        "description": 'Iterate through each inhabited planet owned by the current empire - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_pop_amount': {
        "description": 'Sums all pop amounts - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet', 'country', 'galactic_object', 'pop_faction', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_pop_group': {
        "description": 'Iterate through all owned pop groups - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet', 'country', 'galactic_object', 'pop_faction', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_pop_job': {
        "description": 'Iterate through all owned pop jobs - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet', 'country', 'galactic_object', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_pop_species': {
        "description": "Iterate through each species of a country's owned pops - checks whether the enclosed triggers return true for X/all of them",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_sector': {
        "description": 'Iterate through every owned sector - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country', 'fleet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_species': {
        "description": 'Check if any of the species <on the planet/in the country> meet the specified criteria - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet', 'country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_starbase': {
        "description": 'Iterate through every owned primary starbase - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_owned_workforce': {
        "description": 'Sums all workforce - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet', 'country', 'galactic_object', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_planet_army': {
        "description": 'Iterate through each army on the planet (not in ground combat), regardless of owner. - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_planet_within_border': {
        "description": "Iterate through each planet within the current empire's borders - checks whether the enclosed triggers return true for X/all of them",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_playable_country': {
        "description": 'Iterate through all playable countries - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_pool_leader': {
        "description": 'Iterate through each leader that is recruitable for the country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_pop_faction': {
        "description": "Iterate through all the country's pop factions - checks whether the enclosed triggers return true for X/all of them",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_potential_war_participants': {
        "description": 'Checks the amount of potential war participants in a specific war that meet the specified criteria',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'count_pre_ftl_within_border': {
        "description": "Iterate through all pre-ftl countries within the country's or sector's borders - checks whether the enclosed triggers return true for X/all of them",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_relation': {
        "description": 'Iterate through all relations - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_rim_system': {
        "description": 'Iterate through all rim systems - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_rival_country': {
        "description": 'Iterate through all countries rivalled by the scoped country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_ship_in_system': {
        "description": 'Iterate through each ship in the current system - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_ship_size_in_system': {
        "description": "Checks the sum of the ship_size's size_multiplier of every ship present in the scoped system.",
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_situation': {
        "description": 'Iterate through each situation a country is experiencing - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_species': {
        "description": 'Counts the number of species in the scope that fulfill the specified criteria, not counting sub-species as unique.',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'count_species_pop_group': {
        "description": 'Iterate through each pop group that belongs to this species; warning: resource-intensive! - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['species'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_species_traits': {
        "description": 'Checks the number of unique traits within the set parameters on a species or pop group',
        "scopes": ['pop', 'pop_group', 'species'],
        "usage_format": 'comparison',
    },
    'count_spynetwork': {
        "description": 'Iterate through each spynetwork - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_starbase_buildings': {
        "description": 'Checks the number of starbase buildings that are of the specified type or not',
        "scopes": ['country', 'galactic_object', 'starbase'],
        "usage_format": 'comparison',
    },
    'count_starbase_in_system': {
        "description": 'Iterate through every starbase in the scoped galactic object. - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_starbase_modules': {
        "description": 'Checks the number of starbase modules that are of the specified type or not',
        "scopes": ['country', 'galactic_object', 'starbase'],
        "usage_format": 'comparison',
    },
    'count_starbase_sizes': {
        "description": 'Checks if the scoped country has a specified quantity of a starbase size',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'starbase_size', 'type': 'starbase_ship_size'}],
    },
    'count_subject': {
        "description": 'Iterate through all subjects of the scoped country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system': {
        "description": 'Iterate through all systems - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_added_to_storm': {
        "description": 'Iterate through all systems added to the storm - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_ambient_object': {
        "description": 'Iterate through every ambient object in the solar system - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_colony': {
        "description": 'Iterate through each colony in the current system - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_in_cosmic_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['cosmic_storm_influence_field'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_megastructure': {
        "description": 'Iterate through each megastructure in system - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_planet': {
        "description": 'Iterate through each planet (colony or not) in the current system - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_removed_from_storm': {
        "description": 'Iterate through all systems removed from storm - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_with_aura': {
        "description": 'Iterate through every system with an Aura - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_within_border': {
        "description": "Iterate through all systems within the country's or sector's borders - checks whether the enclosed triggers return true for X/all of them",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_system_within_storm': {
        "description": 'Iterate through all systems within the storm - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_systems_with_aura': {
        "description": "Checks the amount of systems covered by the country's aura",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'count_targeting_situation': {
        "description": 'Iterate through each situation that is targeting the current planet - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_tech_options': {
        "description": "Checks the country's number available tech research options in a specific field",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'count_trait_available_for_species': {
        "description": "Iterate through all species traits and check if scope species doesn't have this trait",
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'simple',
    },
    'count_trait_of_species': {
        "description": 'Iterate through each trait that the scoped species has',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'simple',
    },
    'count_unlocked_active_accords': {
        "description": 'Checks the number of active accords unlocked by the country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'count_used_naval_cap': {
        "description": "Checks used naval cap by the scoped country or fleet's controlled ships which fulfill the specified criteria.",
        "scopes": ['country', 'ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'count_war': {
        "description": 'Iterate through all wars the country is engaged in - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_war_participant': {
        "description": 'Iterate through all war participants - checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'count_war_participants': {
        "description": 'Checks the number of participants in the war on a specific side that meet the specified criteria',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'current_awareness_level': {
        "description": "Checks the country's awareness level if it's pre-FTL",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'current_situation_approach': {
        "description": 'Checks if the specified approach has been picked on the scoped situation.',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'current_stage': {
        "description": 'Checks if the specified stage is currently active in the scoped situation.',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'custom_progress': {
        "description": 'Adjusts progress of triggers inside it',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'mode', 'type': 'normal/simplified/clamped'}, {'name': 'current_val_coeff', 'type': 'value'}, {'name': 'final_val_coeff', 'type': 'value'}],
    },
    'custom_tooltip': {
        "description": 'Replaces the tooltips for the enclosed triggers with a custom text',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'text', 'type': 'text used as fallback for both fails and successes'}, {'name': 'fail_text', 'type': 'text used for fails["string"/default/none]'}, {'name': 'success_text', 'type': 'text used for successes["string"/default/none]'}, {'name': 'body', 'type': 'triggers'}],
    },
    'custom_tooltip_fail': {
        "description": 'Shows custom text only when the associated trigger fails',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'text', 'type': 'text'}, {'name': 'body', 'type': 'triggers'}],
    },
    'custom_tooltip_success': {
        "description": 'Shows custom text only when the associated trigger passes',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'text', 'type': 'text'}, {'name': 'body', 'type': 'triggers'}],
    },
    'cutholoids_scaling': {
        "description": 'Checks Cutholoids presence scaling in game setup',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'days_passed': {
        "description": 'Checks the number of in-game days passed since the 2200.1.1 start',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'debug_break': {
        "description": 'Trigger an assertion to stop the debugger when encountering this trigger; returns the value it is assigned',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'def_war_exhaustion_sum': {
        "description": "Checks the country's total war exhaustion for all defensive wars",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'defender_war_exhaustion': {
        "description": "Checks the war exhaustion of the war's defenders",
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'diplomacy_weight': {
        "description": "Checks the country's diplomatic weight",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'distance': {
        "description": "Checks the ship/fleet/planet/leader/pop group/system's galaxy map distance to target in absolute units",
        "scopes": ['megastructure', 'planet', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'ambient_object', 'starbase', 'deposit', 'archaeological_site', 'first_contact'],
        "usage_format": 'block',
        "params": [{'name': 'source', 'type': 'target'}, {'name': 'type', 'type': 'hyperlane/euclidean'}, {'name': 'bypass_empire', 'type': 'empire'}, {'name': 'same_solar_system', 'type': 'value', 'default': 'no; this toggles whether the trigger checks galaxy map or solar system distances'}, {'name': 'min_jumps', 'type': 'value'}, {'name': 'max_jumps', 'type': 'value'}, {'name': 'same_solar_system', 'type': 'value'}],
    },
    'distance_to_capital': {
        "description": "Checks the distance of a controlled system to its owner's capital",
        "scopes": ['planet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'distance_to_core_percent': {
        "description": "Checks the ship/fleet/planet/leader/pop/system's distance to the galactic core in percent, where center = 0 and galactic rim = 100",
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'distance_to_empire': {
        "description": "Checks the ship/fleet/planet/system's galaxy map distance to target empire",
        "scopes": ['planet', 'ship', 'fleet', 'galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'who', 'type': 'target'}, {'name': 'use_bypasses', 'type': 'value', 'default': 'yes'}, {'name': 'type', 'type': 'value', 'default': 'hyperlane'}, {'name': 'use_bypasses', 'type': 'value'}],
    },
    'else': {
        "description": "Evaluates the triggers if the display_triggers of preceding 'if' or 'else_if' is not met",
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'else_if': {
        "description": '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 met',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'empire_size': {
        "description": "Checks the empire's size. Identical to empire_sprawl trigger.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'empire_sprawl': {
        "description": "Checks the empire's sprawl. Identical to empire_size trigger.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'empire_sprawl_cap_fraction': {
        "description": "Checks the empire's sprawl compared to its admin level",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'empire_sprawl_over_cap': {
        "description": "Checks how much the empire's sprawl is over its admin capacity",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'enclave_capacity_left': {
        "description": "Checks the country's free enclave number capacity in absolute numbers",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'end_game_years_passed': {
        "description": 'Checks the number of in-game years passed since the end-game start date',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'envoy_opinion_change': {
        "description": "Checks the country's opinion of the target country has been changed by envoys",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'ethos': {
        "description": "Checks the average ethics divergence on the planet, i.e. num of pops not of the country's ethics / total num of pops",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'exists': {
        "description": 'Checks if a target scope exists',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'expenses': {
        "description": "Checks the country's monthly energy credit expenses",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'exploitable_planets': {
        "description": 'Checks the country has planets that are unexploited (i.e. orbital stations can be built on them)',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'faction_approval': {
        "description": "Checks the scoped faction's approval percentage",
        "scopes": ['pop_faction'],
        "usage_format": 'comparison',
    },
    'fail_text': {
        "description": "For 'desc={trigger={' use. Shows custom text when the associated trigger fails.",
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'text', 'type': 'text'}, {'name': 'body', 'type': 'triggers'}],
    },
    'federation_cohesion': {
        "description": 'Checks cohesion of the federation.',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'federation_cohesion_growth': {
        "description": 'Checks cohesion growth of the federation.',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'federation_experience': {
        "description": 'Checks experience of the federation.',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'federation_level': {
        "description": 'Checks federation level in comparison to given value in scoped federation',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'fleet_integrity': {
        "description": 'Checks the fleet integrity (shield + hull points) of a fleet.',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'fleet_power': {
        "description": "Checks the scope's total fleet power",
        "scopes": ['country', 'fleet', 'federation'],
        "usage_format": 'comparison',
    },
    'fleet_size': {
        "description": "Checks the fleet's fleet size",
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'former_citizenship_type': {
        "description": 'Compares the former citizenship type with the given one.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'former_colonization_control_type': {
        "description": 'Compares the former migration control type with the given one.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'former_living_standard_type': {
        "description": 'Compares the former living standard type with the given one.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'former_migration_control_type': {
        "description": 'Compares the former migration control type with the given one.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'former_military_service_type': {
        "description": 'Compares the former military service type with the given one.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'former_population_control_type': {
        "description": 'Compares the former population control type with the given one.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'former_purge_type': {
        "description": 'Compares the former purge type with the given one.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'former_slavery_type': {
        "description": 'Compares the former slavery type with the given one.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'free_amenities': {
        "description": "Checks the planet's available amenities",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'free_branch_office_building_slots': {
        "description": "Checks the planet's number of branch office slots available for new constructions",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'free_building_slots': {
        "description": "Checks the planet's number of slots available for new constructions",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'free_district_slots': {
        "description": "Checks the planet's number of slots available for new constructions",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'free_housing': {
        "description": "Checks the planet's available housing",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'free_jobs': {
        "description": 'Checks the number of unassigned jobs on the planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'free_jobs_of_type': {
        "description": 'Check how many free jobs there are of a specific jobtype or pop category on a planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'job', 'type': 'jobtype'}, {'name': 'category', 'type': 'pop_category'}, {'name': 'include_deprioritized_jobs', 'type': 'yes/no'}, {'name': 'default', 'type': 'value'}],
    },
    'galactic_community_rank': {
        "description": "Compares empire rank ( sorted by diplomatic weight ) in the Galactic Community. NOTE: If the scoped country isn't part of the community this returns -1.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'galactic_defense_force_exists': {
        "description": 'Checks if the Galactic Defense Force or Imperial Armada exists',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'galaxy_percentage': {
        "description": 'Checks if the country has a specific percentage (0.00-1.00) of the galaxy within its borders',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'galaxy_shape': {
        "description": 'Checks whether the galaxy shape if of a certain shape',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'galaxy_size': {
        "description": 'Checks whether the galaxy size if of a certain type',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'gender': {
        "description": "Checks the leader's gender",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'get_attunement_points_for': {
        "description": 'Checks the amount of attunement points earned for a specified patron.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'patron', 'type': 'key'}, {'name': 'value', 'type': 'int/variable'}, {'name': 'negative', 'type': 'yes/no'}, {'name': 'default', 'type': 'value'}],
    },
    'get_councilor_level': {
        "description": 'Get the level of a specific councilor',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'governors_skill_in_system': {
        "description": 'Checks if valid colony governors in the scoped has a specific base experience level',
        "scopes": ['galactic_object'],
        "usage_format": 'unknown',
    },
    'graphical_culture': {
        "description": 'Checks if the country/ship/megastructure/species has specific graphical culture or the same graphical culture as the target.',
        "scopes": ['megastructure', 'country', 'ship', 'species'],
        "usage_format": 'unknown',
    },
    'habitability': {
        "description": "Checks the planet's habitability (0 to 1) for target pop group/species",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'happiness': {
        "description": "Checks the pop group's happiness percentage",
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'happiness_planet': {
        "description": 'Checks the average happiness on the planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_access_fleet': {
        "description": 'Checks if the target country is allowed to enter the system',
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'has_active_building': {
        "description": 'Checks if the planet has a specific building, and that that building is not disabled or ruined.',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_active_event': {
        "description": 'Checks if country has active events:',
        "scopes": ['country'],
        "usage_format": 'block',
    },
    'has_active_first_contact_with': {
        "description": 'Checks if the scoped country has an active First Contact site with the target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_active_focus': {
        "description": 'Checks if a country has a particular focus card active active',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_active_specialization': {
        "description": "Checks if the agreement has an active specialization of the specified type, or of any type if 'any' is specified",
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'has_active_tradition': {
        "description": "Checks if a country has the given tradition or tradition swap. Tradition specified must be the one giving effects, i.e. tradition swaps with 'inherit_effects = yes' are ignored and the base tradition should be specified in those cases.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_agenda_selected': {
        "description": 'Checks if the country has a specific Council Agenda selected, or any at all',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_agreement_flag': {
        "description": 'Checks if the agreement has a specific flag',
        "scopes": ['agreement'],
        "usage_format": 'comparison',
    },
    'has_ai_expansion_plan': {
        "description": 'Checks if the country AI has any plans to expand',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_ai_personality': {
        "description": 'Checks if an AI empire has a certain personality type',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_ai_personality_behaviour': {
        "description": 'Checks if a country has a certain AI personality behavior',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_ambient_object_flag': {
        "description": 'Checks if the ambient object has a specific flag',
        "scopes": ['ambient_object'],
        "usage_format": 'comparison',
    },
    'has_anomaly': {
        "description": 'Checks if the planet has an anomaly',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_any_federation_law_in_category': {
        "description": 'Checks if given law category has any active law',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'has_any_flag': {
        "description": 'Checks if any Flag has been set to the given scope',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'has_any_megastructure': {
        "description": 'Checks if the scope has a megastructure',
        "scopes": ['planet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'has_any_overlord': {
        "description": 'Checks if the country has an overlord',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_any_strategic_resource': {
        "description": 'Checks if the planet has any strategic resource',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_archaeology_flag': {
        "description": 'Checks if the archaeological site has a specific flag',
        "scopes": ['archaeological_site'],
        "usage_format": 'comparison',
    },
    'has_armor_percentage': {
        "description": "Checks a fleet or ship's armor hit points percentage",
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'has_army': {
        "description": 'Checks if the planet has an army',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_army_flag': {
        "description": 'Checks if the army has a specific flag',
        "scopes": ['army'],
        "usage_format": 'comparison',
    },
    'has_ascension_perk': {
        "description": 'Checks if a country has the given ascension perk.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_association_status': {
        "description": 'Check if the country has federation association status with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_asteroid_belt': {
        "description": 'Returns true if the scoped galactic object has an asteroid belt.',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'has_astral_rift': {
        "description": 'Returns true if the scopes system contains at least one astral rift',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'has_astral_rift_flag': {
        "description": 'Checks if the astral rift has a specific flag',
        "scopes": ['astral_rift'],
        "usage_format": 'comparison',
    },
    'has_attitude_behavior': {
        "description": 'Checks if the country has the specified AI behavior towards another country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'country'}],
    },
    'has_authority': {
        "description": 'Checks if the current country has the specified government authority',
        "scopes": ['country', 'dlc_recommendation'],
        "usage_format": 'comparison',
    },
    'has_auto_move_target': {
        "description": 'Checks if the fleet/ship has an active auto-move target set',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'has_available_jobs': {
        "description": 'Check that you have available job of a specific type',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_available_spy_power': {
        "description": 'Compares the available infiltration level of the network',
        "scopes": ['spy_network'],
        "usage_format": 'simple_value',
    },
    'has_awareness': {
        "description": "Checks the country's awareness if it's pre-FTL",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_background_job': {
        "description": "Checks if the leader's background contains a specific previous job, or any job if set to yes",
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'has_base_skill': {
        "description": 'Checks if the leader has a specific base experience level',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'has_branch_office': {
        "description": 'Check if the planet has a branch office owned by target country/any country/no country',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'has_building': {
        "description": 'Checks if the planet has any, or a specific, building',
        "scopes": ['planet'],
        "usage_format": 'unknown',
    },
    'has_building_construction': {
        "description": 'Checks if the planet has any, or a specific, ongoing building construction',
        "scopes": ['planet'],
        "usage_format": 'unknown',
    },
    'has_built_species': {
        "description": 'Checks if country has a built species defined',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_casus_belli': {
        "description": 'Checks if the country has a valid casus belli (any casus belli or a specific one) on the given country.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'country'}, {'name': 'type', 'type': 'cb_type'}],
    },
    'has_citizenship_rights': {
        "description": 'Checks if the pop group/species/leader has rights',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_citizenship_type': {
        "description": 'Checks if a species/pop group/leader has a particular citizenship type in their country',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_civic': {
        "description": 'Checks if the current country has the specified civic',
        "scopes": ['country', 'dlc_recommendation'],
        "usage_format": 'comparison',
    },
    'has_civic_in_slot': {
        "description": 'Checks if the country has a civic in a slot',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_claim': {
        "description": 'Checks if the country has claims on the given country or system.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_climate': {
        "description": "Checks if the planet's climate is set to a specified string in planet_classes:",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_cloaking_detection': {
        "description": 'Compares cloaking detection value of the scoped fleet or ship.',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'has_cloaking_strength': {
        "description": 'Compares cloaking strength value of the scoped fleet or ship.',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'has_closed_borders': {
        "description": 'Check if the country has closed its borders to target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_colonization_control': {
        "description": 'Checks if the pop group is prevented from colonizing',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_commercial_pact': {
        "description": 'Check if the country has a commercial pact with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_communications': {
        "description": 'Checks if the country has established communications with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_completed_event_chain': {
        "description": 'Checks if the country has completed a specific event chain',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_completed_event_chain_counter': {
        "description": 'Checks if the country has completed a specific counter in an event chain',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_completed_focus': {
        "description": 'Checks if a country has a particular focus card completed',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_completed_special_project_in_log': {
        "description": 'Checks if the country has completed a specific special project as part of an in-progress event chain',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_component': {
        "description": 'Checks if a ship has a certain component',
        "scopes": ['ship', 'ship_growth_stage'],
        "usage_format": 'simple_value',
    },
    'has_country_flag': {
        "description": 'Checks if the empire has a specific flag',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_country_resource': {
        "description": "Checks the country's amount of a specific stored resource",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_covenant': {
        "description": 'Checks if the current country has a covenant with the given patron.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_crisis_level': {
        "description": 'Checks if a country has a specific Crisis Level unlocked.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_crisis_perk': {
        "description": 'Checks if a country has a specific Crisis Perk unlocked.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_current_purge': {
        "description": 'Checks if any pops are being purged on the current planet.',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_defensive_pact': {
        "description": 'Checks if the country has a defensive pact with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_deficit': {
        "description": 'Checks if the country or planet has a deficit of the defined resource. Only populated planets can have deficits.',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'has_deposit': {
        "description": 'Checks if the planet has any, or a specific, deposit',
        "scopes": ['planet', 'deposit'],
        "usage_format": 'unknown',
    },
    'has_deposit_category': {
        "description": 'Checks if a deposit has specified category',
        "scopes": ['deposit'],
        "usage_format": 'simple_value',
    },
    'has_deposit_flag': {
        "description": 'Checks if the deposit has a specific flag',
        "scopes": ['deposit'],
        "usage_format": 'comparison',
    },
    'has_deposit_for': {
        "description": 'Checks if the planet has a deposit for a specific ship class',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_design_flag': {
        "description": 'Checks if the design has a specific flag',
        "scopes": ['design'],
        "usage_format": 'comparison',
    },
    'has_designation': {
        "description": 'Checks if the colony has a certain designation',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_diplo_migration_treaty': {
        "description": 'Checks if two countries have a migration treaty.',
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'has_district': {
        "description": 'Checks if the planet has any, or a specific, district',
        "scopes": ['planet'],
        "usage_format": 'unknown',
    },
    'has_dna': {
        "description": 'Check if dna has been acquired for the given category',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_edict': {
        "description": 'Checks if the country has a specific edict enabled',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_election_type': {
        "description": 'Checks if the country has a specific election type',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_embassy': {
        "description": 'Check if the country has an embassy with the target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_environmental_effects': {
        "description": 'Checks if a star system has any environmental effects',
        "scopes": ['galactic_object'],
        "usage_format": 'simple',
    },
    'has_envoy_cooldown': {
        "description": 'Checks the scoped envoy currently has a cooldown on its status.',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'has_envoy_task': {
        "description": "Checks the scoped leader's diplomatic/envoy task.",
        "scopes": ['leader'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'country'}],
    },
    'has_espionage_asset': {
        "description": 'Checks if the scope hold an asset of specified type',
        "scopes": ['spy_network', 'espionage_operation'],
        "usage_format": 'simple_value',
    },
    'has_espionage_asset_flag': {
        "description": 'Checks if the espionage asset has a specific flag',
        "scopes": ['espionage_asset'],
        "usage_format": 'comparison',
    },
    'has_espionage_category': {
        "description": 'Checks if the scope is of a specific category',
        "scopes": ['espionage_operation'],
        "usage_format": 'simple_value',
    },
    'has_espionage_operation_flag': {
        "description": 'Checks if the espionage operation has a specific flag',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'has_espionage_type': {
        "description": 'Checks if the scope is of a specific type',
        "scopes": ['espionage_operation'],
        "usage_format": 'simple_value',
    },
    'has_established_contact': {
        "description": 'Checks if the country has established contact with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_ethic': {
        "description": 'Checks if a country/pop group/leader/faction has a certain ethos',
        "scopes": ['country', 'pop', 'pop_group', 'leader', 'pop_faction', 'dlc_recommendation'],
        "usage_format": 'comparison',
    },
    'has_event_chain': {
        "description": 'Checks if the country has a specific event chain',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_existing_ship_design': {
        "description": 'Checks if the country has a specific ship design available',
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'has_experience': {
        "description": 'Checks if the leader has a specific amount of experience',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'has_extorted_faction': {
        "description": 'Checks if the the country has an extorted faction',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_faction': {
        "description": 'Checks if the country has any instance of target faction type',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_failed_special_project_in_log': {
        "description": 'Checks if the country has failed, timed out or aborted a specific special project as part of an in-progress event chain',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_federation': {
        "description": 'Checks if the country is in a federation',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_federation_flag': {
        "description": 'Checks if the federation has a specific flag',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'has_federation_law': {
        "description": 'Checks if given law has been enacted in scoped federation',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'has_federation_perk': {
        "description": 'Checks if given perk has been unlocked in scoped federation',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'has_federation_setting': {
        "description": 'Checks if given setting is on for scoped federation',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'has_federation_type': {
        "description": 'Checks if federation has specific federation type',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'has_first_contact_flag': {
        "description": 'Checks if the first contact site has a specific flag',
        "scopes": ['first_contact'],
        "usage_format": 'comparison',
    },
    'has_fleet_flag': {
        "description": 'Checks if the fleet has a specific flag',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'has_fleet_order': {
        "description": '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 land_armies_order merge_fleet_order aggressive_stance_fleet_order auto_explore_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',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'has_forbidden_jobs': {
        "description": 'Check that you have forbidden job of a specific type',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_galactic_community_emissary': {
        "description": 'Checks if scoped country has an Emissary assigned to the Galactic Community',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_galactic_custodian': {
        "description": 'Checks if the Galactic Community has named a Custodian',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'has_galactic_emperor': {
        "description": 'Checks if the Galactic Emperor has taken over',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'has_global_flag': {
        "description": 'Checks if a Global Flag has been set',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'has_government': {
        "description": 'Checks if the country has a specific government type, or any government at all',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_ground_combat': {
        "description": 'Checks if ground combat is taking place on the planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_highest_technology_score': {
        "description": 'Checks if the country has the highest technology score',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_holding': {
        "description": 'Checks if the planet has any, or a specific, holding',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_hp': {
        "description": "Checks the ship's hull points",
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'has_hp_percentage': {
        "description": "Checks a fleet or ship's hit points percentage",
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'has_hyperlane_to': {
        "description": 'Checks if the system has a hyperlane connection to target system',
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'has_intel': {
        "description": 'Checks if the specified intel is available for the target country (stale intel will not return true)',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_intel_level': {
        "description": "Checks the country's intel level on a category for the target country",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_intel_report': {
        "description": 'Checks if the country has intel report of at least the specified level on a category for the target country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_invalid_civic': {
        "description": 'Checks if the current country has a certain civic and if its invalidated',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_job_category': {
        "description": 'Checks if the job has a specific category set.',
        "scopes": ['pop', 'job'],
        "usage_format": 'simple_value',
    },
    'has_job_type': {
        "description": 'Checks if the job has a specific type set.',
        "scopes": ['pop', 'job'],
        "usage_format": 'simple_value',
    },
    'has_leader_flag': {
        "description": 'Checks if the leader has a specific flag',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'has_living_standard': {
        "description": 'Checks if a species/pop group/leader has a particular living standard in their country',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_lock': {
        "description": 'Returns true if the bypass is locked by a dimensional lock',
        "scopes": ['bypass'],
        "usage_format": 'comparison',
    },
    'has_loyalty': {
        "description": "Checks the subject's current loyalty to its overlord.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_max_armor_hp': {
        "description": "Checks the ship's max armor hit points",
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'has_max_hp': {
        "description": "Checks the ship's max hull points",
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'has_megastructure': {
        "description": 'Checks if a country or star has a mega structure.',
        "scopes": ['country', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'has_megastructure_flag': {
        "description": 'Checks if the mega structure has a specific flag',
        "scopes": ['megastructure'],
        "usage_format": 'comparison',
    },
    'has_menace_perk': {
        "description": 'Checks if a country has a specific Menace Perk unlocked.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_migration_access': {
        "description": 'Checks if the country has migration access to target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_migration_control': {
        "description": 'Checks if the pop group is prevented from migrating',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_military_service_type': {
        "description": 'Checks if a species/pop group/leader has a particular military service type in their country',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_mining_station': {
        "description": 'Checks if the planet has an orbital mining station',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_mission': {
        "description": 'Checks if the observation post has a specific mission',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'has_modifier': {
        "description": 'Checks if the scope object has a certain modifier',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'pop_faction', 'federation', 'starbase', 'spy_network', 'espionage_operation', 'astral_rift'],
        "usage_format": 'simple_value',
    },
    'has_monthly_income': {
        "description": "Checks the country's monthly income of a specific resource",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_monthly_loyalty': {
        "description": "Checks the subject's current monthly loyalty gain/loss.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_moon': {
        "description": 'Checks if the planet has a moon',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_most_attunement': {
        "description": "Check if specified patron is scoped country's most attuned patron.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_natural_wormhole': {
        "description": 'Returns true if the scopes system contains at least one natural wormhole',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'has_next_pre_ftl_age': {
        "description": 'Checks if the country is a pre-FTL civilization and has another pre-FTL tech age after its current one',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_non_aggression_pact': {
        "description": 'Check if the country has a non-aggression pact with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_notification_modifier': {
        "description": 'Checks if a country has a certain notification modifier',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_observation_outpost': {
        "description": 'Checks if the planet has an observation post',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_opinion_modifier': {
        "description": 'Checks if the country has a specific opinion modifier towards target country or anyone',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_orbital_bombardment': {
        "description": 'Checks whether a planet is under bombardment',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_orbital_bombardment_stance': {
        "description": 'Checks to what degree the planet is being bombarded',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_orbital_station': {
        "description": 'Checks if the planet has any kind of orbital station',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_origin': {
        "description": 'Checks if scoped country has specified origin',
        "scopes": ['country', 'dlc_recommendation'],
        "usage_format": 'simple_value',
    },
    'has_overlord': {
        "description": "Checks if the target country is the country's overlord",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_owner': {
        "description": 'Checks if the planet is colonized (in planet scope) or the system has an owner (in system scope)',
        "scopes": ['planet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'has_passed_resolution': {
        "description": 'Checks if country has passed a Galactic Community resolution in last x days/months/years',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_patron_aura': {
        "description": 'Check if the scoped country has a psionic aura from given patron.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_patron_counter': {
        "description": 'Checks if the scoped country can increment towards given counter',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_patron_relation': {
        "description": 'Check if the scoped country has established a relation with given patron. The contact state can be specified (completed by default).',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'patron', 'type': 'patron_key / any'}],
    },
    'has_picked_auto_mod_habitability': {
        "description": 'Checks if a pop has already picked an auto modded habitability trait.',
        "scopes": ['pop_group'],
        "usage_format": 'simple_value',
    },
    'has_planet_class': {
        "description": 'Checks if the system has planet of specific class',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'has_planet_flag': {
        "description": 'Checks if the planet has a specific flag',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_planet_modifier': {
        "description": 'Checks if the planet has a specific planet modifier',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_planetary_ascension_tier': {
        "description": "Checks if the planet's ascension tier is as specified:",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_point_of_interest': {
        "description": 'Checks if the scoped country has a specific point of interest in its situation log',
        "scopes": ['planet', 'country', 'ship', 'fleet', 'galactic_object', 'ambient_object'],
        "usage_format": 'comparison',
    },
    'has_policy_flag': {
        "description": 'Checks if the country has a specific policy',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_pop_faction_flag': {
        "description": 'Checks if the pop faction has a specific flag',
        "scopes": ['pop', 'pop_group', 'pop_faction'],
        "usage_format": 'comparison',
    },
    'has_pop_flag': {
        "description": 'Checks if the pop has a specific flag',
        "scopes": ['pop'],
        "usage_format": 'comparison',
    },
    'has_pop_group_flag': {
        "description": 'Checks if the pop group has a specific flag',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'has_population_control': {
        "description": 'Checks if the pop group is prevented from reproducing',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_potential_claims': {
        "description": 'Checks if the country has any potential claims they can make.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_pre_ftl_age': {
        "description": 'Checks if the country is a pre-FTL civilization and is in the specified age',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_pre_ftl_trade': {
        "description": 'Checks if country has pre-ftl trade',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_presence': {
        "description": 'Checks if a system contains any fleets, stations, mega structures or colonized planets.',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'has_psionic_aura': {
        "description": 'Check if the scoped system is affected by any, or a specific type, Psionic Aura.',
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'has_purge_type': {
        "description": 'Checks if a species/pop group/leader has a particular purge type in their country',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_relation_flag': {
        "description": 'Checks if the country has a relation flag towards target country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'who', 'type': 'target'}, {'name': 'flag', 'type': 'flag'}],
    },
    'has_relic': {
        "description": 'Checks if the scoped country has the specified relic',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_research_agreement': {
        "description": 'Checks if two countries have a research agreement.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_research_station': {
        "description": 'Checks if the planet has an orbital research station',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_resource': {
        "description": 'Checks if the planet has a specific amount of a specific resource',
        "scopes": ['planet', 'country', 'deposit', 'astral_rift'],
        "usage_format": 'block',
        "params": [{'name': 'has_resource', 'type': 'value'}],
    },
    'has_ring': {
        "description": 'Checks if the planet has a planetary ring',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'has_rival': {
        "description": "Checks if the target country is the country's rival",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_role': {
        "description": 'Checks ship design has a certain role.',
        "scopes": ['design', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'has_ruler_trait': {
        "description": 'Checks if a leader has a certain ruler trait, even if they are not currently ruler',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'has_same_ethos': {
        "description": 'Checks if a country has the same ethos (complete set of ethics) as a country or pop group',
        "scopes": ['country', 'pop', 'pop_group'],
        "usage_format": 'simple_value',
    },
    'has_secret_fealty_from_subject_of': {
        "description": "Checks if the country has a secret fealty from any of the target country's subjects",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_secret_fealty_with': {
        "description": 'Checks if the country has a secret fealty with the other country (in either direction)',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_sector_flag': {
        "description": 'Checks if the sector has a specific flag',
        "scopes": ['sector'],
        "usage_format": 'comparison',
    },
    'has_sector_type': {
        "description": 'Checks if the sector has a specific type',
        "scopes": ['sector'],
        "usage_format": 'simple_value',
    },
    'has_seen_any_bypass': {
        "description": 'Checks the scoped country has ever encountered a bypass of a given type before',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_seen_specific_bypass': {
        "description": 'Checks the scoped country has encountered a specific bypass before',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_sensor_link_from': {
        "description": 'Checks if country has an active sensor link from another empire',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_shield_hp': {
        "description": "Checks the ship's shield hit points",
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'has_shield_percentage': {
        "description": "Checks a fleet or ship's shield hit points percentage",
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'has_ship_flag': {
        "description": 'Checks if the ship has a specific flag',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'has_ship_owner_type': {
        "description": 'Checks if the ship/fleet/design/growth stage has a specific owner type (country/federation/galactic_community/global_ship_design)',
        "scopes": ['ship', 'fleet', 'design', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'has_situation_flag': {
        "description": 'Checks if the situation has a specific flag',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'has_slavery_type': {
        "description": 'Checks if a species/pop group/leader has a particular slavery type in their country',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'has_special_project': {
        "description": 'Checks if the country has a specific special project available',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_specialist_perk': {
        "description": 'Checks if the agreement has a specific specialist perk active',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'has_species_flag': {
        "description": 'Checks if the species has a specific flag',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'has_specimen': {
        "description": 'Checks if the scoped country has the specified specimen',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_spy_power': {
        "description": 'Compares the infiltration level of the network',
        "scopes": ['spy_network'],
        "usage_format": 'simple_value',
    },
    'has_spynetwork': {
        "description": 'Checks if scoped country has any spynetworks with a value > 0',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_spynetwork_flag': {
        "description": 'Checks if the spy network has a specific flag',
        "scopes": ['spy_network'],
        "usage_format": 'comparison',
    },
    'has_spynetwork_value': {
        "description": 'Compares spy network value of the scoped object',
        "scopes": ['spy_network'],
        "usage_format": 'comparison',
    },
    'has_stage_modifier': {
        "description": 'Checks if the espionage operation has a certain modifier specific for the current stage',
        "scopes": ['espionage_operation', 'astral_rift'],
        "usage_format": 'simple_value',
    },
    'has_stale_intel': {
        "description": 'Checks if the specified intel is stale for the target country (available intel will not return true)',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_star_flag': {
        "description": 'Checks if the solar system has a specific flag',
        "scopes": ['galactic_object', 'dlc_recommendation'],
        "usage_format": 'comparison',
    },
    'has_starbase_building': {
        "description": 'Checks if the starbase has a specific building',
        "scopes": ['starbase'],
        "usage_format": 'simple_value',
    },
    'has_starbase_flag': {
        "description": 'Checks if the starbase has a specific flag',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'has_starbase_module': {
        "description": 'Checks if the starbase has a specific module',
        "scopes": ['starbase'],
        "usage_format": 'simple_value',
    },
    'has_starbase_size': {
        "description": 'Compares the starbase ship size',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'has_status': {
        "description": 'Checks the current status of the scoped ship or fleet.',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'has_storm_flag': {
        "description": 'Checks if the cosmic storm has a specific flag',
        "scopes": ['cosmic_storm'],
        "usage_format": 'comparison',
    },
    'has_strategic_resource': {
        "description": 'Checks if the planet or astral rift has any strategic resource',
        "scopes": ['planet', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'has_subject': {
        "description": 'Checks if the target country is a subject of the current country.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_surveyed_class': {
        "description": 'Checks if the country has surveyed any planet of a specific class',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_tech_option': {
        "description": 'Checks if the country has a tech research option currently available',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_technology': {
        "description": 'Checks if the country has a technology (of at least a specific level)',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_term_value': {
        "description": 'Checks if the agreement has a specific term',
        "scopes": ['agreement'],
        "usage_format": 'comparison',
    },
    'has_total_civic_points': {
        "description": 'Compares the amount of total civic points.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_total_skill': {
        "description": 'Checks if the leader has a specific total (base + effective) experience level',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'has_tradition': {
        "description": 'Checks if a country has the given tradition.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_trait': {
        "description": "Checks if a pop group/leader/species/country's dominant species has a certain trait",
        "scopes": ['country', 'pop', 'pop_group', 'leader', 'species', 'dlc_recommendation'],
        "usage_format": 'comparison',
    },
    'has_truce': {
        "description": 'Checks if the country has a truce with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'has_unlocked_all_traditions': {
        "description": 'Checks if the country has unlocked all traditions',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_unlocked_council_positions': {
        "description": "Compares the amount of unlocked council positions, typically from 'unlock_council_slots'",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_unused_civic_points': {
        "description": 'Compares the amount of unused civic points.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_valid_ai_personality': {
        "description": 'Checks if the country has a valid AI personality',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_valid_civic': {
        "description": 'Checks if the current country has a certain civic and if its validated',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'has_war_flag': {
        "description": 'Checks if the war has a specific flag',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'has_war_goal': {
        "description": 'Checks if a war goal is set. Only works in diplomatic phrases.',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'hidden_progress': {
        "description": "Nullifies progress of triggers inside it and returns progress '0 of 0'",
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'hidden_trigger': {
        "description": 'Hides the tooltip for the triggers within',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'highest_threat': {
        "description": "Checks the country's highest threat against it",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'host_has_dlc': {
        "description": 'Checks if the host has a specific DLC enabled',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'ideal_planet_class': {
        "description": "Checks if the pop group, species or country's ideal planet class is a specific class",
        "scopes": ['country', 'pop', 'pop_group', 'species'],
        "usage_format": 'comparison',
    },
    'if': {
        "description": 'Evaluates the triggers if the display_triggers of the limit are met',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'imperial_authority': {
        "description": 'Checks imperial authority.',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'in_breach_of': {
        "description": 'Checks if the scoped country is in breach of the specified resolution (or would be, were it to be enacted)',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'income': {
        "description": "Checks the country's monthly energy credit income",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'inherits_parent_rights': {
        "description": "Checks if the pop group or species inherits the base species' rights. Returns false if there is no parent species.",
        "scopes": ['pop_group', 'species'],
        "usage_format": 'comparison',
    },
    'inner_radius': {
        "description": 'Checks the inner radius of a solar system',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'intel': {
        "description": "Checks the country's Intel on the target country",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'intel_level': {
        "description": "Checks the country's intel level of target system",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'inverted_switch': {
        "description": 'Switch case for a trigger treated as NOT.',
        "scopes": ['all'],
        "usage_format": 'block',
    },
    'is_action_active': {
        "description": 'Check if a trade action is already active in a trade deal with the specified empire (or with any empire if so specified)',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_active_resolution': {
        "description": 'Checks if the provided Resolution is active in the Community',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'is_advisor_active': {
        "description": 'Checks if a country has an advisor',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_ai': {
        "description": 'Checks if the country is played by the AI',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_alliance_fleet': {
        "description": 'Checks if the scoped fleet is an alliance fleet.',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'is_ambient_object_type': {
        "description": 'Checks if the ambient object is a specific type.',
        "scopes": ['ambient_object'],
        "usage_format": 'comparison',
    },
    'is_angry_to': {
        "description": 'Checks if the country has an angry attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_archetype': {
        "description": 'Checks if species has specified archetype:',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'is_army': {
        "description": 'Checks if the army is the same as target army',
        "scopes": ['army'],
        "usage_format": 'simple_value',
    },
    'is_arrogant_to': {
        "description": 'Checks if the country has a arrogant attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_artificial': {
        "description": 'Checks if the planet is artificial (as set in planet_classes)',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_asteroid': {
        "description": 'Checks if the planet is an asteroid',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_astral_rift_explored': {
        "description": 'Returns true if the astral rift with the given id is or was explored by the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_astral_rift_pool_empty': {
        "description": 'Returns true if the astral rift starting event pool is empty',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_astral_scar': {
        "description": 'Checks if the planet is an astral scar',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_at_war': {
        "description": 'Checks if the country is at war',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_at_war_with': {
        "description": 'Checks if the country is at war with the target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_aura_intensity_level': {
        "description": "Checks the Psionic Aura's intensity level inside the scoped system.",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'is_background_planet': {
        "description": 'Check if a planet is the background planet of a leader',
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'is_being_assimilated': {
        "description": 'Checks if the pop group is being assimilated',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'is_being_integrated_by': {
        "description": 'Checks if a species has a particular species right that enabled sub-species integration',
        "scopes": ['species'],
        "usage_format": 'simple_value',
    },
    'is_being_repaired': {
        "description": 'Checks if the ship/fleet is being repaired',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'is_belligerent_to': {
        "description": 'Checks if the country has a belligerent attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_berserker_to': {
        "description": 'Checks if the country has a berserker attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_blocker': {
        "description": 'Checks if scoped deposit is a blocker-type',
        "scopes": ['deposit'],
        "usage_format": 'comparison',
    },
    'is_bottleneck_system': {
        "description": 'Checks if the system is bottleneck within the range NDefines::NGameplay::SYSTEM_BOTTLENECK_RADIUS',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'is_bridge': {
        "description": 'Checks if a system has the bridge flag or not.',
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'is_bypass_type': {
        "description": 'Returns true if the scope bypass is of type <type>',
        "scopes": ['bypass'],
        "usage_format": 'simple_value',
    },
    'is_capital': {
        "description": "Checks if the planet is its owner's capital",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_capital_system': {
        "description": "Checks if the solar system has its owner's capital",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'is_capitals_connected_through_relay_network': {
        "description": "Checks if current country's capital is connected to target's capital through hyper relay network",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_cardinal_patron': {
        "description": 'Checks if the given patron is cardinal (if it has its own quadrant in the shroud wheel).',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_civilian': {
        "description": 'Checks if the scoped fleet or ship is civilian (as set in ship sizes).',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'simple_value',
    },
    'is_cloaked': {
        "description": 'Checks if a fleet or ship is cloaked.',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'simple_value',
    },
    'is_colonizable': {
        "description": 'Checks if the planet can theoretically be colonized',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_colony': {
        "description": 'Checks if the planet is colonized',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_constructing': {
        "description": 'Checks if the scoped construction ship is building the specified thing',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'is_controlled_by': {
        "description": 'Checks if the planet/ship/fleet/astral rift/starbase is controlled by the target country',
        "scopes": ['planet', 'ship', 'fleet', 'starbase', 'astral_rift'],
        "usage_format": 'simple_value',
    },
    'is_cordial_to': {
        "description": 'Checks if the country has a cordial attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_councilor': {
        "description": 'Checks if scoped leader is a member of the Empire Council or the Ruler',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_councilor_type': {
        "description": 'Checks if the leader holds a specific Councilor type',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_counter_espionage': {
        "description": 'Compares counter espionage of the scoped object',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_country': {
        "description": 'Checks if the country is the same as target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_country_type': {
        "description": 'Checks if the country is a specific type',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_criminal_syndicate': {
        "description": 'Checks if the country is a criminal syndicate',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_crises_allowed': {
        "description": 'Check if current game allows crises',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'is_current_excavator_fleet': {
        "description": 'Checks current excavator fleet.',
        "scopes": ['archaeological_site'],
        "usage_format": 'simple_value',
    },
    'is_current_first_contact_stage': {
        "description": 'Checks if the scoped first contact is at the specified stage.',
        "scopes": ['first_contact'],
        "usage_format": 'comparison',
    },
    'is_current_stage_clues': {
        "description": 'Compares the current stage clues.',
        "scopes": ['archaeological_site', 'first_contact'],
        "usage_format": 'comparison',
    },
    'is_current_stage_difficulty': {
        "description": 'Compares the current stage difficulty.',
        "scopes": ['archaeological_site', 'first_contact', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'is_custodial_to': {
        "description": 'Checks if the country has a custodial attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_custom_capital_location': {
        "description": "Checks if the spatial object is its owner's custom capital location",
        "scopes": ['planet', 'ship', 'fleet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'is_damaged': {
        "description": 'Checks if the ship is damaged',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'is_default_species': {
        "description": 'checks if the scoped country has the target species set a default for its species group.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_defensive_army': {
        "description": 'Checks if the army is defensive',
        "scopes": ['army'],
        "usage_format": 'comparison',
    },
    'is_deposit_type': {
        "description": 'Checks if deposit is specified type',
        "scopes": ['deposit'],
        "usage_format": 'comparison',
    },
    'is_designable': {
        "description": 'Checks if the scoped ship design, ship or fleet (all ships) has a designable ship size.',
        "scopes": ['ship', 'fleet', 'design', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'is_difficulty': {
        "description": "Checks the game's difficulty level (0 to 6, with 0 as Civilian and 6 as Grand Admiral)",
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'is_disabled': {
        "description": 'Checks if the ship/fleet is disabled',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'is_disloyal_to': {
        "description": 'Checks if the country has a disloyal attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_dismissive_to': {
        "description": 'Checks if the country has a dismissive attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_domineering_to': {
        "description": 'Checks if the country has a domineering attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_enigmatic_to': {
        "description": 'Checks if the country has a enigmatic attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_espionage_operation_auto_accept_events': {
        "description": 'Checks if scoped espionage operation accepts events automatically when they are ready',
        "scopes": ['espionage_operation'],
        "usage_format": 'simple_value',
    },
    'is_espionage_operation_chapter': {
        "description": 'Compares the current espionage operation chapter index.',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'is_espionage_operation_days_to_next_die_roll': {
        "description": 'Compares days to next die roll.',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'is_espionage_operation_difficulty': {
        "description": 'Compares the espionage operation difficulty.',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'is_espionage_operation_last_die_result': {
        "description": 'Compares the last dice roll.',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'is_espionage_operation_score': {
        "description": 'Compares the current espionage score.',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'is_espionage_operation_score_no_die': {
        "description": 'Compares the current espionage score excluding the current die roll.',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'is_ethic_represented_on_council': {
        "description": 'Checks if any Councilor has a given ethic.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_event_leader': {
        "description": 'Checks if a leader is a special event leader (defined in create_leader)',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_exact_same_species': {
        "description": 'Checks if the scoped object is originally of the same species, or currently of the exact same species instance, as another object',
        "scopes": ['country', 'ship', 'pop', 'pop_group', 'leader', 'army', 'species'],
        "usage_format": 'simple_value',
    },
    'is_exhibit_active': {
        "description": 'Check if the scoped exhibit is active',
        "scopes": ['exhibit'],
        "usage_format": 'simple_value',
    },
    'is_faction_extorted': {
        "description": 'Checks if the scoped pop faction is extorted',
        "scopes": ['pop_faction'],
        "usage_format": 'comparison',
    },
    'is_federation_leader': {
        "description": 'Checks if the country is the leader of their federation',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_fleet_idle': {
        "description": 'Checks if the ship/fleet is idle',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'is_forced_friendly': {
        "description": 'Checks if the country has been set to be friendly towards target country via set_faction_hostility',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_forced_neutral': {
        "description": 'Checks if the country has been set to be neutral towards target country via set_faction_hostility',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_friendly_to': {
        "description": 'Checks if the country has a friendly attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_from_proxy_war': {
        "description": 'Checks if a war was started by a proxy war',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'is_galactic_community_formed': {
        "description": 'Checks if the Galactic Community has been formed',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'is_galactic_community_member': {
        "description": 'Checks if scoped country is part of the Galactic Community',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_galactic_council_established': {
        "description": 'Checks if the Galactic Council has been established',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'is_galactic_custodian': {
        "description": 'Checks if an empire is Custodian of the Galactic Council',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_galactic_emperor': {
        "description": 'Checks if an empire is the Galactic Emperor',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_garrison': {
        "description": 'Checks if the scoped fleet is a garrison.',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'is_growth_complete': {
        "description": 'Checks if the ship growth progress has maxed out.',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'is_guaranteeing': {
        "description": 'Checks if the country is guaranteeing the independence of target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_harming_relations_with': {
        "description": 'Checks if the country has an envoy sent to the target country to harm relations',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_heir': {
        "description": 'Checks if scoped leader is the Heir of the Empire',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_hidden': {
        "description": 'Checks if the leader is hidden from the player',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_homeworld': {
        "description": "Checks if the planet is its owner's homeworld",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_hostile': {
        "description": 'Checks if the country is hostile towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_hostile_to': {
        "description": 'Checks if the country has a hostile attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_ideal': {
        "description": 'Checks if the planet is ideal (as set in planet_classes)',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_ideal_planet_class': {
        "description": 'Checks if the planet is of the ideal class for target country, species or pop',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_idle': {
        "description": 'Checks if scoped leader is idle',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_immortal': {
        "description": 'Checks if the leader is immortal (either by script effect or species characteristics)',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_imperious_to': {
        "description": 'Checks if the country has a imperious attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_improving_relations_with': {
        "description": 'Checks if the country has an envoy sent to the target country to improve relations',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_in_breach_of_any': {
        "description": 'Checks if an empire is in breach of any galactic resolution.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_in_cluster': {
        "description": 'Checks if the planet/system belongs to a specific spawning cluster',
        "scopes": ['planet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'is_in_combat': {
        "description": 'Checks if the ship/fleet is engaged in combat',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'is_in_domain': {
        "description": 'Checks if the current country in the the domain of the given patron.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_in_federation_with': {
        "description": 'Checks if the country is in a federation with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_in_frontier_space': {
        "description": 'checks if the planet/ship/fleet/system is in frontier space',
        "scopes": ['planet', 'ship', 'fleet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'is_in_frontline': {
        "description": 'Checks if the army is currently in the frontline of a combat',
        "scopes": ['army'],
        "usage_format": 'comparison',
    },
    'is_in_sensor_range': {
        "description": 'Checks if the specified ship, fleet, planet or system can be seen by the scoped country.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_in_sensor_range_of_country': {
        "description": 'Checks if the scoped ship, fleet, planet or system can be seen by the specified country.',
        "scopes": ['planet', 'ship', 'fleet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'is_infertile': {
        "description": 'Checks if the pop group/species has any trait with infertile',
        "scopes": ['pop', 'pop_group', 'species'],
        "usage_format": 'comparison',
    },
    'is_influence_center': {
        "description": 'Checks if the planet is colonized (in planet scope) or the system has an owner (in system scope)',
        "scopes": ['galactic_object'],
        "usage_format": 'unknown',
    },
    'is_inside_border': {
        "description": 'Checks if the planet/ship/fleet/system is inside the borders of the target country',
        "scopes": ['planet', 'ship', 'fleet', 'galactic_object'],
        "usage_format": 'simple_value',
    },
    'is_inside_nebula': {
        "description": 'checks if the planet/ship/fleet/system is inside a nebula',
        "scopes": ['planet', 'ship', 'fleet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'is_inside_storm': {
        "description": 'Checks if the system is inside any storm or a specific storm type.',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'is_ironman': {
        "description": 'Check if current game is running in ironman mode',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'is_job_of_pop_category': {
        "description": "Checks if a job is of a certain pop category. Note that the result for this trigger is not dependent on where it is used - so it's for use in e.g. templated script values.",
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'is_last_acquired_specimen': {
        "description": 'Checks if the specified specimen was the last acquired one',
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'is_last_acquired_specimen_from_trade': {
        "description": 'Checks if the last acquired specimen was acquired through a trade deal',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_last_acquired_specimen_rarity': {
        "description": 'Checks if the last acquired specimen is of the given rarity',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_last_building_changed_capital': {
        "description": 'Checks if the last building queued/dequeued/built/demolished/upgraded is a capital building. If there is no last building set, returns false.',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_last_increased_tech_category': {
        "description": 'Checks if the last increased tech is of the specified category:',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_last_increased_tech_rare': {
        "description": 'Checks if the last increased tech is rare',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_last_increased_tech_repeatable': {
        "description": 'Checks if the last increased tech is repeatable',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_last_lost_relic': {
        "description": 'Checks whether the relic passed in parameter is the last relic lost by the country int the current scope.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_last_received_relic': {
        "description": 'Checks whether the relic passed in parameter is the last relic received by the country int the current scope.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_leader_tier': {
        "description": 'Checks if the tier of the leader is what is provided.',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_leased': {
        "description": 'Checks if the scoped fleet is leased.',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'is_loyal_to': {
        "description": 'Checks if the country has a loyal attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_majority_species': {
        "description": 'Checks if the specified species is the majority species on the current planet.',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'is_market_leader': {
        "description": 'Checks if country owns the galactic market:',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_megastructure_type': {
        "description": "Compares the type of scope's mega structure to a type from the database.",
        "scopes": ['megastructure'],
        "usage_format": 'simple_value',
    },
    'is_mobile': {
        "description": 'Checks if the scoped fleet can move.',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'is_moon': {
        "description": 'Checks if the planet is the moon of another planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_multiplayer': {
        "description": 'Checks if the game is running in multiplayer',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'is_neighbor_of': {
        "description": 'Checks if the country/planet is neighbors with target country',
        "scopes": ['planet', 'country', 'ship', 'fleet', 'galactic_object'],
        "usage_format": 'simple_value',
    },
    'is_neutral_to': {
        "description": 'Checks if the country has a neutral attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_occupied_flag': {
        "description": 'Checks if the planet is under military occupation',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_offer_terms_actual': {
        "description": 'Checks if terms of the special offer between scoped and target countries is not obsolete',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'country'}],
    },
    'is_on_border': {
        "description": 'Checks if the system is on a countries border',
        "scopes": ['galactic_object'],
        "usage_format": 'simple',
    },
    'is_on_galaxy_map': {
        "description": 'Checks if the current player is currently viewing the galaxy map.',
        "scopes": ['planet', 'country', 'ship', 'pop', 'pop_group', 'fleet'],
        "usage_format": 'simple',
    },
    'is_on_market': {
        "description": 'Checks if resource is enabled on the Galactic Market',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'is_on_slave_market': {
        "description": 'Checks if any pops from the scoped pop group are being sold on the slave market:',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'is_orbiting_star': {
        "description": 'Checks if a ship is orbiting a star',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'simple',
    },
    'is_original_owner': {
        "description": "Checks if the target country is the planet's original owner",
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'is_overlord': {
        "description": 'Checks if the country is the overlord of any subject countries',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_overlord_to': {
        "description": 'Checks if the country has an overlord attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_owned_by': {
        "description": 'Checks if the planet/system/army/ship is owned by the target country',
        "scopes": ['megastructure', 'planet', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'army', 'pop_faction', 'starbase', 'deposit', 'sector', 'archaeological_site', 'first_contact', 'spy_network', 'espionage_operation', 'agreement', 'situation'],
        "usage_format": 'simple_value',
    },
    'is_part_of_galactic_council': {
        "description": 'Checks if scoped country is part of the Galactic Council',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_patronizing_to': {
        "description": 'Checks if the country has a patronizing attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_paused': {
        "description": 'Checks if the current player is currently paused.',
        "scopes": ['planet', 'country', 'ship', 'pop', 'pop_group', 'fleet'],
        "usage_format": 'simple',
    },
    'is_permanent_councillor': {
        "description": 'Checks if an empire has a permanent seat on the Galactic Council',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_pirate': {
        "description": 'Checks if the country is a pirate country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_planet': {
        "description": 'Checks if the planet is the same as target planet',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'is_planet_class': {
        "description": 'Checks if the planet is of a certain class',
        "scopes": ['planet', 'dlc_recommendation'],
        "usage_format": 'comparison',
    },
    'is_point_of_interest': {
        "description": 'Checks if the planet/country/ship/system/ambient object has a specific point of interest for a specific event chain for a specific country',
        "scopes": ['planet', 'country', 'ship', 'galactic_object', 'ambient_object'],
        "usage_format": 'comparison',
    },
    'is_pop_category': {
        "description": 'Checks if the pop group has the chosen pop category',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'simple_value',
    },
    'is_pop_faction_type': {
        "description": "Checks the faction's type",
        "scopes": ['pop_faction'],
        "usage_format": 'comparison',
    },
    'is_preferred_patron': {
        "description": "Check scoped country AI's preferred patron.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_preferred_weapons': {
        "description": "Checks if the country's AI prefers weapons using this component tag",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_preventing_anomaly': {
        "description": 'Checks if the planet is prevented from generating anomalies',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_primary_star': {
        "description": "Checks if the planet is the system's primary star",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_primitive': {
        "description": 'Checks if the country is a primitive, pre-FTL civilization',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_proposing_resolution': {
        "description": 'Checks if the scoped country is currently proposing any, or a specific, resolution',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_protective_to': {
        "description": 'Checks if the country has a protective attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_reanimated': {
        "description": 'Checks if the scoped fleet or ship is reanimated (as set in ship sizes).',
        "scopes": ['ship', 'fleet', 'ship_growth_stage'],
        "usage_format": 'simple_value',
    },
    'is_researching_any_technology': {
        "description": 'Checks if the country is currently researching any technology.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_researching_special_project': {
        "description": 'Checks if the country is currently researching a specific special project',
        "scopes": ['country', 'leader'],
        "usage_format": 'comparison',
    },
    'is_researching_technology': {
        "description": 'Checks if the country is currently researching a specific technology',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_rim_system': {
        "description": 'Checks if the system is on the galactic rim',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'is_ringworld': {
        "description": 'Checks if the planet is a ringworld',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_rival': {
        "description": 'Checks if the country has a rival attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_robot_pop': {
        "description": 'Checks if the pop is a robot',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'is_robot_pop_group': {
        "description": 'Checks if the pop group is a robot',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'is_robotic': {
        "description": 'Check if the species in the scope is a robot species or not',
        "scopes": ['species'],
        "usage_format": 'simple_value',
    },
    'is_ruler': {
        "description": 'Checks if scoped leader is the Ruler of the Empire',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'is_running_espionage_operation': {
        "description": 'Checks if the scope is currently running an espionage operation',
        "scopes": ['country', 'spy_network'],
        "usage_format": 'simple_value',
    },
    'is_same_empire': {
        "description": 'Checks if the country is the same as another, target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_same_species': {
        "description": 'checks if the scoped object is of the same species as another object',
        "scopes": ['country', 'ship', 'pop', 'pop_group', 'leader', 'army', 'species'],
        "usage_format": 'simple_value',
    },
    'is_same_species_class': {
        "description": 'Checks if the pop group/country is of the same species class as another pop group/country',
        "scopes": ['country', 'ship', 'pop', 'pop_group', 'leader', 'army', 'species'],
        "usage_format": 'simple_value',
    },
    'is_same_value': {
        "description": 'Checks if the current scope and the target scope are the same thing',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'is_sapient': {
        "description": 'Checks if the pop group or species is sapient',
        "scopes": ['pop_group', 'species'],
        "usage_format": 'comparison',
    },
    'is_scope_set': {
        "description": 'Checks if the scope is set for appropriate target',
        "scopes": ['planet', 'country', 'ship', 'pop', 'pop_group', 'fleet'],
        "usage_format": 'simple_value',
    },
    'is_scope_type': {
        "description": 'Checks currently in the specified scope:',
        "scopes": ['all'],
        "usage_format": 'unknown',
    },
    'is_scope_valid': {
        "description": 'Checks if the current scope is valid',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'is_scripted_terraforming': {
        "description": 'Checks if the planet is currently being terraformed manually by script',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_sector_capital': {
        "description": "Checks if the planet is its sector's capital",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_ship': {
        "description": 'Checks if the ship is the same as target ship',
        "scopes": ['ship'],
        "usage_format": 'simple_value',
    },
    'is_ship_category': {
        "description": 'Checks if the ship/fleet/design is a specific ship category',
        "scopes": ['ship', 'fleet', 'ship_growth_stage'],
        "usage_format": 'simple_value',
    },
    'is_ship_class': {
        "description": 'Checks if the ship/fleet/design is a specific class',
        "scopes": ['ship', 'fleet', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'is_ship_size': {
        "description": 'Checks if the ship/fleet/design is a specific ship size',
        "scopes": ['ship', 'fleet', 'design', 'starbase', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'is_site_at_stage': {
        "description": 'Compares the current stage index.',
        "scopes": ['archaeological_site'],
        "usage_format": 'comparison',
    },
    'is_site_completed': {
        "description": 'Checks if the site has been completed.',
        "scopes": ['archaeological_site', 'first_contact'],
        "usage_format": 'comparison',
    },
    'is_site_current_stage_score': {
        "description": 'Compares the current stage discovery score.',
        "scopes": ['archaeological_site', 'first_contact', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'is_site_current_stage_score_no_die': {
        "description": 'Compares the current stage discovery score excluding the current die roll.',
        "scopes": ['archaeological_site', 'first_contact', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'is_site_days_to_next_die_roll': {
        "description": 'Compares days to next die roll.',
        "scopes": ['archaeological_site', 'first_contact'],
        "usage_format": 'comparison',
    },
    'is_site_last_die_result': {
        "description": 'Compares the last dice roll.',
        "scopes": ['archaeological_site', 'first_contact', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'is_site_last_excavator': {
        "description": 'Checks last excavating country.',
        "scopes": ['archaeological_site'],
        "usage_format": 'simple_value',
    },
    'is_site_locked': {
        "description": 'Checks if an archaeological site has progression locked or not.',
        "scopes": ['archaeological_site'],
        "usage_format": 'comparison',
    },
    'is_site_type': {
        "description": 'Checks the type of the site.',
        "scopes": ['archaeological_site'],
        "usage_format": 'simple_value',
    },
    'is_site_under_excavation': {
        "description": 'Checks if the site is currently being excavated.',
        "scopes": ['archaeological_site'],
        "usage_format": 'comparison',
    },
    'is_situation_type': {
        "description": 'Checks if the scoped situation is a certain type.',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'is_space_fauna': {
        "description": 'Checks if the scoped fleet or ship is space fauna (as set in ship sizes).',
        "scopes": ['ship', 'fleet', 'design', 'ship_growth_stage'],
        "usage_format": 'simple_value',
    },
    'is_species': {
        "description": "Checks if the pop group/country's founder species is of a specific pre-defined species",
        "scopes": ['country', 'pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'is_species_class': {
        "description": "Checks if the pop group/country's founder species is a specific species class",
        "scopes": ['country', 'pop', 'pop_group', 'species', 'dlc_recommendation'],
        "usage_format": 'comparison',
    },
    'is_specimen_category': {
        "description": 'Checks if the specified specimen contained by the scoped exhibit is of indicated collection category',
        "scopes": ['exhibit'],
        "usage_format": 'simple_value',
    },
    'is_specimen_rarity': {
        "description": 'Checks if the specified specimen contained by the scoped exhibit is of indicated rarity',
        "scopes": ['exhibit'],
        "usage_format": 'simple_value',
    },
    'is_spynetwork_level': {
        "description": 'Compares spy network level of the scoped object',
        "scopes": ['spy_network'],
        "usage_format": 'comparison',
    },
    'is_spynetwork_max_level': {
        "description": 'Compares spy network max level of the scoped object',
        "scopes": ['spy_network'],
        "usage_format": 'comparison',
    },
    'is_star': {
        "description": 'Checks if the planet is a star',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_star_class': {
        "description": 'Checks if the system/planet(star) is of a certain class',
        "scopes": ['planet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'is_starbase_building_building': {
        "description": 'Checks if the starbase is currently building a specific building',
        "scopes": ['starbase'],
        "usage_format": 'simple_value',
    },
    'is_starbase_building_module': {
        "description": 'Checks if the starbase is currently building a specific module',
        "scopes": ['starbase'],
        "usage_format": 'simple_value',
    },
    'is_starbase_type': {
        "description": 'Checks if scoped starbase would evaluate to be a certain starbase_type for its current owner.',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'is_storm_active_in_storm_sector': {
        "description": 'Checks if there is currently a storm active within the storm sector that this system belongs to. The galaxy is split up in multiple storm sectors, which we use to avoid spawning storms too close to each other.',
        "scopes": ['galactic_object'],
        "usage_format": 'simple',
    },
    'is_storm_type': {
        "description": "Checks if the scoped Cosmic Storm's type is equal to <type>",
        "scopes": ['cosmic_storm'],
        "usage_format": 'simple_value',
    },
    'is_subject': {
        "description": 'Checks if the country is a subject of any other country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_subspecies': {
        "description": 'Checks if the pop group/country/species is a subspecies of the target species',
        "scopes": ['country', 'pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'simple_value',
    },
    'is_surveyed': {
        "description": 'Checks if the planet/astral_rift/system has been survey by target country',
        "scopes": ['planet', 'galactic_object', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'is_system_connected_to_relay_network': {
        "description": 'Checks if target system is connected to own capitals through hyper relay network',
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'is_terraformed': {
        "description": 'Checks if the planet has ever been terraformed',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_terraforming': {
        "description": 'Checks if the planet is currently being terraformed',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_threatened_to': {
        "description": 'Checks if the country has a threatened attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_total_war': {
        "description": 'Checks if a war is a total war',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'is_tutorial_level': {
        "description": "Checks the country's tutorial level (0 off, 1 limited, 2 full)",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'is_under_colonization': {
        "description": 'Checks if the planet is being colonized',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'is_under_open_technological_enlightenment': {
        "description": 'Checks if country is under open technological enlightenment',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_under_societal_enlightenment': {
        "description": 'Checks if country is under societal enlightenment',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_under_stratified_technological_enlightenment': {
        "description": 'Checks if country is under stratified technological enlightenment',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_unfriendly_to': {
        "description": 'Checks if the country has an unfriendly attitude towards target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'is_upgrading': {
        "description": "Checks if the scope's fleet or mega structure is currently upgrading.",
        "scopes": ['megastructure', 'fleet'],
        "usage_format": 'simple_value',
    },
    'is_valid': {
        "description": 'Checks to see if target scope is valid for the country/planet/army',
        "scopes": ['planet', 'country', 'army'],
        "usage_format": 'comparison',
    },
    'is_variable_set': {
        "description": 'Checks if the specified variable is set on the current scope. Use to avoid unset variables errors',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'army', 'ambient_object', 'species', 'bypass', 'pop_faction', 'war', 'federation', 'starbase', 'deposit', 'sector', 'archaeological_site', 'first_contact', 'spy_network', 'espionage_operation', 'espionage_asset', 'agreement', 'situation', 'astral_rift', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'is_voting_on_resolution': {
        "description": 'Checks if the Galactic Community is currently voting on any, or a specific, resolution',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'is_war_leader': {
        "description": 'Checks if the country leads in a war',
        "scopes": ['country', 'pop_faction'],
        "usage_format": 'comparison',
    },
    'is_war_participant': {
        "description": 'Checks if target country is participating in the war on the specified side',
        "scopes": ['country', 'war'],
        "usage_format": 'comparison',
    },
    'is_within_borders_of': {
        "description": 'Checks if the planet/system/fleet/ship is within the borders of the target country',
        "scopes": ['planet', 'ship', 'fleet', 'galactic_object'],
        "usage_format": 'simple_value',
    },
    'is_years_since_community_formation': {
        "description": "Compare with number of years since the formation of the Galactic Community. NOTE: A negative value means it hasn't been formed yet!",
        "scopes": ['all'],
        "usage_format": 'unknown',
    },
    'is_years_since_council_establishment': {
        "description": "Compares with number of years since the establishment of the Galactic Council. NOTE: A negative value means it hasn't been established yet!",
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'last_activated_relic': {
        "description": 'Checks if the specified relic was the last activated one',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'last_building_changed': {
        "description": 'Checks if the last building queued/unqueued/built/demolished/upgraded was the specified building',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'last_changed_policy': {
        "description": 'Checks if the last policy changed by the country was a specific policy',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'last_changed_species_rights_type': {
        "description": 'Check if the last species rights type changed for the pop group or leader is of type type',
        "scopes": ['pop', 'pop_group', 'leader'],
        "usage_format": 'simple_value',
    },
    'last_completed_special_project_has_research_cost': {
        "description": 'Checks if the last completed special project by the scoped country has a research cost.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'last_district_changed': {
        "description": 'Checks if the last district queued/unqueued/built/demolished/upgraded was the specified district',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'last_increased_tech': {
        "description": "Checks if the country's last researched technology was a specific tech",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'last_lost_relic': {
        "description": 'Checks if the specified relic was the last lost one',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'last_received_relic': {
        "description": 'Checks if the specified relic was the last received one',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'last_resolution_category_changed': {
        "description": 'Checks if the last resolution the Galactic Community voted on or otherwise passed or failed is part of the specified category.',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'last_resolution_changed': {
        "description": 'Checks if the last resolution the Galactic Community voted on or otherwise passed or failed is as specified.',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'leader_age': {
        "description": "Checks the scope leader's age",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'leader_class': {
        "description": 'Checks if the leader is of a specific class',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'leader_lifespan': {
        "description": "Checks the scope leader's lifespan",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'leader_years_of_service': {
        "description": "Checks the scope leader's years of service",
        "scopes": ['leader'],
        "usage_format": 'unknown',
    },
    'lease_days': {
        "description": 'Checks the number of days left before fleet lease contract is finished',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'lgate_enabled': {
        "description": 'Checks if L-Gates are enabled in game setup',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'local_has_dlc': {
        "description": 'Checks if the local player has a specific DLC enabled',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'log': {
        "description": 'Prints a message to game.log for debugging purposes',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'logged_in_to_pdx_account': {
        "description": '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 state',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'market_resource_price': {
        "description": 'Checks market price of a specific resource for the current country:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'resource', 'type': 'resource_name'}, {'name': 'amount', 'type': 'value'}],
    },
    'max_naval_capacity': {
        "description": "Checks the country's max naval capacity in absolute numbers",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'max_starbase_capacity': {
        "description": "Checks the country's max starbase capacity",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'member_of_faction': {
        "description": 'Checks if the pop group belongs to any, or a specific, faction',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'mid_game_years_passed': {
        "description": 'Checks the number of in-game years passed since the mid-game start date',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'mission_progress': {
        "description": 'Checks if the observation post has achieved specific progress in a mission',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'monthly_intensity_increase': {
        "description": "Checks the Psionic Aura's monthly intensity increase inside the scoped system.",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'must_research': {
        "description": 'Checks if the debris is set as "must research"',
        "scopes": ['debris'],
        "usage_format": 'comparison',
    },
    'must_scavenge': {
        "description": 'Checks if the debris is set as "must scavenge"',
        "scopes": ['debris'],
        "usage_format": 'comparison',
    },
    'name_list_category': {
        "description": 'Checks if a specific name list is used for the a species during empire creation',
        "scopes": ['dlc_recommendation'],
        "usage_format": 'simple',
    },
    'nand': {
        "description": 'An inverted AND trigger',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'nb_pop_exact_species': {
        "description": 'Checks the amount of pops in the planet that have the exact species.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'species', 'type': 'target'}, {'name': 'value', 'type': 'value'}],
    },
    'nor': {
        "description": 'An inverted OR trigger',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'not': {
        "description": 'An inverted trigger',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_active_gateways': {
        "description": 'Checks the number of active gateways in the galaxy',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'num_ai_empires_setting': {
        "description": 'Checks the number of AI empires defined in setup',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'num_armies': {
        "description": "Checks the country's or planet's number of armies",
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'num_ascension_perk_slots': {
        "description": 'Compares the number of unlocked ascension perk slots of the scope with the given value',
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'num_ascension_perks': {
        "description": 'Compares the number of AP points the country has spent with the given value',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_assigned_jobs': {
        "description": 'Checks the number of pops the planet or country has that work a specific job.',
        "scopes": ['planet', 'country', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'num_associates': {
        "description": 'Checks number of associates in scoped federation',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'num_asteroid_belts': {
        "description": "Checks the system's number of asteroid belts",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'num_buildings': {
        "description": 'Checks the number the planet has of any, or a specific, building',
        "scopes": ['planet', 'country', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'num_candidate_supported': {
        "description": 'Compares the number of times an election candidate was supported.',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'num_closed_borders': {
        "description": 'Checks the number of countries the country has closed borders to',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_commercial_pacts': {
        "description": 'Checks the number of commercial pacts the current country has.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_communications': {
        "description": "Checks the country's number of established communications",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_cosmic_storm_early_game_spawn_chance_scale_setting': {
        "description": 'Checks the spawn storm chance scale in early game for cosmic storms',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_cosmic_storm_early_game_spawn_max_cap_setting': {
        "description": 'Checks the spawn storm max cap in early game for cosmic storms',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_cosmic_storm_late_game_spawn_chance_scale_setting': {
        "description": 'Checks the spawn storm chance scale in late game for cosmic storms',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_cosmic_storm_late_game_spawn_max_cap_setting': {
        "description": 'Checks the spawn storm max cap in late game for cosmic storms',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_cosmic_storm_mid_game_spawn_chance_scale_setting': {
        "description": 'Checks the spawn storm chance scale in mid game for cosmic storms',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_cosmic_storm_mid_game_spawn_max_cap_setting': {
        "description": 'Checks the spawn storm max cap in mid game for cosmic storms',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_cosmic_storm_spawn_cooldown_scale_setting': {
        "description": 'Checks the spawn storm cooldown scale for cosmic storms',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_cosmic_storms': {
        "description": 'Checks the amount of currently active cosmic storms.',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'num_cosmic_storms_encountered': {
        "description": 'Returns the amount of all storms the country was affected by. Storms that leave stop affecting the country to return to it later are counted as multiple',
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'num_council_positions': {
        "description": 'Compares the number of council positions in the Galactic Community.',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'num_custom_1_techs': {
        "description": "Checks the country's number of researched custom_1 technologies",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_custom_2_techs': {
        "description": "Checks the country's number of researched custom_2 technologies",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_custom_3_techs': {
        "description": "Checks the country's number of researched custom_3 technologies",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_dangerous_techs': {
        "description": "Checks the country's number of researched dangerous technologies",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_defensive_pacts': {
        "description": 'Checks the number of defensive pacts the current country has.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_deposits': {
        "description": "Checks the planet's total number of deposits",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_districts': {
        "description": 'Checks the number the planet has of any, or a specific, district',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'num_empires': {
        "description": 'Checks the number of regular empires in the galaxy',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_energy': {
        "description": "Checks the planet's total amount of energy",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_engineering': {
        "description": "Checks the planet's total amount of engineering research",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_envoys_to_federation': {
        "description": "Checks the country's number of envoys sent to its federation",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_envoys_to_galcom': {
        "description": "Checks the country's number of envoys sent to the galactic community",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_espionage_assets': {
        "description": 'Compares the number of assets associated with the scope object.',
        "scopes": ['spy_network', 'espionage_operation'],
        "usage_format": 'simple_value',
    },
    'num_ethics': {
        "description": "Checks the country/pop group's number of ethics",
        "scopes": ['country', 'pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'num_fallen_empires': {
        "description": 'Checks the number of fallen empires in the galaxy',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_fallen_empires_setting': {
        "description": 'Checks the number of fallen empires defined in setup',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'num_favors': {
        "description": 'Check amount of favors that scoped country can collect from target country:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'country'}],
    },
    'num_fleets': {
        "description": "Checks the country's number of fleets",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_free_districts': {
        "description": 'Checks the number of available slots the planet has of any, or a specific, district',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_galaxy_systems': {
        "description": 'Checks number of star systems in the galaxy',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'num_guaranteed_colonies': {
        "description": 'Checks the number of guaranteed colonies defined in setup',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'num_guarantees': {
        "description": 'Checks the number of empires the current country is guaranteeing.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_housing': {
        "description": "Checks the planet's total housing",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_insight_techs': {
        "description": "Checks the country's number of researched insight technologies",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_killed_ships': {
        "description": "Checks how many of target country's ships that the country has destroyed",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_leader_traits': {
        "description": 'Checks the number of leader traits or total tiers of traits for a specific leader',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'num_marauder_empires_to_spawn': {
        "description": 'Checks the number of marauder empires specified by the galaxy setup',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'num_members': {
        "description": 'Checks number of members in scoped federation',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'num_migration_pacts': {
        "description": 'Checks the number of migration pacts a country has',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_minerals': {
        "description": "Checks the planet's total amount of minerals",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_modifiers': {
        "description": "Checks the planet's number of modifiers",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_moons': {
        "description": "Checks the planet's number of moons",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_negative_traits': {
        "description": "Checks the country/pop/leader/species' number of negative traits (traits with a cost strictly lower than 0 count as negative)",
        "scopes": ['country', 'pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'num_neighbor_systems': {
        "description": 'Checks the number of neighbor systems within a specific distance',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'limit', 'type': 'triggers'}, {'name': 'max_distance', 'type': 'value'}, {'name': 'body', 'type': 'triggers'}],
    },
    'num_non_aggression_pacts': {
        "description": 'Checks the number of non-aggression pacts the current country has.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_owned_active_gateways': {
        "description": 'Checks the number of active gateways owned by the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_owned_leaders': {
        "description": "Checks the country's number of owned (recruited) non-envoy leaders (includes the ruler)",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_owned_planets': {
        "description": "Checks the country's or sector's number of owned planets",
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'num_owned_relics': {
        "description": 'Checks the number of relics owned by the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_physics': {
        "description": "Checks the planet's total amount of physics research",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_planetary_ascension_tiers': {
        "description": 'Checks if the empire has activated as many ascension tiers as specified:',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_planets_in_system': {
        "description": "Checks the solar system's total number of planets",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'num_pops_assigned_to_job': {
        "description": 'Checks the number of pops assigned to the job (in total or from a specific pop group)',
        "scopes": ['pop', 'job'],
        "usage_format": 'block',
        "params": [{'name': 'pop_group', 'type': 'target'}],
    },
    'num_positive_traits': {
        "description": "Checks the country/pop/leader/species' number of positive traits (traits with a cost strictly greater than 0 count as positive)",
        "scopes": ['country', 'pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'num_proxy_war': {
        "description": 'Checks the number of started proxy wars by the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_rare_techs': {
        "description": "Checks the country's number of researched rare technologies",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_repeatable_techs': {
        "description": "Checks the country's number of researched repeatable technologies",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_research_agreements': {
        "description": 'Checks the number of research agreements a country has',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_researched_techs': {
        "description": "Checks the country's number of researched technologies",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_researched_techs_of_tier': {
        "description": "Checks the country's number of researched technologies of a certain tier",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_rivals': {
        "description": 'Checks the number of rivalries a country has',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_sectors': {
        "description": 'Counts the number of sectors owned by the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_ships': {
        "description": "Checks the country/fleet's number of ships",
        "scopes": ['country', 'ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'num_ships_in_debris': {
        "description": 'Checks the number of ships of a ship size in debris',
        "scopes": ['debris'],
        "usage_format": 'comparison',
    },
    'num_society': {
        "description": "Checks the planet's total amount of society research",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_species': {
        "description": '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.',
        "scopes": ['planet', 'country', 'pop_faction'],
        "usage_format": 'comparison',
    },
    'num_starbases': {
        "description": 'Counts the number of starbases owned by the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_storm_exploitation_buildings': {
        "description": 'Checks the number of cosmic storm exploitation buildings with positive effects on a country',
        "scopes": ['planet', 'country'],
        "usage_format": 'simple',
    },
    'num_support_independence': {
        "description": 'Checks the number of empires the current country is supporting the independence of.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_taken_planets': {
        "description": 'Checks how many planets the country has taken from target country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_tradition_categories': {
        "description": 'Checks number of tradition categories the country has picked',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_trait_points': {
        "description": "Checks the country/pop group/leader/species' number of traits points spent",
        "scopes": ['country', 'pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'num_traits': {
        "description": "Checks the country/pop group/leader/species' number of traits",
        "scopes": ['country', 'pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'num_truces': {
        "description": 'Checks the number of truces country has',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_uncleared_blockers': {
        "description": "Checks the planet's total amount of uncleared blockers",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'num_unemployed': {
        "description": 'Checks the number of unemployed pops on the planet or in the entire country',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'num_unique_cosmic_storms_encountered': {
        "description": 'Returns the amount of all unique storms the country was affected by. Storms that leave stop affecting the country to return to it later are counted as one',
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'num_unique_species': {
        "description": '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.',
        "scopes": ['planet', 'country', 'pop_faction'],
        "usage_format": 'comparison',
    },
    'num_vivarium_slots': {
        "description": "Returns the country's used Vivarium slots",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'num_zones': {
        "description": 'Checks the number the planet has of any, or a specific, zone',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'off_war_exhaustion_sum': {
        "description": "Checks the country's total war exhaustion for all offensive wars",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'opinion': {
        "description": "Checks the country's opinion of the target country",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'opinion_level': {
        "description": "Checks the country's opinion level of the target country (with support for comparison operators)",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'opposing_ethics_divergence': {
        "description": "Checks how far removed the country/pop group's ethos is from target's",
        "scopes": ['country', 'pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'or': {
        "description": 'At least one entry inside the trigger must be true',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'organic_pops_last_month_growth': {
        "description": 'Checks how many organic pops the planet gained last month (through growth and assembly).',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'original_owner': {
        "description": 'Checks if the planet is still owned by its first colonizer',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'owns_any_bypass': {
        "description": 'Checks if the scoped country controls any system containing a bypass of a specific type',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'patron_has_all_accords_unlocked': {
        "description": 'Check if specified patron has unlocked every accord and every covenant power.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'perc_communications_with_playable': {
        "description": "Checks the country's percentage of communications with playable empires",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'planet_crime': {
        "description": 'Compares the crime present on the planet with the given value',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'planet_devastation': {
        "description": "Checks the planet's devastation",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'planet_garrison_strength': {
        "description": "Checks the planet's army strength (as calculated by all armies including offensive or defensive owned by its current controller). Warning: moderately intensive trigger:",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'planet_happiness_above_threshold': {
        "description": "Checks if a planet's happiness is past a given threshold. Can be used in a scoped system, then it returns the sum of every planets' happiness past the given threshold.",
        "scopes": ['planet', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'planet_resource_compare': {
        "description": 'Checks specific resource value for scoped planet. Warning: performance-intensive trigger!',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'resource', 'type': 'resource_name'}],
    },
    'planet_size': {
        "description": "Checks the planet's size",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'planet_stability': {
        "description": 'Compares the stability present on the planet with the given value',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'pop_amount_percentage': {
        "description": 'Checks the percentage of pops in the scope that fulfill the specified criteria',
        "scopes": ['planet', 'country', 'pop_faction', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'pop_group_crime': {
        "description": "Checks the raw crime value of a pop group. When scope is a colony, checks the sum of every pop group's raw crime in the planet.",
        "scopes": ['planet', 'pop_group'],
        "usage_format": 'comparison',
    },
    'pop_group_has_ethic': {
        "description": 'Checks if the pop group has a specific ethos',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'pop_group_has_happiness': {
        "description": 'Checks if the current pop group has happiness or not.',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'pop_group_has_trait': {
        "description": 'Checks if the pop group has a specific trait',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'pop_group_size': {
        "description": 'Checks if the size of the pop group is according to the argument.',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'pop_has_ethic': {
        "description": 'Checks if the pop has a specific ethos',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'pop_has_happiness': {
        "description": 'Checks if the current pop has happiness or not.',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'pop_maintenance_cost': {
        "description": 'Checks the maintenance costs of a pop group',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'position_on_current_resolution': {
        "description": 'Checks if the current country is supporting, opposing or abstaining from the currently proposed galcom resolution.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'position_on_last_resolution': {
        "description": 'Checks if the current country was supporting, opposing or abstaining from the last proposed galcom resolution.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'recently_lost_war': {
        "description": "Checks if the country recently lost a war ('recently' meaning recent enough to have a truce)",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'relative_encryption_decryption': {
        "description": '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.',
        "scopes": ['country', 'spy_network', 'espionage_operation'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'country'}],
    },
    'relative_power': {
        "description": 'Compares relative power between two countries. relative_power = { who = <target country> category = <fleet/economy/technology/all> value ><= <pathetic/inferior/equivalent/superior/overwhelming>',
        "scopes": ['country', 'federation'],
        "usage_format": 'simple',
    },
    'resource_expenses_compare': {
        "description": 'Checks specific resource expenses value for the country scope:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'resource', 'type': 'resource_name'}, {'name': 'category', 'type': 'category_name'}],
    },
    'resource_income_compare': {
        "description": 'Checks specific resource income value for the country scope (note: checks profit minus loss, not revenue):',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'resource', 'type': 'resource_name'}],
    },
    'resource_income_to_expenditure_balance_ratio': {
        "description": "Checks ratio between the country's income and expenditures for a specific resource. E.g. if it makes 80 energy and spends 100, its ratio is 0.8.",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'resource', 'type': 'resource_name'}, {'name': 'category', 'type': 'category_name'}],
    },
    'resource_revenue_compare': {
        "description": 'Checks specific resource revenue value for the country scope:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'resource', 'type': 'resource_name'}, {'name': 'category', 'type': 'category_name'}],
    },
    'resource_stockpile_compare': {
        "description": 'Checks specific resource stockpile for the country scope:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'resource', 'type': 'resource_name'}, {'name': 'mult', 'type': 'variable'}],
    },
    'reverse_has_relation_flag': {
        "description": 'Checks if the target country has a relation flag towards the country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'who', 'type': 'target'}, {'name': 'flag', 'type': 'flag'}],
    },
    'running_balance': {
        "description": "Checks the country's running energy credit balance",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'scientist_count': {
        "description": "Checks the country's number of scientists",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'ship_size_cost_resource_percent': {
        "description": 'Retrieves the percentage of usage of a given resource in the ship size. If the ship size cost is 100 food and 300 minerals, the value when checking for food is 0.25',
        "scopes": ['ship', 'ship_growth_stage'],
        "usage_format": 'simple_value',
    },
    'ship_size_multiplier': {
        "description": 'Compares ship size multiplier of the scoped design or ship.',
        "scopes": ['ship', 'ship_growth_stage'],
        "usage_format": 'comparison',
    },
    'simple_progress': {
        "description": "Hides the progress of the triggers inside and returns progresses '0 of 1' or '1 of 1'",
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'situation_monthly_progress': {
        "description": "Checks if the scoped situation's monthly progress is a certain value. Returns the cached value from the last monthly tick.",
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'situation_progress': {
        "description": "Checks if the scoped situation's progress is a certain value.",
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'specialist_tier': {
        "description": 'Checks the specialization tier of the subject of the agreement.',
        "scopes": ['agreement'],
        "usage_format": 'comparison',
    },
    'species_gender': {
        "description": 'Checks what gender settings the species allows.',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'species_has_happiness_with_owner': {
        "description": 'Checks if the current species has happiness or not when owned by a specified country.',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'species_modifiers_only': {
        "description": 'only checks trait modifiers, trait triggered pop modifiers, and species habitability)',
        "scopes": ['planet', 'pop_group'],
        "usage_format": 'unknown',
    },
    'species_portrait': {
        "description": "Checks if the species (or pop group/empire's dominant species) uses a certain portrait",
        "scopes": ['country', 'pop', 'pop_group', 'species'],
        "usage_format": 'comparison',
    },
    'starbase_buildable_is_in_queue_before': {
        "description": 'Check if the first buildable is in the starbase building queue before the second buildable (for prerequisites, mostly)',
        "scopes": ['starbase'],
        "usage_format": 'block',
        "params": [{'name': 'first', 'type': 'buildable'}, {'name': 'second', 'type': 'buildable'}],
    },
    'starting_system': {
        "description": 'Checks if the system is the starting system for any country',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'stored_engineering_points': {
        "description": "Checks the country's amount of stored engineering research",
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'stored_physics_points': {
        "description": "Checks the country's amount of stored physics research",
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'stored_society_points': {
        "description": "Checks the country's amount of stored society research",
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'subject_can_diplomacy': {
        "description": 'Checks if the current country is allowed by its overlord to take diplomatic action',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'subjects': {
        "description": "Checks the country's number of subjects",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'success_text': {
        "description": "For 'desc={trigger={' use. Shows custom text when the associated trigger passes.",
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'text', 'type': 'text'}, {'name': 'body', 'type': 'triggers'}],
    },
    'support': {
        "description": "Checks the support level of a faction, or that of a leader's faction(s)",
        "scopes": ['leader', 'pop_faction'],
        "usage_format": 'comparison',
    },
    'switch': {
        "description": 'Switch case for a trigger',
        "scopes": ['all'],
        "usage_format": 'block',
    },
    'tech_unlocked_ratio': {
        "description": 'Checks the relative amount of already-researched tech between the country and target country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'terraformed_by': {
        "description": 'Checks if planet is terraformed by country.',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'text': {
        "description": "For 'desc={trigger={' use. Shows custom text",
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'their_opinion': {
        "description": "Checks target country's opinion value of the current country",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'timed_flag_days_left': {
        "description": 'Checks the scoped object for the remaining days left of the specified timed flag',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'army', 'ambient_object', 'species', 'pop_faction', 'war', 'federation', 'starbase', 'deposit', 'sector', 'no_scope', 'archaeological_site', 'first_contact', 'spy_network', 'espionage_operation', 'espionage_asset', 'agreement', 'situation', 'astral_rift'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'flag'}],
    },
    'total_country_workforce_with_job_tag': {
        "description": 'Checks how much workforce that has jobs with all given tags in a country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'total_system_workforce_with_job_tag': {
        "description": 'Checks how much workforce that has jobs with all given tags in a system',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'total_workforce_with_job_tag': {
        "description": 'Checks how much workforce that has jobs with all given tags in a planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'trait_has_all_tags': {
        "description": 'Checks if a trait has all tags in the list',
        "scopes": ['trait'],
        "usage_format": 'comparison',
    },
    'trait_has_any_tag': {
        "description": 'Checks if a trait has at least one tag from the list',
        "scopes": ['trait'],
        "usage_format": 'comparison',
    },
    'trait_of_species': {
        "description": 'checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'traits_available_for_species': {
        "description": 'checks whether the enclosed triggers return true for X/all of them',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'block',
        "params": [{'name': 'count', 'type': 'num/all/variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'triumph_days_left': {
        "description": 'Checks the number of days left for the Relics Triumph',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'trust': {
        "description": "Checks the country's trust of the target country",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'upgrade_days_left': {
        "description": 'Checks how many days an upgrading megastructure will take to complete its upgrade.',
        "scopes": ['megastructure'],
        "usage_format": 'comparison',
    },
    'uplift_is_archetype': {
        "description": 'Checks if the uplifted version of the species has the specified archetype:',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'used_defense_platform_capacity_percent': {
        "description": "Checks the starbases's used defense platform capacity in relative terms (0.00-1.00)",
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'used_favors_on_last_resolution': {
        "description": "Checks scoped country's called in favors used to pass the last resolution",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'used_naval_capacity_integer': {
        "description": "Checks the country's used naval capacity in absolute numbers",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'used_naval_capacity_percent': {
        "description": "Checks the country's used naval capacity in relative terms (0.00-1.00)",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'used_starbase_capacity_integer': {
        "description": "Checks the country's used starbase capacity in absolute numbers",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'used_starbase_capacity_percent': {
        "description": "Checks the country's used starbase capacity in relative terms (0.00-1.00)",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'uses_district_set': {
        "description": 'Checks if the planet has the specified tag for district usage:',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'uses_ship_category': {
        "description": 'Checks if the graphical culture used by the scoped country allows for usage of a given ship category',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'using_war_goal': {
        "description": 'Checks if a war has a specific war goal',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'valid_planet_killer_target': {
        "description": 'Checks if the scoped fleet can target the given planet with its planet killer weapon',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'vassals': {
        "description": "Checks the country's number of subjects with agreement preset 'preset_vassal'",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'voidworms_scaling': {
        "description": 'Checks Voidworms presence scaling in game setup',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'war_begun_num_fleets_gone_mia': {
        "description": "Checks amount of target country's fleets that went MIA when the war began",
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'won_the_game': {
        "description": 'Checks if scoped country won the game',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'would_join_war': {
        "description": 'Checks if the country would join the side of target country in a hypothetical war',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'years_of_peace': {
        "description": 'Checks the number of in-game years country has been at peace, with optional parameter to delay from start of game',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'years_passed': {
        "description": 'Checks the number of in-game years passed since the 2200 start',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
}
