Wiki

effect · show_ideas_tooltip

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

show what idea does

实战 · 配合 · 坑

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

实战用法

show_ideas_tooltip 常用于国策或决议的 option 块中,在玩家即将获得某个 idea 之前,以工具提示的形式预先展示该 idea 的具体效果,帮助玩家做出决策。典型场景是在政治事件或国策完成时,让玩家在选项界面就能看清将要获得的 idea 内容,而不必另行查阅。

option = {
    name = my_event.1.a
    show_ideas_tooltip = my_special_idea
    add_ideas = my_special_idea
}

配合关系

  • [add_ideas](/wiki/effect/add_ideas) — 最直接的搭档:先用 show_ideas_tooltip 在选项里展示 idea 详情,再用 add_ideas 实际赋予,逻辑上形成"预览→生效"的配对。
  • [add_timed_idea](/wiki/effect/add_timed_idea) — 当要添加的是限时 idea 时,同样可在前面插入 show_ideas_tooltip 让玩家看到持续效果,避免盲选。
  • [has_idea](/wiki/trigger/has_idea)(注:此处应使用白名单内最接近的 trigger)— 配合 [amount_taken_ideas](/wiki/trigger/amount_taken_ideas) 可在触发条件中判断玩家是否已持有该 idea,避免重复展示或重复添加。
  • [activate_advisor](/wiki/effect/activate_advisor) — 顾问类 idea 激活前,用 show_ideas_tooltip 提前告知顾问效果,保持 UI 信息一致性。

常见坑

  1. 误把它当实际执行命令show_ideas_tooltip 只负责在界面上展示 idea 的描述,不会真正添加或激活任何 idea;新手常以为写了它就已经"给出"了 idea,忘记同时写 add_ideas,导致玩家看到提示却什么也没得到。
  2. 作用域写错:该命令只在 COUNTRY scope 下有效,若放在 state scope 的脚本块(如 every_owned_state 内部)中调用,游戏会报作用域错误或静默失效,需确保执行块处于国家作用域。

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_ideas_tooltip is commonly used within option blocks in national focuses or decisions to preview an idea's specific effects in a tooltip before the player acquires it, helping them make informed decisions. The typical scenario is during political events or focus completion, allowing players to see the idea's content directly in the option interface rather than having to look it up separately.

option = {
    name = my_event.1.a
    show_ideas_tooltip = my_special_idea
    add_ideas = my_special_idea
}

Synergy

  • [add_ideas](/wiki/effect/add_ideas) — The most direct companion: use show_ideas_tooltip first to display idea details in the option, then use add_ideas to actually grant it, logically forming a "preview → activate" pairing.
  • [add_timed_idea](/wiki/effect/add_timed_idea) — When adding a timed idea, you can similarly insert show_ideas_tooltip beforehand to let players see the duration effect, avoiding blind choices.
  • [has_idea](/wiki/trigger/has_idea) (note: use the closest trigger from the whitelist) — combined with [amount_taken_ideas](/wiki/trigger/amount_taken_ideas) allows you to check in trigger conditions whether the player already possesses the idea, preventing duplicate display or duplicate addition.
  • [activate_advisor](/wiki/effect/activate_advisor) — before activating an advisor-type idea, use show_ideas_tooltip to inform players of the advisor effect in advance, maintaining UI information consistency.

Common Pitfalls

  1. Mistaking it for an actual execution command: show_ideas_tooltip only displays the idea's description in the interface and does not actually add or activate any idea; beginners often think writing it means the idea has already been "given", forgetting to write add_ideas at the same time, resulting in players seeing the tooltip but receiving nothing.
  2. Incorrect scope: this command only works under COUNTRY scope; if placed in script blocks at state scope (such as inside every_owned_state), the game will report a scope error or silently fail, so you must ensure the execution block is at country scope.