trigger · has_added_tension_amount
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Compare if the country has added above or below the specified ammount of tension
has_added_tension_amountCOUNTRYnoneCompare if the country has added above or below the specified ammount of tension
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
此 trigger 常用于「紧张度贡献」相关的成就、事件或决议场景,例如限制某国在引发足够世界紧张度后才能解锁特定侵略性决策,或用于 AI 策略判断当前局势是否已足够紧绷。注意它衡量的是该国自身累计添加的紧张度量,而非全局紧张度数值。
# 只有当本国已累计添加了一定量的紧张度后,才允许触发某事件
add_political_power = 50
trigger = {
has_added_tension_amount > 10
}
[has_defensive_war](/wiki/trigger/has_defensive_war):当一国已积累大量紧张度贡献时,配合判断是否仍处于防御战,可构造"侵略者转守"的剧情触发条件。[any_allied_country](/wiki/trigger/any_allied_country):遍历盟友时判断联盟整体的紧张度贡献情况,用于设计集体责任类事件。[add_named_threat](/wiki/effect/add_named_threat):与本 trigger 形成因果链——先判断该国贡献的紧张度是否达标,再决定是否追加具名威胁值,避免重复惩罚。[add_opinion_modifier](/wiki/effect/add_opinion_modifier):在该国紧张度贡献超过阈值后,自动给周边国家施加外交惩罚,模拟国际社会的反应。world_tension(全局紧张度)的方式来使用,但它只统计本国行为所添加的那部分紧张度,两者含义完全不同,混用会导致条件永远不满足或意外触发。>、<)和数值才能生效,直接写 has_added_tension_amount = X 而非范围比较时,需确认游戏版本对等号语义的支持,否则条件判断结果可能不符合预期。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.
This trigger is commonly used in achievement, event, or decision scenarios related to "tension contribution." For example, it can restrict a nation from unlocking certain aggressive decisions until it has generated sufficient world tension, or it can inform AI strategy decisions about whether the current situation is tense enough. Note that it measures the cumulative tension amount added by that specific nation, not the global tension value.
# Only allow an event to trigger after this nation has accumulated a certain amount of tension
add_political_power = 50
trigger = {
has_added_tension_amount > 10
}
[has_defensive_war](/wiki/trigger/has_defensive_war): When a nation has accumulated significant tension contributions, pairing this with a check for whether it is still in a defensive war can construct narrative triggers for "aggressor turns defender" scenarios.[any_allied_country](/wiki/trigger/any_allied_country): When iterating through allies to evaluate the alliance's overall tension contribution, useful for designing collective responsibility events.[add_named_threat](/wiki/effect/add_named_threat): Forms a cause-and-effect chain with this trigger—first check whether the nation's tension contribution meets the threshold, then decide whether to apply additional named threat values, avoiding duplicate penalties.[add_opinion_modifier](/wiki/effect/add_opinion_modifier): After a nation's tension contribution exceeds the threshold, automatically apply diplomatic penalties to neighboring nations, simulating international reaction.world_tension (global tension), but it only counts the tension added by that nation's own actions. The meanings are completely different, and mixing them up will cause conditions to never be satisfied or trigger unexpectedly.>, <) and a numeric value to function. When writing has_added_tension_amount = X instead of a range comparison, confirm that your game version supports the semantic meaning of the equals sign, otherwise the condition evaluation may not work as intended.