trigger · has_elections
Definition
- Supported scope:
COUNTRY - Supported target:
any
Description
Checks the country's politics on allowing elections. has_elections = yes
has_electionsCOUNTRYanyChecks the country's politics on allowing elections. has_elections = yes
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
has_elections 常用于政治体制相关的 focus 或 decision 中,判断某个国家当前是否处于允许选举的政治状态,从而决定是否触发选举事件、政党切换或民主改革路线。例如在一个民主化 mod 中,可以用它限制某些政治权力奖励只在有选举的国家才能获得:
available = {
has_elections = yes
has_government = democratic
}
[has_country_flag](/wiki/trigger/has_country_flag):通常与 has_elections 联合使用,在选举发生后设置一个 flag 以防止重复触发选举事件,两者组合可实现精确的选举周期控制。[has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology):选举结果往往改变领导人意识形态,配合该 trigger 可在选举后根据执政党意识形态走向分支。[add_political_power](/wiki/effect/add_political_power):选举期间或选举结果奖励中常用,有选举的国家才能获得特定的政治权力加成,体现民主体制的政治活跃度。[add_popularity](/wiki/effect/add_popularity):与 has_elections 搭配,在允许选举的国家中为特定意识形态增减支持度,模拟选举周期内的舆论变化。has_elections = yes 等同于 has_government = democratic,实际上两者相互独立——法西斯或非民主政权在某些 mod 设置下也可能 has_elections = yes,务必根据实际需求组合判断。limit 块内且当前 scope 已切换到州级(如 any_owned_state 内部),将无法正常判断甚至报错,需先切回国家 scope 或在外层判断。