Wiki

trigger · is_exiled_in

Definition

  • Supported scope:COUNTRY
  • Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL

Description

Checks if scope country is a government in exile in target tag. is_exiled_in = ENG

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_exiled_in is commonly used in mod scenarios involving exiled governments—for example, checking whether a nation is currently exiled in Britain to unlock exclusive decisions or trigger special event chains. It can also be placed in available blocks to restrict certain focuses or decisions to only exiled nations.

# Example: Only allow this event to trigger when Poland is exiled in England
country_event = {
    id = exile_events.1
    trigger = {
        tag = POL
        is_exiled_in = ENG
    }
}

Synergy

  • [has_capitulated](/wiki/trigger/has_capitulated) — Often paired with is_exiled_in to first confirm the target nation has capitulated, then further verify whether it has transitioned to exile status, resulting in more rigorous logic.
  • [become_exiled_in](/wiki/effect/become_exiled_in) — The effect that establishes a nation as an exiled government; is_exiled_in commonly serves as a follow-up condition to verify the exile operation has taken effect.
  • [end_exile](/wiki/effect/end_exile) — The effect that terminates exile status; typically is_exiled_in is used in the trigger block first to confirm exile identity before deciding whether to execute the end-exile effect.
  • [exists](/wiki/trigger/exists) — Used to ensure the target nation tag still exists in the game before checking exile relationships, preventing null-pointer-like logic errors.

Common Pitfalls

  1. Errors when target is set to values other than concrete nation tags: While is_exiled_in supports pronouns like THIS/ROOT, beginners often hardcode tags directly (e.g., ENG) but forget that ROOT may point to a different nation after a scope switch, resulting in the check targeting an unintended subject. Pay close attention to which nation is currently in scope.
  2. Confusion with has_capitulated: Exile and capitulation are two distinct states. A nation may have capitulated but not yet become an exiled government, or may become an exiled government without technically passing a has_capitulated check. The two cannot be used interchangeably.