Wiki

trigger · is_subject_of

Definition

  • Supported scope:COUNTRY
  • Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL

Description

Checks if the country is subject of specified country

实战 · 配合 · 坑

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

实战用法

is_subject_of 常用于附庸/傀儡关系的条件检查,例如在决策或国策中判断某国是否为特定宗主国的附庸,从而解锁或限制特定的外交选项。典型场景包括:宗主国为其附庸提供援助的决策 available 检查,或附庸国寻求独立时的触发条件。

# 附庸国申请独立的决策可用条件示例
available = {
    is_subject_of = ROOT          # 检查执行国是否为 ROOT 的附庸
    NOT = { has_autonomy_state = autonomy_free }
}

配合关系

  • [has_autonomy_state](/wiki/trigger/has_autonomy_state):与 is_subject_of 搭配可进一步细化附庸类型(傀儡、自治领等),避免对所有附庸关系一视同仁。
  • [compare_autonomy_progress_ratio](/wiki/trigger/compare_autonomy_progress_ratio):在确认附庸关系存在后,进一步判断自治进度比率,用于设计渐进式独立事件链。
  • [any_subject_country](/wiki/trigger/any_subject_country):从宗主国视角遍历所有附庸时,常与 is_subject_of 搭配在内层 scope 中做反向验证,确保逻辑双向一致。
  • [end_puppet](/wiki/effect/end_puppet):当 is_subject_of 条件成立后触发解除附庸关系,是"独立事件"结果块中的标准搭档。

常见坑

  1. scope 方向混淆is_subject_of 的 scope 必须是附庸国本身,target 是宗主国;新手容易在宗主国的 scope 下直接写此 trigger,导致条件永远为假。正确做法是先切换到附庸国 scope(如通过 every_subject_country 或事件 FROM scope)再判断。
  2. target 写成标签字符串:target 只支持 scope 关键字(THISROOTPREV 等),不能直接填写国家标签(如 GER);若需对特定国家标签判断,应先用 any_subject_country 配合 tag = XXX 组合来实现。

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

is_subject_of is commonly used to check conditions related to subject/puppet relationships, such as determining in decisions or national focuses whether a country is a subject of a specific overlord, thereby unlocking or restricting specific diplomatic options. Typical scenarios include: availability checks in decisions where the overlord provides aid to its subjects, or trigger conditions when a subject seeks independence.

# Example of available condition in a decision for a subject requesting independence
available = {
    is_subject_of = ROOT          # Check if the executing country is a subject of ROOT
    NOT = { has_autonomy_state = autonomy_free }
}

Synergy

  • [has_autonomy_state](/wiki/trigger/has_autonomy_state): Combined with is_subject_of, this allows you to further refine subject types (puppet, dominion, etc.) and avoid treating all subject relationships uniformly.
  • [compare_autonomy_progress_ratio](/wiki/trigger/compare_autonomy_progress_ratio): After confirming a subject relationship exists, use this to further evaluate autonomy progress ratio, useful for designing progressive independence event chains.
  • [any_subject_country](/wiki/trigger/any_subject_country): When iterating through all subjects from the overlord's perspective, this is often paired with is_subject_of in nested scopes for reverse verification to ensure bidirectional logical consistency.
  • [end_puppet](/wiki/effect/end_puppet): When the is_subject_of condition is met, trigger this to end the subject relationship—a standard partner in the result block of "independence events."

Common Pitfalls

  1. Scope direction confusion: The scope of is_subject_of must be the subject country itself, with the target being the overlord; beginners often write this trigger directly under the overlord's scope, causing the condition to always evaluate false. The correct approach is to first switch to the subject's scope (such as through every_subject_country or event FROM scope) before checking the condition.
  2. Target written as tag string: The target only supports scope keywords (THIS, ROOT, PREV, etc.) and cannot directly use country tags (such as GER); if you need to check a specific country tag, use any_subject_country combined with tag = XXX instead.