Wiki

trigger · original_research_slots

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

check number of research slots at start of game

实战 · 配合 · 坑

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

实战用法

original_research_slots 常用于针对不同科研槽位基础值(即游戏开局时的槽位数,不含后期加成)对各国进行差异化处理,例如为拥有较少初始槽位的小国提供专属补偿 focus 或 idea。典型场景是在国策/决议的 available 块中限制只有特定规模的国家才能触发科研追赶机制。

# 在某个国策的 available 条件中,只允许初始科研槽较少的国家选择此追赶性国策
available = {
    original_research_slots < 4
}

# 在事件触发条件中区分大国与小国
trigger = {
    original_research_slots > 3
}

配合关系

  • [add_research_slot](/wiki/effect/add_research_slot):最常见搭配——先用 original_research_slots 确认初始槽位数量,再通过 add_research_slot 给初始槽位不足的国家进行补偿,避免重复叠加给已有高槽位的国家。
  • [amount_research_slots](/wiki/trigger/amount_research_slots):两者形成"初始值 vs 当前值"的对比判断,original_research_slots 检查开局基础,amount_research_slots 检查运行时实际槽位,组合使用可判断国家是否已经通过其他手段获得了额外槽位。
  • [add_tech_bonus](/wiki/effect/add_tech_bonus):对初始槽位少的国家在特定科技上给予折扣,作为槽位劣势的间接补偿,逻辑上与初始槽位条件强关联。
  • [add_ideas](/wiki/effect/add_ideas):根据初始科研槽数量为国家附加不同的起始 idea,常用于开局差异化脚本或历史模式特殊规则。

常见坑

  1. amount_research_slots 混淆:新手常误用 amount_research_slots 来检查"初始"槽位,但该 trigger 返回的是游戏运行时的当前实际值(含所有动态加成),若在游戏中期判断会因 idea、focus 等加成而得到错误结果;只有 original_research_slots 才真正锁定在游戏开局时的静态基础值。
  2. 在非 COUNTRY scope 下使用:此 trigger 仅在国家 scope 下有效,若误写在 any_owned_state 或 unit leader 等 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

original_research_slots is commonly used to differentiate treatment of nations based on their base research slot count (i.e., the number of slots at game start, excluding late-game bonuses). For example, you can provide exclusive compensatory focuses or ideas to smaller nations with fewer initial slots. A typical scenario is restricting research catch-up mechanics to nations of a specific size within the available block of a focus or decision.

# In a focus's available condition, only allow nations with few initial research slots to select this catch-up focus
available = {
    original_research_slots < 4
}

# In event trigger conditions, differentiate between major and minor powers
trigger = {
    original_research_slots > 3
}

Synergy

  • [add_research_slot](/wiki/effect/add_research_slot): The most common pairing—use original_research_slots to confirm the initial slot count, then employ add_research_slot to compensate nations with insufficient starting slots, avoiding duplicate bonuses to nations that already have high slot counts.
  • [amount_research_slots](/wiki/trigger/amount_research_slots): These two form a "base value vs. current value" comparison. original_research_slots checks the foundation at game start, while amount_research_slots checks the runtime actual slot count. Combined use allows you to determine whether a nation has already acquired additional slots through other means.
  • [add_tech_bonus](/wiki/effect/add_tech_bonus): Grant technology discounts to nations with few initial slots in specific techs, serving as an indirect compensation for slot disadvantage and logically strongly associated with initial slot conditions.
  • [add_ideas](/wiki/effect/add_ideas): Attach different starting ideas to nations based on their initial research slot count, commonly used in game-start differentiation scripts or special rules in historical modes.

Common Pitfalls

  1. Confusion with amount_research_slots: Newcomers often mistakenly use amount_research_slots to check "initial" slots, but this trigger returns the current actual value at runtime (including all dynamic bonuses). If checked mid-game, you'll get incorrect results due to bonuses from ideas, focuses, etc. Only original_research_slots truly locks in the static base value at game start.
  2. Usage outside COUNTRY scope: This trigger is only valid in country scope. If mistakenly placed within nested blocks of scopes like any_owned_state or unit leaders, the game will error or silently fail. Always ensure the outer scope refers to a country.