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 或在外层判断。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_elections is commonly used in political system–related focus trees or decisions to check whether a country is currently in a political state that allows elections, thereby determining whether to trigger election events, party switches, or democratic reform paths. For example, in a democratization mod, you can use it to restrict certain political power rewards to only countries with elections:
available = {
has_elections = yes
has_government = democratic
}
[has_country_flag](/wiki/trigger/has_country_flag): Often used in conjunction with has_elections to set a flag after an election occurs, preventing duplicate election event triggers. The combination of both enables precise election cycle control.[has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology): Election results often change the leader's ideology. Pairing this trigger with has_elections allows branching logic based on the ruling party's ideological direction after elections.[add_political_power](/wiki/effect/add_political_power): Commonly used during elections or in election reward outcomes. Countries with elections can receive specific political power bonuses, reflecting the political activity of democratic systems.[add_popularity](/wiki/effect/add_popularity): When combined with has_elections, increases or decreases support for specific ideologies in countries that permit elections, simulating public opinion shifts within election cycles.has_elections = yes is equivalent to has_government = democratic. In reality, the two are independent—fascist or non-democratic regimes may also have has_elections = yes depending on mod settings. Always combine conditions based on actual requirements.limit block where the scope has already switched to state level (such as inside any_owned_state), it will fail to evaluate correctly or cause errors. Switch back to country scope first or check the condition in an outer layer.