Wiki

trigger · num_nukes_being_dropped

Definition

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

Description

total number of nukes that are currently ready to be dropped

实战 · 配合 · 坑

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

实战用法

num_nukes_being_dropped 常用于核战争相关的事件或决议中,用来检测当前是否有核弹正处于投放就绪状态,从而触发特殊的外交惩罚、战争意志变化或 AI 反应逻辑。例如在一个"全球核恐慌"mod 中,可以用它来判断是否应该激活紧急制裁决议:

# 在某个决议的 available 块中
available = {
    FROM = {
        num_nukes_being_dropped > 0
    }
}

配合关系

  • [has_nuclear_bombs](/wiki/trigger/has_nuclear_bombs)(白名单中对应的核弹存量 trigger 不存在,改用)[add_nuclear_bombs](/wiki/effect/add_nuclear_bombs):在确认有核弹正在投放时,可通过此 effect 给相关方补充核弹储备,实现"核军备竞赛"逻辑。
  • [add_war_support](/wiki/effect/add_war_support):当检测到核弹正在投放时,联动调整目标国或己方的战争意志,模拟核打击对士气的冲击效果。
  • [add_named_threat](/wiki/effect/add_named_threat):配合使用,将当前核投放行为转化为全球威胁值增加,强化国际社会的外交压力模拟。
  • [has_defensive_war](/wiki/trigger/has_defensive_war):常与之组合,用于判断"在被核打击的同时还处于防御战状态"这一极端处境,触发特殊剧情事件。

常见坑

  1. 误解"ready to be dropped"的含义:该 trigger 统计的是当前已就绪待投放的核弹数量,而非已爆炸或已命中的核弹,新手容易将其与核弹库存数量混淆,导致条件判断时机错误。
  2. Scope 使用错误:此 trigger 只在 COUNTRY scope 下有效,若不小心写在 STATE scope 的 limit 块内,游戏不会报错但条件将永远无法正确求值,调试时难以发现。

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

num_nukes_being_dropped is commonly used in nuclear warfare-related events or decisions to detect whether nuclear warheads are currently in a ready-to-drop state, thereby triggering special diplomatic penalties, war support changes, or AI reaction logic. For example, in a "Global Nuclear Panic" mod, you can use it to determine whether an emergency sanctions decision should be activated:

# In the available block of a decision
available = {
    FROM = {
        num_nukes_being_dropped > 0
    }
}

Synergy

  • [has_nuclear_bombs](/wiki/trigger/has_nuclear_bombs) (the corresponding nuclear stockpile trigger in the whitelist does not exist, use instead) [add_nuclear_bombs](/wiki/effect/add_nuclear_bombs): When confirming that nuclear warheads are being dropped, you can use this effect to replenish nuclear reserves for relevant parties, implementing "nuclear arms race" logic.
  • [add_war_support](/wiki/effect/add_war_support): When detecting nuclear warheads being dropped, dynamically adjust war support for the target nation or your own side to simulate the morale impact of nuclear strikes.
  • [add_named_threat](/wiki/effect/add_named_threat): Use in conjunction to convert the current nuclear drop action into increased global threat values, enhancing the simulation of international diplomatic pressure.
  • [has_defensive_war](/wiki/trigger/has_defensive_war): Commonly combined with this trigger to determine the extreme situation of "simultaneously under nuclear attack while in a defensive war state," triggering special story events.

Common Pitfalls

  1. Misinterpreting the meaning of "ready to be dropped": This trigger counts the number of nuclear warheads currently ready and pending deployment, not warheads that have already detonated or struck their targets. Beginners often confuse this with nuclear stockpile quantity, leading to incorrect condition evaluation timing.
  2. Scope usage errors: This trigger is only valid under the COUNTRY scope. If accidentally written within the limit block of a STATE scope, the game will not report an error but the condition will never evaluate correctly, making it difficult to detect during debugging.