trigger · has_manpower
Definition
- Supported scope:
COUNTRY - Supported target:
THIS,ROOT,PREV,FROM,OWNER,CONTROLLER,OCCUPIED,CAPITAL
Description
check amount of manpower
has_manpowerCOUNTRYTHIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITALcheck amount of manpower
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
has_manpower 常用于判断某国是否有足够的人力来解锁决议、触发国策效果或限制 AI 行为,避免玩家或 AI 在人力匮乏时做出不合理的操作。例如,在一个征兵相关的决议中,可以用它作为 available 的前置条件:
available = {
has_manpower > 50000
}
[amount_manpower_in_deployment_queue](/wiki/trigger/amount_manpower_in_deployment_queue):与之搭配可同时检查库存人力与部署队列中消耗的人力,更全面地评估实际可用人力余量。[add_manpower](/wiki/effect/add_manpower):当 has_manpower 判断人力不足时,常在对应的 effect 块中用它补充人力,形成"判断→补偿"的逻辑对。[conscription_ratio](/wiki/trigger/conscription_ratio):联合检查人力值与征兵率,可判断一个国家是否已经在高强度动员下仍捉襟见肘,用于战争压力相关的脚本。[has_army_manpower](/wiki/trigger/has_army_manpower):两者同属人力系判断,has_army_manpower 针对已在野战军中的兵力,与 has_manpower 配合可区分"储备人力"和"在役兵力"场景。50,实际应写 50000,否则条件几乎永远为真,难以察觉。has_manpower 只在 COUNTRY scope 下有效,若在 STATE 或 CHARACTER scope 内直接使用会静默失效或报错,需确保外层 scope 是国家,或通过 OWNER 等目标显式切换至国家 scope。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_manpower is commonly used to determine whether a country has sufficient manpower to unlock decisions, trigger national focus effects, or constrain AI behavior, preventing the player or AI from taking unreasonable actions when manpower is depleted. For example, in a recruitment-related decision, you can use it as a prerequisite condition for available:
available = {
has_manpower > 50000
}
[amount_manpower_in_deployment_queue](/wiki/trigger/amount_manpower_in_deployment_queue): When paired together, it checks both stockpiled manpower and manpower consumed in the deployment queue, providing a more comprehensive assessment of actual available manpower surplus.[add_manpower](/wiki/effect/add_manpower): When has_manpower determines that manpower is insufficient, it is commonly used in the corresponding effect block to replenish manpower, forming a "check → compensate" logic flow.[conscription_ratio](/wiki/trigger/conscription_ratio): Combined checks of manpower values and conscription rates can determine whether a country is critically short on supplies even under high-intensity mobilization, useful for war pressure-related scripts.[has_army_manpower](/wiki/trigger/has_army_manpower): Both belong to manpower-related checks; has_army_manpower refers to troops already in field armies, and when paired with has_manpower, it can distinguish between "reserve manpower" and "active forces" scenarios.50 based on the "50K" displayed in the interface, when it should actually be 50000. Otherwise, the condition will almost always evaluate to true and be difficult to detect.has_manpower is only valid under COUNTRY scope. If used directly within STATE or CHARACTER scope, it will silently fail or cause an error. You must ensure the outer scope is a country, or explicitly switch to country scope through targets like OWNER.