effect · set_war_support
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Sets the war support to the country in scope. Example: set_war_support = 80
set_war_supportCOUNTRYnoneSets the war support to the country in scope. Example: set_war_support = 80
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_war_support is commonly used in national focuses, events, or decisions to force war support to a fixed value, making it ideal for narrative moments requiring precise control over morale (such as resetting a nation's morale to zero or maxing it out after a historical event trigger). Unlike add_war_support, which applies relative adjustments, this command directly overwrites the current value, suited for "reset" scenarios rather than "fine-tuning" needs.
# An event causes the nation to fall into war weariness; directly force war support down
country_event = {
id = my_mod.5
option = {
name = my_mod.5.a
set_war_support = 10 # Force to 10%, not an addition to the current value
}
}
[add_war_support](/wiki/effect/add_war_support): The two are complementary—set_war_support anchors the initial value firmly, then add_war_support applies dynamic fine-tuning afterward, avoiding cumulative errors.[add_stability](/wiki/effect/add_stability): War support and stability are typically adjusted in tandem within the same event, jointly reflecting shifts in the domestic political climate.[has_war_support](/wiki/trigger/has_war_support) (note: use the corresponding war support trigger from the whitelist)—should actually be paired with [has_bombing_war_support](/wiki/trigger/has_bombing_war_support) or [has_casualties_war_support](/wiki/trigger/has_casualties_war_support) as precondition checks to confirm the current morale threshold before deciding whether forced overwrite execution is necessary.[add_ideas](/wiki/effect/add_ideas): Often used together in the same option to narratively explain why war support fluctuates sharply, maintaining logical consistency in the game's presentation.add_war_support: Beginners often use set_war_support = 50 when war support is already high, expecting it to "add up to 50"—but this command directly overwrites the value. If the current value is already above the target, support will actually decrease. Always check with [has_war_support](/wiki/trigger/has_war_support)-type triggers first to decide which command to use.