Hands-On Usage
is_exiled_leader_from is commonly used in mod scenarios involving exiled governments, such as determining whether a character belongs to an exiled government from a specific nation, thereby triggering exclusive events, unlocking special advisor positions, or restricting the availability of certain decisions. A typical scenario is checking whether a commander belongs to the Free French exiled government after France's collapse, to decide whether to allow them to assume important posts.
# In a character's available condition, check if they originate from the French exiled government
some_character = {
has_advisor_role = {
slot = high_command
}
available = {
is_exiled_leader_from = FRA
}
}
Synergy
[is_exiled_leader](/wiki/trigger/is_exiled_leader): First use is_exiled_leader to confirm that the character is currently in exile, then use is_exiled_leader_from to precisely identify the country of origin, avoiding misidentification of characters with different origin countries who share the same exile status.
[has_advisor_role](/wiki/trigger/has_advisor_role): Combined usage allows filtering characters that are "from a specific exiled government and serving in a specific advisor role," useful for fine-grained management of exiled government advisor systems.
[remove_exile_tag](/wiki/effect/remove_exile_tag): Once conditions are met (the character indeed originates from the specified exiled government), you can use this effect to remove the exile tag, implementing narrative logic for exiled governments returning to their homeland.
[has_nationality](/wiki/trigger/has_nationality): Combined use with is_exiled_leader_from allows distinguishing between the concepts of "nationality affiliation" and "exiled government affiliation," suitable for handling complex judgments involving characters with multiple identities.
Common Pitfalls
- Incorrect scope type: This trigger can only be used within CHARACTER scope. Placing it directly in country scope (such as
capital_scope or the root level of a trigger block in a standard country event) will cause script errors or silent failures. You must first enter character scope through methods like any_character or every_character before invoking this trigger.
- Confusion between exile tag and country of origin: The parameter specifies the country tag of the exiled government's origin (such as
FRA), not the exiled government's own unique tag (such as F15). Beginners often swap these two, resulting in conditions that never evaluate to true.