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