effect · add_threat
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Adds country threat
add_threatCOUNTRYnoneAdds country threat
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.
add_threat is commonly used in events or decisions to simulate the impact of a nation's aggressive actions on global affairs. Examples include annexing smaller nations, breaking treaties, or launching surprise attacks—adding threat values to the aggressor state triggers other nations to form counter-alliances or accelerates entry into war. It can also apply punitive threat to the player upon focus completion, enhancing the sense of diplomatic pressure through narrative context.
# After a nation declares war, add threat to that nation via hidden_effect
hidden_effect = {
add_threat = 5
}
[has_added_tension_amount](/wiki/trigger/has_added_tension_amount): Checks whether accumulated threat has reached a threshold. Combined with add_threat, this creates a closed-loop logic for "trigger event when threat exceeds limit."[add_war_support](/wiki/effect/add_war_support): As the aggressor's threat rises, threatened neighboring nations typically gain war support bonuses simultaneously. Together, these effects simulate international backlash.[create_wargoal](/wiki/effect/create_wargoal): High threat is typically accompanied by the generation of war goals. Placing both commands in the same option recreates the historical process of "aggressors accumulating pretexts before declaring war."[add_opinion_modifier](/wiki/effect/add_opinion_modifier): After threat increases, simultaneously reduce other nations' opinion toward the aggressor, making diplomatic penalties multidimensional rather than limited to threat values alone.add_threat only works in COUNTRY scope. Inexperienced modders sometimes call it within owned_state or unit_leader sub-blocks, causing silent errors or the effect to fail silently. Always ensure the call occurs within a country scope.