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'

实战 · 配合 · 坑

实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。

实战用法

ic_ratio 常用于判断某国工业实力与另一国的相对强弱,适合在外交决策、科技加成或 AI 战略调整等场景中作为前置条件。例如,当玩家国家工业容量不足对手 50% 时,触发紧急扩产决策的可用条件:

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

配合关系

  • [alliance_strength_ratio](/wiki/trigger/alliance_strength_ratio):工业比率常与联盟军事实力比率配合,综合衡量当前是否具备开战或结盟的底气。
  • [fuel_ratio](/wiki/trigger/fuel_ratio):工业容量比较常和燃料储备比率一起用于判断后勤可持续性,避免单一指标误判战争准备程度。
  • [add_tech_bonus](/wiki/effect/add_tech_bonus):当己方工业比率满足阈值时,作为奖励科研加成的前置条件,激励玩家优先发展工业。
  • [enemies_strength_ratio](/wiki/trigger/enemies_strength_ratio):在 AI 决策逻辑中,与敌方军事实力比率配合,形成"工业 + 军力"双重门槛,使 AI 行为更合理。

常见坑

  1. tag 指向自身:将 tag 填写为 scope 本国时,比率永远为 1,条件形同虚设;应确保 tag 指向的是真实的比较对象(对方国家)。
  2. 混淆比率方向ic_ratio 计算的是 scope 国 ÷ tag 国,新手常误以为是反过来,导致 ratio > 1ratio < 1 的判断逻辑全部写反。

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.