Wiki

effect · force_enable_resistance

Definition

  • Supported scope:STATE
  • Supported target:any

Description

force enables resistance for scoped state. the resistance will be active even if other conditions doesn't satisfy (even if it is core or resistance check trigger is false)  :
force_enable_resistance = GER # same as occupier = GER 
force_enable_resistance = { 
  clear = no #if yes, will clear previously set resistance
  occupier = GER #if set, the resistance will be enabled when the occupier is GER
  occupied = ENG #if set, the resistance will be enabled if the occupier country is target
}

实战 · 配合 · 坑

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

实战用法

force_enable_resistance 常用于剧本 mod 中强制在特定州触发抵抗运动,无论该州是否为占领国核心或其他游戏条件是否满足,例如在占领剧情事件中让某国占领区立即爆发民众抵抗。若只针对特定占领者激活,可使用 occupier 字段精确限定,避免对所有占领情况一刀切。

# 强制对德国占领波兰某州启用抵抗,无论该州是否满足常规触发条件
123 = { # 州 scope
    force_enable_resistance = {
        occupier = GER
    }
}

# 清除之前设置的强制抵抗标记
123 = {
    force_enable_resistance = {
        clear = yes
    }
}

配合关系

  • [add_resistance](/wiki/effect/add_resistance):强制启用抵抗后,通常需要同步提升抵抗值,使游戏中立即呈现可见效果。
  • [force_disable_resistance](/wiki/effect/force_disable_resistance):作为对立命令,在剧情转变时(如解放事件)用于取消之前的强制抵抗状态。
  • [has_active_resistance](/wiki/trigger/has_active_resistance):在触发条件中检查抵抗是否已激活,常与本命令配合做前置判断或后续响应。
  • [set_occupation_law](/wiki/effect/set_occupation_law):调整占领法令往往与强制启用抵抗同步发生,模拟严苛统治引发民间反抗的逻辑。

常见坑

  1. 忘记指定 occupier 导致范围过宽:不填任何字段时等同于对所有占领者启用抵抗,在多方势力争夺的地图上可能产生非预期的全面抵抗,应明确写 occupieroccupied 字段加以限定。
  2. 误以为 clear = yes 会同时清除抵抗值clear 仅移除「强制启用」的标记,不会自动重置通过 add_resistanceset_resistance 累积的抵抗强度数值,需额外使用 [set_resistance](/wiki/effect/set_resistance) 归零。

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

force_enable_resistance is commonly used in scenario mods to forcibly trigger resistance movements in specific states, regardless of whether the state is a core of the occupying nation or other game conditions are met. For example, in occupation story events, you can make a nation's occupied territory immediately erupt in popular resistance. If you need to activate resistance only for a specific occupier, use the occupier field to precisely target it and avoid applying the effect indiscriminately to all occupation scenarios.

# Forcibly enable resistance in a Polish state occupied by Germany,
# regardless of whether the state meets normal trigger conditions
123 = { # state scope
    force_enable_resistance = {
        occupier = GER
    }
}

# Clear the force resistance flag set previously
123 = {
    force_enable_resistance = {
        clear = yes
    }
}

Synergy

  • [add_resistance](/wiki/effect/add_resistance): After forcibly enabling resistance, you typically need to simultaneously increase resistance values to produce immediate visible effects in-game.
  • [force_disable_resistance](/wiki/effect/force_disable_resistance): As the counterpart command, use it to cancel previously forced resistance states when the scenario transitions (e.g., liberation events).
  • [has_active_resistance](/wiki/trigger/has_active_resistance): Check in trigger conditions whether resistance is already active; commonly paired with this command for pre-checks or follow-up responses.
  • [set_occupation_law](/wiki/effect/set_occupation_law): Adjusting occupation laws often occurs in sync with forcibly enabling resistance, simulating the logic of harsh rule provoking civilian backlash.

Common Pitfalls

  1. Forgetting to specify occupier results in overly broad scope: When no field is filled, it is equivalent to enabling resistance for all occupiers, which can cause unexpected widespread resistance on maps with multi-faction competition. Always explicitly define the occupier or occupied field to limit the effect.
  2. Mistakenly assuming clear = yes also clears resistance values: clear only removes the "force enabled" flag; it does not automatically reset resistance strength accumulated through add_resistance or set_resistance, requiring additional use of [set_resistance](/wiki/effect/set_resistance) to zero out the value.