Wiki

trigger · has_ideology_group

Definition

  • Supported scope:CHARACTER
  • Supported target:none

Description

has_ideology_group = communism - Checks if the current character has a country leader role matching the ideology group

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

has_ideology_group is commonly used to check whether a character holds a national leader position in a specific ideological faction. Typical use cases include verifying in events or decisions whether the current leader belongs to the communist or fascist bloc, then branching the story accordingly. Practical scenarios involve restricting purge operations to leaders of specific ideologies, or granting traits to leaders matching a particular ideology after focus completion.

# Only allow adding a trait if the character is a national leader with fascist ideology
add_country_leader_trait = {
    trait = fascist_demagogue
    available = {
        has_ideology_group = fascism
    }
}

Synergy

  • [is_country_leader](/wiki/trigger/is_country_leader): Typically use is_country_leader first to confirm the character currently holds a national leader position, then use has_ideology_group to further verify their ideological faction, avoiding ineffective checks on non-leader characters.
  • [has_ideology](/wiki/trigger/has_ideology): has_ideology checks fine-grained specific ideologies (such as stalinism), while has_ideology_group checks broad faction categories (such as communism). Both are often nested together to implement coarse filtering followed by fine filtering logic.
  • [add_country_leader_trait](/wiki/effect/add_country_leader_trait): After confirming the ideological faction, dynamically add traits to qualifying leaders—this is the most typical "verify then execute" combination pattern.
  • [swap_country_leader_traits](/wiki/effect/swap_country_leader_traits): When a leader's ideological faction meets conditions, replace their trait composition. This is often used for character redesigns following ideological shifts.

Common Pitfalls

  1. Incorrect scope usage: This trigger only works in CHARACTER scope. Using it directly in a limit block under COUNTRY scope will fail silently or throw an error. You must enter character scope first via any_character or similar constructs before invoking this trigger.
  2. Confusing character ideology with country ideology: has_ideology_group checks the ideological faction of the character's national leader role, not the country's current ruling ideology. To check country ideology, use the appropriate country-level trigger in COUNTRY scope instead—the two cannot be used interchangeably.