trigger · command_power
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Checks if available command power is more or less that specified value
command_power > 1.5
command_powerCOUNTRYnoneChecks if available command power is more or less that specified value
command_power > 1.5
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
command_power 常用于限制某些高代价决议或国策奖励的触发条件,例如只有当指挥力充足时才允许玩家激活特定军事决议,或在 AI 逻辑中判断是否应当发动大规模战略行动。下面是一个典型的决议 available 条件示例:
available = {
command_power > 50
has_war = yes
}
[command_power_daily](/wiki/trigger/command_power_daily):检查每日指挥力回复速率,常与 command_power 一同用于评估国家"指挥力健康度",避免仅凭当前存量做判断。[add_command_power](/wiki/effect/add_command_power):当 command_power 低于阈值时触发补充效果,常见于周期性事件或决议的 effect 块中做兜底补偿。[has_country_flag](/wiki/trigger/has_country_flag):配合国家旗帜标记,防止指挥力条件被反复触发,常一起出现在 limit 块里保护事件唯一性。[any_army_leader](/wiki/trigger/any_army_leader):指挥力消耗与将领技能密切相关,联合使用可以在检查指挥力的同时验证将领状态是否满足额外条件。command_power 的值是实际数值(0–100),新手容易误以为填入百分比小数(如 > 0.5 表示 50%),实际上应直接填写游戏内显示的点数数值,否则条件几乎永远为真。any_owned_state 等 state scope 的内层块中,游戏不会报错但条件判断结果不可预期,需确保外层 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.
command_power is commonly used to restrict the activation conditions of high-cost decisions or national focus rewards. For example, you can allow players to trigger specific military decisions only when command power is sufficient, or evaluate in AI logic whether a large-scale strategic operation should be launched. Below is a typical example of an available condition in a decision:
available = {
command_power > 50
has_war = yes
}
[command_power_daily](/wiki/trigger/command_power_daily): Checks the daily command power recovery rate. Commonly used together with command_power to assess a nation's "command power health," avoiding judgments based solely on current reserves.[add_command_power](/wiki/effect/add_command_power): Triggers a replenishment effect when command_power falls below a threshold, frequently seen in effect blocks of periodic events or decisions as a fallback compensation.[has_country_flag](/wiki/trigger/has_country_flag): Works in conjunction with country flag markers to prevent command power conditions from being triggered repeatedly. Often appears together in limit blocks to protect event uniqueness.[any_army_leader](/wiki/trigger/any_army_leader): Command power expenditure is closely related to general skills. Using them together allows you to check command power while simultaneously verifying that general status meets additional conditions.command_power is an actual numeric value (0–100). Beginners often mistakenly enter percentage decimals (such as > 0.5 for 50%), when in fact you should directly input the point value displayed in-game. Otherwise, the condition will almost always evaluate to true.any_owned_state, the game will not error but the condition evaluation becomes unpredictable. Always ensure the outer scope is a country scope.