Wiki

trigger · ic_ratio

Definition

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

Description

Compares the ratio of total industrial capacity between the scope country and the one set with 'tag'

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

ic_ratio is commonly used to assess the relative industrial strength between nations, making it suitable as a prerequisite condition in diplomatic decisions, tech bonuses, or AI strategy adjustments. For example, triggering an emergency production decision when the player's industrial capacity falls below 50% of their opponent's:

available = {
    ic_ratio = {
        tag = GER
        ratio < 0.5
    }
}

Synergy

  • [alliance_strength_ratio](/wiki/trigger/alliance_strength_ratio): Industrial ratio often works in conjunction with alliance military strength ratio to comprehensively assess whether conditions favor war declaration or alliance formation.
  • [fuel_ratio](/wiki/trigger/fuel_ratio): Industrial capacity comparisons are frequently paired with fuel stockpile ratios to evaluate logistical sustainability and avoid misjudging war readiness based on a single metric.
  • [add_tech_bonus](/wiki/effect/add_tech_bonus): When your industrial ratio meets a threshold, it serves as a prerequisite for granting tech bonuses as a reward, incentivizing players to prioritize industrial development.
  • [enemies_strength_ratio](/wiki/trigger/enemies_strength_ratio): In AI decision logic, combined with enemy military strength ratio to establish a dual threshold ("industry + military power"), resulting in more rational AI behavior.

Common Pitfalls

  1. tag pointing to self: Setting tag to the scope nation's own tag results in a ratio that is always 1, making the condition meaningless. Ensure tag references an actual comparison target (the opposing nation).
  2. Confusing ratio direction: ic_ratio calculates scope nation ÷ tag nation. Beginners often reverse this logic, causing ratio > 1 and ratio < 1 conditionals to be written backwards entirely.