Wiki

trigger · num_planes_stationed_in_regions

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Will compare the number of planes which have bases in the specified regions. Supports < > =
Example: num_planes_stationed_in_regions = {
value < 100
regions = { 18 47 }
}

实战 · 配合 · 坑

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

实战用法

此 trigger 常用于判断某个战区是否集结了足够的空中力量,例如在自定义决议或国策中检测玩家是否完成了对特定地区的制空部署。典型场景包括:触发"空中优势既成"类成就条件、或限制某些战略决策在空中力量不足时不可用。

# 示例:仅当在指定区域驻扎足够飞机时才允许激活某决议
available = {
    num_planes_stationed_in_regions = {
        value > 200
        regions = { 18 47 }
    }
}

配合关系

  • [has_deployed_air_force_size](/wiki/trigger/has_deployed_air_force_size):可作为互补检查——前者针对特定地区的基地驻扎数量,后者检查全国总部署规模,两者结合可实现"全局够大且局部也够强"的双重门槛。
  • [divisions_in_border_state](/wiki/trigger/divisions_in_border_state):空地协同场景下,常与此 trigger 并列使用,确保目标方向同时拥有地面部队和空中掩护才允许触发进攻型决议。
  • [controls_state](/wiki/trigger/controls_state):通常需要先确认己方控制特定州省,再检查驻扎飞机数量才有意义,避免对未控制区域的基地数据产生误判。
  • [activate_targeted_decision](/wiki/effect/activate_targeted_decision):当驻扎飞机数量满足条件时,用此 effect 激活针对特定目标的决议,是该 trigger 最常见的下游动作。

常见坑

  1. 混淆"驻扎"与"部署"概念num_planes_stationed_in_regions 统计的是在该地区拥有基地的飞机数量,而不是当前正在该地区执行任务的飞机数;飞机被调往其他地区执行任务时,只要基地仍在指定 region,依然会被计入,新手容易误以为这反映了实时作战位置。
  2. region ID 填写错误regions 字段填写的是地区(strategic region)的数字 ID,而非州(state)ID,两者数值范围重叠但含义不同,直接把 state ID 填入会导致条件永远不成立或匹配到错误地区。

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

This trigger is commonly used to check whether a particular theater has accumulated sufficient air power—for example, validating in custom decisions or national focuses whether the player has completed air superiority deployment to a specific region. Typical scenarios include: triggering "air superiority achieved" type achievements, or restricting certain strategic decisions from being available when air power is insufficient.

# Example: Allow a decision to activate only when sufficient aircraft are stationed in designated regions
available = {
    num_planes_stationed_in_regions = {
        value > 200
        regions = { 18 47 }
    }
}

Synergy

  • [has_deployed_air_force_size](/wiki/trigger/has_deployed_air_force_size): Serves as a complementary check—the former evaluates base-stationed aircraft in specific regions, while the latter assesses total nationwide deployment scale; combining both enables a dual-threshold implementation of "globally sufficient and locally robust."
  • [divisions_in_border_state](/wiki/trigger/divisions_in_border_state): In air-ground coordination scenarios, commonly paired with this trigger to ensure the target direction simultaneously possesses both ground forces and air cover before offensive decisions are allowed to trigger.
  • [controls_state](/wiki/trigger/controls_state): Typically requires first confirming your control over specific states before checking stationed aircraft counts to avoid false readings on base data in uncontrolled territories.
  • [activate_targeted_decision](/wiki/effect/activate_targeted_decision): When stationed aircraft meet the condition threshold, use this effect to activate decisions targeting specific objectives—the most common downstream action of this trigger.

Common Pitfalls

  1. Conflating "stationed" with "deployed": num_planes_stationed_in_regions counts aircraft that have airbases in that region, not aircraft currently executing missions there. When aircraft are reassigned to other regions for operations, they remain counted as long as their home base remains in the specified region—newcomers often mistakenly believe this reflects real-time combat positioning.
  2. Incorrect region ID input: The regions field expects strategic region numeric IDs, not state IDs. Though their numeric ranges may overlap, they carry different meanings; directly entering a state ID will result in the condition never triggering or matching the wrong region.