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>
has_air_experienceCOUNTRYnoneCompares current country's air experience with right side value.
has_air_experience < <value>
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
has_air_experience 常用于判断国家是否积累了足够的空军经验值,从而解锁特殊决议、顾问或国策选项,例如要求玩家先投入空战才能获得某项精英飞行员奖励。也可在 limit 块中限制 AI 只有在经验充足时才触发某些空军相关事件,避免过早获取强力加成。
# 示例:仅当空军经验充足时,才允许激活精英飞行员决议
available = {
has_air_experience > 50
}
[air_experience](/wiki/effect/air_experience):最直接的搭档,先用 effect 给予或消耗空军经验,再用 has_air_experience 验证当前余量是否达标,形成"消费门槛"机制。[has_army_experience](/wiki/trigger/has_army_experience):常与其并列使用,同时对陆、空经验设置多重门槛,确保国家整体军事投入达标后再开放某项内容。[has_deployed_air_force_size](/wiki/trigger/has_deployed_air_force_size):配合使用可双重校验:既要有足够的空军经验积累,也要实际部署了一定规模的空军,逻辑更严谨。[has_completed_focus](/wiki/trigger/has_completed_focus):常置于同一 available 或 trigger 块中,要求国家同时完成了特定国策且拥有足够空军经验,避免玩家绕过科技树直接触发。add_air_experience 验证实际数值范围,而非凭感觉填写。has_air_experience 只能在 COUNTRY scope 下使用,若写在 state、unit leader 等 scope 内部将直接报错或静默失效,新手在嵌套 any_allied_country 等遍历块时尤其容易忘记切换作用域。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.
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
}
[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.add_air_experience command rather than guessing arbitrary values.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.