Wiki

trigger · has_deployed_air_force_size

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

checks for amount of aircrafts, additionally of a specified type

实战 · 配合 · 坑

实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。

实战用法

has_deployed_air_force_size 常用于判断一个国家是否已部署足够数量的空军,以触发特定的国策解锁、事件或任务条件,例如要求玩家在完成某空军建设目标后才能推进空战相关的科技或外交选项。也可用于 AI 策略判断,当某国空军规模达到阈值时自动触发援助或结盟逻辑。

# 当一个国家的战斗机部署数量达到阈值时,允许触发某项决策
available = {
    has_deployed_air_force_size = {
        size > 100
        type = fighter
    }
}

配合关系

  • [has_air_experience](/wiki/trigger/has_air_experience):空军规模达标的同时,往往也需要验证是否积累了足够的空军经验值,两者组合用于解锁高级空战相关内容。
  • [any_owned_state](/wiki/trigger/any_owned_state):通常配合检查己方州省中是否存在机场建设,确保空军部署有硬件基础支撑。
  • [add_tech_bonus](/wiki/effect/add_tech_bonus):当空军规模条件满足后,给予玩家空军科技研究加成作为奖励,形成"建设达标 → 技术奖励"的 mod 推进链。
  • [building_count_trigger](/wiki/trigger/building_count_trigger):与机场等级检查搭配,防止出现"有飞机但无机场"的逻辑矛盾,使条件判断更严谨。

常见坑

  1. 忽略"已部署"与"库存"的区别:该 trigger 只检查已部署到作战序列中的飞机数量,而非装备库存里的飞机数。新手常误以为只要生产出飞机就能满足条件,实际上飞机必须被分配到航空翼(Air Wing)并部署到机场才会被计入。
  2. type 字段填写错误:在指定机型时必须使用游戏内部的设备类型名称(如 fightercas 等),直接填写变体名称或显示名称会导致条件永远无法判断为真,且通常不会报错,极难排查。

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_deployed_air_force_size is commonly used to check whether a country has deployed a sufficient number of aircraft to trigger specific national focus unlocks, events, or mission conditions. For example, it may require players to complete certain air force development goals before progressing to air combat-related technologies or diplomatic options. It can also be used in AI strategy evaluation: when a nation's air force size reaches a threshold, it automatically triggers support or alliance logic.

# Allows a decision to trigger when a country's deployed fighter aircraft count reaches a threshold
available = {
    has_deployed_air_force_size = {
        size > 100
        type = fighter
    }
}

Synergy

  • [has_air_experience](/wiki/trigger/has_air_experience): When air force size requirements are met, it is often necessary to verify that sufficient air force experience has been accumulated. The two conditions combined unlock advanced air combat-related content.
  • [any_owned_state](/wiki/trigger/any_owned_state): Typically paired with checks to ensure airports are constructed in owned states, guaranteeing that air force deployment has hardware infrastructure support.
  • [add_tech_bonus](/wiki/effect/add_tech_bonus): Once air force size conditions are satisfied, grant players air force technology research bonuses as rewards, forming a mod progression chain of "meeting construction targets → receiving technology rewards."
  • [building_count_trigger](/wiki/trigger/building_count_trigger): Combined with airport level checks to prevent logical contradictions like "having aircraft but no airports," making condition evaluation more rigorous.

Common Pitfalls

  1. Confusing "deployed" with "inventory": This trigger only counts aircraft deployed into active combat squadrons, not aircraft in equipment stockpiles. Beginners often mistakenly believe that simply producing aircraft satisfies the condition, when in reality aircraft must be assigned to air wings and deployed to airfields to be counted.
  2. Incorrect type field entries: When specifying aircraft types, you must use the game's internal equipment type names (such as fighter, cas, etc.). Using variant names or display names directly will cause the condition to never evaluate as true and typically produce no error message, making it extremely difficult to debug.