trigger · is_puppet
Definition
- Supported scope:
COUNTRY - Supported target:
any
Description
Checks if the country is puppet of any other country
is_puppetCOUNTRYanyChecks if the country is puppet of any other country
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
is_puppet 常用于判断当前国家是否处于傀儡状态,从而限制某些国策、决策或事件的触发——例如阻止傀儡国发动独立战争的决策,或在傀儡国解放后才开放某条科技路线。以下示例展示如何在决策的 available 块中要求该国不是傀儡才能执行:
available = {
NOT = { is_puppet = yes }
has_war = no
}
若想专门给傀儡国触发事件,也可直接写 is_puppet = yes 作为触发条件。
[has_autonomy_state](/wiki/trigger/has_autonomy_state):is_puppet = yes 确认傀儡关系存在后,再用 has_autonomy_state 进一步判断具体的自治等级(如帝国领地还是自治领),实现分级逻辑。[compare_autonomy_progress_ratio](/wiki/trigger/compare_autonomy_progress_ratio):与 is_puppet 搭配可判断傀儡国的自治进度比例,常用于"即将独立"的事件触发条件。[end_puppet](/wiki/effect/end_puppet):在 effect 块中,当 is_puppet = yes 条件满足时,可调用 end_puppet 解除傀儡关系,典型用于独立事件的实现。[any_subject_country](/wiki/trigger/any_subject_country):宗主国侧常用 any_subject_country 遍历所有附属国,并在其 limit 中嵌套 is_puppet = yes 来精确筛选出傀儡(而非其他类型的附属国)。is_puppet 只在傀儡国自身的 scope 下判断"我是否是别人的傀儡",而非在宗主国 scope 下检查"我是否有傀儡"。新手常在宗主国 scope 里写 is_puppet = yes 导致逻辑永远为假,正确做法是用 any_subject_country + limit 来从宗主侧遍历。is_puppet 返回真——该 trigger 针对的是"傀儡"这一自治状态,若附属国是自治领等其他等级,结果可能与预期不符,建议同时搭配 has_autonomy_state 做更精确的判断。