命令百科

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) 归零。