Wiki

trigger · original_tag

Definition

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

Description

original tag is ( for civil wars checks )

实战 · 配合 · 坑

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

实战用法

original_tag 常用于内战 mod 场景中,判断某个国家是否源自特定的母国标签(即内战分裂前的原始 tag)。例如在西班牙内战后处理逻辑时,可以用它区分共和派与国家派究竟哪一方才是"正统西班牙",从而决定谁能继承某些国策或决议。

# 判断当前国家原始标签是否为西班牙,用于内战胜利后的归并判断
if = {
    limit = {
        original_tag = SPR
    }
    add_ideas = spanish_unity
}

配合关系

  • [has_civil_war](/wiki/trigger/has_civil_war):常与 original_tag 搭配,先确认该国正处于内战状态,再通过 original_tag 锁定内战双方中的原始一方,逻辑更严密。
  • [civilwar_target](/wiki/trigger/civilwar_target):用于获取内战的对立方,与 original_tag 联用可精准描述"原始国家 vs 分裂方"的对抗关系。
  • [annex_country](/wiki/effect/annex_country):内战结束后,通过 original_tag 确认胜利方身份,再触发吞并对方,还原统一国家流程。
  • [exists](/wiki/trigger/exists):配合使用可先检查原始标签对应的国家是否仍然存在,避免在目标已消失时触发无效判断。

常见坑

  1. 误用于非内战国家original_tag 专为内战拆分场景设计,对从未发生过内战的普通国家,其值与当前 tag 相同,直接用来做"国家身份校验"会产生误判——应优先使用 tag = 来做一般性国家标签判断。
  2. scope 混淆:该 trigger 只能在 COUNTRY scope 下生效,新手有时在 STATE scope(如 limitany_owned_state 内部)中直接使用,导致脚本报错或静默失效;需先用 OWNER 等跳回国家 scope 再做判断。

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

original_tag is commonly used in civil war mod scenarios to determine whether a country originates from a specific parent nation tag (i.e., the original tag before internal conflict split). For example, when handling post-Spanish Civil War logic, it can be used to distinguish between the Republican and Nationalist sides to determine which faction represents "legitimate Spain" and thus who can inherit certain national focuses or decisions.

# Check if the current country's original tag is Spain, used for post-civil war reunification logic
if = {
    limit = {
        original_tag = SPR
    }
    add_ideas = spanish_unity
}

Synergy

  • [has_civil_war](/wiki/trigger/has_civil_war): Commonly paired with original_tag to first confirm the country is in an active civil war state, then use original_tag to identify the original faction among the warring parties for more robust logic.
  • [civilwar_target](/wiki/trigger/civilwar_target): Used to obtain the opposing faction in a civil war; combined with original_tag, it can precisely describe the "original nation vs. splinter faction" opposition.
  • [annex_country](/wiki/effect/annex_country): After civil war ends, use original_tag to confirm the identity of the victor, then trigger annexation of the opponent to restore the unified nation process.
  • [exists](/wiki/trigger/exists): When used together, you can first check whether the country corresponding to the original tag still exists, avoiding invalid checks when the target has already been eliminated.

Common Pitfalls

  1. Misuse on non-civil war nations: original_tag is designed specifically for civil war split scenarios. For ordinary nations that have never experienced internal conflict, its value is identical to the current tag. Using it directly for "country identity verification" creates false positives—prefer using tag = for general country tag checks instead.
  2. Scope confusion: This trigger only functions under COUNTRY scope. Beginners sometimes use it directly in STATE scope (such as within limit inside any_owned_state), causing script errors or silent failures. You must first jump back to country scope using OWNER or similar before making the check.