Wiki

trigger · any_country_with_original_tag

Definition

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

Description

check if any country with current scope's original tag meets the trigger. Example:
any_country_with_original_tag = { 
  original_tag_to_check = ENG # the trigger check all countries that has this original tag 
  # ... triggers to check 
}

实战 · 配合 · 坑

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

实战用法

any_country_with_original_tag 常用于历史性事件或决议中,判断"某个历史标签对应的继承国/分裂国是否满足条件",例如检测奥匈帝国分裂后所有继承者是否仍在交战,或确认英国的所有殖民形态是否都已独立。典型场景是多标签共存时(如 GER 被占领后产生的傀儡政权)统一检查其状态。

# 判断是否有任何以法国为原始标签的国家正处于战争中
any_country_with_original_tag = {
    original_tag_to_check = FRA
    has_war = yes
}

配合关系

  • original_tag:在 any_country_with_original_tag 内部进一步精确筛选,确认遍历到的国家本身的原始标签,避免误判跨标签场景。
  • has_war:最常见的内嵌条件,用于检查满足原始标签的国家是否处于战争状态。
  • is_puppet_of:配合使用可确认某原始标签的继承国是否已沦为特定国家的傀儡,用于解放/吞并判断。
  • exists:在循环体内首先判断该国是否实际存在于当前游戏局面,防止对已被消灭国家的无效判断导致逻辑错误。

常见坑

  1. original_tag_to_check 填写的是被检查目标的原始标签,而非当前 scope 的标签——新手常把当前 scope 国家的标签填入,导致逻辑反向,实际上此字段指定的是"要遍历哪个历史标签对应的所有国家"。
  2. 该 trigger 遍历的是所有当前存在且原始标签匹配的国家,只要有一个满足内部条件即返回真——若想要"所有"此类国家均满足条件,应改用 all_country_with_original_tag(若存在),或通过逻辑取反组合 NOT 来实现全称判断,切勿将 any 语义误当 all 使用。

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

any_country_with_original_tag is commonly used in historical events or decisions to check whether a successor or splinter state derived from a given historical tag meets certain conditions — for example, verifying that all successors of Austria-Hungary are still at war, or confirming that all colonial forms of Britain have become independent. A typical scenario is performing a unified status check when multiple tags coexist (such as puppet regimes spawned after GER is occupied).

# Check whether any country whose original tag is FRA is currently at war
any_country_with_original_tag = {
    original_tag_to_check = FRA
    has_war = yes
}

Synergy

  • original_tag: Used inside any_country_with_original_tag to further narrow down the iterated country by confirming its own original tag, preventing false positives in cross-tag scenarios.
  • has_war: The most common nested condition, used to check whether a country matching the original tag is currently at war.
  • is_puppet_of: Combine with this to verify whether a successor of a given original tag has become a puppet of a specific country, useful for liberation or annexation checks.
  • exists: Place this first inside the loop body to confirm the country actually exists in the current game state, preventing logic errors caused by evaluating conditions against already-eliminated nations.

Common Pitfalls

  1. original_tag_to_check expects the original tag of the target being checked, not the tag of the current scope — beginners often enter the current scope country's tag here, reversing the logic entirely. This field specifies which historical tag's associated countries should be iterated over.
  2. This trigger iterates over all currently existing countries whose original tag matches, and returns true as soon as any one of them satisfies the inner conditions — if you need all such countries to satisfy the conditions, use all_country_with_original_tag instead (if available), or construct a universal check via NOT-based negation. Never treat any semantics as equivalent to all.