Wiki

trigger · has_bombing_war_support

Definition

  • Supported scope:COUNTRY
  • Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL

Description

check value of bombing malus to war support 0-1: Example has_bombing_war_support < 0.1

实战 · 配合 · 坑

实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。

实战用法

has_bombing_war_support 常用于战略轰炸相关的 mod 场景,例如判断某国因遭受轰炸而导致战争意志下滑到危险阈值时,触发外交求和选项或激活特定国策/决议。典型场景包括:当轰炸战争意志惩罚值超过某一临界点时,允许玩家解锁"寻求停战"决议,或触发 AI 的投降逻辑。

# 当轰炸导致的战争意志惩罚达到较高程度时,开放停战决议
available = {
    has_bombing_war_support > 0.3   # 轰炸惩罚值超过 30%
    has_war = yes
}

配合关系

  • [has_casualties_war_support](/wiki/trigger/has_casualties_war_support):两者都代表战争意志的负面来源(轰炸 vs 伤亡),通常一起叠加判断,评估某国整体战争意志是否已因多重因素严重受损。
  • [has_convoys_war_support](/wiki/trigger/has_convoys_war_support):护航线损失同样产生战争意志惩罚,与轰炸惩罚一同使用可构建"总体战压力"的综合判断条件。
  • [add_war_support](/wiki/effect/add_war_support):在触发条件满足后,通过此 effect 直接补偿或进一步削减战争意志,形成"达到轰炸惩罚阈值 → 补偿/惩罚"的完整逻辑闭环。
  • [add_political_power](/wiki/effect/add_political_power):当轰炸压力到达临界值时配合给予政治点数,模拟政府在轰炸压力下寻求外交解决方案的内政成本。

常见坑

  1. 比较方向搞反:该值表示的是"负面惩罚量",值越大说明战争意志受损越严重。新手容易误以为值小代表"受轰炸更多",实际上应用 > 筛选受损严重的情况,而非 <(除非刻意筛选轰炸影响微小的国家)。
  2. 忘记 scope 必须是 COUNTRY:此 trigger 只能在国家 scope 下使用,若误放在 state scope(如 limit 块内的州级循环中)会导致脚本报错或静默失效,需确保外层 scope 已切换回国家。

Hands-On Notes

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.

Hands-On Usage

has_bombing_war_support is commonly used in strategic bombing-related mod scenarios, such as determining when a nation's war support drops to a dangerous threshold due to bombing damage, triggering diplomatic surrender options or activating specific national focuses/decisions. Typical use cases include: when the war support penalty from bombing exceeds a certain threshold, allowing players to unlock a "seek armistice" decision, or triggering AI surrender logic.

# Open armistice decision when bombing causes significant war support penalty
available = {
    has_bombing_war_support > 0.3   # Bombing penalty exceeds 30%
    has_war = yes
}

Synergy

  • [has_casualties_war_support](/wiki/trigger/has_casualties_war_support): Both represent negative sources of war support (bombing vs casualties), typically stacked together to evaluate whether a nation's overall war support has been severely damaged by multiple factors.
  • [has_convoys_war_support](/wiki/trigger/has_convoys_war_support): Convoy losses also generate war support penalties, and using them alongside bombing penalties constructs a comprehensive "total war pressure" assessment condition.
  • [add_war_support](/wiki/effect/add_war_support): After condition triggers are met, use this effect to directly compensate or further reduce war support, forming a complete logic loop of "reach bombing penalty threshold → compensate/penalize".
  • [add_political_power](/wiki/effect/add_political_power): When bombing pressure reaches critical levels, pair it with granting political power to simulate the domestic political cost of a government seeking diplomatic solutions under bombing pressure.

Common Pitfalls

  1. Reversed comparison logic: This value represents "negative penalty amount"—larger values indicate more severe war support damage. Beginners often mistakenly think smaller values mean "more bombed"; actually, you should use > to filter cases of severe damage, not < (unless intentionally filtering nations with minimal bombing impact).
  2. Forgetting scope must be COUNTRY: This trigger only works in country scope. Placing it in state scope (such as within limit blocks in state-level loops) causes script errors or silent failure. Ensure the outer scope has switched back to country level.