Hands-On Usage
add_equipment_to_stockpile is commonly used to grant specific equipment to players or AI nations as event rewards, upon national focus completion, or to pre-populate historical weapon stocks at scenario start. For example, in WWII mods you can use this command to instantly grant a batch of corresponding equipment models to a nation after a specific technology is unlocked, or use negative values to simulate combat losses or treaty-enforced disarmament.
# After completing a national focus, the USA receives a batch of strategic bombers (produced by USA)
complete_national_focus = focus_strategic_bombing
add_equipment_to_stockpile = {
type = strat_bomber_equipment_2
amount = 50
producer = USA
}
Synergy
[has_tech](/wiki/trigger/has_tech) (requires manual verification of unlock) → Typically paired with technology checks to ensure the granted equipment model has been researched by the nation; otherwise the equipment enters stockpile but cannot actually be equipped to units.
[add_equipment_production](/wiki/effect/add_equipment_production) → Use this command to provide initial stockpile, then attach production lines to simulate a dual-supply effect of "historical reserves + ongoing production."
[add_manpower](/wiki/effect/add_manpower) → Equipment and manpower are often distributed together to rapidly mobilize a deployable force, commonly seen in civil war triggers or scenario starts.
[country_event](/wiki/effect/country_event) → Executed as an immediate effect within event options; when players select certain diplomatic or military choices, equipment transfers are triggered, making it the most common wrapper.
Common Pitfalls
- Equipment "disappears" due to unlocked model mismatch: The equipment model specified in
type must be a technology already researched (or obtained via license/variant) by the nation. If the nation hasn't unlocked the corresponding technology, the equipment still enters stockpile but cannot actually be assigned to units, causing confusing discrepancies in numbers. It's recommended to pre-validate with [has_tech](/wiki/trigger/has_tech) or can_research.
- Overlooking the
producer field's impact: When producer is omitted, the effect applies to stockpiles of "all producers," which in multi-party joint production scenarios may result in unexpected equipment source markings. If subsequent logic depends on specific producer attributes (such as license tracking), omitting this field leads to hard-to-debug logical errors.