Wiki

trigger · is_target_of_coup

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

is_target_of_coup = yes - Returns true if current country is being targeted by a coup from any country.

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_target_of_coup is commonly used to determine whether a country is currently targeted by a coup attempt, enabling special events to trigger, emergency decisions to unlock, or diplomatic actions to be restricted. For example, in a "political turmoil" mod, you can use it in a decision's available block to prevent the targeted country from launching offensive wars during the crisis period, or to provide players with exclusive "suppress coup" options.

# Available condition for a certain decision: only usable when this country is not targeted by a coup
available = {
    NOT = { is_target_of_coup = yes }
    has_political_power > 50
}

Synergy

  • [has_civil_war](/wiki/trigger/has_civil_war): Coups are often closely related to civil wars. Combining these two allows you to precisely distinguish between "experiencing coup unrest" and "full-scale civil war has erupted"—two different domestic crisis stages—and avoid condition overlap.
  • [civilwar_target](/wiki/trigger/civilwar_target): Used to further confirm the specific faction targeted in a civil war or coup. Paired with is_target_of_coup, you can simultaneously judge "who is orchestrating" and "who is being targeted."
  • [has_country_flag](/wiki/trigger/has_country_flag): After a coup is triggered, you typically need to set country flags to track progress. Combined with this trigger, you can execute subsequent logic only when "a coup has occurred and the corresponding flag is set."
  • [any_allied_country](/wiki/trigger/any_allied_country): Allows iteration through allied nations to check whether any ally is suffering a coup, making it convenient to construct conditions for "allied crisis intervention" type decisions.

Common Pitfalls

  1. Forgetting to check scope: This trigger only works in COUNTRY scope. Using it directly in state scope or character scope will silently fail or cause errors. Beginners must ensure the outer scope is a country.
  2. Mistakenly believing you can specify the coup planner: is_target_of_coup only checks whether the current country is targeted by a coup from any nation—it cannot filter which specific country is orchestrating it. If you need condition logic based on a particular coup planner, you must implement it indirectly through other triggers. You cannot pass a country tag parameter to this trigger.