trigger · is_core_of
Definition
- Supported scope:
STATE - Supported target:
THIS,ROOT,PREV,FROM,OWNER,CONTROLLER,OCCUPIED,CAPITAL
Description
Checks if state is core of country
is_core_ofSTATETHIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITALChecks if state is core of country
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
is_core_of 常用于判断某个州是否属于特定国家的核心领土,在领土主张、和平谈判、决策可用性等场景中频繁出现。例如在"收复失地"类决策中,可以检查目标州是否为本国核心,以决定是否允许发起该决策;也可在 focus 树的 available 块中,确认目标领土已归为核心后才能解锁某项国策奖励。
# 示例:仅当目标州是本国核心时,该决策才可用
available = {
any_neighbor_state = {
is_core_of = ROOT
is_owned_by = FROM
}
}
[is_owned_by](/wiki/trigger/is_owned_by):通常与 is_core_of 联用,区分"名义上的核心"与"实际控制",例如确认该州既是本国核心又被敌国占领,以触发特定事件。[is_claimed_by](/wiki/trigger/is_claimed_by):与 is_core_of 对比使用,用于区分"主权主张"(claim)和"核心领土"(core)两种不同等级的领土诉求,避免条件混淆。[add_core_of](/wiki/effect/add_core_of):常作为 is_core_of 为假时的后续操作——先检查是否已是核心,若否则通过该 effect 添加核心,防止重复添加。[remove_core_of](/wiki/effect/remove_core_of):与 is_core_of 配合做守卫检查,确保只在核心确实存在时才执行移除操作,避免无效调用引发逻辑错误。is_core_of 必须在 STATE scope 下使用,新手容易在 COUNTRY scope 的事件选项或 focus 奖励块里直接写,导致脚本报错或条件永远不触发。需要先用 any_neighbor_state、state = 等方式切换到州 scope 后再调用。<target> 的核心",不少新手误以为写 is_core_of = GER 是"GER 是该州的核心国",实际含义是正确的,但当想表达"本国拥有该州的核心"时,应使用 ROOT/THIS 等代词,而非硬编码国家 tag,否则换一个国家使用该脚本时逻辑全部失效。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.
is_core_of is commonly used to check whether a state belongs to a specific country's core territory, and frequently appears in scenarios involving territorial claims, peace negotiations, and decision availability. For example, in "reclaim territory" type decisions, you can check whether the target state is a core of your nation to determine whether to allow the decision to be triggered; you can also use it in a focus tree's available block to confirm that the target territory has become a core before unlocking certain national focus rewards.
# Example: this decision is only available when the target state is a core of your nation
available = {
any_neighbor_state = {
is_core_of = ROOT
is_owned_by = FROM
}
}
[is_owned_by](/wiki/trigger/is_owned_by): typically used together with is_core_of to distinguish between "nominal cores" and "actual control"—for example, confirming that a state is both your core and occupied by an enemy to trigger specific events.[is_claimed_by](/wiki/trigger/is_claimed_by): used in contrast with is_core_of to differentiate between "sovereignty claims" (claim) and "core territory" (core) as two different tiers of territorial demands, avoiding condition confusion.[add_core_of](/wiki/effect/add_core_of): commonly used as a follow-up operation when is_core_of evaluates to false—first check whether it is already a core, and if not, add it via this effect to prevent duplicate additions.[remove_core_of](/wiki/effect/remove_core_of): paired with is_core_of for guard checks to ensure removal only occurs when the core actually exists, avoiding invalid calls that could cause logic errors.is_core_of must be used under STATE scope. Beginners often make the mistake of writing it directly in event options or focus reward blocks under COUNTRY scope, causing script errors or conditions that never trigger. You must first switch to state scope using methods like any_neighbor_state, state =, etc., before calling it.<target>". Many beginners mistakenly think writing is_core_of = GER means "GER is a core of this state", but the actual meaning is correct. However, when you want to express "my nation owns a core of this state", you should use pronouns like ROOT/THIS rather than hardcoding a country tag, otherwise the logic will completely fail when another nation uses this script.