effect · set_research_slots
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Sets the number of research slots
set_research_slotsCOUNTRYnoneSets the number of research slots
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
set_research_slots 常用于国策完成、事件触发或特定条件达成后,直接将某国的研究槽数量设定为目标值,例如为一个弱小国家提供开局增益,或在剧本中模拟技术爆发期。与仅增加单个槽的命令不同,它适合需要"精确控制总量"的场合(如将研究槽固定为某个数值,而不管当前是多少)。
# 国策完成后将研究槽设为 5
focus = {
id = SCI_research_boom
...
completion_reward = {
set_research_slots = 5
}
}
[add_research_slot](/wiki/effect/add_research_slot) — 两者互补:set_research_slots 用于精确设置总量,add_research_slot 用于在现有基础上增减,结合使用可实现"先重置再叠加"的复杂逻辑。[amount_research_slots](/wiki/trigger/amount_research_slots) — 触发条件配合:在执行 set_research_slots 前,先用此 trigger 检查当前研究槽数量,避免意外降低已有槽位(如玩家通过其他途径已获得更多槽)。[add_ideas](/wiki/effect/add_ideas) — 研究槽改动常与国家精神绑定,用 add_ideas 同步添加提供研究加成的 idea,形成完整的科研强化包。[add_tech_bonus](/wiki/effect/add_tech_bonus) — 同场景下常见搭档,在设置槽位的同时给予特定科技的研究加速,模拟国家科研力的整体提升。set_research_slots = 4,结果若该国已有 4 个槽则毫无效果,若已有 5 个槽则反而会减少槽位。需要增加时应优先使用 add_research_slot。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.
set_research_slots is commonly used after focus completion, event triggers, or when specific conditions are met to directly set a country's research slot count to a target value. For example, it can provide early-game bonuses to a weaker nation or simulate a period of technological surge in a scenario. Unlike commands that only increment a single slot, it is suited for situations requiring "precise total control"—such as fixing research slots to a specific number regardless of the current amount.
# Set research slots to 5 upon focus completion
focus = {
id = SCI_research_boom
...
completion_reward = {
set_research_slots = 5
}
}
[add_research_slot](/wiki/effect/add_research_slot) — Complementary tools: set_research_slots provides exact total assignment, while add_research_slot increments based on the current value. Combined, they enable "reset then stack" workflows.[amount_research_slots](/wiki/trigger/amount_research_slots) — Condition checking: Before executing set_research_slots, use this trigger to verify the current slot count and avoid unexpectedly reducing slots the player may have gained through other means.[add_ideas](/wiki/effect/add_ideas) — Research slot changes are often paired with national spirits. Use add_ideas to simultaneously grant ideas that provide research bonuses, forming a complete research enhancement package.[add_tech_bonus](/wiki/effect/add_tech_bonus) — Common companion in the same scenario: while setting slot count, grant research acceleration for specific technologies to simulate an overall boost to national research capability.set_research_slots = 4, resulting in no effect if the country already has 4 slots, or reducing slots if it already has 5. When incrementing, prioritize add_research_slot.