Wiki

effect · add_collaboration

Definition

  • Supported scope:COUNTRY
  • Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL

Description

Adds the collaboration in a target country with our currently scoped country
GER = {
  add_collaboration = {
    target = POL
    value = 0.3
  }
}

实战 · 配合 · 坑

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

实战用法

add_collaboration 常用于傀儡化或占领前的铺垫剧情,例如让某一大国通过间谍活动或外交事件提前在目标国积累协作值,使后续的占领与顺从更为顺滑。典型场景是在完成某个国策焦点后,自动为玩家在邻国添加一定程度的协作基础。

# 德国完成某渗透焦点后,向波兰添加协作值
focus = {
    id = GER_infiltrate_poland
    # ...
    completion_reward = {
        GER = {
            add_collaboration = {
                target = POL
                value = 0.3
            }
        }
    }
}

配合关系

  • [has_collaboration](/wiki/trigger/has_collaboration):在添加协作值前或后用于检测当前协作水平是否已达到某个阈值,决定是否触发进一步事件或选项。
  • [add_opinion_modifier](/wiki/effect/add_opinion_modifier):协作值提升往往伴随外交关系改善,两者合用能让目标国对施加方更为友善,增强叙事真实感。
  • [add_dynamic_modifier](/wiki/effect/add_dynamic_modifier):可在协作值积累到一定程度时附加动态 modifier,给目标国施加经济或政治上的渗透效果,强化游戏反馈。
  • [country_event](/wiki/effect/country_event):常配合协作值增加触发专属事件,让目标国玩家或 AI 对外部渗透作出响应,丰富互动链。

常见坑

  1. scope 与 target 混淆add_collaboration 必须在施加方(渗透方)的 country scope 内执行,target 填写被渗透的目标国标签;新手常把 scope 和 target 写反,导致协作值加在错误的国家上,而游戏并不会报错提示。
  2. value 为绝对值而非百分比字符串value 接受的是一个直接的数值(如 0.3 代表 30%),不能写成 30 或加百分号,否则会超出合法范围或产生意外的极大协作值跳变。

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

add_collaboration is commonly used as narrative groundwork before puppet state establishment or occupation—for example, allowing a major power to accumulate collaboration through espionage or diplomatic events in the target nation, making subsequent occupation and compliance smoother. A typical scenario involves automatically adding a baseline collaboration value to neighboring countries for the player after completing a specific focus.

# After Germany completes a certain infiltration focus, add collaboration to Poland
focus = {
    id = GER_infiltrate_poland
    # ...
    completion_reward = {
        GER = {
            add_collaboration = {
                target = POL
                value = 0.3
            }
        }
    }
}

Synergy

  • [has_collaboration](/wiki/trigger/has_collaboration): Use before or after adding collaboration to detect whether current collaboration level has reached a certain threshold, determining whether to trigger further events or options.
  • [add_opinion_modifier](/wiki/effect/add_opinion_modifier): Rising collaboration is often accompanied by improved diplomatic relations; using both together makes the target nation more favorable toward the perpetrator and enhances narrative authenticity.
  • [add_dynamic_modifier](/wiki/effect/add_dynamic_modifier): Can apply dynamic modifiers once collaboration accumulates to a certain level, imposing economic or political infiltration effects on the target nation and strengthening gameplay feedback.
  • [country_event](/wiki/effect/country_event): Commonly paired with collaboration increases to trigger exclusive events, allowing the target nation's player or AI to respond to external infiltration, enriching the interaction chain.

Common Pitfalls

  1. Confusion between scope and target: add_collaboration must be executed within the perpetrator's (infiltrating nation's) country scope, with target specifying the target nation's tag; newcomers often reverse scope and target, causing collaboration to be applied to the wrong nation, and the game provides no error warning.
  2. value is an absolute value, not a percentage string: value accepts a direct numeric value (such as 0.3 representing 30%), not 30 or with a percent sign; otherwise it will exceed valid range or produce unexpectedly large collaboration jumps.