effect · remove_state_core
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
remove core on state
remove_state_coreCOUNTRYnoneremove core on state
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
remove_state_core 常用于剧本事件、和平谈判或国策完成后,撤销某国对特定州省的核心主张,例如在分裂势力被镇压后让叛乱方失去其宣称的领土核心。也适用于历史性和解剧情,使一国放弃对争议地区的历史权利主张。
# 在某国签订和平协议后,移除对指定州省的核心
country_event = {
id = my_mod.42
option = {
name = my_mod.42.a
# 在 GER scope 下移除对州 42 的核心
remove_state_core = 42
}
}
[add_state_core](/wiki/effect/add_state_core) — 成对使用,一方获得核心的同时另一方失去核心,常见于领土转让或民族自决事件。[add_state_claim](/wiki/effect/add_state_claim) — 移除核心后可降级为主张(claim),保留一定外交压力而不给予完整核心加成,过渡更自然。[any_core_state](/wiki/trigger/any_core_state) — 在触发条件中检查目标国当前仍持有哪些核心,确保只在核心实际存在时才调用 remove,避免无效执行。[diplomatic_relation](/wiki/effect/diplomatic_relation) — 移除核心后通常同步调整双边外交关系(如取消敌对),配合使用使剧情逻辑更完整。remove_state_core 必须在国家 scope下执行,参数填州省 ID(数字或变量);新手容易误将其写在州省 scope 内或把州省 ID 与国家 TAG 混淆,导致脚本报错或静默失败。[any_core_state](/wiki/trigger/any_core_state) 或 [has_country_flag](/wiki/trigger/has_country_flag) 先做条件判断,确保逻辑可追踪。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.
remove_state_core is commonly used in scripted events, peace negotiations, or national focus completions to revoke a nation's core claim on a specific state. For example, after a separatist faction is suppressed, the rebellious side loses its core on the claimed territory. It is also suitable for historical reconciliation scenarios where a nation renounces its historical claims to disputed regions.
# After a nation signs a peace agreement, remove its core from the specified state
country_event = {
id = my_mod.42
option = {
name = my_mod.42.a
# Remove core from state 42 under GER scope
remove_state_core = 42
}
}
[add_state_core](/wiki/effect/add_state_core) — Use as a pair: when one side gains a core, the other loses it. Common in territorial transfers or self-determination events.[add_state_claim](/wiki/effect/add_state_claim) — After removing a core, it can be downgraded to a claim, maintaining diplomatic pressure without granting full core bonuses, creating a smoother transition.[any_core_state](/wiki/trigger/any_core_state) — Check in trigger conditions which cores the target nation currently holds, ensuring remove is only called when the core actually exists to avoid ineffective execution.[diplomatic_relation](/wiki/effect/diplomatic_relation) — After removing a core, typically adjust bilateral relations simultaneously (such as ending hostility) for more complete narrative logic.remove_state_core must execute under a country scope, with the state ID (number or variable) as the parameter. Beginners often mistakenly place it within a state scope or confuse state IDs with country TAGs, causing script errors or silent failures.[any_core_state](/wiki/trigger/any_core_state) or [has_country_flag](/wiki/trigger/has_country_flag) to ensure logic is traceable.