Wiki

trigger · state_and_terrain_strategic_value

Definition

  • Supported scope:STATE
  • Supported target:none

Description

Checks for state strategic value

实战 · 配合 · 坑

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

实战用法

state_and_terrain_strategic_value 常用于战略资源分配、决策解锁或 AI 权衡逻辑中,判断某个州省是否具备足够的战略意义,从而决定是否触发特定事件或允许某项决策。例如在自定义占领体系 mod 中,可以用它筛选出高战略价值州省,对其施加额外管理压力或奖励。

# 决策 available 块:仅对战略价值足够高的州省开放
available = {
    state_and_terrain_strategic_value > 5
}

配合关系

  • [has_state_category](/wiki/trigger/has_state_category):战略价值往往与州省类别(城市、农村等)强相关,两者联用可以更精确地筛选目标州省,避免误判低价值大类州省。
  • [is_controlled_by](/wiki/trigger/is_controlled_by):确认州省控制权归属后再判断战略价值,常见于决策或事件条件块,确保只对己方或敌方控制的高价值州省生效。
  • [set_state_category](/wiki/effect/set_state_category):当战略价值达到阈值时,可通过 effect 提升州省类别,实现"战略要地升级"的 mod 玩法。
  • [state_strategic_value](/wiki/trigger/state_strategic_value):两者均涉及州省战略评估,state_strategic_value 侧重纯数值比较,而本 trigger 额外考量地形因素,配合使用可实现多维度筛选逻辑。

常见坑

  1. Scope 用错:此 trigger 只能在 STATE scope 下使用,新手容易在 COUNTRY scope 的 limit 块中直接写它,导致脚本报错或静默失效——需要先通过 any_owned_state/all_claimant 等方式切换到 STATE scope 后再调用。
  2. 误以为是布尔值:该 trigger 实际上支持与数值比较(如 > N),直接写 state_and_terrain_strategic_value = yes 通常不能表达预期意图,应明确写出比较运算符和阈值。

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

state_and_terrain_strategic_value is commonly used in strategic resource allocation, decision unlocking, or AI balancing logic to determine whether a state possesses sufficient strategic significance, thereby deciding whether to trigger specific events or allow certain decisions. For example, in custom occupation system mods, it can be used to filter out high-value states and apply additional administrative pressure or rewards to them.

# Decision available block: only unlocked for states with sufficiently high strategic value
available = {
    state_and_terrain_strategic_value > 5
}

Synergy

  • [has_state_category](/wiki/trigger/has_state_category): Strategic value is often strongly correlated with state category (urban, rural, etc.). Using both together enables more precise target filtering and avoids false positives on low-value broad categories.
  • [is_controlled_by](/wiki/trigger/is_controlled_by): Confirm state ownership before evaluating strategic value; commonly used in decision or event condition blocks to ensure effects only apply to high-value states controlled by your side or enemies.
  • [set_state_category](/wiki/effect/set_state_category): When strategic value reaches a threshold, you can use effects to upgrade state category, enabling "strategic stronghold upgrade" gameplay mechanics in mods.
  • [state_strategic_value](/wiki/trigger/state_strategic_value): Both involve state strategic assessment; state_strategic_value focuses on pure numerical comparison, while this trigger additionally factors in terrain, and using both together enables multi-dimensional filtering logic.

Common Pitfalls

  1. Incorrect Scope Usage: This trigger can only be used within STATE scope. Beginners often write it directly in limit blocks under COUNTRY scope, causing script errors or silent failures—you must first switch to STATE scope via any_owned_state/all_claimant or similar methods before invoking it.
  2. Mistaking It for a Boolean: This trigger actually supports numerical comparison (e.g., > N). Writing state_and_terrain_strategic_value = yes directly usually fails to express the intended logic; you should explicitly specify comparison operators and thresholds.