Wiki

effect · reverse_add_opinion_modifier

Definition

  • Supported scope:COUNTRY
  • Supported target:any

Description

Add opinion modifier(s) to target(s)

实战 · 配合 · 坑

实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。

实战用法

reverse_add_opinion_modifier 用于让目标国对当前 scope 国产生好感/恶感,典型场景是当玩家国发出援助或索取利益时,让受援方/受损方对自己产生反馈性态度,而无需切换到对方 scope 再写 add_opinion_modifier。例如,某决策完成后让所有盟友对本国提升好感:

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):两者互为镜像,add_opinion_modifier 是当前 scope 对目标施加看法,reverse_add_opinion_modifier 是目标对当前 scope 施加看法,往往成对出现以实现双向外交关系变化。
  • [every_faction_member](/wiki/effect/every_faction_member):批量遍历所有盟友并让他们对本国产生意见修正,是最常见的用法组合,避免逐一切换 scope。
  • [add_relation_modifier](/wiki/effect/add_relation_modifier):当需要同时修改双边关系规则而非单次意见时与本 effect 配合,前者处理持久规则层,后者处理舆论层。
  • [has_country_flag](/wiki/trigger/has_country_flag):在触发条件中检查标记,确保只在特定外交事件已发生后才调用本 effect,防止意见修正重复叠加。

常见坑

  1. 方向搞反:新手常把 reverse_add_opinion_modifieradd_opinion_modifier 的主客体混淆——前者是目标对我产生看法,后者是我对目标产生看法,写在同一 scope 下时效果完全相反,务必用注释标注清楚再对照检查。
  2. modifier 未在 opinion_modifiers 文件中定义:本 effect 引用的 modifier 键名必须在 common/opinion_modifiers/ 中事先声明,若拼写错误或文件缺失,游戏不会报明显错误但意见修正将静默失效,调试时容易遗漏。

Hands-On Notes

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.

Hands-On Usage

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

Synergy

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

Common Pitfalls

  1. Direction reversed: Newcomers often confuse the subject and object of 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.
  2. modifier not defined in opinion_modifiers file: The 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.