Wiki

trigger · has_scientist_specialization

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Checks if the country in scope has a scientist with a skill level of at least 1 in specialization.
ex:
SOV = {
	has_scientist_specialization = specialization_nuclear
}

实战 · 配合 · 坑

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

实战用法

在核武器或特殊项目相关 mod 中,常用于检查某国是否具备开展特定研究的科学家基础,从而解锁对应决策或焦点。例如,在一个自定义核扩散系统里,只有当玩家国家拥有核专长科学家时,才允许触发核武研究加速决策:

available = {
    has_scientist_specialization = specialization_nuclear
}

配合关系

  • [any_scientist](/wiki/trigger/any_scientist) — 当需要对科学家进行更复杂的筛选(如同时检查技能等级与其他属性)时,可配合此 trigger 作为补充或替代方案。
  • [generate_scientist_character](/wiki/effect/generate_scientist_character) — 若检测到国家缺乏某专精科学家,可用此 effect 生成一名对应专长的科学家作为兜底逻辑。
  • [add_scientist_role](/wiki/effect/add_scientist_role) — 在确认已有科学家存在的前提下,用此 effect 为其追加新的角色或专长,实现科学家能力扩展。
  • [any_active_scientist](/wiki/trigger/any_active_scientist) — 用于进一步限定"在职/激活状态"的科学家,与本 trigger 组合可区分"拥有"和"正在使用"的场景差异。

常见坑

  1. 误用在非 COUNTRY scope 下:此 trigger 只能在国家 scope 内使用,若写在 STATE 或 CHARACTER 等 scope 的条件块中会静默失效或报错,务必确认外层 scope 是国家。
  2. 误以为检查的是技能等级具体数值:该 trigger 只判断"是否至少有 1 级"该专精,并非可以自定义数字阈值的比较器,若要区分高低技能等级需改用 any_scientist 配合内部条件来实现。

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 trigger is commonly used in nuclear weapons or special project-related mods to check whether a nation has the foundational scientist expertise to undertake specific research, thereby unlocking corresponding decisions or focuses. For example, in a custom nuclear proliferation system, you might allow players to trigger an accelerated nuclear research decision only when their nation possesses a scientist with nuclear specialization:

available = {
    has_scientist_specialization = specialization_nuclear
}

Synergy

  • [any_scientist](/wiki/trigger/any_scientist) — When more complex scientist filtering is needed (such as simultaneously checking skill levels and other attributes), this trigger can serve as a supplementary or alternative approach.
  • [generate_scientist_character](/wiki/effect/generate_scientist_character) — If you detect that a nation lacks a scientist with a specific specialization, use this effect to generate a scientist with the corresponding expertise as a fallback mechanism.
  • [add_scientist_role](/wiki/effect/add_scientist_role) — Once you've confirmed that a scientist exists, use this effect to add new roles or specializations to them, enabling scientist capability expansion.
  • [any_active_scientist](/wiki/trigger/any_active_scientist) — Use this to further filter scientists in "active/activated" status. Combined with this trigger, you can distinguish between scenarios of "owning" versus "actively using" scientists.

Common Pitfalls

  1. Misuse outside COUNTRY scope — This trigger only works within country scope. If placed in condition blocks under STATE or CHARACTER scopes, it will silently fail or cause errors. Always verify that the outer scope is a country.
  2. Assuming it checks specific skill level values — This trigger only determines "whether at least level 1 of this specialization exists," not a customizable numeric threshold comparator. To differentiate between high and low skill levels, use any_scientist combined with internal conditions instead.