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
has_any_power_balanceCOUNTRYnonechecks if country has any active power balance
Example:
has_any_power_balance = yes/no
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
has_any_power_balance 常用于 mod 中需要根据国家是否参与任何势力平衡机制来动态调整决策或聚焦可用性的场景,例如限制某个决策只在国家已激活势力平衡时才显示。也适合在 event 触发条件中区分"有势力平衡参与"与"无势力平衡参与"的国家走向不同叙事分支。
# 仅当国家拥有活跃势力平衡时,该决策才可用
available = {
has_any_power_balance = yes
}
[has_active_mission](/wiki/trigger/has_active_mission):势力平衡往往与特定任务同步激活,两者联合检查可确保决策触发条件更严密。[has_completed_focus](/wiki/trigger/has_completed_focus):势力平衡通常由特定国策解锁,配合此 trigger 可验证前置路径是否完整走完。[has_country_flag](/wiki/trigger/has_country_flag):在自定义势力平衡 mod 中,常用国家旗帜记录势力平衡的激活状态,与本 trigger 互为补充校验。[has_dynamic_modifier](/wiki/trigger/has_dynamic_modifier):势力平衡激活后通常附带动态修正器,两者搭配可精确判断势力平衡是否真正生效并产生了影响。yes/no 用反:新手有时在"国家尚未进入势力平衡流程"时误写成 has_any_power_balance = yes 作为前提,导致条件永远不满足;应明确区分用 = no 来排除无势力平衡的国家。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.
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
}
[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.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.