Wiki

effect · strategic_province_location

Definition

  • Supported scope:STATE
  • Supported target:none

Description

Add a strategic location to a province using state scope
The available strategic locations is defined in strategic_locations and is specified with a province id.
Can contain multiple strategic locations
Ex:
strategic_location = {
  my_strategic_area = 3258 # Province ID
  my_other_area = 1234
}
}

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

strategic_province_location is commonly used in dynamic strategic map mods. When a player completes a specific event or decision, it adds new strategic location markers to a state, thereby shifting the strategic focus of AI or player planning. For example, in a mod that modifies the strategic bombing system, you can dynamically register multiple key provinces' strategic significance for an industrial state through event triggers:

# Within the option block in state scope
strategic_province_location = {
    industrial_hub_zone = 3258
    rail_junction_zone  = 1204
}

Synergy

  • [has_state_flag](/wiki/trigger/has_state_flag): Check if the state already has a specific flag before adding strategic locations, avoiding logical confusion from duplicate additions.
  • [set_state_flag](/wiki/effect/set_state_flag): Mark the state after adding strategic locations to prevent subsequent events from executing the same effect repeatedly.
  • [add_province_modifier](/wiki/effect/add_province_modifier): Stack province modifiers on the same province alongside strategic locations to reinforce the region's special attribute representation.
  • [is_controlled_by](/wiki/trigger/is_controlled_by): Determine state ownership before registering strategic locations only when controlled by specific nations, making the effect more conditionally targeted.

Common Pitfalls

  1. Incorrect province ID entry: The province ID must belong to the state corresponding to the current STATE scope. If you enter a province ID from another state, the game will not report an error but the strategic location will fail to register correctly, making it extremely difficult to debug.
  2. Confusion with strategic_state_location (a similar effect in the whitelist): The two names are highly similar. strategic_province_location specifies locations at the granularity of individual province IDs. Using the other command by mistake may cause the action level to not match, resulting in unexpected behavior.