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
- 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.
- 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.