"""
PDXLang Effect 规则

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

from typing import Dict, List, Any

# 所有 effects
ALL_EFFECTS = {
    'abort_situation': {
        "description": 'Destroys a situation in right hand side event target, firing on_abort (use to cancel and fire that effect)',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'abort_special_project': {
        "description": 'Aborts a specific special project for the country, removing it from the situation log',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'accept_covenant': {
        "description": 'Accepts covenant proposition with Shroud Patron.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'activate_crisis_progression': {
        "description": 'Activates crisis progression for the country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'activate_fog_machine': {
        "description": 'Creates cloud effect at every star system controlled by the country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'activate_gateway': {
        "description": 'Activates the gateway associated with a megastructure.',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'activate_saved_leader': {
        "description": 'Moves a saved leader to the active for the scoped country with a lookup key',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'key', 'type': 'string'}, {'name': 'add_to_owned', 'type': 'yes/no'}],
    },
    'add_age': {
        "description": 'Adds the age of the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'add_anomaly': {
        "description": 'Adds a specific anomaly category to the scoped planet',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'category', 'type': 'key'}],
    },
    'add_ascension_perk': {
        "description": 'Adds the specified ascension perk to the scoped country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_associate_member': {
        "description": 'Add specified country as an associate member',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'add_asteroid_belt': {
        "description": 'Adds an asteroid belt at the distance in the scope.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'radius', 'type': 'desired radius'}, {'name': 'type', 'type': 'asteroid belt type key'}],
    },
    'add_attunement': {
        "description": 'Adds attunement towards specified patron(s).',
        "scopes": ['country'],
        "usage_format": 'block',
    },
    'add_aura_intensity': {
        "description": 'Adds value to Psionic Aura intensity in scoped system',
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'add_awareness': {
        "description": 'Adds awareness to the scoped (pre-FTL) country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_blocker': {
        "description": 'Adds a blocker to a planet, with some control over what it is set to block (add_deposit will add a random planetary deposit to block)',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'type', 'type': 'key'}],
    },
    'add_building': {
        "description": 'Begins construction of a specific building on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'alternatives',
        "alternatives": [
            {'format': 'simple_value', 'params': [], 'has_block': False, 'value_type': 'key'},
            {'format': 'block', 'params': [{'name': 'district', 'type': 'district_type_key'}, {'name': 'zone', 'type': 'zone_type_key'}, {'name': 'building', 'type': 'building_type_key'}], 'has_block': True},
        ],
    },
    'add_casus_belli': {
        "description": 'Adds a Casus Belli to the scoped country against the target country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_claims': {
        "description": 'Adds claims on target system',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'add_cohesion': {
        "description": 'Add cohesion to the federation',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'add_colony_progress': {
        "description": 'Adds to ongoing colonization progress on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'add_council_agenda_progress': {
        "description": 'Instantly adds council agenda progress',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_council_agenda_progress_percent': {
        "description": 'Gives percentage progress (-1.0-1.0) in the current agenda to the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'add_custodian_term_days': {
        "description": 'Increase the current Custodian term time',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'add_deposit': {
        "description": 'Adds resource deposit to the scoped object (note: if you add a blocker, it will add a random deposit that can be blocked by that deposit)',
        "scopes": ['planet', 'astral_rift'],
        "usage_format": 'simple_value',
    },
    'add_deposit_category_effect': {
        "description": 'Adds random non-blocker resource deposit to the scoped planet of a certain category',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'add_district': {
        "description": 'Begins construction of a specific district on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'alternatives',
        "alternatives": [
            {'format': 'simple_value', 'params': [], 'has_block': False, 'value_type': 'key'},
            {'format': 'block', 'params': [{'name': 'district_type', 'type': 'key'}, {'name': 'ignore_cap', 'type': 'yes/no'}, {'name': 'type_conversion', 'type': 'yes/no'}], 'has_block': True},
        ],
    },
    'add_edict': {
        "description": "Adds given edict to scoped country's government",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'add_espionage_information': {
        "description": 'Adds information to the current stage of an espionage operation',
        "scopes": ['espionage_operation'],
        "usage_format": 'simple_value',
    },
    'add_event_chain_counter': {
        "description": 'Increments (or decrements with negative values) an event chain counter for the scoped country by a specific amount',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_expedition_log_entry': {
        "description": 'Adds a specific expedition log entry to an archaeological site chapter',
        "scopes": ['archaeological_site'],
        "usage_format": 'block',
        "params": [{'name': 'title', 'type': 'loc key'}, {'name': 'tooltip', 'type': 'loc key'}],
    },
    'add_experience': {
        "description": 'Adds a sum of experience points to the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'add_favors': {
        "description": 'Add <value> favors for scoped country to use on target country.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target'}, {'name': 'value', 'type': 'value'}],
    },
    'add_federation_experience': {
        "description": 'Adds experience to the scoped federation',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'add_focus_progress': {
        "description": 'Adds the defined amount of focus progress in the defined focus category',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_global_ship_design': {
        "description": 'Adds a specific global design to the game',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'add_growth': {
        "description": 'Adds a specific amount of growth (non-fauna ships)',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'add_holding': {
        "description": 'Begins construction of a specific holding on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'add_hyperlane': {
        "description": 'Adds a hyperlane between two systems',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'add_imperial_authority': {
        "description": 'Add imperial_authority',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'add_intel': {
        "description": 'Adds the defined amount of intel toward the target empire',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_intel_report': {
        "description": 'Adds the intel level for the category selected. Default duration (0) is forever.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_loyalty': {
        "description": 'Add loyalty to subject of an agreement',
        "scopes": ['agreement'],
        "usage_format": 'comparison',
    },
    'add_mission_counter': {
        "description": 'Increments (or decrements with negative values) a mission counter for the scoped country by a specific amount',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_mission_progress': {
        "description": "Adds or subtracts progress to/from the scoped observation post's current mission",
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'add_modifier': {
        "description": 'Adds a specific modifier to the scoped object for a set duration',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'pop_faction', 'federation', 'starbase', 'spy_network', 'espionage_operation', 'astral_rift', 'cosmic_storm_influence_field'],
        "usage_format": 'block',
        "params": [{'name': 'modifier', 'type': 'key'}, {'name': 'years', 'type': 'int, -1 (default) means it never expires'}, {'name': 'multiplier', 'type': 'float'}, {'name': 'time_multiplier', 'type': 'variable'}, {'name': 'clear_on_owner_change', 'type': 'value'}],
    },
    'add_monthly_resource_mult': {
        "description": "Adds a lump sum of a resource to the scoped country, defined as a multiple of the country's monthly income of that resource (clamped to max and min allowed values)",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_notification_modifier': {
        "description": 'Add a notification modifier to the country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'add_opinion_modifier': {
        "description": 'Adds a specific opinion modifier for the scoped country towards target country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_patron_objective_counter': {
        "description": "Increments (or decrements with negative values) a patron objective counter for the scoped country by a specific amount. Can multiply the attunement given by the patron objective (if it's a deed).",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'counter', 'type': 'key'}, {'name': 'amount', 'type': 'int'}, {'name': 'multiplier', 'type': 'float'}],
    },
    'add_permanent_councillor': {
        "description": 'Gives provided country a permanent position on the Galactic Council',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_planet_devastation': {
        "description": 'Instantly adds devastation to scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'add_pop_amount': {
        "description": 'Adds the amount of pops to the scope pop group.',
        "scopes": ['pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'add_pop_amount', 'type': 'num'}, {'name': 'amount', 'type': 'number'}],
    },
    'add_random_non_blocker_deposit': {
        "description": 'Adds random non-blocker resource deposit to the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'add_random_research_option': {
        "description": "Adds a random tech research option to the scoped country's tech view list, permanent until researched. if none applicable it runs fail_effects",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'category', 'type': 'string'}, {'name': 'area', 'type': 'key'}, {'name': 'tier', 'type': 'int'}, {'name': 'add_progress', 'type': 'num'}, {'name': 'ignore_prereqs', 'type': 'yes/no'}, {'name': 'ignore_rare', 'type': 'yes/no'}, {'name': 'only_rare', 'type': 'yes/no'}, {'name': 'ignore_insight', 'type': 'yes/no'}],
    },
    'add_relic': {
        "description": 'Adds the specified relic to the scoped country.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'add_research_option': {
        "description": "Adds a tech research option to the scoped country's tech view list, permanent until researched",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'add_resource': {
        "description": 'Adds specific resource to the stockpile for the country scope:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'mult', 'type': 'variable'}],
    },
    'add_resource_from_debris': {
        "description": 'Adds specific resource to the stockpile for the country scope and creates a debris notification:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'system', 'type': 'system'}, {'name': 'mult', 'type': 'variable'}],
    },
    'add_seen_bypass': {
        "description": 'Makes the scoped country remember that it has encountered the bypass',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_seen_bypass_type': {
        "description": 'Makes the scoped country remember that it has encountered the bypass type',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_ship_design': {
        "description": 'Adds a specific ship design to the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'add_situation_progress': {
        "description": 'Adds progress to scoped situation',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'add_skill': {
        "description": "Adds to the scoped leader's skill level",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'add_skill_without_trait_selection': {
        "description": "Adds to the scoped leader's skill level but does not select any traits",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'add_spy_network_level': {
        "description": 'Adds levels to the current Spy Network',
        "scopes": ['spy_network'],
        "usage_format": 'simple_value',
    },
    'add_stage_clues': {
        "description": 'Adds clues to the current stage of an archaeological or first contact site',
        "scopes": ['archaeological_site', 'first_contact', 'astral_rift'],
        "usage_format": 'simple_value',
    },
    'add_stage_modifier': {
        "description": "Adds a specific modifier to the target's current stage for a set duration or until stage is changed",
        "scopes": ['espionage_operation', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'add_starbase_component': {
        "description": 'Adds a ship component to a starbase, standalone from any module or building',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'add_static_war_exhaustion': {
        "description": 'Adds static war exhaustion, scaled with value_for_planet_destruction, to owner of the battle location',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'attacker', 'type': 'country'}, {'name': 'location', 'type': 'planet'}, {'name': 'value_for_planet_destruction', 'type': '0.0-1.0'}],
    },
    'add_tech_progress': {
        "description": 'Gives percentage progress (0.0-1.0) in a specific tech to the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_terraform_progress': {
        "description": 'Adds terraforming progress to scoped planet, finishes the terraformation, if enough progress is reached',
        "scopes": ['planet'],
        "usage_format": 'simple',
    },
    'add_terraformation_total_time_mult': {
        "description": 'Adds a percentage to the total time of the current terraforminog process on the planet',
        "scopes": ['planet'],
        "usage_format": 'unknown',
    },
    'add_threat': {
        "description": 'Adds diplomatic threat from target country',
        "scopes": ['planet', 'country', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'add_timed_trait': {
        "description": 'Adds a specific trait to the scoped leader for a specific duration',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'add_timeline_event': {
        "description": 'Adds a new timeline event for the scope country.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'date', 'type': 'value'}],
    },
    'add_to_galactic_community': {
        "description": 'Tries to add the scoped country to the Galactic Community',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_to_galactic_community_no_message': {
        "description": 'Tries to add the scoped country to the Galactic Community without producing member joining notifications.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_to_galactic_council': {
        "description": 'Tries to add the scoped country to the Galactic Council',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_to_vivarium': {
        "description": 'Gives Space Fauna in the Vivarium using given ship design with given rarity to the target country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_tradition': {
        "description": 'Adds the specified tradition to the scoped country.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'add_trait': {
        "description": 'Adds a specific trait to the scoped leader or a random common/negative trait',
        "scopes": ['leader'],
        "usage_format": 'alternatives',
        "alternatives": [
            {'format': 'comparison', 'params': [], 'has_block': False, 'operator': '=', 'value': '<trait>/random_common/random_negative'},
            {'format': 'block', 'params': [{'name': 'trait', 'type': 'trait'}, {'name': 'show_message', 'type': 'value', 'default': 'yes'}, {'name': 'consume_selection', 'type': 'value'}, {'name': 'show_message', 'type': 'value'}], 'has_block': True},
        ],
    },
    'add_trust': {
        "description": 'Adds trust on scope country towards target country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_variable': {
        "description": 'Increments a previously-set variable by a specific amount',
        "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',
    },
    'add_victory_score': {
        "description": 'Adds victory score to a country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'add_zone': {
        "description": 'Adds zone to the district of the planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'district', 'type': 'district_type_key/district_slot_index'}, {'name': 'zone', 'type': 'zone_type_key'}, {'name': 'zone_slot', 'type': 'zone_slot_index'}, {'name': 'replace', 'type': 'yes/no'}],
    },
    'advanced_authority_refresh': {
        "description": 'Used after an advanced authority swap to make sure things are changed properly',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'agreement_event': {
        "description": 'Fires an agreement event for the scoped agreement',
        "scopes": ['agreement'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'assign_espionage_asset': {
        "description": 'Assigns espionage asset to the scope operation from owning spy network',
        "scopes": ['espionage_operation'],
        "usage_format": 'simple_value',
    },
    'assign_leader': {
        "description": 'Assigns target leader to the scoped country/fleet/army/',
        "scopes": ['planet', 'country', 'fleet', 'army'],
        "usage_format": 'simple_value',
    },
    'astral_rift_event': {
        "description": 'Fires an astral rift event with optional DAYS and RANDOM',
        "scopes": ['astral_rift'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'atmosphere_intensity': {
        "description": '1.0>',
        "scopes": ['planet'],
        "usage_format": 'simple',
    },
    'atmosphere_width': {
        "description": '1.0>',
        "scopes": ['planet'],
        "usage_format": 'unknown',
    },
    'auto_follow_fleet': {
        "description": 'Makes a fleet or ship auto-move to target fleet and potentially attack it',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'auto_move_to_planet': {
        "description": 'Makes a fleet or ship auto-move to target planet',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'begin_event_chain': {
        "description": 'Starts a situation log event chain for target country',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'blocked_deposit': {
        "description": 'copies the type to the blocked deposit but any flags or variables are lost>/random',
        "scopes": ['planet'],
        "usage_format": 'unknown',
    },
    'break': {
        "description": 'Prevents execution of subsequent effects in the same effect block, used with if-statements',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'bypass_event': {
        "description": 'Fires a bypass event for the scoped bypass, with optional DAYS and RANDOM delay',
        "scopes": ['bypass'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'calculate_modifier': {
        "description": 'Forces target planet or country to calculate its internal modifier',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'cancel_resolution': {
        "description": 'Immediately cancels/removes the latest active/passed/proposed/voting for/failed resolution of this type',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'cancel_terraformation': {
        "description": 'Cancels terraformation of the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'ceiling_variable': {
        "description": 'Rounds a previously-set variable up to the next integer.',
        "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": 'simple_value',
    },
    'change_background_ethic': {
        "description": 'Changes the background ethic of a leader',
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'change_background_job': {
        "description": 'Changes the background job of a leader',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'change_colony_foundation_date': {
        "description": 'Changes the colony foundation date (affecting on_colony_X_years pulses) by a specific number of days. Use with care, you can probably break things with this!',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'change_country_flag': {
        "description": "Changes the scoped country's flag",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'category', 'type': 'key'}, {'name': 'file', 'type': 'filename'}, {'name': 'category', 'type': 'key'}, {'name': 'file', 'type': 'filename'}],
    },
    'change_dominant_species': {
        "description": 'Changes the dominant species of the current Country, change_all also changes all usage of that species (Pops etc) in the empire',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'change_government': {
        "description": "Change the scoped country's government authority and/or civics",
        "scopes": ['country'],
        "usage_format": 'alternatives',
        "alternatives": [
            {'format': 'comparison', 'params': [], 'has_block': False, 'operator': '=', 'value': 'random'},
            {'format': 'block', 'params': [{'name': 'civic', 'type': 'key'}, {'name': 'cooldown', 'type': 'value', 'default': 'yes'}, {'name': 'remove_invalid_civics', 'type': 'value', 'default': 'no'}, {'name': 'cooldown', 'type': 'value'}, {'name': 'remove_invalid_civics', 'type': 'value'}], 'has_block': True},
        ],
    },
    'change_leader_class': {
        "description": 'Changes the class of the leader in scope.',
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'change_leader_portrait': {
        "description": 'Changes the portrait of the leader in scope.',
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'change_pc': {
        "description": 'Changes the class of the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'change_pc', 'type': 'class/random list'}, {'name': 'class', 'type': 'class/random list'}, {'name': 'inherit_entity', 'type': 'value'}],
    },
    'change_planet_size': {
        "description": 'Increases or reduces the size of the scoped planet by a specified amount',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'change_situation_target': {
        "description": 'Changes the target of a Situation.',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'change_species': {
        "description": 'Changes the species of the scoped object',
        "scopes": ['country', 'ship', 'pop', 'pop_group', 'leader', 'army'],
        "usage_format": 'simple_value',
    },
    'change_species_characteristics': {
        "description": 'Changes the characteristics of a species',
        "scopes": ['species'],
        "usage_format": 'block',
        "params": [{'name': 'sapient', 'type': 'Y/N, determines if species is pre-sapient'}, {'name': 'immortal', 'type': 'Y/N, determines if species leaders are immortal'}, {'name': 'can_be_modified', 'type': 'Y/N, determines if the species can be modified'}, {'name': 'add_trait', 'type': 'key'}, {'name': 'remove_trait', 'type': 'key'}, {'name': 'portrait', 'type': 'key/species/leader event target, limits'}, {'name': 'gender', 'type': "any/male/female/leader event target, limits species to this gender or removes limit if 'any'"}, {'name': 'can_change_leader', 'type': 'Y/N, apply portrait and gender (randomizes new name) changes to existing leaders'}, {'name': 'add_traits_at_start_of_list', 'type': 'value'}],
    },
    'change_species_portrait': {
        "description": 'Changes the portrait of the species in scope.',
        "scopes": ['species'],
        "usage_format": 'simple_value',
    },
    'change_variable': {
        "description": 'Increments a previously-set variable by a specific amount',
        "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_casus_belli_valid': {
        "description": 'Re-evaluate the specified casus belli type with given target country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'type', 'type': 'optional casus belli type'}, {'name': 'target', 'type': 'value'}],
    },
    'check_planet_employment': {
        "description": 'Immediately runs a job evaluation on the planet, firing and employing pops as needed',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'clear_blocker': {
        "description": 'Clears scoped deposit blocker and fires its on_cleared effect',
        "scopes": ['deposit'],
        "usage_format": 'comparison',
    },
    'clear_blockers': {
        "description": 'Removes all blockers from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'clear_custom_ruler_and_heir_titles': {
        "description": 'Clears all custom ruler and heir titles from the country, resetting them to default values',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'clear_deposits': {
        "description": 'Removes all deposits from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'clear_ethos': {
        "description": 'Clears all ethics of specified pop group or country',
        "scopes": ['country', 'pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'clear_fleet_actions': {
        "description": 'Clears all queued fleet actions for target fleet',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'clear_global_event_target': {
        "description": 'Deletes the specified saved global target reference',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'clear_global_event_targets': {
        "description": 'Deletes all saved global target references',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'clear_intel_report': {
        "description": 'Removes all the intel reports related to the provided category.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'clear_orders': {
        "description": 'Clears all fleet orders from the scoped fleet',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'clear_planet_modifiers': {
        "description": 'Clear modifiers on target planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'clear_planet_purge_type': {
        "description": 'Clears the purge type for the entire planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'clear_relations': {
        "description": 'Clears relations between scoped and target countries',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target country'}],
    },
    'clear_resources': {
        "description": 'Clears resources of a country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'clear_uncharted_space': {
        "description": 'Clears uncharted space from the galaxy map for the scoped country, in a radius around target system',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'clear_variable': {
        "description": 'Clears a previously-set variable from the game.',
        "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": 'simple_value',
    },
    'clone_leader': {
        "description": 'Clones the last created leader for the scoped country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'event target'}],
    },
    'close_branch_office': {
        "description": 'Close branch office on scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'closest_system': {
        "description": 'Executes enclosed effects on a system -within a specific number of jumps span- that meets the limit criteria. This completely ignores bypasses (wormholes and gateways)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'min_steps', 'type': "int, minimum # of systems 'away'"}, {'name': 'max_steps', 'type': "int, maximum # of systems 'away'"}, {'name': 'use_bypasses', 'type': 'value', 'default': 'no'}, {'name': 'use_bypasses', 'type': 'value'}, {'name': 'body', 'type': 'triggers'}],
    },
    'complete_crisis_objective': {
        "description": "Gives the player the reward for the specified crisis objective, if the player's selected crisis path includes it. Gives nothing if the player's crisis path doesn't include it.",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'complete_deed': {
        "description": 'Gives the player the reward for the specified deed, if the player has it in its patron deeds selection.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'complete_special_project': {
        "description": 'Completes a specific special project for the country, firing the on complete effects',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'complete_tutorial_step': {
        "description": 'Create and sends an telemetry event keeping track of the tutorial steps for the current game',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'conquer': {
        "description": 'Conquers the planet by setting its owner to target country and adding an unhappiness modifier',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'convert_to_specialist': {
        "description": 'Starts the process of converting the subject of the scoped agreement to the given specialist type.',
        "scopes": ['agreement'],
        "usage_format": 'unknown',
    },
    'copy_ascension_perks_from': {
        "description": 'Copies the Ascension Perks of the target country into the scoped country. Perks are added to the existing perks, and the potential/possible triggers are respected.the perkss listed in the exceptions list are not copied.',
        "scopes": ['country'],
        "usage_format": 'block',
    },
    'copy_ethos_and_authority': {
        "description": 'Makes the scoped country copy the ethos and government authority of the target country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'copy_flags_and_variables_from': {
        "description": 'Copies all script flags and variables from the specified scope to the current one.',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'copy_random_tech_from': {
        "description": 'Adds a random tech from the target country within the given category and tech area constraints. The country must be able to research said tech (weight > 0, fulfils potential trigger)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'who', 'type': 'country'}, {'name': 'progress', 'type': 'value'}],
    },
    'copy_techs_from': {
        "description": 'Copies all techs from the target country to the scoped country, except for some exceptions listed. Tech weights (and weight modifiers) are honoured, meaning that techs a country should not have will not be copied.',
        "scopes": ['country'],
        "usage_format": 'block',
    },
    'copy_traditions_from': {
        "description": 'Copies the traditions of the target country into the scoped country. Traditions are added to the existing traditions, and the potential/possible triggers are respected.the traditions listed in the exceptions list are not copied.',
        "scopes": ['country'],
        "usage_format": 'block',
    },
    'cosmic_storm_event': {
        "description": 'Fires a storm event for the scoped storm',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'cosmic_storm_influence_field_event': {
        "description": 'Fires a storm event for the scoped storm influence field',
        "scopes": ['cosmic_storm_influence_field'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'country_add_ethic': {
        "description": 'Adds a specific ethic to the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'country_event': {
        "description": 'Fires a country event for the scoped country, with optional DAYS and RANDOM delay',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'country_list_tooltip': {
        "description": 'Prints a list of the countries that match the limit triggers in a tooltip, each separated by a line break.',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'country_remove_ethic': {
        "description": 'Removes a specific ethic from the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'create_ambient_object': {
        "description": 'Creates a new ambient object',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'type', 'type': 'key'}, {'name': 'location', 'type': 'target'}, {'name': 'type', 'type': 'key'}, {'name': 'scale', 'type': 'float'}, {'name': 'location', 'type': 'target'}, {'name': 'use_3d_location', 'type': 'bool, use 3D entity or 2D coordinate of the location entity as base'}, {'name': 'min', 'type': 'int'}, {'name': 'max', 'type': 'int'}, {'name': 'min', 'type': 'int'}, {'name': 'max', 'type': 'int'}, {'name': 'min', 'type': 'int'}, {'name': 'max', 'type': 'int'}, {'name': 'target', 'type': 'target'}, {'name': 'duration', 'type': 'int, days'}, {'name': 'entity_scale_to_size', 'type': 'value'}, {'name': 'play_animation_once', 'type': 'value'}],
    },
    'create_archaeological_site': {
        "description": 'Creates a archaeological site associated with the scope object',
        "scopes": ['megastructure', 'planet', 'ship', 'fleet', 'galactic_object', 'ambient_object', 'starbase', 'debris', 'astral_rift'],
        "usage_format": 'simple_value',
    },
    'create_army': {
        "description": 'Creates a new army',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'string'}, {'name': 'owner', 'type': 'target'}, {'name': 'species', 'type': 'target'}, {'name': 'type', 'type': 'key'}],
    },
    'create_army_transport': {
        "description": 'Creates a new army in a new transport ship',
        "scopes": ['fleet'],
        "usage_format": 'block',
        "params": [{'name': 'ship_name', 'type': 'string'}, {'name': 'graphical_culture', 'type': 'key'}, {'name': 'army_name', 'type': 'string'}, {'name': 'army_type', 'type': 'key'}, {'name': 'species', 'type': 'target'}],
    },
    'create_bypass': {
        "description": 'Creates a bypass in the parent SpatialObject (stored in FromFrom), of the type passed in "type".',
        "scopes": ['megastructure'],
        "usage_format": 'comparison',
    },
    'create_cluster': {
        "description": 'Creates a cluster centered around the specified spatial object',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'some_id'}, {'name': 'center', 'type': 'system, spatial object'}, {'name': 'radius', 'type': 'value'}],
    },
    'create_colony': {
        "description": 'Creates a colony on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'owner', 'type': 'target'}, {'name': 'species', 'type': 'target / key'}, {'name': 'ethos', 'type': 'random / target / { ethic = <key'}, {'name': 'ethic', 'type': 'key'}],
    },
    'create_cosmic_storm': {
        "description": 'Creates a cosmic storm',
        "scopes": ['all'],
        "usage_format": 'unknown',
    },
    'create_cosmic_storm_influence_field': {
        "description": 'Creates a storm influence field in a certain radius',
        "scopes": ['planet', 'starbase'],
        "usage_format": 'unknown',
    },
    'create_country': {
        "description": 'Creates a new country',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'string/random'}, {'name': 'adjective', 'type': 'string'}, {'name': 'contact_rule', 'type': 'string'}, {'name': 'type', 'type': 'key'}, {'name': 'auto_delete', 'type': 'bool'}, {'name': 'name_list', 'type': 'key'}, {'name': 'ship_prefix', 'type': 'string'}, {'name': 'authority', 'type': 'key'}, {'name': 'civic', 'type': 'key'}, {'name': 'species', 'type': 'target'}, {'name': 'flag', 'type': 'random / { icon = { category = <key'}, {'name': 'file', 'type': 'filename.dds'}, {'name': 'category', 'type': 'key'}, {'name': 'file', 'type': 'filename.dds'}, {'name': 'ethos', 'type': 'random / { ethic = <key'}, {'name': 'ethic', 'type': 'key'}, {'name': 'graphical_culture', 'type': 'culture_key'}, {'name': 'city_graphical_culture', 'type': 'culture_key'}, {'name': 'room', 'type': 'room_texture_key'}, {'name': 'set_capital_from_species', 'type': 'value'}],
    },
    'create_espionage_asset': {
        "description": 'Creates espionage asset within a given spy network',
        "scopes": ['spy_network'],
        "usage_format": 'block',
        "params": [{'name': 'type', 'type': 'espionage asset type'}],
    },
    'create_fleet': {
        "description": 'Creates a new fleet',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'create_fleet_from_naval_cap': {
        "description": 'Creates a new fleet from empire designs up to specified fraction of naval cap',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'ship_owner_type', 'type': 'country/federation/galactic_community'}, {'name': 'create_fleet_from_naval_cap', 'type': 'value'}, {'name': 'fraction', 'type': 'value'}],
    },
    'create_leader': {
        "description": 'Creates a new leader for the scoped country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'skill', 'type': 'int'}, {'name': 'set_age', 'type': 'int'}, {'name': 'gender', 'type': 'gender'}, {'name': 'sub_type', 'type': 'key'}, {'name': 'leader_age_min', 'type': 'int'}, {'name': 'leader_age_max', 'type': 'int'}, {'name': 'custom_description', 'type': 'key'}, {'name': 'custom_catch_phrase', 'type': 'string'}, {'name': 'background_planet', 'type': 'target'}, {'name': 'background_job', 'type': 'key'}, {'name': 'background_ethic', 'type': 'key'}, {'name': 'event_leader', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'immortal', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'hide_age', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'can_manually_change_location', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'can_assign_to_council', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'hide_leader', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'randomize_traits', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'use_regnal_name', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'skip_background_generation', 'type': 'value'}, {'name': 'default', 'type': 'value'}],
    },
    'create_message': {
        "description": 'Creates a message, can take multiple variables',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'create_military_fleet': {
        "description": 'Creates a military fleet with the designs of a specified country.',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'create_mining_station': {
        "description": 'Creates a mining station in orbit of the scoped planet',
        "scopes": ['planet', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'create_nebula': {
        "description": 'Creates a new Nebula with a given radius centered around the current system.',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'create_patron_relation': {
        "description": 'Creates a relation with Shroud patron',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'create_point_of_interest': {
        "description": 'Creates a point of interest for the scoped country at a specific location, associated with an event chain',
        "scopes": ['planet', 'country', 'ship', 'pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'create_pop': {
        "description": 'Adds pop size on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'species', 'type': 'target / key'}, {'name': 'ethos', 'type': 'random / <target country'}, {'name': 'ethic', 'type': 'key'}, {'name': 'ethic', 'type': 'key'}, {'name': 'size', 'type': 'number'}],
    },
    'create_pop_group': {
        "description": 'Creates a new pop group based on an existing one with overrides. If no existing pop group is passed, species is mandatory.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'pop_group', 'type': 'base pop group'}, {'name': 'ethic', 'type': 'key'}, {'name': 'category', 'type': 'pop category'}, {'name': 'size', 'type': 'number'}],
    },
    'create_rebels': {
        "description": 'Creates a rebellion',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'random / string'}, {'name': 'authority', 'type': 'random / key'}, {'name': 'civic', 'type': 'key'}, {'name': 'species', 'type': 'target'}, {'name': 'ethos', 'type': 'random / { ethic = <key'}, {'name': 'ethic', 'type': 'key'}],
    },
    'create_research_station': {
        "description": 'Creates a research station in orbit of the scoped planet',
        "scopes": ['planet', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'create_saved_leader': {
        "description": 'Creates a new saved leader for the scoped country with a lookup key. See create_leader for parameters.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'create_ship': {
        "description": 'Creates a new ship',
        "scopes": ['fleet', 'starbase'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'string/random'}, {'name': 'design', 'type': 'ship design key/target/last_created_design, or use random_existing_design'}, {'name': 'random_existing_design', 'type': 'ship size key'}, {'name': 'graphical_culture', 'type': 'graphical culture key'}, {'name': 'graphical_culture_fallback', 'type': 'graphical culture key'}, {'name': 'prefix', 'type': 'Y(default)/N, determines if ship name should use owner country prefix'}, {'name': 'suffix', 'type': "Y/N(default), determines if ship name should use numericals. If so, name will be added to the owner country's namelist"}, {'name': 'colonizer_species', 'type': 'species, default: fleet owner founder species'}, {'name': 'age', 'type': 'int'}, {'name': 'rarity', 'type': 'common/rare/epic/exceptional, used only if ship is space fauna'}, {'name': 'growth_stage', 'type': 'integer value between 1 and the amount of growth stages in the design'}],
    },
    'create_ship_design': {
        "description": 'Creates a new ship design for use with last_created_design target',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'create_smaller_size_creature_in_fleet': {
        "description": 'Creates new creatures of the smaller ship size in the same fleet',
        "scopes": ['ship'],
        "usage_format": 'simple_value',
    },
    'create_species': {
        "description": 'Creates a new species. The habitability trait is determined by homeworld, traits = random, traits = { ideal_planet_class = <pc_XYZ> }, traits = <trait_pc_XYZ_preference>, or else is assigned randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'string'}, {'name': 'plural', 'type': 'string'}, {'name': 'class', 'type': 'species class key'}, {'name': 'portrait', 'type': 'random/portrait id'}, {'name': 'homeworld', 'type': 'target'}, {'name': 'gender', 'type': 'species/leader'}, {'name': 'extra_trait_points', 'type': 'int'}, {'name': 'sapient', 'type': 'value', 'default': 'yes'}, {'name': 'is_mod', 'type': 'value', 'default': 'no'}, {'name': 'immortal', 'type': 'value', 'default': 'no'}, {'name': 'can_be_modified', 'type': 'value', 'default': 'yes'}, {'name': 'clear_parent_species_link', 'type': 'value', 'default': 'no'}, {'name': 'allow_negative_traits', 'type': 'value', 'default': 'yes'}, {'name': 'sapient', 'type': 'value'}, {'name': 'is_mod', 'type': 'value'}, {'name': 'immortal', 'type': 'value'}, {'name': 'can_be_modified', 'type': 'value'}, {'name': 'clear_parent_species_link', 'type': 'value'}, {'name': 'allow_negative_traits', 'type': 'value'}],
    },
    'create_starbase': {
        "description": 'Creates a starbase in orbit of the star of the scoped galactic object',
        "scopes": ['planet', 'galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'owner', 'type': 'target'}, {'name': 'size', 'type': 'ship_size'}, {'name': 'design', 'type': 'starbase global design'}, {'name': 'module', 'type': 'starbase_module'}, {'name': 'building', 'type': 'starbase_building'}],
    },
    'custom_tooltip': {
        "description": 'Displays a specific localization string in tooltip',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'custom_tooltip_with_params': {
        "description": 'Displays a specific localization string with parameters in tooltip',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'description', 'type': 'loc key'}],
    },
    'damage_army': {
        "description": 'Damages scoped army by a specific amount',
        "scopes": ['army'],
        "usage_format": 'comparison',
    },
    'damage_ship': {
        "description": 'Damages ship by a specific amount',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'date_distortion': {
        "description": 'Enables or disables the date distortion effect',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'deactivate_fog_machine': {
        "description": 'Deactivates country fog machine',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'debug_break': {
        "description": 'Trigger an assertion to stop the debugger when encountering this effect; argument is ignored',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'declare_war': {
        "description": 'Declares war between the scoped country and target country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target country'}, {'name': 'name', 'type': 'optional war name'}, {'name': 'attacker_war_goal', 'type': 'war goal'}],
    },
    'decrease_council_size': {
        "description": 'Decreases the number of seats on the Galactic Council by 1',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'delete_dimensional_fleet': {
        "description": 'Deletes the target dimensional fleet',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'delete_dimensional_fleet', 'type': 'target'}, {'name': 'target', 'type': 'target'}],
    },
    'delete_fleet': {
        "description": 'Deletes the target fleet (no death graphics)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'delete_fleet', 'type': 'target'}, {'name': 'target', 'type': 'target'}, {'name': 'kill_leader', 'type': 'yes/no'}, {'name': 'destroy_template', 'type': 'yes/no'}],
    },
    'delete_fleet_naval_cap': {
        "description": 'Deletes up to naval_cap worth of ships in the target fleet (no death graphics)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target'}, {'name': 'naval_cap', 'type': 'max naval cap'}, {'name': 'kill_leader', 'type': 'yes/no'}],
    },
    'delete_megastructure': {
        "description": 'Deletes the target mega structure (no death graphics)',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'delete_ship': {
        "description": 'Deletes the target ship (no death graphics)',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'destroy_ambient_object': {
        "description": 'Destroys target ambient object',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'destroy_and_spawn_debris_for': {
        "description": 'Sets the current ship or fleet to be destroyed and spawn a debris project for the specified country.',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'destroy_archaeological_site': {
        "description": 'Destroys a archaeological site in right hand site event target',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'destroy_astral_rift': {
        "description": 'Destroys target Astral Rift',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'destroy_colony': {
        "description": 'Destroys the colony on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'destroy_cosmic_storm': {
        "description": 'Destroy the scoped storm.',
        "scopes": ['cosmic_storm'],
        "usage_format": 'simple',
    },
    'destroy_cosmic_storm_influence_field': {
        "description": 'Destroys a storm influence field with center',
        "scopes": ['planet', 'starbase'],
        "usage_format": 'unknown',
    },
    'destroy_country': {
        "description": 'Destroys the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'destroy_espionage_asset': {
        "description": 'Destroys espionage asset within a given spy network/operation',
        "scopes": ['spy_network', 'espionage_operation'],
        "usage_format": 'simple_value',
    },
    'destroy_espionage_operation': {
        "description": 'Destroys a espionage operation site in right hand site event target',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'destroy_fleet': {
        "description": 'Destroys the target fleet (with death graphics)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'destroy_fleet', 'type': 'target'}, {'name': 'target', 'type': 'target'}, {'name': 'kill_leader', 'type': 'yes/no'}, {'name': 'destroy_template', 'type': 'yes/no'}],
    },
    'destroy_fleet_naval_cap': {
        "description": 'Destroys up to navel_cap worth of ships in the target fleet (with death graphics)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target'}, {'name': 'naval_cap', 'type': 'max naval cap'}, {'name': 'kill_leader', 'type': 'yes/no'}],
    },
    'destroy_psionic_aura': {
        "description": 'Destroy Psionic Aura in scoped system.',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'destroy_ship': {
        "description": 'Destroys the target ship (with death graphics)',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'destroy_situation': {
        "description": 'Destroys a situation in right hand side event target, use once situation is complete (on_fail/on_complete/on_abort is not called)',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'disable_building': {
        "description": 'Disables a single instance of a specific building on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'dismantle': {
        "description": 'Dismantles the scoped orbital station (fleet)',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'displace_pop_amount': {
        "description": 'Raises on_pop_displaced on_action',
        "scopes": ['pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'amount', 'type': 'amount'}, {'name': 'percentage', 'type': 'percentage'}],
    },
    'dissolve_federation': {
        "description": 'Dissolved the current federation',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'divide_variable': {
        "description": 'Divides a previously-set variable by a specific amount',
        "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',
    },
    'downgrade_all_buildings': {
        "description": 'Downgrades all non-capital buildings on the scoped planet/country. Leaves tier 1 buildings untouched.',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'downgrade_buildings_of_type': {
        "description": 'Downgrades all buildings of a specified type on the planet/country.',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'effect_on_blob': {
        "description": 'Executes an effect on systems with planets owned by the scoped country, starting at an origin, and until a certain percentage of owned planets matching the planet_limit has been covered.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'center', 'type': 'system target'}, {'name': 'owned_planets_percentage', 'type': 'value'}],
    },
    'else': {
        "description": "Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met",
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'else_if': {
        "description": "Executes enclosed effects if limit criteria of preceding 'if' or 'else_if' is not met, and its own limit is met",
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'enable_faction_of_type': {
        "description": 'Forces scoped country to evaluate whether to create a specific faction type immediately, rather than monthly',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'enable_galactic_market': {
        "description": 'Enables the galactic market.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'enable_mission': {
        "description": 'Enables a mission for target country',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'enable_on_market': {
        "description": 'Enables a resource on the Galactic Market',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'enable_patron_first_contact_project': {
        "description": 'Enables a specific special research project for the target country at a specific location (should be the same as the current scope where possible). This special project will be the one used for the Patron First Contact. The relation contact state will be set to In Progress if needed.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'project key'}, {'name': 'patron', 'type': 'patron key'}, {'name': 'owner', 'type': 'target, default = root'}, {'name': 'location', 'type': 'target, ideally THIS (that is default)'}],
    },
    'enable_special_project': {
        "description": 'Enables a specific special research project for target country at a specific location (should be same as the current scope where possible)',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'end_all_treaties_with': {
        "description": 'Ends all treaties with the target',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'end_event_chain': {
        "description": 'Ends a specific situation log event chain for the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'end_fleet_contract': {
        "description": 'Breaks fleet lease contract',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'end_rivalry': {
        "description": 'Force-end rivalry with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'end_truce': {
        "description": 'Force-end truce with target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'endgame_telemetry': {
        "description": 'Send endgame telemetry event',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'espionage_operation_event': {
        "description": 'Fires a espionage event event for the scoped object, with optional DAYS and RANDOM delay',
        "scopes": ['espionage_operation'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'establish_branch_office': {
        "description": 'Establish branch office on scoped planet for target country',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'establish_communications': {
        "description": 'Establish communications between scoped country and target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'establish_communications_no_message': {
        "description": 'Silently establish communications between scoped country and target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'establish_contact': {
        "description": 'Establishes first contact between the scoped country and target country at the set location',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_active_first_contact': {
        "description": 'Iterate through each active (non-completed) first contact that this country is engaging in - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_agreement': {
        "description": 'Iterate through each agreement - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'comparison',
    },
    'every_ambient_object': {
        "description": 'Iterate through every ambient object in the game - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_archaeological_site': {
        "description": 'Iterate through every archaeological sites - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_associate': {
        "description": 'Iterate through each associate member of the federation - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'every_astral_rift': {
        "description": 'Iterate through every astral rift - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_attacker': {
        "description": 'Iterate through all attackers in the current war - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'every_available_debris': {
        "description": 'Iterate through all debris belong to available special projects of the scoped country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_bypass': {
        "description": 'Iterate through every bypass - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_bypass_in_system': {
        "description": 'Iterate through every bypass in the scoped galactic object. - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_combatant_fleet': {
        "description": 'Iterate through each fleet this fleet is in combat with - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'every_controlled_fleet': {
        "description": 'Iterate through each fleet controlled by the country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_controlled_planet': {
        "description": 'Iterate through each inhabited planet controlled by the current empire - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_controlled_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country', 'fleet'],
        "usage_format": 'comparison',
    },
    'every_cosmic_storm': {
        "description": 'Iterate through all cosmic storms in the galaxy - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_cosmic_storm_end_position': {
        "description": 'Iterate through all systems valid to be a storms end position - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_cosmic_storm_start_position': {
        "description": 'Iterate through all systems valid to be a storms start position - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_council_member': {
        "description": 'Iterate through each member of the galactic council - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_country': {
        "description": 'Iterate through all countries - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_country_neighbor_to_system': {
        "description": 'Iterate through all countries that own system 1 jump away from current system (bypasses included) - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_defender': {
        "description": 'Iterate through all defenders in the current war - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'every_deposit': {
        "description": 'Iterate through each deposit on the planet - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'every_enslaved_species': {
        "description": 'Check if any of the species with enslaved pops <on the planet/in the country> meet the specified criteria - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'every_envoy': {
        "description": 'Iterate through each envoy available to the country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_espionage_asset': {
        "description": 'Iterate through each espionage asset - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['no_scope', 'spy_network', 'espionage_operation'],
        "usage_format": 'comparison',
    },
    'every_espionage_operation': {
        "description": 'Iterate through each espionage operation - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country', 'no_scope', 'spy_network'],
        "usage_format": 'comparison',
    },
    'every_exhibit': {
        "description": 'Iterate through every exhibit - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_existing_species_traits': {
        "description": 'Iterate through all existing species traits in the game - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['no_scope'],
        "usage_format": 'comparison',
    },
    'every_federation': {
        "description": 'Iterate through each federation - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_federation_ally': {
        "description": 'Iterate through all countries in a federation with the scoped country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_first_contact': {
        "description": 'Iterate through each first contact (both active and complete) that this country is engaging in - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_fleet_in_orbit': {
        "description": 'Iterate through each fleet orbiting the current planet/starbase/megastructure - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['megastructure', 'planet', 'starbase'],
        "usage_format": 'comparison',
    },
    'every_fleet_in_system': {
        "description": 'Iterate through each fleet in the current system - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_galaxy_fleet': {
        "description": 'Iterate through each fleet in the entire game - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_galaxy_planet': {
        "description": 'Iterate through each planet ANYWHERE in the game; warning: resource intensive! - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_galaxy_sector': {
        "description": 'Iterate through all sectors in the game - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_galaxy_species': {
        "description": 'Check if any species in the galaxy meet the specified criteria - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_galcom_member': {
        "description": 'Iterate through each member of the galactic community - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_ground_combat_attacker': {
        "description": 'Iterate through each army currently attacking the planet in ground combat - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'every_ground_combat_defender': {
        "description": 'Iterate through each army currently defending the planet in ground combat - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'every_job_pop_group': {
        "description": 'Iterate through each pop group that contains this job - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['pop', 'job'],
        "usage_format": 'comparison',
    },
    'every_megastructure': {
        "description": 'Iterate through each megastructure - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_member': {
        "description": 'Iterate through each member of the federation - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'every_moon': {
        "description": 'Iterate through each moon of the planet - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'every_neighbor_country': {
        "description": 'Iterate through all neighbor countries - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_neighbor_system': {
        "description": "Iterate through all a system's neighboring systems by hyperlane - executes the enclosed effects on all of them for which the limit triggers return true",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_neighbor_system_euclidean': {
        "description": "Iterate through all a system's neighboring systems (by closeness, not by hyperlanes) - executes the enclosed effects on all of them for which the limit triggers return true",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_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 - executes the enclosed effects on all of them for which the limit triggers return true",
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'every_orbital_station': {
        "description": 'Iterate through each orbital station owned by the current country or in the current system - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country', 'galactic_object'],
        "usage_format": 'comparison',
    },
    'every_owned_army': {
        "description": 'Iterate through each army that is owned by the country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_design': {
        "description": 'Iterate through all designs owned by the current country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_fleet': {
        "description": 'Iterate through each fleet owned by the country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_leader': {
        "description": 'Iterate through each leader that is owned by the country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_megastructure': {
        "description": 'Iterate through each owned megastructure - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_nonprimary_starbase': {
        "description": 'Iterate through every owned non-primary starbase (e.g. orbital rings), not including juggernauts - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_planet': {
        "description": 'Iterate through each inhabited planet owned by the current empire - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'every_owned_pop_group': {
        "description": 'Iterate through all owned pop groups - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet', 'country', 'galactic_object', 'pop_faction', 'sector'],
        "usage_format": 'comparison',
    },
    'every_owned_pop_job': {
        "description": 'Iterate through all owned pop jobs - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet', 'country', 'galactic_object', 'sector'],
        "usage_format": 'comparison',
    },
    'every_owned_pop_species': {
        "description": "Iterate through each species of a country's owned pops - executes the enclosed effects on all of them for which the limit triggers return true",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_sector': {
        "description": 'Iterate through every owned sector - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country', 'fleet'],
        "usage_format": 'comparison',
    },
    'every_owned_species': {
        "description": 'Check if any of the species <on the planet/in the country> meet the specified criteria - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet', 'country'],
        "usage_format": 'comparison',
    },
    'every_owned_starbase': {
        "description": 'Iterate through every owned primary starbase - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_owned_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_planet_army': {
        "description": 'Iterate through each army on the planet (not in ground combat), regardless of owner. - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'every_planet_within_border': {
        "description": "Iterate through each planet within the current empire's borders - executes the enclosed effects on all of them for which the limit triggers return true",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_playable_country': {
        "description": 'Iterate through all playable countries - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_pool_leader': {
        "description": 'Iterate through each leader that is recruitable for the country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_pop_faction': {
        "description": "Iterate through all the country's pop factions - executes the enclosed effects on all of them for which the limit triggers return true",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_pre_ftl_within_border': {
        "description": "Iterate through all pre-ftl countries within the country's or sector's borders - executes the enclosed effects on all of them for which the limit triggers return true",
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'every_relation': {
        "description": 'Iterate through all relations - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_rim_system': {
        "description": 'Iterate through all rim systems - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_rival_country': {
        "description": 'Iterate through all countries rivalled by the scoped country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_ship_in_system': {
        "description": 'Iterate through each ship in the current system - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_situation': {
        "description": 'Iterate through each situation a country is experiencing - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_species_pop_group': {
        "description": 'Iterate through each pop group that belongs to this species; warning: resource-intensive! - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'every_spynetwork': {
        "description": 'Iterate through each spynetwork - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'comparison',
    },
    'every_starbase_in_system': {
        "description": 'Iterate through every starbase in the scoped galactic object. - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_subject': {
        "description": 'Iterate through all subjects of the scoped country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_system': {
        "description": 'Iterate through all systems - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_system_added_to_storm': {
        "description": 'Iterate through all systems added to the storm - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['cosmic_storm'],
        "usage_format": 'comparison',
    },
    'every_system_ambient_object': {
        "description": 'Iterate through every ambient object in the solar system - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_system_colony': {
        "description": 'Iterate through each colony in the current system - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_system_in_cluster': {
        "description": 'Executes enclosed effects on every system in the cluster that meet the limit criteria',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_system_in_cosmic_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['cosmic_storm_influence_field'],
        "usage_format": 'comparison',
    },
    'every_system_megastructure': {
        "description": 'Iterate through each megastructure in system - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'every_system_planet': {
        "description": 'Iterate through each planet (colony or not) in the current system - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'every_system_removed_from_storm': {
        "description": 'Iterate through all systems removed from storm - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['cosmic_storm'],
        "usage_format": 'comparison',
    },
    'every_system_with_aura': {
        "description": 'Iterate through every system with an Aura - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_system_within_border': {
        "description": "Iterate through all systems within the country's or sector's borders - executes the enclosed effects on all of them for which the limit triggers return true",
        "scopes": ['country', 'sector'],
        "usage_format": 'comparison',
    },
    'every_system_within_storm': {
        "description": 'Iterate through all systems within the storm - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['cosmic_storm'],
        "usage_format": 'comparison',
    },
    'every_targeting_situation': {
        "description": 'Iterate through each situation that is targeting the current planet - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'every_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',
    },
    'every_trait_of_species': {
        "description": 'Iterate through each trait that the scoped species has',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'simple',
    },
    'every_war': {
        "description": 'Iterate through all wars the country is engaged in - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'every_war_participant': {
        "description": 'Iterate through all war participants - executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'exile_leader_as': {
        "description": 'Exiles the scoped country/fleet/army/leader and saves them with a custom name',
        "scopes": ['country', 'fleet', 'leader', 'army'],
        "usage_format": 'simple_value',
    },
    'expire_site_event': {
        "description": 'Manually flags an archaeological event as expired',
        "scopes": ['archaeological_site'],
        "usage_format": 'comparison',
    },
    'export_modifier_duration_to_variable': {
        "description": 'Exports the remaining duration of a specified modifier in the current scope to a specified variable.',
        "scopes": ['planet', 'country', 'pop', 'pop_group', 'fleet'],
        "usage_format": 'comparison',
    },
    'export_modifier_to_variable': {
        "description": 'Exports the value of a specified modifier in the current scope to a specified variable.',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'leader', 'army', 'species', 'pop_faction'],
        "usage_format": 'comparison',
    },
    'export_resource_income_to_variable': {
        "description": "Exports the value of the current country's monthly income of the specified resource to a variable.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'export_resource_maximum_to_variable': {
        "description": "Exports the value of the current country's maximum of the specified resource to a variable.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'export_resource_stockpile_to_variable': {
        "description": "Exports the value of the current country's stockpile of the specified resource to a variable.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'export_trigger_value_to_variable': {
        "description": "Exports the value of a trigger to a specified variable (so for num_pops, it'll export the number of pops).",
        "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': 'variable', 'type': 'string'}, {'name': 'rounded', 'type': 'value', 'default': 'no'}, {'name': 'rounded', 'type': 'value'}],
    },
    'fill_astral_rift_event_pool': {
        "description": 'Fills the astral rift event pool for every playable country.',
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'finish_all_researches': {
        "description": 'Instantly finish current researches for scoped country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'finish_astral_rift': {
        "description": 'Ends the Astral Rift exploration',
        "scopes": ['astral_rift'],
        "usage_format": 'comparison',
    },
    'finish_council_agenda': {
        "description": 'Tries to finish the current council agenda for the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'finish_current_operation_stage': {
        "description": 'Finish the current operation phase',
        "scopes": ['espionage_operation'],
        "usage_format": 'unknown',
    },
    'finish_current_stage': {
        "description": 'Finish the current stage',
        "scopes": ['archaeological_site'],
        "usage_format": 'unknown',
    },
    'finish_first_contact': {
        "description": 'Ends the First Contact',
        "scopes": ['first_contact'],
        "usage_format": 'comparison',
    },
    'finish_site': {
        "description": 'Finish the whole archaeological site',
        "scopes": ['archaeological_site'],
        "usage_format": 'unknown',
    },
    'finish_terraformation': {
        "description": 'Finishes the current terraforming process on the planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'finish_upgrade': {
        "description": 'Finish the current upgrade of a Mega Structure.',
        "scopes": ['megastructure'],
        "usage_format": 'comparison',
    },
    'fire_on_action': {
        "description": 'Fires a made-up on_action.',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'first_contact_event': {
        "description": 'Fires a first contact event for the scoped first contact site, with optional DAYS and RANDOM delay',
        "scopes": ['first_contact'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'fleet_action_research_special_project': {
        "description": 'Sends a fleet to research a special project',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'fleet_event': {
        "description": 'Fires a fleet event for the scoped fleet, with optional DAYS and RANDOM delay',
        "scopes": ['fleet'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'floor_variable': {
        "description": 'Rounds a previously-set variable down to the previous integer.',
        "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": 'simple_value',
    },
    'for': {
        "description": 'country to give the debris project to.',
        "scopes": ['fleet'],
        "usage_format": 'simple',
    },
    'force_add_civic': {
        "description": 'Adds civic to a government without checking the restrictions',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'force_faction_evaluation': {
        "description": 'Forces target pop group to immediately evaluate their attraction to various pop factions',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'force_remove_civic': {
        "description": 'Removes civic from a government without checking the restrictions',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'freeze_leader_age': {
        "description": "Freezes the scoped leader's age. The 'no' case will disable the freeze granted by this effect.",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'get_galaxy_setup_value': {
        "description": 'Copies a value from the galaxy setup into a variable, optionally scaling it by an int value',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'which', 'type': 'string'}, {'name': 'setting', 'type': 'string'}, {'name': 'scale_by', 'type': 'float'}],
    },
    'get_trade_data': {
        "description": 'Passes special trade offer data from the target enclave country to the scoped country.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target'}],
    },
    'give_culling_rewards': {
        "description": 'Gives associated culling rewards from a space fauna design to the target country.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'design', 'type': 'key'}, {'name': 'mult', 'type': 'value'}],
    },
    'give_dna': {
        "description": 'Gives given space fauna DNA with given rarity to the target country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'give_fleet': {
        "description": 'Leases fleet out to the new controller country for a numbed of days',
        "scopes": ['fleet'],
        "usage_format": 'block',
        "params": [{'name': 'controller', 'type': 'target country'}, {'name': 'days', 'type': 'number of days'}],
    },
    'give_specimen': {
        "description": 'Gives a given specimen to the target country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'give_technology': {
        "description": 'Instantly gives a specific tech to the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'go_to_next_pre_ftl_age': {
        "description": "Advances country to next pre-FTL technology level if possible. Does nothing if has_next_pre_ftl_age would be false, or if argument is 'no'.",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'guarantee_country': {
        "description": 'Makes a country guarantee another country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'guarantee_country', 'type': 'target'}, {'name': 'target', 'type': 'target'}],
    },
    'hidden_effect': {
        "description": 'Prevents enclosed effects from being displayed in tooltip',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'if': {
        "description": 'Executes enclosed effects if limit criteria are met',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'increase_council_size': {
        "description": 'Increases the number of seats on the Galactic Council by 1',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'integrate_species': {
        "description": 'Triggers the sub-species integration step for a country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'inverse': {
        "description": 'if yes, then 0 is lowest rather than highest)',
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'inverted_switch': {
        "description": 'Executes the first appropriate effect set for a specific trigger treated as NOT.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'trigger', 'type': 'trigger'}],
    },
    'join_alliance': {
        "description": 'Join federation with target',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'join_war': {
        "description": 'Joins wars on the side of target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'join_war_on_side': {
        "description": 'Joins the war on the specified side.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'kill_assigned_pop_amount': {
        "description": 'Instantly destroys part of the assigned pops to this job',
        "scopes": ['pop', 'job'],
        "usage_format": 'block',
        "params": [{'name': 'amount', 'type': 'amount killed'}, {'name': 'percentage', 'type': 'percentage killed'}, {'name': 'random', 'type': 'number'}, {'name': 'growth_category', 'type': 'key'}, {'name': 'body', 'type': 'triggers'}],
    },
    'kill_exiled_leader': {
        "description": 'Kills the scoped leader saved with a custom name',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'kill_leader': {
        "description": 'Kills the scoped leader or leader of the scoped country/fleet/ship/planet/army/first contact system/spy network',
        "scopes": ['planet', 'country', 'ship', 'fleet', 'leader', 'army'],
        "usage_format": 'block',
        "params": [{'name': 'class', 'type': 'key, optional, if left out will kill scoped leader, can be used multiple times'}, {'name': 'ability', 'type': 'key, optional, see leader class for list of abilities, will kill leader that has this ability, can be used multiple times'}, {'name': 'show_notification', 'type': 'yes/no'}, {'name': 'heir', 'type': 'yes, optional, if added to type = ruler, will kill heir instead'}, {'name': 'fire', 'type': 'value'}],
    },
    'kill_pop_group': {
        "description": 'Instantly destroys part of a pop group',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'pop_group', 'type': 'target pop group'}, {'name': 'amount', 'type': 'amount killed'}, {'name': 'percentage', 'type': 'percentage killed'}],
    },
    'leader_event': {
        "description": 'Fires a leader event for the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'leave_alliance': {
        "description": 'Removes scoped country from any alliances it is in',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'override_requirements', 'type': 'value', 'default': 'no'}, {'name': 'apply_opinion_penalty', 'type': 'value', 'default': "no; sets whether 'Broke Federation' opinion is applied"}, {'name': 'override_requirements', 'type': 'value'}, {'name': 'apply_opinion_penalty', 'type': 'value'}],
    },
    'link_to': {
        "description": 'Link the scoped megastructure bypass to the given target megastructure bypass.',
        "scopes": ['megastructure'],
        "usage_format": 'unknown',
    },
    'link_wormholes': {
        "description": 'Link the wormhole from the scoped system to the wormhole in the target system, or from the scope wormhole to the target wormhole.',
        "scopes": ['galactic_object', 'bypass'],
        "usage_format": 'comparison',
    },
    'lock_bypass': {
        "description": 'Lock a Bypass for exclusive access for a given country.',
        "scopes": ['bypass'],
        "usage_format": 'comparison',
    },
    'lock_storm_in_place': {
        "description": 'If yes, locks a Cosmic Storm in place. If no, it advances again at its normal speed.',
        "scopes": ['cosmic_storm'],
        "usage_format": 'simple',
    },
    'locked_random_list': {
        "description": 'Picks one random set of effects from a list, influenced by relative weight once per event scope',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'log': {
        "description": 'Prints a message to game.log for debugging purposes.',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'log_error': {
        "description": 'Prints a message to error.log for debugging purposes.',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'make_special_trade': {
        "description": 'Makes special trade deal between the target enclave country and the scoped country.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target'}],
    },
    'merge_species': {
        "description": 'Triggers the merge of similar sub-species for a country.',
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'modify_army': {
        "description": 'Modifies army with parameters:',
        "scopes": ['army'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'string'}, {'name': 'owner', 'type': 'target'}, {'name': 'species', 'type': 'target'}, {'name': 'type', 'type': 'key'}],
    },
    'modify_species': {
        "description": 'Creates a new, modified species based on an already-extant species',
        "scopes": ['planet', 'country', 'pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'block',
        "params": [{'name': 'species', 'type': 'target'}, {'name': 'base', 'type': 'target'}, {'name': 'add_trait', 'type': 'key'}, {'name': 'remove_trait', 'type': 'key'}, {'name': 'ideal_planet_class', 'type': 'target or pc_name'}, {'name': 'portrait', 'type': 'target or portrait name'}, {'name': 'sapient', 'type': 'Y/N, determines if species is pre-sapient'}, {'name': 'add_traits_at_start_of_list', 'type': 'value'}, {'name': 'change_scoped_species', 'type': 'value'}],
    },
    'modulo_variable': {
        "description": 'Modulos a previously-set variable by a specific amount i.e. X % Y',
        "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',
    },
    'move_system': {
        "description": 'Moves scoped system to a position relative to the given system/planet/ship.',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'multiply_crisis_strength': {
        "description": 'Multiplies crisis strength by this factor.',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'multiply_variable': {
        "description": 'Multiplies a previously-set variable by a specific amount',
        "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',
    },
    'must_scavenge/must_research': {
        "description": 'used to specify and override country behaviour towards this debris.',
        "scopes": ['fleet'],
        "usage_format": 'simple',
    },
    'mutate_species': {
        "description": 'Randomly mutate a species.',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'name': {
        "description": 'default is random)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'radius', 'type': 'value'}],
    },
    'observer_event': {
        "description": 'Fires an observer event for all observers.',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'open_shroud_tab': {
        "description": 'Opens the Shroud tab',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'order_forced_return': {
        "description": 'Forces scoped fleet to retreat to friendly territory',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'ordered_active_first_contact': {
        "description": 'Iterate through each active (non-completed) first contact that this country is engaging in - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_agreement': {
        "description": 'Iterate through each agreement - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_ambient_object': {
        "description": 'Iterate through every ambient object in the game - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_archaeological_site': {
        "description": 'Iterate through every archaeological sites - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_associate': {
        "description": 'Iterate through each associate member of the federation - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['federation'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_astral_rift': {
        "description": 'Iterate through every astral rift - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_attacker': {
        "description": 'Iterate through all attackers in the current war - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_available_debris': {
        "description": 'Iterate through all debris belong to available special projects of the scoped country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_bypass': {
        "description": 'Iterate through every bypass - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_bypass_in_system': {
        "description": 'Iterate through every bypass in the scoped galactic object. - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_combatant_fleet': {
        "description": 'Iterate through each fleet this fleet is in combat with - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['fleet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_controlled_fleet': {
        "description": 'Iterate through each fleet controlled by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_controlled_planet': {
        "description": 'Iterate through each inhabited planet controlled by the current empire - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_controlled_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country', 'fleet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_cosmic_storm': {
        "description": 'Iterate through all cosmic storms in the galaxy - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_cosmic_storm_end_position': {
        "description": 'Iterate through all systems valid to be a storms end position - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_cosmic_storm_start_position': {
        "description": 'Iterate through all systems valid to be a storms start position - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_council_member': {
        "description": 'Iterate through each member of the galactic council - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_country': {
        "description": 'Iterate through all countries - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_country_neighbor_to_system': {
        "description": 'Iterate through all countries that own system 1 jump away from current system (bypasses included) - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_defender': {
        "description": 'Iterate through all defenders in the current war - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_deposit': {
        "description": 'Iterate through each deposit on the planet - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_enslaved_species': {
        "description": 'Check if any of the species with enslaved pops <on the planet/in the country> meet the specified criteria - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet', 'country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_envoy': {
        "description": 'Iterate through each envoy available to the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_espionage_asset': {
        "description": 'Iterate through each espionage asset - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['no_scope', 'spy_network', 'espionage_operation'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_espionage_operation': {
        "description": 'Iterate through each espionage operation - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country', 'no_scope', 'spy_network'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_exhibit': {
        "description": 'Iterate through every exhibit - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_existing_species_traits': {
        "description": 'Iterate through all existing species traits in the game - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_federation': {
        "description": 'Iterate through each federation - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_federation_ally': {
        "description": 'Iterate through all countries in a federation with the scoped country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_first_contact': {
        "description": 'Iterate through each first contact (both active and complete) that this country is engaging in - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_fleet_in_orbit': {
        "description": 'Iterate through each fleet orbiting the current planet/starbase/megastructure - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['megastructure', 'planet', 'starbase'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_fleet_in_system': {
        "description": 'Iterate through each fleet in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_galaxy_fleet': {
        "description": 'Iterate through each fleet in the entire game - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_galaxy_planet': {
        "description": 'Iterate through each planet ANYWHERE in the game; warning: resource intensive! - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_galaxy_sector': {
        "description": 'Iterate through all sectors in the game - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_galaxy_species': {
        "description": 'Check if any species in the galaxy meet the specified criteria - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_galcom_member': {
        "description": 'Iterate through each member of the galactic community - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_ground_combat_attacker': {
        "description": 'Iterate through each army currently attacking the planet in ground combat - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_ground_combat_defender': {
        "description": 'Iterate through each army currently defending the planet in ground combat - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_job_pop_group': {
        "description": 'Iterate through each pop group that contains this job - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['pop', 'job'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_megastructure': {
        "description": 'Iterate through each megastructure - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_member': {
        "description": 'Iterate through each member of the federation - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['federation'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_moon': {
        "description": 'Iterate through each moon of the planet - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_neighbor_country': {
        "description": 'Iterate through all neighbor countries - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_neighbor_system': {
        "description": "Iterate through all a system's neighboring systems by hyperlane - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)",
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_neighbor_system_euclidean': {
        "description": "Iterate through all a system's neighboring systems (by closeness, not by hyperlanes) - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)",
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_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 - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_orbital_station': {
        "description": 'Iterate through each orbital station owned by the current country or in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country', 'galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_army': {
        "description": 'Iterate through each army that is owned by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_design': {
        "description": 'Iterate through all designs owned by the current country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_fleet': {
        "description": 'Iterate through each fleet owned by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_leader': {
        "description": 'Iterate through each leader that is owned by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_megastructure': {
        "description": 'Iterate through each owned megastructure - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_nonprimary_starbase': {
        "description": 'Iterate through every owned non-primary starbase (e.g. orbital rings), not including juggernauts - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_planet': {
        "description": 'Iterate through each inhabited planet owned by the current empire - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_pop_group': {
        "description": 'Iterate through all owned pop groups - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet', 'country', 'galactic_object', 'pop_faction', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_pop_job': {
        "description": 'Iterate through all owned pop jobs - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet', 'country', 'galactic_object', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_pop_species': {
        "description": "Iterate through each species of a country's owned pops - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_sector': {
        "description": 'Iterate through every owned sector - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country', 'fleet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_species': {
        "description": 'Check if any of the species <on the planet/in the country> meet the specified criteria - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet', 'country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_starbase': {
        "description": 'Iterate through every owned primary starbase - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_owned_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_planet_army': {
        "description": 'Iterate through each army on the planet (not in ground combat), regardless of owner. - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_planet_within_border': {
        "description": "Iterate through each planet within the current empire's borders - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_playable_country': {
        "description": 'Iterate through all playable countries - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_pool_leader': {
        "description": 'Iterate through each leader that is recruitable for the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_pop_faction': {
        "description": "Iterate through all the country's pop factions - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_pre_ftl_within_border': {
        "description": "Iterate through all pre-ftl countries within the country's or sector's borders - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_relation': {
        "description": 'Iterate through all relations - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_rim_system': {
        "description": 'Iterate through all rim systems - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_rival_country': {
        "description": 'Iterate through all countries rivalled by the scoped country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_ship_in_system': {
        "description": 'Iterate through each ship in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_situation': {
        "description": 'Iterate through each situation a country is experiencing - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_species_pop_group': {
        "description": 'Iterate through each pop group that belongs to this species; warning: resource-intensive! - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['species'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_spynetwork': {
        "description": 'Iterate through each spynetwork - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_starbase_in_system': {
        "description": 'Iterate through every starbase in the scoped galactic object. - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_subject': {
        "description": 'Iterate through all subjects of the scoped country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system': {
        "description": 'Iterate through all systems - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_added_to_storm': {
        "description": 'Iterate through all systems added to the storm - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_ambient_object': {
        "description": 'Iterate through every ambient object in the solar system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_colony': {
        "description": 'Iterate through each colony in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_in_cosmic_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['cosmic_storm_influence_field'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_megastructure': {
        "description": 'Iterate through each megastructure in system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_planet': {
        "description": 'Iterate through each planet (colony or not) in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_removed_from_storm': {
        "description": 'Iterate through all systems removed from storm - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_with_aura': {
        "description": 'Iterate through every system with an Aura - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_within_border': {
        "description": "Iterate through all systems within the country's or sector's borders - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_system_within_storm': {
        "description": 'Iterate through all systems within the storm - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_targeting_situation': {
        "description": 'Iterate through each situation that is targeting the current planet - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_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',
    },
    'ordered_trait_of_species': {
        "description": 'Iterate through each trait that the scoped species has',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'simple',
    },
    'ordered_war': {
        "description": 'Iterate through all wars the country is engaged in - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'ordered_war_participant': {
        "description": 'Iterate through all war participants - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object according to the order specified (position 0, order_by = trigger:num_pops would run the effects on the X with the most pops)',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'position', 'type': 'integer, starting with 0'}, {'name': 'order_by', 'type': 'variable'}, {'name': 'body', 'type': 'triggers'}],
    },
    'owned_fleet_list_tooltip': {
        "description": "Prints a list of the country's fleets that match the limit triggers in a tooltip, each separated by a line break.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'owned_leader_list_tooltip': {
        "description": "Prints a list of the country's leaders that match the limit triggers in a tooltip, each separated by a line break.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'owned_planet_list_tooltip': {
        "description": "Prints a list of the country's planets that match the limit triggers in a tooltip, each separated by a line break.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'owned_pop_faction_list_tooltip': {
        "description": "Prints a list of the country's pop factions that match the limit triggers in a tooltip, each separated by a line break.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'pass_debris_ownership': {
        "description": 'Passes the scoped debris ownership to the specified country',
        "scopes": ['debris'],
        "usage_format": 'comparison',
    },
    'pass_resolution': {
        "description": 'Immediately passes the first found (oldest) proposed/voting for/failed resolution OR a new resolution of this type.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'pass_resolution_no_cooldown': {
        "description": 'Immediately passes the first found (oldest) proposed/voting for/failed resolution OR a new resolution of this type. Skips the cooldown on the relevant category.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'pass_targeted_resolution': {
        "description": 'Immediately passes the first found (oldest) proposed/voting for/failed resolution OR a new resolution of this type that has the specified target. Ignores whether the target is valid or not.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'perform_astral_action_unlock_check': {
        "description": 'Unlocks Astral Actions that have become unlockable since the last time this effect was called.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'planet_event': {
        "description": 'Fires a planet event for the scoped planet, with optional DAYS and RANDOM delay',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'play_sound': {
        "description": 'Play the defined sound effect',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'pop_change_ethic': {
        "description": 'Changes scoped pop to chosen ethic.',
        "scopes": ['pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'ethic', 'type': 'key'}, {'name': 'amount', 'type': 'amount'}, {'name': 'percentage', 'type': 'percentage'}],
    },
    'pop_event': {
        "description": 'Fires a pop event for the scoped pop, with optional DAYS and RANDOM delay',
        "scopes": ['pop'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'pop_faction_event': {
        "description": 'Fires a pop faction event for the scoped pop faction, with optional DAYS and RANDOM delay',
        "scopes": ['pop_faction'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'pop_force_add_ethic': {
        "description": 'Adds a specific ethic to the scoped pop regardless if pop-species allows ethic divergence or not.',
        "scopes": ['pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'ethic', 'type': 'key'}, {'name': 'amount', 'type': 'amount'}, {'name': 'percentage', 'type': 'percentage'}],
    },
    'pop_group_event': {
        "description": 'Fires a pop group event for the scoped pop group, with optional DAYS and RANDOM delay',
        "scopes": ['pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'pop_remove_ethic': {
        "description": 'Removes a specific ethic from the scoped pop',
        "scopes": ['pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'ethic', 'type': 'key'}, {'name': 'amount', 'type': 'amount'}, {'name': 'percentage', 'type': 'percentage'}],
    },
    'prevent_anomaly': {
        "description": 'Disables or enables anomaly generation for the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'progress_all_researches': {
        "description": 'Make current researches for scoped country advance by given amount.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'prolong_fleet_contract': {
        "description": "Prolongs fleet's lease contract for a numbed of days",
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'propose_resolution': {
        "description": 'Proposes the resolution of the given type',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'resolution', 'type': 'resolution type'}, {'name': 'target', 'type': 'event_target:country'}],
    },
    'queue_actions': {
        "description": "Adds actions to the scoped fleet's action queue",
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'random': {
        "description": 'random), size + random].',
        "scopes": ['pop_group'],
        "usage_format": 'unknown',
    },
    'random_active_first_contact': {
        "description": 'Iterate through each active (non-completed) first contact that this country is engaging in - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_agreement': {
        "description": 'Iterate through each agreement - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_ambient_object': {
        "description": 'Iterate through every ambient object in the game - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_archaeological_site': {
        "description": 'Iterate through every archaeological sites - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_associate': {
        "description": 'Iterate through each associate member of the federation - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['federation'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_astral_rift': {
        "description": 'Iterate through every astral rift - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_attacker': {
        "description": 'Iterate through all attackers in the current war - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_available_debris': {
        "description": 'Iterate through all debris belong to available special projects of the scoped country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_bypass': {
        "description": 'Iterate through every bypass - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_bypass_in_system': {
        "description": 'Iterate through every bypass in the scoped galactic object. - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_combatant_fleet': {
        "description": 'Iterate through each fleet this fleet is in combat with - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['fleet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_controlled_fleet': {
        "description": 'Iterate through each fleet controlled by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_controlled_planet': {
        "description": 'Iterate through each inhabited planet controlled by the current empire - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_controlled_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country', 'fleet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_cosmic_storm': {
        "description": 'Iterate through all cosmic storms in the galaxy - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_cosmic_storm_end_position': {
        "description": 'Iterate through all systems valid to be a storms end position - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_cosmic_storm_start_position': {
        "description": 'Iterate through all systems valid to be a storms start position - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_council_member': {
        "description": 'Iterate through each member of the galactic council - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_country': {
        "description": 'Iterate through all countries - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_country_neighbor_to_system': {
        "description": 'Iterate through all countries that own system 1 jump away from current system (bypasses included) - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_defender': {
        "description": 'Iterate through all defenders in the current war - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_deposit': {
        "description": 'Iterate through each deposit on the planet - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_enslaved_species': {
        "description": 'Check if any of the species with enslaved pops <on the planet/in the country> meet the specified criteria - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet', 'country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_envoy': {
        "description": 'Iterate through each envoy available to the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_espionage_asset': {
        "description": 'Iterate through each espionage asset - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['no_scope', 'spy_network', 'espionage_operation'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_espionage_operation': {
        "description": 'Iterate through each espionage operation - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country', 'no_scope', 'spy_network'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_exhibit': {
        "description": 'Iterate through every exhibit - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_existing_species_traits': {
        "description": 'Iterate through all existing species traits in the game - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_federation': {
        "description": 'Iterate through each federation - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_federation_ally': {
        "description": 'Iterate through all countries in a federation with the scoped country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_first_contact': {
        "description": 'Iterate through each first contact (both active and complete) that this country is engaging in - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_fleet_in_orbit': {
        "description": 'Iterate through each fleet orbiting the current planet/starbase/megastructure - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['megastructure', 'planet', 'starbase'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_fleet_in_system': {
        "description": 'Iterate through each fleet in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_galaxy_fleet': {
        "description": 'Iterate through each fleet in the entire game - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_galaxy_planet': {
        "description": 'Iterate through each planet ANYWHERE in the game; warning: resource intensive! - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_galaxy_sector': {
        "description": 'Iterate through all sectors in the game - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_galaxy_species': {
        "description": 'Check if any species in the galaxy meet the specified criteria - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_galcom_member': {
        "description": 'Iterate through each member of the galactic community - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_ground_combat_attacker': {
        "description": 'Iterate through each army currently attacking the planet in ground combat - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_ground_combat_defender': {
        "description": 'Iterate through each army currently defending the planet in ground combat - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_job_pop_group': {
        "description": 'Iterate through each pop group that contains this job - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['pop', 'job'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_list': {
        "description": 'Picks one random set of effects from a list, influenced by relative weight',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'random_megastructure': {
        "description": 'Iterate through each megastructure - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_member': {
        "description": 'Iterate through each member of the federation - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['federation'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_moon': {
        "description": 'Iterate through each moon of the planet - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_neighbor_country': {
        "description": 'Iterate through all neighbor countries - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_neighbor_system': {
        "description": "Iterate through all a system's neighboring systems by hyperlane - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.",
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_neighbor_system_euclidean': {
        "description": "Iterate through all a system's neighboring systems (by closeness, not by hyperlanes) - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.",
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_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 - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_orbital_station': {
        "description": 'Iterate through each orbital station owned by the current country or in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country', 'galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_army': {
        "description": 'Iterate through each army that is owned by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_design': {
        "description": 'Iterate through all designs owned by the current country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_fleet': {
        "description": 'Iterate through each fleet owned by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_leader': {
        "description": 'Iterate through each leader that is owned by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_megastructure': {
        "description": 'Iterate through each owned megastructure - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_nonprimary_starbase': {
        "description": 'Iterate through every owned non-primary starbase (e.g. orbital rings), not including juggernauts - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_planet': {
        "description": 'Iterate through each inhabited planet owned by the current empire - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_pop_group': {
        "description": 'Iterate through all owned pop groups - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet', 'country', 'galactic_object', 'pop_faction', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_pop_job': {
        "description": 'Iterate through all owned pop jobs - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet', 'country', 'galactic_object', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_pop_species': {
        "description": "Iterate through each species of a country's owned pops - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_sector': {
        "description": 'Iterate through every owned sector - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_ship': {
        "description": 'Iterate through each ship in the fleet or controlled by the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country', 'fleet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_species': {
        "description": 'Check if any of the species <on the planet/in the country> meet the specified criteria - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet', 'country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_starbase': {
        "description": 'Iterate through every owned primary starbase - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_owned_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_planet_army': {
        "description": 'Iterate through each army on the planet (not in ground combat), regardless of owner. - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_planet_within_border': {
        "description": "Iterate through each planet within the current empire's borders - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_playable_country': {
        "description": 'Iterate through all playable countries - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_pool_leader': {
        "description": 'Iterate through each leader that is recruitable for the country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_pop_faction': {
        "description": "Iterate through all the country's pop factions - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_pre_ftl_within_border': {
        "description": "Iterate through all pre-ftl countries within the country's or sector's borders - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_relation': {
        "description": 'Iterate through all relations - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_rim_system': {
        "description": 'Iterate through all rim systems - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_rival_country': {
        "description": 'Iterate through all countries rivalled by the scoped country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_ship_in_system': {
        "description": 'Iterate through each ship in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_situation': {
        "description": 'Iterate through each situation a country is experiencing - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_species_pop_group': {
        "description": 'Iterate through each pop group that belongs to this species; warning: resource-intensive! - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['species'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_spynetwork': {
        "description": 'Iterate through each spynetwork - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country', 'no_scope'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_starbase_in_system': {
        "description": 'Iterate through every starbase in the scoped galactic object. - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_subject': {
        "description": 'Iterate through all subjects of the scoped country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system': {
        "description": 'Iterate through all systems - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_added_to_storm': {
        "description": 'Iterate through all systems added to the storm - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_ambient_object': {
        "description": 'Iterate through every ambient object in the solar system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_colony': {
        "description": 'Iterate through each colony in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_in_cosmic_storm_influence_field': {
        "description": 'Iterate through all influence fields owned by a country - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['cosmic_storm_influence_field'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_megastructure': {
        "description": 'Iterate through each megastructure in system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_planet': {
        "description": 'Iterate through each planet (colony or not) in the current system - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_removed_from_storm': {
        "description": 'Iterate through all systems removed from storm - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_with_aura': {
        "description": 'Iterate through every system with an Aura - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_within_border': {
        "description": "Iterate through all systems within the country's or sector's borders - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.",
        "scopes": ['country', 'sector'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_system_within_storm': {
        "description": 'Iterate through all systems within the storm - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['cosmic_storm'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_targeting_situation': {
        "description": 'Iterate through each situation that is targeting the current planet - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_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',
    },
    'random_trait_of_species': {
        "description": 'Iterate through each trait that the scoped species has',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'simple',
    },
    'random_war': {
        "description": 'Iterate through all wars the country is engaged in - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'random_war_participant': {
        "description": 'Iterate through all war participants - executes the enclosed effects on one of them for which the limit triggers return true. Picks the specific object randomly.',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'randomize_flag_symbol': {
        "description": "Randomizes a country's flag symbol within the selected category",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'reanimate_space_fauna': {
        "description": 'Reanimates Space Fauna ship(s) back to life in zombie form.',
        "scopes": ['ship', 'debris'],
        "usage_format": 'block',
        "params": [{'name': 'fleet', 'type': 'fleet'}],
    },
    'recalculate_storm_influence_field': {
        "description": 'Recalculates the influence for each system in an influence field',
        "scopes": ['cosmic_storm_influence_field'],
        "usage_format": 'simple',
    },
    'recruitable': {
        "description": 'Sets scoped leader as non/recruitable',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'reduce_hp': {
        "description": 'Reduces the hull points of the scoped ship by a specific amount',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'reduce_hp_percent': {
        "description": 'Reduces the hull points of the scoped ship by a relative amount',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'reduce_shield': {
        "description": 'Reduces the shield points of the scoped ship by a specific amount',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'refresh_accords': {
        "description": 'Manually refresh Patrons accords',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'refresh_auto_generated_ship_designs': {
        "description": 'Refresh ship designs that are aut-generated such as colony ships',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'refresh_leader_pool': {
        "description": "Refreshes the scoped country's leader pool.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'refresh_portraits': {
        "description": 'Signals to portrait objects that they need to refresh some of their properties',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'refresh_psionic_aura_type': {
        "description": "Forces an Empire's Psionic Aura to immediately update its type",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'refresh_species_rights': {
        "description": 'Manually refresh species rights.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'refuse_covenant': {
        "description": 'Refuses covenant proposition with Shroud Patron.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'release_vivarium_fauna': {
        "description": "Releases into the wild space fauna contained in the scoped country's Vivarium, from all or given ship category.\tResulting fleet owner can be specified.\tSpace Fauna can be culled for resources instead by specifying 'cull_vivarium_critter = yes'.release_vivarium_fauna = { category = <ship_category>/all location = <target> owner = <country>cull_vivarium_critter = <yes/no> }",
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'release_vivarium_fauna_count': {
        "description": "Releases into the wild a specific amount of space fauna contained in the scoped country's Vivarium.Rarest fauna is released in priority.\tResulting fleet owners can be specified.\trelease_vivarium_fauna_count = { count = <capacity_to_release> location = <target> owners = { <category> = <country> } }",
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'remove_agreement_flag': {
        "description": 'Removes a flag from the scoped agreement',
        "scopes": ['agreement'],
        "usage_format": 'comparison',
    },
    'remove_all_armies': {
        "description": 'Removes all armies on scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'remove_all_buildings': {
        "description": 'Removes all buildings from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'remove_all_districts': {
        "description": 'Removes all districts from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'remove_all_negative_traits': {
        "description": 'Removes all negative traits from the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'remove_all_positive_traits': {
        "description": 'Removes all non-negative traits from the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'remove_all_traits': {
        "description": 'Removes all traits from the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'remove_ambient_object_flag': {
        "description": 'Removes a flag from the scoped ambient object',
        "scopes": ['ambient_object'],
        "usage_format": 'comparison',
    },
    'remove_archaeology_flag': {
        "description": 'Removes a flag from the scoped arc site',
        "scopes": ['archaeological_site'],
        "usage_format": 'comparison',
    },
    'remove_army': {
        "description": 'Removes the scoped army',
        "scopes": ['army'],
        "usage_format": 'comparison',
    },
    'remove_army_flag': {
        "description": 'Removes a flag from the scoped army',
        "scopes": ['army'],
        "usage_format": 'comparison',
    },
    'remove_ascension_perk': {
        "description": 'Remove the target ascension perk from the scoped Country.',
        "scopes": ['planet', 'country', 'ship', 'pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'remove_associate_member': {
        "description": 'Removes a specific associate member from the federation',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'remove_astral_rift_flag': {
        "description": 'Removes a flag from the scoped astral rift',
        "scopes": ['astral_rift'],
        "usage_format": 'comparison',
    },
    'remove_auto_move_target': {
        "description": 'Makes a fleet or ship stop auto-moving',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'remove_building': {
        "description": 'Removes a single instance of a specific building from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'remove_claims': {
        "description": 'Removes claims on target system',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'remove_communications': {
        "description": 'Remove communications between scoped country and target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_country_flag': {
        "description": 'Removes a flag from the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'remove_deposit': {
        "description": 'Remove resource deposit on the scoped planet or deposit, does not fire on_cleared if used on a blocker',
        "scopes": ['planet', 'deposit', 'astral_rift'],
        "usage_format": 'simple_value',
    },
    'remove_deposit_flag': {
        "description": 'Removes a flag from the scoped deposit',
        "scopes": ['deposit'],
        "usage_format": 'comparison',
    },
    'remove_design_flag': {
        "description": 'Removes a flag from the scoped design',
        "scopes": ['design'],
        "usage_format": 'comparison',
    },
    'remove_district': {
        "description": 'Removes a specific district from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'remove_envoys_to': {
        "description": 'Removes any envoys from scoped country assigned to target country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_espionage_asset_flag': {
        "description": 'Removes a flag from the scoped espionage asset',
        "scopes": ['espionage_asset'],
        "usage_format": 'comparison',
    },
    'remove_espionage_operation_flag': {
        "description": 'Removes a flag from the scoped espionage operation',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'remove_favors': {
        "description": 'Remove <value/all> favors that scoped country have on target country:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'target', 'type': 'target'}, {'name': 'value', 'type': 'value/all/variable'}],
    },
    'remove_federation_flag': {
        "description": 'Removes a flag from the scoped federation',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'remove_first_contact_flag': {
        "description": 'Removes a flag from the scoped first contact site',
        "scopes": ['first_contact'],
        "usage_format": 'comparison',
    },
    'remove_fleet_flag': {
        "description": 'Removes a flag from the scoped fleet',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'remove_from_empire_council': {
        "description": 'Removes scoped leader from empire council',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'remove_from_federation': {
        "description": 'The scoped country is removed from any federation its in',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'remove_from_galactic_community': {
        "description": 'Tries to remove the scoped country from the Galactic Community',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'remove_from_galactic_council': {
        "description": 'Tries to remove the scoped country from the Galactic Council',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'remove_global_flag': {
        "description": 'Removes a global flag',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'remove_global_ship_design': {
        "description": 'Removes a specific global design from the game',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'remove_holding': {
        "description": 'Removes a specific holding from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'remove_hyperlane': {
        "description": 'Removes existing hyperlane between two systems',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'remove_leader_flag': {
        "description": 'Removes a flag from the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'remove_megastructure': {
        "description": 'Removes a mega structure.',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'remove_megastructure_flag': {
        "description": 'Removes a flag from the scoped mega structure',
        "scopes": ['megastructure'],
        "usage_format": 'comparison',
    },
    'remove_modifier': {
        "description": 'Removes a specific modifier from the scope object',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'pop', 'pop_group', 'fleet', 'galactic_object', 'pop_faction', 'federation', 'starbase', 'spy_network', 'espionage_operation', 'astral_rift', 'cosmic_storm_influence_field'],
        "usage_format": 'simple_value',
    },
    'remove_notification_modifier': {
        "description": 'Remove a notification modifier to the country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_opinion_modifier': {
        "description": 'Removes a specific opinion modifier towards target country or any country from the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'remove_patron': {
        "description": 'Remove a patron from the shroud plane.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_permanent_councillor': {
        "description": 'Remove the provided country from their permanent council position',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'remove_planet': {
        "description": 'Removes the planet from the scope',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'remove_planet_flag': {
        "description": 'Removes a flag from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'remove_point_of_interest': {
        "description": "Removes a specific point of interest from the scoped country's situation log",
        "scopes": ['planet', 'country'],
        "usage_format": 'simple_value',
    },
    'remove_pop_amount': {
        "description": 'Removes the amount of pops from the scope pop group.',
        "scopes": ['pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'remove_pop_amount', 'type': 'num'}, {'name': 'amount', 'type': 'number'}],
    },
    'remove_pop_faction_flag': {
        "description": "Removes a flag from the scoped pop group's faction/pop faction",
        "scopes": ['pop', 'pop_group', 'pop_faction'],
        "usage_format": 'comparison',
    },
    'remove_pop_flag': {
        "description": 'Removes a flag from the scoped pop',
        "scopes": ['pop'],
        "usage_format": 'comparison',
    },
    'remove_pop_group_flag': {
        "description": 'Removes a flag from the scoped pop group',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'remove_random_building': {
        "description": 'Removes last built building from the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'remove_random_district': {
        "description": 'Removes a random district from the scoped planet. Bigger district is more likely to be removed.',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'remove_random_starbase_building': {
        "description": 'Remove a number of random building(s) matching/not matching a type from the starbase',
        "scopes": ['starbase'],
        "usage_format": 'block',
        "params": [{'name': 'type', 'type': 'starbase building'}, {'name': 'count', 'type': 'int'}],
    },
    'remove_random_starbase_module': {
        "description": 'Remove a number of random module(s) matching/not matching a type from the starbase',
        "scopes": ['starbase'],
        "usage_format": 'block',
        "params": [{'name': 'type', 'type': 'starbase module'}, {'name': 'count', 'type': 'int'}],
    },
    'remove_relation_flag': {
        "description": 'Removes a specific relation flag towards target country from the scoped country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'who', 'type': 'target'}, {'name': 'flag', 'type': 'key'}],
    },
    'remove_relic': {
        "description": 'Removes the specified relic from the scoped country.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_saved_leader': {
        "description": 'Removes a saved leader for the scoped country with a lookup key',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_secret_fealty': {
        "description": 'Removes a secret fealty pact between the scoped subject country and the target empire',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_sector_flag': {
        "description": 'Removes a flag from the scoped sector',
        "scopes": ['sector'],
        "usage_format": 'comparison',
    },
    'remove_ship_design': {
        "description": 'Removes a specific ship design from the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_ship_flag': {
        "description": 'Removes a flag from the scoped ship',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'remove_situation_flag': {
        "description": 'Removes a flag from the scoped situation',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'remove_species_flag': {
        "description": 'Removes a flag from the scoped species',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'remove_specimen': {
        "description": 'Removes specified specimen from the target country. This will destroy the specimen',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'remove_spynetwork_flag': {
        "description": 'Removes a flag from the scoped spy network',
        "scopes": ['spy_network'],
        "usage_format": 'comparison',
    },
    'remove_stage_modifier': {
        "description": 'Removes a specific modifier from the target current stage',
        "scopes": ['espionage_operation', 'astral_rift'],
        "usage_format": 'simple_value',
    },
    'remove_star_flag': {
        "description": 'Removes a flag from the scoped system',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'remove_starbase_building': {
        "description": 'Remove a building from a certain slot or all slots on a starbase',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'remove_starbase_component': {
        "description": 'Removes the specified ship component to a starbase. Only works for components that are standalone from any module or building.',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'remove_starbase_flag': {
        "description": 'Removes a flag from the scoped starbase',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'remove_starbase_module': {
        "description": 'Removes a module from a certain slot or all slots on a starbase',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'remove_terrified': {
        "description": 'Removes terrified state on the target ship/fleet (all ships).',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'remove_tradition': {
        "description": 'Remove the target tradition from the scoped Country.',
        "scopes": ['planet', 'country', 'ship', 'pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'remove_tradition_tree': {
        "description": 'Remove the target tradition tree from the scoped Country.',
        "scopes": ['planet', 'country', 'ship', 'pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'remove_trait': {
        "description": 'Removes a specific trait from the scoped leader, or removes all negative traits',
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'remove_war_flag': {
        "description": 'Removes a flag from the scoped war',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'remove_war_participant': {
        "description": 'Removes a specified country from the war',
        "scopes": ['war'],
        "usage_format": 'simple_value',
    },
    'remove_zone': {
        "description": 'Removes a zone from the district of the planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'district', 'type': 'district_type_key/district_slot_index'}, {'name': 'zone', 'type': 'zone_type_key'}, {'name': 'zone_slot', 'type': 'zone_slot_index'}, {'name': 'all', 'type': 'yes/no'}],
    },
    'rename_species': {
        "description": 'Renames the species.',
        "scopes": ['species'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'value'}, {'name': 'name_list', 'type': 'value'}],
    },
    'renew_bypass_lock': {
        "description": "Renew a Bypass Lock's duration as if it was just built.",
        "scopes": ['bypass'],
        "usage_format": 'comparison',
    },
    'repair_all_buildings': {
        "description": 'Repairs all ruined buildings on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'repair_amount': {
        "description": 'Restores a certain amount of hull points to the scoped ship or fleet',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'repair_armor_amount': {
        "description": 'Restores a certain amount of armor points to the scoped ship or fleet',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'repair_armor_percentage': {
        "description": 'Restores a certain percentage of armor points to the scoped ship or fleet',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'repair_building': {
        "description": 'Repairs a single instance of a specific building on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'repair_percentage': {
        "description": 'Restores a certain percentage of hull points to the scoped ship or fleet',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'repair_shield_amount': {
        "description": 'Restores a certain amount of shield points to the scoped ship or fleet',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'repair_shield_percentage': {
        "description": 'Restores a certain percentage of shield points to the scoped ship or fleet',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'repair_ship': {
        "description": 'Restores all hull points to the scoped ship',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'replace_patron': {
        "description": "Replace a patron with another one, creating the patron relation if it does not yet exist, and setting the new patron to the replaced patron's position in the shroud plane.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'reroll_deposits': {
        "description": 'Rebuild resource deposits on target planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'reroll_planet_modifiers': {
        "description": 'Rebuild modifiers on target planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'reroll_random': {
        "description": 'Rerolls the random seed. Use if you want to have a second random_list return a different result. Do not use in tooltips that show random results, because the tooltip will be wrong!',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'reset_current_stage': {
        "description": 'Resets the current stage',
        "scopes": ['archaeological_site'],
        "usage_format": 'unknown',
    },
    'reset_event_chain_counter': {
        "description": 'Resets n event chain counter for the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'reset_growth': {
        "description": 'Resets growth to zero (non-fauna ships)',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'reset_killed_ship_designs': {
        "description": 'used to force the fleet to reset its killed ships designs.',
        "scopes": ['fleet'],
        "usage_format": 'simple',
    },
    'reset_policy_cooldowns': {
        "description": 'Resets the cooldown period of all policies for a country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'reset_years_of_peace': {
        "description": 'Resets years of peace for a country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'resettle_pop': {
        "description": 'Instantly resettles pop',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'restore_country_backup_data': {
        "description": 'Restores backed up data to the scoped country.',
        "scopes": ['country'],
        "usage_format": 'unknown',
    },
    'return_leader_from_exile': {
        "description": 'Returns the leader from a custom name',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'revert_accords': {
        "description": 'Launches the on_revert effects for all accords of a Shroud Patron.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'roll_ai_preferred_patron': {
        "description": 'Rolls the major Shroud Patron scoped AI will devote themselves to, by selecting the patron with the highest attunement value.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'room_name_override': {
        "description": 'Sets the room background of the empire. Provide an empty string to remove the override.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'round_variable': {
        "description": 'Rounds a previously-set variable to the closest integer.',
        "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": 'simple_value',
    },
    'round_variable_to_closest': {
        "description": 'Rounds a previously-set variable to the closest X',
        "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': 'string'}, {'name': 'value', 'type': 'float'}],
    },
    'ruin_building': {
        "description": 'Ruins a single instance of a specific building on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'run_ai_strategic_data': {
        "description": 'Recomputes ALL strategic data for AI = yes',
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'run_ai_strategic_war_data': {
        "description": 'Recomputes strategic war ( attack / defense ) data for AI = yes',
        "scopes": ['country'],
        "usage_format": 'simple',
    },
    'sacrifice_assigned_pop_amount': {
        "description": 'Instantly sacrifices part of the assigned pops to this job',
        "scopes": ['pop', 'job'],
        "usage_format": 'block',
        "params": [{'name': 'amount', 'type': 'amount sacrificed'}, {'name': 'percentage', 'type': 'percentage sacrificed'}, {'name': 'body', 'type': 'triggers'}],
    },
    'sacrifice_pop_group': {
        "description": 'Instantly destroys part of a pop group (prefer to use instead of kill_pop_group when the country intentionally kills it)',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'save_event_target_as': {
        "description": 'Saves the current scope as an arbitrarily-named target to be referenced later in the (unbroken) event chain',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'save_global_event_target_as': {
        "description": 'Saves the current scope as an arbitrarily-named target to be referenced later, accessible globally until cleared',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'scale_pop_amount': {
        "description": 'Scales the amount of pops in the scope pop group',
        "scopes": ['pop_group'],
        "usage_format": 'simple_value',
    },
    'select_decision': {
        "description": 'Selects a decision on a planet',
        "scopes": ['planet'],
        "usage_format": 'simple',
    },
    'set_adjective': {
        "description": 'Sets the adjective of the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_advisor_active': {
        "description": 'Enables or disables the VIR window pop-in',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_age': {
        "description": 'Sets the age of the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'set_aggro_range': {
        "description": "Sets the scoped fleet/country's aggro range in intra-system units",
        "scopes": ['country', 'fleet'],
        "usage_format": 'simple_value',
    },
    'set_aggro_range_measure_from': {
        "description": "Determines whether the scoped fleet/country's aggro range is measured from the fleet's current position or its spawn location",
        "scopes": ['country', 'fleet'],
        "usage_format": 'simple_value',
    },
    'set_agreement_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped agreement',
        "scopes": ['agreement'],
        "usage_format": 'comparison',
    },
    'set_agreement_preset': {
        "description": "Sets the preset of an agreement and applies its terms on the agreement if 'apply_terms' is 'yes'.",
        "scopes": ['agreement'],
        "usage_format": 'block',
        "params": [{'name': 'preset', 'type': 'preset key'}, {'name': 'apply_terms', 'type': 'value'}],
    },
    'set_agreement_terms': {
        "description": 'Sets agreement terms of the agreement. Can be used to set multiple terms at once, including resource subsidies.',
        "scopes": ['agreement'],
        "usage_format": 'block',
        "params": [{'name': 'resource_subsidies_alloys', 'type': 'value'}],
    },
    'set_ai_personality': {
        "description": 'Sets the AI personality of a country to a new one',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_ai_preferred_patron': {
        "description": 'Set the Shroud Patron scoped AI will devote themselves to.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_allow_subjects_to_join': {
        "description": "Sets right for subjects to join federation. Please don't use outside law on_enact, functional effect! Use set_federation_law and has_federation_law instead.",
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'set_ambient_object_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped ambient object',
        "scopes": ['ambient_object'],
        "usage_format": 'comparison',
    },
    'set_archaeology_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped arc site',
        "scopes": ['archaeological_site'],
        "usage_format": 'comparison',
    },
    'set_army_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped army',
        "scopes": ['army'],
        "usage_format": 'comparison',
    },
    'set_asteroid_belt': {
        "description": 'Sets an asteroid belt at the distance in the scope.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'radius', 'type': 'desired radius'}, {'name': 'type', 'type': 'asteroid belt type key'}],
    },
    'set_astral_rift_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped astral rift',
        "scopes": ['astral_rift'],
        "usage_format": 'comparison',
    },
    'set_attunement': {
        "description": 'Sets attunement of the specified patron to a specific amount.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_aura_intensity': {
        "description": 'Sets given intensity to Psionic Aura in scoped system',
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'set_auto_upgrade_components': {
        "description": 'Sets wether or not the design automatically upgrades its components.',
        "scopes": ['design'],
        "usage_format": 'comparison',
    },
    'set_awareness': {
        "description": 'Sets awareness for the scoped (pre-FTL) country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_built_species': {
        "description": 'Changes the built species of the scoped object',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_capital': {
        "description": 'Sets the scoped planet to be the capital of its owner country',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'set_citizenship_type': {
        "description": 'Set citizenship type for scoped species/pop group/leader',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'set_city_graphical_culture': {
        "description": "Sets the scoped country's city graphical culture",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_cloaking_active': {
        "description": "Sets current fleet's cloaking status",
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'set_closed_borders': {
        "description": 'Changes closed borders status between two countries',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'forced', 'type': 'int'}, {'name': 'status', 'type': 'value'}],
    },
    'set_colonization_controls': {
        "description": 'Set colonization control for scoped species/pop group/leader',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'set_colony_type': {
        "description": "Sets the colony's designation type",
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'set_confused': {
        "description": 'Sets the confusion state on the target ship/fleet (all ships). Clears at the end of combat.',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'set_controller': {
        "description": "Instantly sets the planet/fleet's controller to target country. If the fleet is a starbase, starts occupation, otherwise the fleet is leased out.",
        "scopes": ['planet', 'fleet'],
        "usage_format": 'simple_value',
    },
    'set_cooldown': {
        "description": 'Locks the leader in its current role for the next X days.',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'set_cosmic_storm': {
        "description": 'Sets a storm on a system',
        "scopes": ['galactic_object'],
        "usage_format": 'unknown',
    },
    'set_council_agenda': {
        "description": "Set the Country's council agenda",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_council_emergency_measures': {
        "description": 'Sets whether council members can propose emergency measures or not',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'set_council_position': {
        "description": "Sets the scoped leader to a council position if it is present in the government of the leader's owner country.",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'set_council_position_title_female': {
        "description": "Sets the scoped country's council position's female title.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_council_position_title_male': {
        "description": "Sets the scoped country's council position's male title.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_council_position_to_council': {
        "description": "Assigns a council position to the country's council, if possible.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_council_size': {
        "description": 'Sets the number of seats on the Galactic Council',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'set_council_veto': {
        "description": 'Sets whether council members can veto resolutions or not',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'set_country_code_flags': {
        "description": 'Sets flags as used by code, not defined in script:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'some_flag_1', 'type': 'value'}, {'name': 'some_flag_2', 'type': 'value'}],
    },
    'set_country_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_country_type': {
        "description": 'Changes the country type of the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_crisis_sound': {
        "description": 'Sets the crisis ambient loop to the current effect',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'set_current_stage': {
        "description": 'Sets the current stage for this arc site (first chapter is index 0).',
        "scopes": ['archaeological_site'],
        "usage_format": 'simple_value',
    },
    'set_custodian_term_days': {
        "description": 'Set the current Custodian term time. -1 will make the Custodianship permanent.',
        "scopes": ['all'],
        "usage_format": 'simple_value',
    },
    'set_custom_capital_location': {
        "description": 'Sets a custom spatial object as custom country capital location.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_deposit': {
        "description": 'Replaces resource deposit on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'set_deposit_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped deposit',
        "scopes": ['deposit'],
        "usage_format": 'comparison',
    },
    'set_design_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped design',
        "scopes": ['design'],
        "usage_format": 'comparison',
    },
    'set_diplomacy_action_setting': {
        "description": "Sets diplomatic action custom setting. Please don't use outside law on_enact, functional effect! Use set_federation_law and has_federation_law instead.",
        "scopes": ['federation'],
        "usage_format": 'block',
        "params": [{'name': 'action', 'type': 'action_key'}],
    },
    'set_disable_at_health': {
        "description": 'Sets the scoped ship to become disabled at a certain hull point percentage',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'comparison',
    },
    'set_disabled': {
        "description": 'Enables or disables the scoped ship',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'set_emergency_fund_active': {
        "description": 'Sets whether the emergency fund should be active or not.',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'set_emergency_fund_contribution_rate': {
        "description": 'Sets rate for contributions to the emergency fund.',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'set_emperor_can_change_council_members': {
        "description": 'Sets whether the Galactic Emperor can change Imperial Council members or not',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'set_empire_flag': {
        "description": 'Sets the flag of the current Empire.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_empire_name': {
        "description": 'Sets the name of the current Empire.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_equal_voting_power': {
        "description": "Sets different voting weight. Please don't use outside law on_enact, functional effect! Use set_federation_law and has_federation_law instead.",
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'set_espionage_asset_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped espionage asset',
        "scopes": ['espionage_asset'],
        "usage_format": 'comparison',
    },
    'set_espionage_operation_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped espionage operation',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'set_espionage_operation_progress_locked': {
        "description": 'Locks or unlocks the progress of an espionage operation',
        "scopes": ['espionage_operation'],
        "usage_format": 'comparison',
    },
    'set_event_locked': {
        "description": 'Silently disables the scoped fleet to prevent player action, remember to unlock at the end of the event',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'set_faction_auto_delete': {
        "description": 'Sets if country will be automatically deleted when considered dead',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_faction_extorted': {
        "description": 'Sets the scope faction as extorted and removes extortion from any other ones',
        "scopes": ['pop_faction'],
        "usage_format": 'simple_value',
    },
    'set_faction_hostility': {
        "description": 'Sets the aggro state of the scoped faction-type country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_faction_needs_colony': {
        "description": 'Sets if a country needs a colony (or a colony ship) to be considered alive',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_fauna_fleet_growth_stance': {
        "description": "Sets Space Fauna growth stance. Setting to 'none' resets stance to use default country policy.",
        "scopes": ['country', 'fleet'],
        "usage_format": 'comparison',
    },
    'set_federation_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped federation',
        "scopes": ['federation'],
        "usage_format": 'comparison',
    },
    'set_federation_law': {
        "description": 'Sets the given law for the scoped federation',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'set_federation_leader': {
        "description": 'Sets a country to lead a federation',
        "scopes": ['country', 'federation'],
        "usage_format": 'simple_value',
    },
    'set_federation_settings': {
        "description": "Sets diplomatic action custom setting. Please don't use outside law on_enact, functional effect! Use set_federation_law and has_federation_law instead.",
        "scopes": ['federation'],
        "usage_format": 'block',
    },
    'set_federation_succession_term': {
        "description": "Sets scoped federation's succession term to the specified value. Please don't use outside law on_enact, functional effect! Use set_federation_law and has_federation_law instead.",
        "scopes": ['federation'],
        "usage_format": 'unknown',
    },
    'set_federation_succession_type': {
        "description": "Sets scoped federation's succession type to the specified value. Please don't use outside law on_enact, functional effect! Use set_federation_law and has_federation_law instead.",
        "scopes": ['federation'],
        "usage_format": 'unknown',
    },
    'set_federation_type': {
        "description": 'Sets federation type to the scoped federation',
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'set_female_heir_title': {
        "description": "Sets the country's female heir title to a custom value",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_female_ruler_title': {
        "description": "Sets the country's female ruler title to a custom value",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_first_contact_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped first contact site',
        "scopes": ['first_contact'],
        "usage_format": 'comparison',
    },
    'set_first_contact_stage': {
        "description": 'Sets the given stage for the scoped first contact',
        "scopes": ['first_contact'],
        "usage_format": 'simple_value',
    },
    'set_fleet_bombardment_stance': {
        "description": 'Sets the bombardment stance of the scoped fleet',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'set_fleet_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped fleet',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'set_fleet_formation': {
        "description": 'Sets a custom fleet formation on a fleet.',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'set_fleet_settings': {
        "description": "Set fleet's settings, any unspecified setting will set to default value.",
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'set_fleet_stance': {
        "description": 'Sets the stance of the scoped fleet',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'set_formation_scale': {
        "description": "Scales the scoped fleet's formation's ship spacing, above and below 1.0",
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'set_free_migration': {
        "description": "Sets unified migration flag for federation. Please don't use outside law on_enact, functional effect! Use set_federation_law and has_federation_law instead.",
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'set_galactic_custodian': {
        "description": 'Sets whether or not the scoped country is the Galactic Custodian',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_galactic_defense_force': {
        "description": 'Sets whether the Galactic Defense force or Imperial Armada exists',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'set_galactic_emperor': {
        "description": 'Sets whether or not the scoped country is the Galactic Emperor',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_gender': {
        "description": 'Sets the gender of the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'set_global_flag': {
        "description": 'Sets an arbitrarily-named global flag',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'set_government_cooldown': {
        "description": "Locks the country's government for a given period of days, the default cooldown, or unlocks it.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_graphical_culture': {
        "description": "Sets the scoped object's graphical culture",
        "scopes": ['megastructure', 'country', 'starbase'],
        "usage_format": 'simple_value',
    },
    'set_habitability_trait': {
        "description": 'Set planet preference trait for scoped species (removing the current one, if any).',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'set_halted': {
        "description": 'Sets the mega structure upgrade to halted status for n days. -1 days = indefinitely',
        "scopes": ['megastructure'],
        "usage_format": 'comparison',
    },
    'set_heir': {
        "description": "Sets the target leader to be the scoped country's heir",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_home_base': {
        "description": 'Set the home base of the scoped fleet to the specified starbase',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'set_hostile': {
        "description": "Sets the target country as hostile. This will work on countries you don't have comms with, unlike set_faction_hostility.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_immortal': {
        "description": "Sets the scoped leader immortal. The 'no' case will not override immortality granted by species characteristics (but will disable immortality granted by this effect).",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'set_leader': {
        "description": 'Reinstates a previously-exiled leader to the scoped country/fleet/army/pop faction',
        "scopes": ['country', 'fleet', 'army'],
        "usage_format": 'simple_value',
    },
    'set_leader_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped leader',
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'set_leader_tier': {
        "description": "Sets the leader's tier.",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'set_living_standard': {
        "description": 'Set living standard for scoped species/pop group/leader',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'set_location': {
        "description": "Sets the fleet/ambient object's location, can be fine-tuned",
        "scopes": ['fleet', 'ambient_object'],
        "usage_format": 'block',
        "params": [{'name': 'set_location', 'type': 'target'}, {'name': 'target', 'type': 'target'}, {'name': 'distance', 'type': 'int/random'}, {'name': 'angle', 'type': 'int/random'}, {'name': 'direction', 'type': 'in_system/out_system'}],
    },
    'set_male_heir_title': {
        "description": "Sets the country's male heir title to a custom value",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_male_ruler_title': {
        "description": "Sets the country's male ruler title to a custom value",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_market_leader': {
        "description": 'Set scoped country as the current Galactic Market leader.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_megastructure_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped mega structure',
        "scopes": ['megastructure'],
        "usage_format": 'comparison',
    },
    'set_mia': {
        "description": 'Sets the current fleet to go missing in action with the MIA type defided by <key>',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'set_mia_return_delay': {
        "description": 'If the scoped fleet is MIA, sets the return date in a given number of days, starting from current date',
        "scopes": ['fleet'],
        "usage_format": 'simple_value',
    },
    'set_migration_controls': {
        "description": 'Set migration control for scoped species/pop group/leader',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'set_military_service_type': {
        "description": 'Set military service type for scoped species/pop group/leader',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'set_mission': {
        "description": 'Sets the current mission of an observation station',
        "scopes": ['fleet'],
        "usage_format": 'comparison',
    },
    'set_mission_counter': {
        "description": 'Sets a mission counter for the scoped country to a specific amount',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_name': {
        "description": 'Sets the name of the scoped country/planet/ship/fleet/leader/army/system/pop faction',
        "scopes": ['megastructure', 'planet', 'country', 'ship', 'fleet', 'galactic_object', 'leader', 'army', 'pop_faction', 'war', 'federation', 'sector', 'first_contact'],
        "usage_format": 'simple_value',
    },
    'set_next_astral_rift_event': {
        "description": 'Sets next Astral Rift event through an astral rift event ID, and another astral rift event ID to be called in case of a roll failed, alongside a trigger probability.\tTo fire an Astral Rift event immediately, use astral_rift_event instead.',
        "scopes": ['astral_rift'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'event_id'}, {'name': 'on_roll_failed', 'type': 'event_id'}, {'name': 'fail_probability', 'type': 'float'}],
    },
    'set_only_leader_builds_fleets': {
        "description": "Sets exclusive right to build fleets by federation leader. Please don't use outside law on_enact, functional effect! Use set_federation_law and has_federation_law instead.",
        "scopes": ['federation'],
        "usage_format": 'simple_value',
    },
    'set_origin': {
        "description": "Sets the country's origin to a certain value. Note: This will not run effects executed during galaxy generation.",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_owner': {
        "description": 'Instantly sets the owner of the scoped planet/fleet/army/starbase to target country',
        "scopes": ['megastructure', 'planet', 'fleet', 'leader', 'army', 'starbase'],
        "usage_format": 'simple_value',
    },
    'set_patron_first_contact_state': {
        "description": 'Sets the contact state with a Shroud Patron (will create the relation if needed).',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'patron', 'type': 'patron_name'}, {'name': 'state', 'type': 'none / in_progress / completed (default)'}],
    },
    'set_planet_entity': {
        "description": 'Change entity of a planet.',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'entity', 'type': 'name of entity'}, {'name': 'graphical_culture', 'type': 'target or name of culture'}, {'name': 'picture', 'type': 'picture override'}, {'name': 'atmosphere_color', 'type': 'color from 3 components'}],
    },
    'set_planet_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'set_planet_name': {
        "description": 'Sets the name of the current planet.',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'set_planet_purge_type': {
        "description": 'Sets the purge type for the entire planet',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'set_planet_size': {
        "description": 'Sets the planet size to a specified number',
        "scopes": ['planet'],
        "usage_format": 'simple_value',
    },
    'set_planetary_ascension_tier': {
        "description": "Sets the planet's ascension tier to the specified value",
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'set_player': {
        "description": 'Assign the player of the target country to play the scoped country instead',
        "scopes": ['country'],
        "usage_format": 'block',
    },
    'set_policy': {
        "description": 'Sets a policy to a specific option for the scoped country and specifies if policy cooldown should go into effect',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_policy_cooldown': {
        "description": 'Sets the specified policy group to have a cooldown as if the policy had just been changed.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_pop_faction': {
        "description": 'Sets the scoped pop group to belong to a specific pop faction',
        "scopes": ['pop', 'pop_group'],
        "usage_format": 'simple_value',
    },
    'set_pop_faction_flag': {
        "description": "Sets an arbitrarily-named flag on the scoped pop group's faction/pop faction",
        "scopes": ['pop', 'pop_group', 'pop_faction'],
        "usage_format": 'comparison',
    },
    'set_pop_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped pop',
        "scopes": ['pop'],
        "usage_format": 'comparison',
    },
    'set_pop_group_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped pop group',
        "scopes": ['pop_group'],
        "usage_format": 'comparison',
    },
    'set_population_controls': {
        "description": 'Set population control for scoped species/pop group/leader',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'set_pre_ftl_age': {
        "description": 'Set pre-FTL technology level. Does nothing if the country is not pre-FTL.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_purge_type': {
        "description": 'Set purge type for scoped species/pop group/leader',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'set_relation_flag': {
        "description": 'Sets a relation flag for the scoped country towards target country',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'who', 'type': 'target'}, {'name': 'flag', 'type': 'key'}],
    },
    'set_resource': {
        "description": 'Sets the specific resource to the stockpile for the country scope:',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'resource', 'type': 'resource_name'}, {'name': 'value', 'type': 'variable'}],
    },
    'set_ring': {
        "description": 'Adds or removes a planetary ring around the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'set_rule_can_subject_be_integrated': {
        "description": 'Changes the agreement term for whether the Subject can be integrated',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'set_rule_can_subject_do_diplomacy': {
        "description": 'Changes the agreement term for whether the Subject can do diplomacy',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'set_rule_can_subject_expand': {
        "description": 'Changes the agreement term for whether the Subject can expand',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'set_rule_can_subject_vote': {
        "description": 'Changes the agreement term for whether the Subject can vote independently of its overlord in GalCom/federations',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'set_rule_join_overlord_wars': {
        "description": 'Changes the agreement term for Subject to join Overlord wars',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'set_rule_join_subject_wars': {
        "description": 'Changes the agreement term for Overlord to wars of its Subject',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'set_rule_subject_has_access': {
        "description": "Changes the agreement term for whether the Subject can access the overlord's territory (and territories the overlord has access to) despite closed borders",
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'set_rule_subject_has_sensors': {
        "description": 'Changes the agreement term for whether the Subject gets sensors data from Overlord',
        "scopes": ['agreement'],
        "usage_format": 'simple_value',
    },
    'set_ruler_title_female': {
        "description": "Sets the scoped country's female ruler's title.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_ruler_title_male': {
        "description": "Sets the scoped country's male ruler's title.",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_saved_date': {
        "description": 'Sets an arbitrarily-named date flag for the scoped object. Acts both as an <scope object>_flag and as a means for saving a date. The flag can then be referred to in localisations [This.<flag>] to produce the date.',
        "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': 'key', 'type': 'key'}, {'name': 'days_from_present', 'type': 'int'}, {'name': 'expires', 'type': 'int'}],
    },
    'set_sector_capital': {
        "description": 'Sets the scoped planet to be the capital of the sector it is part of. If used in the capital sector, it will shift the empire capital. Warning: Experimental, may have unintended consequences.',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'set_sector_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped sector',
        "scopes": ['sector'],
        "usage_format": 'comparison',
    },
    'set_ship_construction_type': {
        "description": "Set scoped starbase's current construction type",
        "scopes": ['starbase'],
        "usage_format": 'simple_value',
    },
    'set_ship_design': {
        "description": 'Changes which design a ship uses/all ships in a fleet use, to the target design',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'block',
        "params": [{'name': 'design', 'type': 'ship design key/target/last_created_design, or use random_existing_design'}, {'name': 'random_existing_design', 'type': 'ship size key'}],
    },
    'set_ship_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped ship',
        "scopes": ['ship'],
        "usage_format": 'comparison',
    },
    'set_ship_prefix': {
        "description": 'Sets the ship prefix of the scoped country',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_site_progress_locked': {
        "description": 'Locks or unlocks the progress of a site',
        "scopes": ['archaeological_site', 'first_contact'],
        "usage_format": 'comparison',
    },
    'set_situation_approach': {
        "description": 'Sets the approach to the Situation. Respects allow and potential triggers.',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'set_situation_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped situation',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'set_situation_locked': {
        "description": 'Locks the Situation so it will not progress until unlocked.',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'set_situation_progress': {
        "description": 'Sets the progress of scoped situation',
        "scopes": ['situation'],
        "usage_format": 'comparison',
    },
    'set_skill': {
        "description": "Sets the scoped leader's level",
        "scopes": ['leader'],
        "usage_format": 'comparison',
    },
    'set_slavery_type': {
        "description": 'Set slavery type for scoped species/pop group/leader',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'comparison',
    },
    'set_spawn_system_batch': {
        "description": 'Optimizes the calls for spawn_system effect. Spawn system should be located in a block between Begin and End.',
        "scopes": ['all'],
        "usage_format": 'unknown',
    },
    'set_species_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped species',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'set_species_homeworld': {
        "description": 'Defines a homeworld for the current species.',
        "scopes": ['species'],
        "usage_format": 'simple_value',
    },
    'set_species_identity': {
        "description": 'Sets the current species scopes identity to match the target scopes making them evaluate as the same species in is_same_species trigger.',
        "scopes": ['species'],
        "usage_format": 'comparison',
    },
    'set_spynetwork_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped spy network',
        "scopes": ['spy_network'],
        "usage_format": 'comparison',
    },
    'set_star_class': {
        "description": "Sets the star's star class, affecting system and galactic map graphics and potentially modifiers. Also changes the planet class of the system's primary star.",
        "scopes": ['galactic_object'],
        "usage_format": 'simple_value',
    },
    'set_star_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped system',
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'set_starbase_building': {
        "description": 'Sets a building in a slot on a starbase',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'set_starbase_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped starbase',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'set_starbase_module': {
        "description": 'Sets a module in a slot on a starbase',
        "scopes": ['starbase'],
        "usage_format": 'comparison',
    },
    'set_starbase_size': {
        "description": 'Sets the ship size of a starbase',
        "scopes": ['starbase'],
        "usage_format": 'simple_value',
    },
    'set_storm_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped cosmic storm.',
        "scopes": ['cosmic_storm'],
        "usage_format": 'comparison',
    },
    'set_subject_of': {
        "description": 'Sets the scoped country to be a subject of target country. If use_demanded_terms is set to yes, then the subject agreement will use terms that have previously been demanded in a diplomatic action. If allow_instant_negotiation is set to yes, then the subject and overlord can re-negotiate their agreement right away without having to way for the cooldown. If preset is specified, then the agreement will start as that preset',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'who', 'type': 'target'}, {'name': 'preset', 'type': 'preset_name'}, {'name': 'use_demanded_terms', 'type': 'value'}, {'name': 'allow_instant_negotiation', 'type': 'value'}],
    },
    'set_surveyed': {
        "description": 'Sets the planet/astral rift or system as un/surveyed by target country',
        "scopes": ['planet', 'galactic_object', 'astral_rift'],
        "usage_format": 'comparison',
    },
    'set_terraform_progress': {
        "description": 'Sets terraforming progress of scoped planet, finishes the terraformation, if enough progress is reached',
        "scopes": ['planet'],
        "usage_format": 'simple',
    },
    'set_terrified_by': {
        "description": 'Sets which ship terrified the target ship/fleet (all ships). Clears at the end of combat.',
        "scopes": ['ship', 'fleet'],
        "usage_format": 'simple_value',
    },
    'set_timed_agreement_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped agreement for a set duration',
        "scopes": ['agreement'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_ambient_object_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped ambient object for a set duration',
        "scopes": ['fleet'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_archaeology_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped arc site for a set duration',
        "scopes": ['archaeological_site'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_army_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped army for a set duration',
        "scopes": ['army'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_country_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped country for a set duration',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_deposit_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped deposit for a set duration',
        "scopes": ['deposit'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_espionage_asset_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped espionage asset for a set duration',
        "scopes": ['espionage_asset'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_espionage_operation_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped espionage operation for a set duration',
        "scopes": ['espionage_operation'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_federation_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped federation for a set duration',
        "scopes": ['federation'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_first_contact_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped first contact site for a set duration',
        "scopes": ['first_contact'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_fleet_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped fleet for a set duration',
        "scopes": ['fleet'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_global_flag': {
        "description": 'Sets an arbitrarily-named global flag for a set duration',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_leader_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped leader for a set duration',
        "scopes": ['leader'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_megastructure_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped mega structure for a set duration',
        "scopes": ['megastructure'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_planet_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped planet for a set duration',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_pop_faction_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped pop faction for a set duration',
        "scopes": ['pop', 'pop_group', 'pop_faction'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'days', 'type': 'int'}],
    },
    'set_timed_pop_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped pop for a set duration',
        "scopes": ['pop'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_pop_group_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped pop group for a set duration',
        "scopes": ['pop_group'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_relation_flag': {
        "description": 'Sets an arbitrarily-named flag for the scoped country towards target country for a set duration',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'who', 'type': 'target'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_sector_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped sector for a set duration',
        "scopes": ['sector'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_ship_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped ship for a set duration',
        "scopes": ['ship'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_situation_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped situation for a set duration',
        "scopes": ['situation'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_species_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped species for a set duration',
        "scopes": ['species'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_spynetwork_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped spy network for a set duration',
        "scopes": ['spy_network'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_star_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped system for a set duration',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_starbase_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped starbase for a set duration',
        "scopes": ['starbase'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_timed_war_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped war for a set duration',
        "scopes": ['war'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'key'}, {'name': 'years', 'type': 'int'}],
    },
    'set_trade_conversions': {
        "description": 'Sets the trade conversions for the scoped Country. If they do not add up to 1.0 any remaining trade the country keeps as income',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'energy', 'type': 'value'}, {'name': 'minerals', 'type': 'value'}],
    },
    'set_truce': {
        "description": 'Force a truce with target country of a specified type, or a war',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_tutorial_level': {
        "description": "Changes the scoped country's tutorial level (0 none, 1 limited, 2 full)",
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'set_update_modifiers_batch': {
        "description": 'Disables modifier system to do full updates between Begin and End.',
        "scopes": ['all'],
        "usage_format": 'unknown',
    },
    'set_variable': {
        "description": 'Sets or creates an arbitrarily-named variable with a specific value in the current scope',
        "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',
    },
    'set_variable_to_random_value': {
        "description": 'Sets a variable to a random value within the specified bounds.',
        "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',
    },
    'set_visited': {
        "description": "Sets the target system as 'visited' (i.e. low system intel on the map)",
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'set_war_flag': {
        "description": 'Sets an arbitrarily-named flag on the scoped war',
        "scopes": ['war'],
        "usage_format": 'comparison',
    },
    'set_war_goal': {
        "description": 'Sets a war goal to the scoped rebel country/war',
        "scopes": ['country', 'war'],
        "usage_format": 'comparison',
    },
    'set_years_served': {
        "description": 'Copies years served duration from the target',
        "scopes": ['leader'],
        "usage_format": 'simple_value',
    },
    'shift_ethic': {
        "description": 'Shifts an empire towards a specific ethic, adjusting afterwards to keep number of ethics points consistent',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'ship_event': {
        "description": 'Fires a ship event for the scoped ship, with optional DAYS and RANDOM delay',
        "scopes": ['ship'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'should_add_ship_to_debris': {
        "description": 'used to check if the ship must be added to the debris.',
        "scopes": ['fleet'],
        "usage_format": 'simple',
    },
    'situation_event': {
        "description": 'Fires a situation event for the scoped situation',
        "scopes": ['situation'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'spawn_astral_rift': {
        "description": 'Spawns a new astral rift in the scoped system.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'random_pos', 'type': 'value'}, {'name': 'default', 'type': 'value'}, {'name': 'orbit_distance', 'type': 'value'}, {'name': 'orbit_angle', 'type': 'value'}, {'name': 'spawn_sound', 'type': 'value'}, {'name': 'default', 'type': 'value'}],
    },
    'spawn_custom_debris': {
        "description": 'Spawns a custom debris project with the current fleet.',
        "scopes": ['fleet'],
        "usage_format": 'simple',
    },
    'spawn_megastructure': {
        "description": 'Spawns a mega structure in a system.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'name', 'type': 'string'}, {'name': 'owner', 'type': 'target'}, {'name': 'planet', 'type': 'planet/star target'}, {'name': 'coords_from', 'type': 'target'}, {'name': 'graphical_culture', 'type': 'target'}, {'name': 'orbit_distance', 'type': 'value'}, {'name': 'orbit_angle', 'type': 'value'}],
    },
    'spawn_natural_wormhole': {
        "description": 'Spawns a new natural wormhole in the scoped system.',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'bypass_type', 'type': 'wormhole/sealed_wormhole'}, {'name': 'in_place_of', 'type': 'target'}, {'name': 'graphics_entity_name', 'type': 'entity'}, {'name': 'orbit_distance', 'type': 'value'}, {'name': 'orbit_angle', 'type': 'value'}, {'name': 'random_pos', 'type': 'value'}],
    },
    'spawn_planet': {
        "description": 'Spawns a planet in a system.',
        "scopes": ['galactic_object'],
        "usage_format": 'simple',
    },
    'spawn_psionic_aura': {
        "description": "Spawns a Psionic Aura in scoped system, where country is the aura's owner.",
        "scopes": ['galactic_object'],
        "usage_format": 'comparison',
    },
    'spawn_random_storm': {
        "description": 'Spawn a random storm type with a random start and end position',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'spawn_system': {
        "description": 'Spawns a new system at a position relative to the scoped system/planet/ship.',
        "scopes": ['megastructure', 'planet', 'ship', 'fleet', 'galactic_object', 'starbase', 'no_scope'],
        "usage_format": 'comparison',
    },
    'starbase_event': {
        "description": 'Fires a starbase event for the scoped starbase',
        "scopes": ['starbase'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'start_astral_action_cooldown': {
        "description": 'Starts the cooldown of an astral action defined with uses_custom_cooldown = yes',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'start_colony': {
        "description": 'Starts colonization of the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'owner', 'type': 'target'}, {'name': 'species', 'type': 'target / key'}, {'name': 'ethos', 'type': 'random / target / { ethic = <key'}, {'name': 'ethic', 'type': 'key'}],
    },
    'start_situation': {
        "description": 'Begins a situations.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'start_storm_area_placing': {
        "description": 'Starts the storm placing mode with radius',
        "scopes": ['all'],
        "usage_format": 'unknown',
    },
    'start_terraform_process': {
        "description": 'Starts terraforming process of scoped planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'start_terraform_process', 'type': 'class/random list'}, {'name': 'class', 'type': 'class/random list'}, {'name': 'inherit_entity', 'type': 'value'}],
    },
    'start_terraform_progress': {
        "description": 'Starts terraforming progress of scoped planet',
        "scopes": ['planet'],
        "usage_format": 'block',
        "params": [{'name': 'start_terraform_progress', 'type': 'class/random list'}, {'name': 'class', 'type': 'class/random list'}, {'name': 'inherit_entity', 'type': 'value'}],
    },
    'steal_relic': {
        "description": 'Steal all/a random/a specific relic from a target country',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'steal_specimens': {
        "description": 'Steals random specimens from given country.',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'stop_crisis_sound': {
        "description": 'Stops the crisis ambient loop',
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'stop_mission': {
        "description": 'Stops the mission with the given status, triggering the relevant effects.',
        "scopes": ['planet', 'country', 'ship', 'pop', 'pop_group'],
        "usage_format": 'comparison',
    },
    'stop_terraform_process': {
        "description": 'Stops terraforming process of scoped planet',
        "scopes": ['planet'],
        "usage_format": 'simple',
    },
    'store_country_backup_data': {
        "description": "Stores a copy of the specified data of the scoped country. The values default to 'no'.",
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'flag', 'type': 'yes/no'}, {'name': 'room', 'type': 'yes/no'}, {'name': 'ethics', 'type': 'yes/no'}, {'name': 'government', 'type': 'yes/no'}],
    },
    'storm_apply_aftermath_modifier': {
        "description": "Applies Cosmic Storm Aftermath Modifiers. You can specify up to a max of 10 Severities and each one will be chosen based on it's chance.",
        "scopes": ['all'],
        "usage_format": 'comparison',
    },
    'subtract_variable': {
        "description": 'Decrements a previously-set variable by a specific amount',
        "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',
    },
    'switch': {
        "description": 'Executes the first appropriate effect set for a specific trigger',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'trigger', 'type': 'trigger'}],
    },
    'system_event': {
        "description": 'Fires a system event for the scoped system',
        "scopes": ['galactic_object'],
        "usage_format": 'block',
        "params": [{'name': 'id', 'type': 'id'}],
    },
    'tooltip': {
        "description": 'Just a tooltip',
        "scopes": ['all'],
        "usage_format": 'simple',
    },
    'trait_of_species': {
        "description": 'executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'traits_available_for_species': {
        "description": 'executes the enclosed effects on all of them for which the limit triggers return true',
        "scopes": ['pop', 'pop_group', 'leader', 'species'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'transfer_galactic_defense_force_fleets': {
        "description": 'Moves all owned GDF fleets to the target.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'transfer_pop_amount': {
        "description": 'Transfer the amount OR percentage of pops from the source pop group to the target pop group',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'source', 'type': 'source pop group'}, {'name': 'target', 'type': 'target pop group'}, {'name': 'amount', 'type': 'amount'}, {'name': 'percentage', 'type': 'percentage'}],
    },
    'trigger_megastructure_icon': {
        "description": 'if a planet has trigger_megastructure_icon = yes then the map icon for the star will show a megastructure icon',
        "scopes": ['planet'],
        "usage_format": 'simple',
    },
    'unassign_espionage_asset': {
        "description": 'Unassigns espionage asset from the scope operation to owning spy network',
        "scopes": ['espionage_operation'],
        "usage_format": 'simple_value',
    },
    'unassign_leader': {
        "description": 'Unassigns scoped leader from their post or unassigns leader from the scoped planet/ship/fleet/army',
        "scopes": ['ship', 'fleet', 'leader', 'army'],
        "usage_format": 'simple_value',
    },
    'unemploy_pop': {
        "description": 'Fires scoped pop from its job',
        "scopes": ['pop'],
        "usage_format": 'comparison',
    },
    'unlock_council_selection': {
        "description": 'Unlocks council selection',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'unlock_council_slots': {
        "description": 'Unlocks council slots',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
    'unlock_exhibit': {
        "description": 'Unlocks an exhibit for given category from the target country.',
        "scopes": ['country'],
        "usage_format": 'simple_value',
    },
    'unset_cosmic_storm': {
        "description": 'Unsets a storm on a system',
        "scopes": ['galactic_object'],
        "usage_format": 'simple',
    },
    'upgrade_megastructure_to': {
        "description": 'Starts an upgrade process on a mega structure.',
        "scopes": ['megastructure'],
        "usage_format": 'simple_value',
    },
    'validate_and_repair_planet_buildings_and_districts': {
        "description": 'Replace/removes all invalid (potential trigger not fulfilled) buildings and districts, then repairs all ruined buildings on the scoped planet',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'validate_planet_buildings_and_districts': {
        "description": 'Checks whether the planets and districts on the planet are valid (their potential triggers are fulfilled), removes or replaces them if not.',
        "scopes": ['planet'],
        "usage_format": 'comparison',
    },
    'weighted_random_owned_pop_group': {
        "description": 'Weighted random on owned popgroups based on the popgroup size. Supports the same scopes as the owned_pop_group script list',
        "scopes": ['planet', 'country', 'galactic_object', 'pop_faction', 'sector'],
        "usage_format": 'simple',
    },
    'weights': {
        "description": 'adds weights to affect the chance a specific object is selected)',
        "scopes": ['country'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'while': {
        "description": 'Repeats enclosed effects while limit criteria are met or until set iteration count is reached',
        "scopes": ['all'],
        "usage_format": 'block',
        "params": [{'name': 'body', 'type': 'triggers'}],
    },
    'win': {
        "description": 'The scoped country wins the game',
        "scopes": ['country'],
        "usage_format": 'comparison',
    },
}
