effect · reverse_add_opinion_modifier
Definition
- Supported scope:
COUNTRY - Supported target:
any
Description
Add opinion modifier(s) to target(s)
reverse_add_opinion_modifierCOUNTRYanyAdd opinion modifier(s) to target(s)
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.
reverse_add_opinion_modifier is used to make the target country develop a favorable or unfavorable opinion of the current scope country, with typical applications being when the player's nation provides aid or demands concessions—allowing the recipient or affected party to develop reciprocal attitudes without needing to switch to their scope and write add_opinion_modifier separately. For example, after completing a certain decision, make all faction members develop goodwill toward your nation:
complete_national_focus = SOV_aid_allies
immediate = {
every_faction_member = {
reverse_add_opinion_modifier = {
target = ROOT
modifier = grateful_for_aid
}
}
}
[add_opinion_modifier](/wiki/effect/add_opinion_modifier): These two are mirror effects—add_opinion_modifier applies the current scope's view toward the target, while reverse_add_opinion_modifier applies the target's view toward the current scope. They often appear in pairs to achieve bidirectional diplomatic relationship changes.[every_faction_member](/wiki/effect/every_faction_member): Batch-iterates through all faction members and applies opinion modifiers from them toward your nation, the most common usage pattern that avoids switching scopes individually.[add_relation_modifier](/wiki/effect/add_relation_modifier): Pair this effect with the former when you need to modify persistent bilateral relationship rules rather than one-time opinions—the latter handles the persistent rule layer while this handles the opinion layer.[has_country_flag](/wiki/trigger/has_country_flag): Check flags in trigger conditions to ensure the effect is only called after specific diplomatic events have occurred, preventing opinion modifier stacking.reverse_add_opinion_modifier and add_opinion_modifier—the former means the target develops an opinion of me, the latter means I develop an opinion of the target. When written in the same scope, the effects are completely opposite. Always add comments and double-check the direction carefully.modifier key referenced by this effect must be declared beforehand in common/opinion_modifiers/. If there's a spelling error or the file is missing, the game won't report an obvious error but the opinion modifier will silently fail, easily overlooked during debugging.