trigger · is_high_command
Definition
- Supported scope:
CHARACTER - Supported target:
none
Description
_is_high_command_ = yes/no - Checks if the character in scope is hired as high command
is_high_commandCHARACTERnone_is_high_command_ = yes/no - Checks if the character in scope is hired as high command
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
is_high_command 常用于检测某个角色当前是否以"高级指挥官"顾问身份被雇用,适合在解锁特殊决议、触发事件或限制特定操作时作为前置条件。例如,若你想在某位将领担任高级指挥官期间才允许执行某项军事决策,可以这样写:
available = {
any_character = {
is_high_command = yes
has_trait = trait_brilliant_strategist
}
}
[is_hired_as_advisor](/wiki/trigger/is_hired_as_advisor):两者同为顾问状态检查,is_high_command 专门区分高级指挥官职位,与 is_hired_as_advisor 组合可精确区分角色的顾问类型,避免误判。[has_advisor_role](/wiki/trigger/has_advisor_role):可进一步核查角色具体持有的顾问角色槽,与 is_high_command 配合使用能做双重验证,适合多职位角色并存的复杂 mod。[remove_advisor_role](/wiki/effect/remove_advisor_role):当条件满足(角色确实是高级指挥官)后,可通过此 effect 移除其角色,实现"先判断再操作"的标准流程。[has_trait](/wiki/trigger/has_trait):高级指挥官通常需要特定 trait 才有意义,两者搭配可对角色能力做组合筛选。is_high_command 必须在 CHARACTER scope 下使用,直接写在国家 scope(如 country_event 的顶层 trigger 块)中会静默失败或报错,需先通过 any_character、every_character 等方式切入角色 scope。is_advisor 混淆:is_advisor 只检查角色是否以任意顾问身份在职,而 is_high_command 专指高级指挥官职位;若需精确匹配职位类型,两者不可互换使用。