Wiki

trigger · has_air_experience

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Compares current country's air experience with right side value.
 has_air_experience < <value>

Hands-On Notes

Hands-on notes are AI-generated and checked against the vanilla command vocabulary — treat them as a starting point, not authoritative reference. The definition above is the game's own documentation.

Hands-On Usage

has_air_experience is commonly used to verify whether a nation has accumulated sufficient air experience points to unlock special decisions, advisors, or national focus options. For example, it may require players to engage in air combat first before earning elite pilot rewards. It can also be placed within limit blocks to restrict AI from triggering certain air-related events until experience thresholds are met, preventing premature acquisition of powerful bonuses.

# Example: Only allow activation of elite pilot decision when air experience is sufficient
available = {
    has_air_experience > 50
}

Synergy

  • [air_experience](/wiki/effect/air_experience): The most direct companion—use the effect to grant or consume air experience first, then verify with has_air_experience whether current reserves meet the threshold, creating a "consumption gate" mechanic.
  • [has_army_experience](/wiki/trigger/has_army_experience): Often used in parallel, setting multiple thresholds for both land and air experience simultaneously to ensure the nation's overall military investment is adequate before unlocking certain content.
  • [has_deployed_air_force_size](/wiki/trigger/has_deployed_air_force_size): Using both together provides dual verification: the nation must have sufficient accumulated air experience AND have actually deployed air forces of a certain size, making the logic more rigorous.
  • [has_completed_focus](/wiki/trigger/has_completed_focus): Commonly placed within the same available or trigger block, requiring nations to have completed specific national focuses while possessing sufficient air experience, preventing players from bypassing the tech tree to trigger content directly.

Common Pitfalls

  1. Confusing experience value ranges: Air experience has upper limits governed by game mechanics; do not set thresholds too high causing the condition to never be satisfiable. It is recommended to verify actual value ranges during testing using the console add_air_experience command rather than guessing arbitrary values.
  2. Incorrect scope: has_air_experience can only be used within COUNTRY scope. Using it within state, unit leader, or other scopes will cause direct errors or silent failures. Beginners especially tend to forget scope switching when nesting traversal blocks like any_allied_country.