Wiki

effect · unlock_military_industrial_organization_tooltip

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Display a tooltip saying the MIO is made available (aka unlocked).
Accepts MIO token, variables or keywords
ex:
FIN = {
	unlock_military_industrial_organization_tooltip = mio:my_mio_token
	unlock_military_industrial_organization_tooltip = var:my_mio_var
}

实战 · 配合 · 坑

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

实战用法

此 effect 专门用于在工具提示层面展示"某军工组织即将解锁"的提示信息,而不实际执行解锁操作,常见于 focus tree 或 decision 的 complete_effect 中配合真正的解锁逻辑一起出现,让玩家在悬停预览时能清楚看到奖励内容。例如在一个专注于军工体系的 mod 中,某国完成国策后向玩家显示即将获得的 MIO:

focus = {
    id = FIN_develop_defense_industry
    ...
    completion_reward = {
        unlock_military_industrial_organization_tooltip = mio:fin_patria_mio
        # 此处配合真正的解锁 effect
    }
}

配合关系

  • [every_military_industrial_organization](/wiki/effect/every_military_industrial_organization):遍历已有 MIO 时,常需要先用 tooltip effect 向玩家说明哪个 MIO 会被影响,再执行实际操作,逻辑更清晰。
  • [any_military_industrial_organization](/wiki/trigger/any_military_industrial_organization):在 trigger 块中检查某 MIO 是否存在或满足条件,与 tooltip effect 配合可实现"满足条件时才显示解锁提示"的动态说明。
  • [add_ideas](/wiki/effect/add_ideas):解锁 MIO 往往伴随着国家思潮或特殊政策的添加,两者放在同一执行块中共同构成完整的奖励包。
  • [activate_mission_tooltip](/wiki/effect/activate_mission_tooltip):同属"仅展示提示"类 effect,常在同一 complete_effectoption 中并排使用,统一管理玩家可见的奖励预告信息。

常见坑

  1. 误以为此命令会真正解锁 MIO_tooltip 后缀表明它仅生成界面提示文本,并不执行实际的解锁逻辑;若只写了这条而没有配套的真正解锁 effect,玩家看到提示却不会获得该 MIO,导致"虚假承诺"式 bug。
  2. 在错误的 scope 下使用:此 effect 必须位于 COUNTRY scope 中,若误写在 state scope 或 character scope 下会导致脚本报错或静默失效,新手在嵌套 scope 层级较深时尤其容易忽视当前所处的 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

This effect is specifically designed to display a "military industrial organization unlocking soon" tooltip at the interface level without actually executing the unlock operation. It commonly appears in focus trees or decisions within completion_reward blocks, paired with the actual unlock logic, allowing players to clearly see the rewards when hovering over previews. For example, in a mod focused on military industrial systems, a nation can display the MIO it will soon acquire to the player after completing a focus:

focus = {
    id = FIN_develop_defense_industry
    ...
    completion_reward = {
        unlock_military_industrial_organization_tooltip = mio:fin_patria_mio
        # Paired here with the actual unlock effect
    }
}

Synergy

  • [every_military_industrial_organization](/wiki/effect/every_military_industrial_organization): When iterating through existing MIOs, it's often necessary to first use the tooltip effect to clarify which MIO will be affected, then execute the actual operation for clearer logic.
  • [any_military_industrial_organization](/wiki/trigger/any_military_industrial_organization): When checking in a trigger block whether an MIO exists or meets conditions, combining with the tooltip effect enables dynamic descriptions like "show unlock hints only when conditions are met."
  • [add_ideas](/wiki/effect/add_ideas): Unlocking an MIO is often accompanied by adding national ideologies or special policies; placing both in the same execution block together forms a complete reward package.
  • [activate_mission_tooltip](/wiki/effect/activate_mission_tooltip): Belongs to the same "tooltip-only" effect category and is commonly placed side-by-side in the same completion_reward or option block to uniformly manage visible reward previews for players.

Common Pitfalls

  1. Mistaking this command for actually unlocking an MIO: The _tooltip suffix indicates it only generates interface hint text and does not execute actual unlock logic. If only this command is written without a corresponding real unlock effect, players will see the hint but won't receive the MIO, resulting in a "false promise" bug.
  2. Using it in the wrong scope: This effect must be placed within a COUNTRY scope. If mistakenly written in a state scope or character scope, it will cause script errors or silent failures. Beginners are especially prone to overlooking the current scope when nesting levels are deep.