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