Wiki

trigger · naval_strength_ratio

Definition

  • Supported scope:COUNTRY
  • Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL

Description

Compares the estimated navy strength between the scope country and the one set with 'tag' 
naval_strength_ratio = { 
  tag = GER 
  ratio > 0.5 
}

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

naval_strength_ratio is commonly used to determine whether a nation possesses relative naval superiority, thereby unlocking specific decisions, event options, or national focus branches—for example, allowing amphibious operations only when your naval strength exceeds your opponent's by a certain ratio. The following example demonstrates restricting players to select an option only when they have naval superiority within a decision's available block:

available = {
    naval_strength_ratio = {
        tag = ENG
        ratio > 0.8
    }
}

Synergy

  • [alliance_naval_strength_ratio](/wiki/trigger/alliance_naval_strength_ratio): Use in conjunction with this trigger when you need to combine your entire faction's naval strength for comparison, allowing separate evaluation of single-nation versus alliance-wide naval gaps.
  • [enemies_naval_strength_ratio](/wiki/trigger/enemies_naval_strength_ratio): Complements this trigger; use to verify naval strength balance bidirectionally from both "me versus enemy" and "enemy versus me" perspectives, avoiding edge cases that single-directional checks might miss.
  • [has_navy_size](/wiki/trigger/has_navy_size) (Note: refer to whitelist for accuracy; substitute with) [has_army_size](/wiki/trigger/has_army_size): Filter out minuscule nations using size-class triggers before applying naval ratio triggers, preventing anomalous behavior when the denominator approaches zero.
  • [create_wargoal](/wiki/effect/create_wargoal): Trigger war goals as an effect once naval strength ratio thresholds are met, commonly found in result blocks of "naval supremacy contention" event chains.

Common Pitfalls

  1. Confusion over ratio comparison direction: The meaning of ratio is scope nation ÷ tag nation, not the reverse. Beginners often mistakenly assume writing ratio > 1.0 means "I am stronger than the opponent," but if scope and tag are reversed, the logic becomes inverted, causing conditions to always trigger or never trigger.
  2. tag refers to the target nation, not the comparison baseline: Some beginners misunderstand tag as the "baseline nation" and arbitrarily fill in allied or neutral nation tags, forgetting that when the target nation has zero naval units, the ratio becomes meaningless. Ensure the nation referenced by tag actually possesses naval units; otherwise, the ratio result is unpredictable.