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
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.