Hands-On Usage
has_enemy_naval_control is commonly used in decision and mission scripts for coastal nations to determine whether an enemy has gained naval superiority, thereby triggering corresponding strategic response logic—such as supply blockades, landing restrictions, or unlocking special decisions. Typical scenarios include scripting a "blockaded" status event chain for island or peninsular nations, or using it in an available block to prevent actions that depend on sea-line supply routes.
# Activate emergency supply decision when enemy controls the strategic region containing this nation's capital
available = {
NOT = {
has_enemy_naval_control = PACIFIC_STRATEGIC_REGION
}
}
Synergy
[convoy_threat](/wiki/trigger/convoy_threat): Loss of naval control is often accompanied by high escort threat; combining these two triggers enables more precise judgment of whether supply lines are in crisis.
[enemies_naval_strength_ratio](/wiki/trigger/enemies_naval_strength_ratio): Used to quantify the naval strength disparity between you and enemies; combined with has_enemy_naval_control, it detects both the "symptom" and the "root cause," making the logic more complete.
[controls_state](/wiki/trigger/controls_state): Naval control triggers typically work in conjunction with land control checks—for example, simultaneously verifying whether the enemy controls key coastal states to assess amphibious landing threats.
[add_ideas](/wiki/effect/add_ideas): After confirming the enemy has achieved naval superiority, use effects to add "naval blockade"-type ideas to your nation, reflecting strategic disadvantage status to the player.
Common Pitfalls
- Forgetting that scope must be COUNTRY: Beginners sometimes invoke this trigger directly under state scope or unit_leader scope, causing script errors or silent failures—always ensure the outer scope is a country tag or jump to country scope via
OWNER/CONTROLLER before use.
- Mistakenly filling in province ID or state ID as the parameter: This trigger's parameter is a Strategic Region ID, not a regular province or state ID; using the wrong ID will not produce an obvious error message, but the trigger will silently return false. When debugging, cross-reference the
map/strategicregions/ folder to confirm the correct REGION_ID.