Wiki

trigger · land_doctrine_level

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

checks researched land doctrine level

实战 · 配合 · 坑

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

实战用法

land_doctrine_level 常用于国策、决策或顾问的 available / trigger 块中,根据玩家已研究的陆地学说等级来解锁内容或给予奖励。例如在一个历史 mod 中,只有当某国陆地学说达到特定等级后才能触发特定军事改革决策:

available = {
    land_doctrine_level > 2
}

配合关系

  • [has_completed_subdoctrine](/wiki/trigger/has_completed_subdoctrine):两者配合可精确区分"研究等级够了但走了哪条分支",避免仅凭等级数值给错误阵营发放奖励。
  • [has_doctrine](/wiki/trigger/has_doctrine):用于进一步确认具体学说树是否已解锁,与等级检查互补,构成更严格的条件。
  • [add_doctrine_cost_reduction](/wiki/effect/add_doctrine_cost_reduction):当等级条件满足后作为奖励 effect 降低后续学说研究费用,形成"越研究越快"的正向激励。
  • [add_tech_bonus](/wiki/effect/add_tech_bonus):常在 land_doctrine_level 条件满足时触发,给予下一级学说的科研加成奖励。

常见坑

  1. 等级数值含义不明确:新手常误以为等级值对应某个固定的具体科技,实际上它反映的是该学说树已研究的层级深度,不同学说树的可研究层数可能不同,建议在游戏内实测当前等级再填值,避免条件永远无法触发或过早触发。
  2. Scope 混用land_doctrine_level 只能在 COUNTRY scope 下使用,若写在 STATE 或 CHARACTER 的 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

land_doctrine_level is commonly used in the available / trigger blocks of national focuses, decisions, or advisors to unlock content or grant rewards based on the player's researched land doctrine level. For example, in a historical mod, a specific military reform decision can only be triggered after a certain country's land doctrine reaches a particular tier:

available = {
    land_doctrine_level > 2
}

Synergy

  • [has_completed_subdoctrine](/wiki/trigger/has_completed_subdoctrine): Combined with this trigger, you can precisely distinguish "the required research level is met but which branch was taken," avoiding incorrectly granting rewards to the wrong faction based solely on tier numbers.
  • [has_doctrine](/wiki/trigger/has_doctrine): Used to further confirm whether a specific doctrine tree has been unlocked, complementing tier checks and forming more stringent conditions.
  • [add_doctrine_cost_reduction](/wiki/effect/add_doctrine_cost_reduction): Serves as a reward effect to reduce subsequent doctrine research costs once tier conditions are satisfied, creating a positive feedback loop of "the more you research, the faster you progress."
  • [add_tech_bonus](/wiki/effect/add_tech_bonus): Commonly triggered when land_doctrine_level conditions are met, granting research bonuses for the next tier of doctrines.

Common Pitfalls

  1. Unclear tier value semantics: Beginners often mistakenly assume tier values correspond to specific fixed technologies, but they actually reflect the research depth already achieved in that doctrine tree. Different doctrine trees may have different numbers of researchable tiers. It is recommended to test the current tier in-game before filling in values, avoiding conditions that never trigger or trigger too early.
  2. Scope confusion: land_doctrine_level can only be used under COUNTRY scope. If written within STATE or CHARACTER scope blocks, it will silently fail or throw errors. Beginners often overlook the outer scope source during debugging.