Wiki

trigger · is_exiled_leader

Definition

  • Supported scope:CHARACTER
  • Supported target:none

Description

Checks if scope leader is from an exiled government. is_exiled_leader = yes

实战 · 配合 · 坑

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

实战用法

在流亡政府相关 mod 中,常用于筛选那些隶属于流亡政权的将领或顾问,以便给予特殊加成或限制其担任某些职务。例如,当某位角色是流亡政府的领袖时,为其添加专属 trait 或触发特殊事件:

# 在某个角色相关的 on_action 或 focus 效果块的 limit 中
limit = {
    is_exiled_leader = yes
}
add_trait = { token = exiled_veteran }

配合关系

  • [is_exiled_leader_from](/wiki/trigger/is_exiled_leader_from):两者经常搭配使用——is_exiled_leader 判断角色是否属于任意流亡政府,而 is_exiled_leader_from 可进一步限定来源国,实现更精确的筛选。
  • [remove_exile_tag](/wiki/effect/remove_exile_tag):当确认角色为流亡领袖后,可在满足某条件时调用此 effect 将其流亡标签移除,实现"回归正统"的叙事逻辑。
  • [is_country_leader](/wiki/trigger/is_country_leader):与本 trigger 组合可区分"是否同时担任流亡国国家领袖",用于处理流亡政府中角色身份重叠的复杂情况。
  • [add_country_leader_role](/wiki/effect/add_country_leader_role):在确认角色是流亡领袖后,通过此 effect 为其追加新的国家领袖角色,拓展流亡政府的领导层构成。

常见坑

  1. Scope 用错is_exiled_leader 只能在 CHARACTER scope 下使用,若直接写在国家 scope(如某 focus 的 available 块,未先切入角色 scope)会导致脚本报错或永远返回 false,必须通过 any_characterevery_character 等方式先进入角色 scope 再调用。
  2. is_exiled_leader_from 混淆:新手常误以为 is_exiled_leader = yes 已经隐含了来源国判断,实际上它只检查"是否为流亡政府成员"这一事实本身,不携带任何国家信息;若需要针对特定来源国做判断,必须额外使用 is_exiled_leader_from

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

In exiled government-related mods, this is commonly used to filter leaders or advisors belonging to exiled regimes, enabling special bonuses or restrictions on their assigned roles. For example, when a character is the leader of an exiled government, you can add exclusive traits or trigger special events:

In the limit block of a character-related on_action or focus effect

limit = { is_exiled_leader = yes } add_trait = { token = exiled_veteran }

Synergy

  • [is_exiled_leader_from](/wiki/trigger/is_exiled_leader_from): Often used together with this trigger—is_exiled_leader determines whether a character belongs to any exiled government, while is_exiled_leader_from further specifies the origin country for more precise filtering.
  • [remove_exile_tag](/wiki/effect/remove_exile_tag): After confirming a character is an exiled leader, you can invoke this effect under certain conditions to remove their exile tag, implementing a narrative of "returning to legitimacy."
  • [is_country_leader](/wiki/trigger/is_country_leader): Combined with this trigger, you can distinguish "whether the character simultaneously holds the position of exiled nation's country leader," useful for handling complex overlapping identities within exiled governments.
  • [add_country_leader_role](/wiki/effect/add_country_leader_role): After confirming a character is an exiled leader, use this effect to assign them additional country leader roles, expanding the leadership composition of the exiled government.

Common Pitfalls

  1. Incorrect Scope Usage: is_exiled_leader only works within CHARACTER scope. If written directly in country scope (such as in a focus's available block without first entering character scope), it will cause script errors or always return false. You must enter character scope first via any_character, every_character, or similar methods before calling it.
  2. Confusion with is_exiled_leader_from: Beginners often mistakenly assume that is_exiled_leader = yes implicitly includes origin country checking, but it only verifies the fact of "being an exiled government member" without carrying any country information. If you need to judge based on a specific origin country, you must additionally use is_exiled_leader_from.