Hands-On Usage
remove_decision is commonly used in mods when you need to manually clear an ongoing decision, such as forcing the cancellation of a time-limited decision that the player or AI is currently activating after a certain event triggers, or cleaning up decisions left behind by the old faction when a nation transitions (coup, civil war ends). Notably, it does not trigger the decision's remove_effect, nor does it generate cooldown time, making it suitable for "silent revocation" scenarios.
country_event = {
id = my_mod.10
# Coup successful, remove the old government's diplomatic mediation decision
immediate = {
remove_decision = diplomatic_mediation_decision
}
}
Synergy
[has_decision](/wiki/trigger/has_decision): Check whether the decision is in an active state before removal to avoid script errors or logic anomalies.
[activate_decision](/wiki/effect/activate_decision): Forms a "revoke-reactivate" combination with remove_decision, commonly used to reset decision states or switch decision variants.
[add_days_remove](/wiki/effect/add_days_remove): If you only want to expedite natural decision expiration rather than force silent removal, this command serves as an alternative for comparison.
[clr_country_flag](/wiki/effect/clr_country_flag): When a decision is activated, it often sets a country flag; after removing the decision, you typically need to synchronously clear the corresponding flag to prevent subsequent condition checks from failing.
Common Pitfalls
- Mistaking it for triggering
remove_effect: remove_decision is a "forced removal" rather than normal expiration; the remove_effect block defined within the decision will not execute. If that block contains critical cleanup logic (such as clearing modifiers, returning resources), you must manually add these effects in the same context where remove_decision is called.
- Using it outside COUNTRY scope: This effect only supports COUNTRY scope. Writing it within
every_owned_state or character-related scopes will cause script parsing errors. Ensure the execution block belongs to the correct country scope.