Wiki

trigger · has_any_power_balance

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

checks if country has any active power balance

Example:
has_any_power_balance = yes/no

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_any_power_balance is commonly used in mods for scenarios where you need to dynamically adjust decision or focus availability based on whether a country participates in any power balance mechanism. For example, you can restrict a decision to only display when a country has activated power balance. It's also suitable for differentiating countries with and without power balance participation in event trigger conditions to branch into different narrative paths.

# This decision is only available if the country has an active power balance
available = {
    has_any_power_balance = yes
}

Synergy

  • [has_active_mission](/wiki/trigger/has_active_mission): Power balance often activates synchronously with specific missions. Checking both together ensures tighter decision trigger conditions.
  • [has_completed_focus](/wiki/trigger/has_completed_focus): Power balance is typically unlocked by specific national focuses. Combining this trigger verifies that prerequisite paths have been fully completed.
  • [has_country_flag](/wiki/trigger/has_country_flag): In custom power balance mods, country flags are frequently used to track power balance activation status, providing complementary validation with this trigger.
  • [has_dynamic_modifier](/wiki/trigger/has_dynamic_modifier): Power balance activation typically comes with dynamic modifiers. Using both together allows precise judgment of whether power balance is truly active and producing effects.

Common Pitfalls

  1. Reversing yes/no: Newcomers sometimes mistakenly write has_any_power_balance = yes as a prerequisite when a country hasn't entered the power balance flow yet, causing the condition to never be satisfied. You should clearly distinguish using = no to exclude countries without power balance.
  2. Using outside COUNTRY scope: This trigger only supports COUNTRY scope. Placing it mistakenly in condition blocks of STATE or CHARACTER scopes will cause script errors or silent failures. Always confirm the outer scope context.