Wiki

trigger · is_exile_host

Definition

  • Supported scope:COUNTRY
  • Supported target:any

Description

Checks if scope country is hosting an exile. is_exile_host = yes

实战 · 配合 · 坑

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

实战用法

is_exile_host 常用于流亡政府相关的 mod 场景,例如判断某国当前是否收容了流亡政府,从而解锁特定的外交选项、国策或决议。比如可以用来限制某个援助决议只对正在接收流亡政府的国家开放:

available = {
    is_exile_host = yes
}

也可以结合事件触发,当一个国家开始接收流亡政府时自动推送相关剧情事件。

配合关系

  • [any_subject_country](/wiki/trigger/any_subject_country):遍历附属国(包括流亡政府)来进一步细化判断,例如检查所收容的流亡政府是否来自特定意识形态或标签。
  • [has_country_flag](/wiki/trigger/has_country_flag):搭配自定义 flag 使用,记录玩家是否已经触发过某次流亡接收事件,避免重复触发。
  • [end_exile](/wiki/effect/end_exile):在满足特定条件后结束流亡关系,与 is_exile_host 的检测形成"先判断、再执行"的标准逻辑对。
  • [become_exiled_in](/wiki/effect/become_exiled_in):在 effect 端将某国设置为在另一国流亡,与 is_exile_host 在 trigger 端互为因果,常出现在同一段流亡政府事件链中。

常见坑

  1. Scope 搞错方向is_exile_host 的 scope 是宿主国(接收流亡政府的那方),而非流亡国本身。新手常误将 scope 切换到流亡国后调用此 trigger,导致永远返回 no,正确做法是确保当前 scope 是提供庇护的国家。
  2. 与流亡国自身的判断混淆:想检测"某国是否处于流亡状态"(即自身是流亡政府)应使用其他方式(如检查 autonomy_state),而不是 is_exile_host = 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

is_exile_host is commonly used in exile government-related mod scenarios, such as checking whether a country is currently hosting an exile government, thereby unlocking specific diplomatic options, national focuses, or decisions. For example, it can be used to restrict a certain aid decision to only be available for countries actively hosting an exile government:

available = {
    is_exile_host = yes
}

It can also be combined with event triggers to automatically push relevant story events when a country begins hosting an exile government.

Synergy

  • [any_subject_country](/wiki/trigger/any_subject_country): Iterate through subject countries (including exile governments) to further refine the check, for example verifying whether the hosted exile government originates from a specific ideology or tag.
  • [has_country_flag](/wiki/trigger/has_country_flag): Use in combination with custom flags to track whether the player has already triggered a certain exile hosting event, preventing duplicate triggers.
  • [end_exile](/wiki/effect/end_exile): End the exile relationship once specific conditions are met, forming a standard "check first, then execute" logic pair with is_exile_host detection.
  • [become_exiled_in](/wiki/effect/become_exiled_in): On the effect side, set a country to be exiled in another country, serving as mutual causality with is_exile_host on the trigger side, frequently appearing in the same exile government event chain.

Common Pitfalls

  1. Scope Direction Error: The scope of is_exile_host is the host country (the one providing asylum), not the exile country itself. Beginners often mistakenly switch scope to the exile country before calling this trigger, causing it to always return no. The correct approach is to ensure the current scope is the country providing shelter.
  2. Confusion with Checks on the Exile Country Itself: To detect "whether a certain country is in exile status" (i.e., is itself an exile government), use other methods (such as checking autonomy_state) rather than is_exile_host = yes. The latter only checks whether that country is currently hosting another's exile government; the two have entirely different meanings.