Wiki

effect · add_mio_policy_cost

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Add to the base cost (in PP) for attaching a policy in the MIO policy, found in country in scope with input policy token.
This changes the base value. Modifiers will still apply over it.
Value can be negative to reduce cost, but final cost cannot be negative (capped at 0, no error raised)
ex:
SOV = {
  add_mio_policy_cost = {
	policy = my_policy_token
	value = 1
  }
  add_mio_policy_cost = {
	policy = my_policy_token
	value = -1
  }
  add_mio_policy_cost = {
	policy = my_policy_token
	value = var:my_number_var
  }
}

实战 · 配合 · 坑

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

实战用法

add_mio_policy_cost 常用于动态调整军工组织政策的解锁门槛,例如当某国完成特定国策或达成科研条件后,降低关键政策的政治点消耗,从而给予玩家实质性的激励奖励。也可用于惩罚机制,比如某国发生政治危机时临时提高政策费用。

# 完成国策后降低某条生产政策的费用
focus = {
    id = SOV_industrial_optimization
    ...
    completion_reward = {
        SOV = {
            add_mio_policy_cost = {
                policy = mio_policy_tank_reliability
                value = -2
            }
        }
    }
}

配合关系

  • [add_mio_policy_cooldown](/wiki/effect/add_mio_policy_cooldown):两者经常配套使用,在降低政策费用的同时调整冷却时间,共同控制玩家对 MIO 政策的运用节奏。
  • [add_political_power](/wiki/effect/add_political_power):政策费用本质上消耗政治点,因此常在同一奖励块中一并给予额外政治点,确保玩家有足够资源立即使用政策。
  • [has_completed_focus](/wiki/trigger/has_completed_focus):作为条件判断,用来检测国策是否完成,从而在 if 块中有条件地调整政策费用,避免全局生效。
  • [add_ideas](/wiki/effect/add_ideas):在同一事件或国策奖励中与 add_mio_policy_cost 同时触发,用 idea 来在界面上直观标注"政策折扣"效果处于激活状态。

常见坑

  1. scope 写错:此 effect 必须在 COUNTRY scope 下执行,如果直接写在 statecharacter scope 里会静默失效,注意检查外层 scope 是否正确指向目标国家。
  2. 误以为可以叠加到负值:新手常以为多次 value = -X 能把费用压成负数来"免费"使用政策,实际上最终费用被硬性截断至 0,不会产生负费用,也不会报错,调试时容易忽视。

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

add_mio_policy_cost is commonly used to dynamically adjust the unlock thresholds for military industrial organization (MIO) policy costs. For example, after a nation completes a specific focus tree or meets research conditions, you can reduce the political power cost of a critical policy, providing meaningful reward incentives to the player. It can also be used for penalty mechanics, such as temporarily increasing policy costs when a nation experiences a political crisis.

# Reduce the cost of a production policy after completing a focus
focus = {
    id = SOV_industrial_optimization
    ...
    completion_reward = {
        SOV = {
            add_mio_policy_cost = {
                policy = mio_policy_tank_reliability
                value = -2
            }
        }
    }
}

Synergy

  • [add_mio_policy_cooldown](/wiki/effect/add_mio_policy_cooldown): These two are frequently used together to adjust cooldown times while reducing policy costs, jointly controlling the player's usage cadence for MIO policies.
  • [add_political_power](/wiki/effect/add_political_power): Policy costs fundamentally consume political power, so it is common to grant additional political power in the same reward block, ensuring players have sufficient resources to immediately use the policy.
  • [has_completed_focus](/wiki/trigger/has_completed_focus): Serves as a conditional check to detect whether a focus has been completed, allowing conditional policy cost adjustments within if blocks to avoid global application.
  • [add_ideas](/wiki/effect/add_ideas): Triggered simultaneously with add_mio_policy_cost in the same event or focus reward, using ideas to visually mark on the interface that a "policy discount" effect is active.

Common Pitfalls

  1. Incorrect scope: This effect must execute under COUNTRY scope. If placed directly in state or character scope, it will silently fail. Always verify that the outer scope correctly targets the intended nation.
  2. Mistaking cost can go negative: Beginners often assume multiple value = -X applications can reduce the cost to negative numbers for "free" policy usage. In reality, the final cost is hard-capped at 0 and negative costs do not occur. No error is thrown, making this easy to overlook during debugging.