Wiki

trigger · pc_is_forced_government_by

Definition

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

Description

Checks if country has had their government force-changed by a certain country in the peace conference.
Example:
CZE = { pc_is_forced_government_by = GER }

实战 · 配合 · 坑

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

实战用法

常用于和平会议结束后判断某国政府是否被特定国家强制更换,从而触发相应的历史事件或决策惩罚。例如在二战 mod 中,可以检测捷克斯洛伐克是否被德国强制改变了政府,进而触发傀儡政权成立的后续事件链。

country_event = {
    trigger = {
        tag = CZE
        pc_is_forced_government_by = GER
    }
    # 捷克斯洛伐克政府被德国强制改变后触发此事件
}

配合关系

  • [has_capitulated](/wiki/trigger/has_capitulated):通常先检查目标国是否已经投降,再判断其政府是否被强制更换,两者共同构成"被征服并改制"的完整判断链。
  • [has_country_flag](/wiki/trigger/has_country_flag):和平会议流程复杂,可配合国家 flag 记录政府被强制更换这一历史节点,避免事件重复触发。
  • [has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology):在确认政府被强制更换后,进一步检查新政府的意识形态是否符合预期,用于细化分支判断。
  • [exists](/wiki/trigger/exists):在跨国判断时,先确认施加方国家仍然存在于游戏中,防止因被吞并或消亡导致 scope 引用异常。

常见坑

  1. Scope 方向混淆:该 trigger 必须在被更换国的 scope 内使用,= 后面填的是施加更换的国家标签,新手容易反过来写,导致条件永远不成立。
  2. 时机误判:此 trigger 仅在和平会议(Peace Conference)结束后的短暂窗口内有效,若在事件或 focus 中延迟触发,可能因游戏状态刷新而读不到该记录,建议配合 flag 在和平会议结束时立即打标记再做后续判断。

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

Commonly used to determine whether a country's government has been forcibly replaced by a specific nation after a peace conference ends, thereby triggering corresponding historical events or decision penalties. For example, in WWII mods, you can detect whether Czechoslovakia's government has been forcibly changed by Germany, and subsequently trigger the follow-up event chain for puppet regime establishment.

country_event = {
    trigger = {
        tag = CZE
        pc_is_forced_government_by = GER
    }
    # Triggers this event after Czechoslovakia's government is forcibly changed by Germany
}

Synergy

  • [has_capitulated](/wiki/trigger/has_capitulated): Typically first check whether the target country has already capitulated, then determine if its government has been forcibly replaced. These two conditions together form a complete logic chain for "conquered and regime-changed".
  • [has_country_flag](/wiki/trigger/has_country_flag): Peace conference flows are complex, so you can combine with country flags to record the historical moment when government is forcibly replaced, preventing event duplication.
  • [has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology): After confirming the government has been forcibly replaced, further check whether the new government's ideology matches expectations, used for refined branching logic.
  • [exists](/wiki/trigger/exists): When making cross-nation judgments, first confirm that the enforcing nation still exists in the game, preventing scope reference errors caused by annexation or elimination.

Common Pitfalls

  1. Scope Direction Confusion: This trigger must be used within the scope of the country being replaced, and the country tag after = should be the nation enforcing the replacement. Beginners often reverse this, causing the condition to never evaluate true.
  2. Mistimed Triggers: This trigger is only valid within a short window after a peace conference ends. If triggered with delay in events or focus trees, you may fail to read the record due to game state refreshes. It's recommended to pair this with a flag to immediately mark it when the peace conference ends, then proceed with further checks.