effect · set_political_party
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
set popularity of a political party
Example:
set_political_party = {
ideology = neutrality
popularity = 50
}
set_political_partyCOUNTRYnoneset popularity of a political party
Example:
set_political_party = {
ideology = neutrality
popularity = 50
}
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.
set_political_party is commonly used in focus trees, events, or decisions to forcibly adjust support for a particular ideology's party in your country. It's essential for crafting "political transition" narratives—such as causing democratic party support to plummet while extremist factions rise. You can also use it alongside civil war events, locking a specific party to a preset value at a critical moment to ensure predictable AI behavior.
# A certain country's event: military coup succeeds, neutrality surges dramatically
country_event = {
id = my_mod.5
option = {
name = my_mod.5.a
set_political_party = {
ideology = neutrality
popularity = 60
}
set_political_party = {
ideology = democratic
popularity = 10
}
}
}
[add_popularity](/wiki/effect/add_popularity): set_political_party performs direct assignment, while add_popularity applies incremental adjustments. Used together, you can reset to zero then stack changes precisely—ideal for complex political redistribution scenarios.[add_ideas](/wiki/effect/add_ideas): When party support shifts, you typically need to synchronize the ruling party's ideas (idea) to prevent the governing ideology from drifting out of sync with actual support levels.[has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology): Check the current leader's ideology in triggers to determine whether set_political_party should be called to match your narrative logic, preventing the effect from firing under the wrong governing state.[create_country_leader](/wiki/effect/create_country_leader): When support swings are large enough to warrant a leadership change, commonly paired in the same option block to achieve a complete regime change effect.set_political_party only modifies support values; it does not automatically switch the ruling party or leader ideology. To truly "seize power," you must additionally use create_country_leader or relevant focus mechanics to drive the shift in ruling party.