Wiki

effect · show_mio_tooltip

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Show the name of the input MIO with the name of the initial trait (if any)
ex:
SOV = {
	show_mio_tooltip = my_mio_token
	show_mio_tooltip = var:my_mio_var
}

实战 · 配合 · 坑

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

实战用法

show_mio_tooltip 常用于国策、决议或事件的 tooltip 展示阶段,当你希望玩家在看到效果说明时能清楚知道某个军事工业组织(MIO)的名称及其初始特性,而不必自行查阅。典型场景是某国专属国策解锁特定 MIO 时,在 complete_national_focus 同级的 ai_will_do 或事件 option 内用它提前告知玩家即将获得的内容。

# 苏联国策事件:展示即将激活的 MIO 信息
country_event = {
    id = sov.mio.1
    option = {
        name = sov.mio.1.a
        # 仅做 tooltip 展示,不触发实际激活
        show_mio_tooltip = sov_tank_design_bureau
        # 也支持变量引用
        show_mio_tooltip = var:selected_mio_token
    }
}

配合关系

  • [has_completed_focus](/wiki/trigger/has_completed_focus):先判断某国策是否完成,再在对应事件/决议中用 show_mio_tooltip 展示解锁的 MIO,逻辑上形成「条件→说明」的完整链条。
  • [every_military_industrial_organization](/wiki/effect/every_military_industrial_organization):遍历 MIO 时配合 tooltip 输出,可在循环体外用 show_mio_tooltip 为玩家高亮目标 MIO,便于对比。
  • [activate_targeted_decision](/wiki/effect/activate_targeted_decision):激活与 MIO 相关的专属决议前,先用 show_mio_tooltip 在 tooltip 中说明该决议针对哪个 MIO,提升可读性。
  • [add_ideas](/wiki/effect/add_ideas):两者常出现在同一 option 中——add_ideas 实际添加效果,show_mio_tooltip 负责在同一弹窗内补充展示关联 MIO 的信息,形成「效果 + 说明」的标准搭配。

常见坑

  1. 把它当激活指令用show_mio_tooltip 仅是纯展示性 effect,不会让国家真正获得或激活该 MIO;新手容易误以为写了它就完成了 MIO 的解锁,实际激活逻辑需要额外的指令配合。
  2. token 拼写与作用域错误:传入的 MIO token 必须在 military_industrial_organization 定义中确实存在,且该 effect 只能在 COUNTRY scope 下调用;若误放在 STATE 或 CHARACTER scope 内,脚本会静默失效或报错,不会给出明显提示。

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

show_mio_tooltip is commonly used during tooltip display stages in national focuses, decisions, or events. It helps players clearly understand the name and initial traits of a specific Military Industrial Organization (MIO) without having to look it up themselves. Typical scenarios include when a nation-specific focus unlocks a dedicated MIO—you can use it alongside complete_national_focus in an ai_will_do block or within an event option to inform the player about the content they're about to receive.

# Soviet focus event: display upcoming MIO information
country_event = {
    id = sov.mio.1
    option = {
        name = sov.mio.1.a
        # Only shows tooltip, does not trigger actual activation
        show_mio_tooltip = sov_tank_design_bureau
        # Also supports variable references
        show_mio_tooltip = var:selected_mio_token
    }
}

Synergy

  • [has_completed_focus](/wiki/trigger/has_completed_focus): First check whether a focus has been completed, then use show_mio_tooltip in the corresponding event or decision to display the unlocked MIO. This creates a complete logical chain of "condition → explanation."
  • [every_military_industrial_organization](/wiki/effect/every_military_industrial_organization): When iterating through MIOs, pair it with tooltip output. You can highlight the target MIO outside the loop body with show_mio_tooltip, making it easier for players to compare.
  • [activate_targeted_decision](/wiki/effect/activate_targeted_decision): Before activating an MIO-related exclusive decision, use show_mio_tooltip first in the tooltip to clarify which MIO the decision targets, improving readability.
  • [add_ideas](/wiki/effect/add_ideas): These two often appear in the same option—add_ideas applies the actual effect, while show_mio_tooltip displays related MIO information in the same popup window, forming a standard "effect + explanation" pairing.

Common Pitfalls

  1. Using it as an activation command: show_mio_tooltip is purely a display effect and will not actually grant or activate the MIO for the country. Newcomers often mistakenly believe that writing it completes the MIO unlock, when in fact actual activation requires additional commands.
  2. MIO token spelling and scope errors: The MIO token you pass must actually exist in the military_industrial_organization definition, and this effect can only be called within a COUNTRY scope. If mistakenly placed in a STATE or CHARACTER scope, the script will silently fail or error without giving a clear warning.