Wiki

effect · send_equipment

Definition

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

Description

Sends to target scope specified amount of equipment.

实战 · 配合 · 坑

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

实战用法

send_equipment 常用于同盟援助、傀儡扶植或剧本事件中向盟友输送装备,例如在决策或国家事件中让玩家或 AI 将步枪、坦克等装备转移给目标国家。典型场景是"军事援助"系列决策,当玩家选择支援某小国时触发该效果,直接从本国库存扣除并加入对方库存。

# 在某国家事件的 option 中向 FROM(事件发起方)输送装备
option = {
    name = my_event.1.a
    FROM = {
        send_equipment = {
            equipment = infantry_equipment_1
            amount = 500
            sender = ROOT
        }
    }
}

配合关系

  • [has_army_manpower](/wiki/trigger/has_army_manpower):在发送装备前先判断目标国是否有足够兵力来使用这批装备,避免无效援助。
  • [add_equipment_to_stockpile](/wiki/effect/add_equipment_to_stockpile):两者可组合使用——send_equipment 负责跨国转移,add_equipment_to_stockpile 负责直接给本国凭空添加库存,常在援助链条的两端分别使用。
  • [add_manpower](/wiki/effect/add_manpower):援助装备的同时往往配合输送人力或补员,构成完整的"军事援助包"效果。
  • [country_event](/wiki/effect/country_event):发送装备后触发一个回执事件,告知发送方或接收方援助已到位,形成完整的叙事闭环。

常见坑

  1. 未检查发送方库存send_equipment 会直接从 sender 国的实际库存中扣除装备,若库存不足则实际发送量会少于填写的数值,脚本不会报错但效果静默缩水,建议配合 [has_army_manpower](/wiki/trigger/has_army_manpower) 类触发器或在设计上预留余量。
  2. scope 与 target 混淆:该 effect 必须写在接收方的 scope 下(即"谁收到装备就进谁的 scope"),sender 字段才是指定扣除库存的发送国;新手常将整段写在发送国 scope 下却忘记切换 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

send_equipment is commonly used in alliance aid, puppet support, or scripted events to transfer equipment to allied nations. For example, in decisions or national events, it allows the player or AI to transfer rifles, tanks, and other equipment to a target nation. A typical scenario is the "Military Aid" series of decisions—when the player chooses to support a minor nation, this effect is triggered, directly deducting equipment from the sender's stockpile and adding it to the recipient's.

# In a national event option, send equipment to FROM (the event initiator)
option = {
    name = my_event.1.a
    FROM = {
        send_equipment = {
            equipment = infantry_equipment_1
            amount = 500
            sender = ROOT
        }
    }
}

Synergy

  • [has_army_manpower](/wiki/trigger/has_army_manpower): Check whether the target nation has sufficient manpower to utilize the equipment before sending, avoiding wasted aid.
  • [add_equipment_to_stockpile](/wiki/effect/add_equipment_to_stockpile): These can be combined—send_equipment handles cross-border transfers, while add_equipment_to_stockpile directly adds equipment to a nation's own stockpile from nothing. Use them at opposite ends of an aid chain.
  • [add_manpower](/wiki/effect/add_manpower): Equipment transfers often pair with manpower or reinforcement shipments to create a complete "military aid package" effect.
  • [country_event](/wiki/effect/country_event): Trigger a follow-up event after sending equipment to notify the sender or receiver that aid has arrived, creating a complete narrative closure.

Common Pitfalls

  1. Failing to verify sender's stockpile: send_equipment deducts equipment directly from the sender nation's actual stockpile. If stockpile is insufficient, the actual amount sent will be less than specified, and the script will not error but silently fall short. It is recommended to combine with triggers like [has_army_manpower](/wiki/trigger/has_army_manpower) or design with buffer margins.
  2. Confusing scope and target: This effect must be written within the recipient's scope (i.e., "whoever receives the equipment gets it in their scope"). The sender field specifies which nation's stockpile is deducted. Beginners often write the entire block in the sender's scope but forget to switch scopes, causing the equipment to be sent from the sender to themselves.