Wiki

trigger · core_resistance

Definition

  • Supported scope:COUNTRY
  • Supported target:any

Description

Compares the core (average of all occupied states) resistance value of occupied_country_tag that is occuppied by the country in current scope.
Example:
core_resistance = { 
 occupied_country_tag = ITA 
 value > 35 
}

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

core_resistance is commonly used in occupation system–related mod scenarios. For example, you can trigger certain punitive decisions or events when the average resistance value of occupied core territories exceeds a threshold, forcing players to strengthen suppression or adjust occupation policies. It can also be used in AI strategy condition checks, allowing the AI to unlock additional expansion actions when resistance falls below a certain level.

# Trigger a warning event when this country's average core resistance in occupied Italian states exceeds 35
country_event = {
    id = occupation.001
    trigger = {
        core_resistance = {
            occupied_country_tag = ITA
            value > 35
        }
    }
}

Synergy

  • [core_compliance](/wiki/trigger/core_compliance): These two are "mirror" opposites—high resistance typically correlates with low compliance. They are often used together to precisely filter occupation states within critical ranges.
  • [any_occupied_country](/wiki/trigger/any_occupied_country): Used to iterate through all occupied countries first, then filter specific resistance levels within the inner scope using core_resistance, enabling batch condition evaluation.
  • [has_core_occupation_modifier](/wiki/trigger/has_core_occupation_modifier): Checks whether a specific occupation modifier already exists. Combined with core_resistance, it prevents duplicate application of the same modifier.
  • [add_dynamic_modifier](/wiki/effect/add_dynamic_modifier): When core_resistance evaluates to true, use this effect to apply dynamic modifiers to the occupying country (such as combat efficiency penalties), forming a complete "condition → consequence" logic chain.

Common Pitfalls

  1. Incorrect or missing occupied_country_tag: This field is mandatory. If omitted or filled with the current scope's own tag, the script will fail to correctly calculate the average resistance of the occupied country's core states, causing the condition to never trigger or produce errors. Always verify that you are specifying the occupied party's country tag.
  2. Misunderstanding the calculation scope of "average": This trigger calculates the average resistance value across all core states of the occupied country that are currently occupied by your country, not a single state or all states globally. Beginners often confuse this with single-state resistance triggers, leading to threshold settings that do not match actual in-game behavior.