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

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.