Wiki

trigger · pc_is_forced_government_to

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Checks if country has had their government force-changed to a certain ideology in the peace conference.
Example:
CZE = { pc_is_forced_government_to = communism }

实战 · 配合 · 坑

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

实战用法

此 trigger 适合在和平会议相关的 mod 事件或决议中,检测某国是否被强制改变政府意识形态,从而触发后续剧情反应,例如被强制转为共产主义的国家触发抵抗运动事件。常见于反事实历史 mod 中,用来追踪战后政治重组的结果。

# 检测捷克斯洛伐克是否被强制转变为共产主义,若是则触发反抗事件
country_event = {
    trigger = {
        tag = CZE
        pc_is_forced_government_to = communism
        NOT = { has_country_flag = cze_resistance_triggered }
    }
    id = cze.resistance.1
}

配合关系

  • [has_country_flag](/wiki/trigger/has_country_flag):配合使用可确保强制政府改变后的后续事件只触发一次,避免重复判断。
  • [has_capitulated](/wiki/trigger/has_capitulated):通常被强制改变政府的国家已经经历战败投降,两者联用可以更精准地筛选目标场景。
  • [has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology):在强制政府改变后,可进一步验证新领导人的意识形态是否与强制结果一致,用于调试或细分剧情分支。
  • [any_subject_country](/wiki/trigger/any_subject_country):当宗主国需要检查其所有附庸国中是否有被强制改变政府的情况时,与此 trigger 嵌套使用。

常见坑

  1. 作用时机误解:此 trigger 仅在和平会议中发生了强制政府改变之后才返回真,若在和平会议进行中或尚未结束时就判断,结果可能始终为假,导致后续逻辑完全不触发。
  2. Scope 混用错误:该 trigger 必须置于 COUNTRY scope 下,新手有时会错误地在 STATE scope 的 limit 块中直接使用,导致脚本报错或静默失效。

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

This trigger is best used in peace conference-related mod events or decisions to detect whether a country has been forcibly changed to a different government ideology, allowing you to trigger subsequent story reactions—for example, a country forcibly converted to communism triggering a resistance movement event. It's commonly found in alternate history mods for tracking the outcomes of post-war political reorganization.

# Detect whether Czechoslovakia was forcibly converted to communism, and if so trigger a resistance event
country_event = {
    trigger = {
        tag = CZE
        pc_is_forced_government_to = communism
        NOT = { has_country_flag = cze_resistance_triggered }
    }
    id = cze.resistance.1
}

Synergy

  • [has_country_flag](/wiki/trigger/has_country_flag): Used together, this ensures that follow-up events after a forced government change only trigger once, avoiding redundant checks.
  • [has_capitulated](/wiki/trigger/has_capitulated): Countries that undergo forced government changes typically have already experienced military defeat. Using both together allows for more precise targeting of specific scenarios.
  • [has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology): After a forced government change, you can further verify whether the new leader's ideology matches the forced result, useful for debugging or branching story paths.
  • [any_subject_country](/wiki/trigger/any_subject_country): When a overlord needs to check whether any of its subject countries have undergone forced government changes, nest this trigger with that one for combined use.

Common Pitfalls

  1. Misunderstanding of timing: This trigger only returns true after a forced government change has actually occurred during the peace conference. If you check during the peace conference or before it concludes, the result may always be false, causing subsequent logic to fail completely.
  2. Scope confusion: This trigger must be placed in a COUNTRY scope. Beginners sometimes mistakenly use it directly within a limit block in STATE scope, resulting in script errors or silent failures.