effect · remove_opinion_modifier
Definition
- Supported scope:
COUNTRY - Supported target:
any
Description
Remove opinion modifier from target
remove_opinion_modifierCOUNTRYanyRemove opinion modifier from target
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.
remove_opinion_modifier is commonly used to clear temporary opinion penalties/bonuses after diplomatic events conclude, or to revoke stance bonuses previously applied via add_opinion_modifier in story options where a relationship breaks down. For example, after a country signs a ceasefire agreement, you can remove accumulated negative sentiment markers from before the war:
# Event option: ceasefire takes effect, remove hostile stance opinion toward target country
option = {
name = my_event.1.a
FROM = {
remove_opinion_modifier = {
modifier = opinion_hostile_stance
target = ROOT
}
}
}
[add_opinion_modifier](/wiki/effect/add_opinion_modifier) — The most direct counterpart: first apply a modifier using add_opinion_modifier, then revoke it at an appropriate moment with remove_opinion_modifier, forming a complete opinion lifecycle management system.[has_country_flag](/wiki/trigger/has_country_flag) — Before removing a modifier, verify via country flag whether the modifier was actually added in the first place, avoiding ineffective calls or script errors.[add_relation_modifier](/wiki/effect/add_relation_modifier) — Commonly combined together to distinguish between "the impression publicly displayed in public opinion" and "numerical modifiers at the diplomatic relations level", allowing you to remove one while preserving the other for more nuanced diplomatic effects.[country_event](/wiki/effect/country_event) — Trigger a follow-up diplomatic event immediately after removing the modifier, forming a coherent event chain narrative.modifier name must exactly match the modifier key defined in add_opinion_modifier, and that modifier must be pre-declared in the opinion_modifiers file; if the key is misspelled or does not exist, the game will not report an error but the modifier will not be removed, causing the opinion to persist permanently.target specifying "the party being evaluated"; beginners often swap the two, causing the removal to target the wrong side, resulting in unexpected one-sided opinion residue.