Wiki

trigger · has_army_manpower

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

checks for amount of manpower of selected type, additionally of a specified type

实战 · 配合 · 坑

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

实战用法

has_army_manpower 常用于在国家决策或焦点的 available 块中判断玩家是否积累了足够兵力,也可用于 AI 战略触发器限制特定行为(如只在兵力充裕时才允许发动进攻)。下面示例展示一个决策要求本国拥有充足的现役陆军人力才可激活:

available = {
    has_army_manpower = {
        type = army
        value > 500000
    }
}

配合关系

  • [amount_manpower_in_deployment_queue](/wiki/trigger/amount_manpower_in_deployment_queue):与本 trigger 搭配可同时检查"在队列中等待部署的兵力",两者合用能完整评估一国的总兵力状况。
  • [add_manpower](/wiki/effect/add_manpower):当 has_army_manpower 判断兵力不足时,可在 effect 块中通过此命令补充人力,形成"检查 → 补充"的逻辑闭环。
  • [has_army_size](/wiki/trigger/has_army_size):两者常同时出现在 limit 块中,前者关注人力数值,后者关注师团数量,组合使用可更精确地限定触发条件。
  • [conscription_ratio](/wiki/trigger/conscription_ratio):配合使用可区分"兵力多"是源于庞大人口还是高征兵率,避免误判国家实际动员能力。

常见坑

  1. 忽略 type 字段的含义:新手常省略 type 参数或填写错误,导致实际检查的兵力类型与预期不符;应仔细确认当前 mod 版本中该字段支持的合法值,否则条件会静默失效或报错。
  2. 与储备人力混淆:该 trigger 检查的是陆军中的人力(现役),而非国家面板右上角显示的待征募人力储备;若想判断后者,应使用其他专用 trigger,两者不可互换。

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_army_manpower is commonly used in the available block of national decisions or focuses to check whether the player has accumulated sufficient active army manpower, and can also be used in AI strategy triggers to restrict specific actions (such as only allowing offensives when manpower is abundant). The example below shows a decision that requires the country to possess adequate active ground forces manpower to activate:

available = {
    has_army_manpower = {
        type = army
        value > 500000
    }
}

Synergy

  • [amount_manpower_in_deployment_queue](/wiki/trigger/amount_manpower_in_deployment_queue): When paired with this trigger, it can simultaneously check "manpower awaiting deployment in the queue." Using both together provides a complete assessment of a nation's total manpower situation.
  • [add_manpower](/wiki/effect/add_manpower): When has_army_manpower determines that manpower is insufficient, you can supplement human resources in the effect block using this command, forming a "check → replenish" logical loop.
  • [has_army_size](/wiki/trigger/has_army_size): The two often appear together in limit blocks—the former focuses on manpower values, the latter on division count. Combined use allows more precise trigger condition specification.
  • [conscription_ratio](/wiki/trigger/conscription_ratio): Using them together allows you to distinguish whether "high manpower" stems from a large population or a high conscription rate, avoiding misjudgment of a nation's actual mobilization capacity.

Common Pitfalls

  1. Overlooking the meaning of the type field: Beginners often omit the type parameter or fill it incorrectly, causing the actual manpower type checked to differ from expectations. You should carefully verify the legal values supported by this field in your current mod version, otherwise the condition will silently fail or throw an error.
  2. Confusing with reserve manpower: This trigger checks manpower within the army (active forces), not the recruitment reserve manpower displayed in the upper right corner of the national panel. If you want to judge the latter, you should use other dedicated triggers—the two are not interchangeable.