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