# Overriding item amount

**URL:** <https://discourse.cataclysmdda.org/t/overriding-item-amount/17791>\
**Category:** The Toolbox\
**Created:** [December 8, 2018, 3:33am UTC](https://discourse.cataclysmdda.org/t/overriding-item-amount/17791 "2018-12-08T03:33:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheMurderUnicorn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/themurderunicorn/32/5706_2.png) [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Post date:** [December 8, 2018, 3:33am UTC](https://discourse.cataclysmdda.org/t/overriding-item-amount/17791/1 "2018-12-08T03:33:49Z")

</div>

Okay, so I’m wondering if there is a way to change the number of items being spawned for items that spawn in large quantities.

Specifically, I’m creating a location where there are supplies related to reloading ammunition. However, the primers, lead, etc. all spawn in quantities of 100+.

Giving a character a free stack of 200 rifle primers seems a little OP to me as you only need 1 primer per round you create. That means that even if I only spawn 1 primer item in the location, the player is getting enough material for 200 rounds.

So, is there some way that I can override this to give a smaller number? I’ve looked in other json but couldn’t find anything relating to reducing the total. Or, if you have experience reloading ammunition (I’ve never done it) am I overreacting to what is actually not that potent of an item spawn?

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [December 8, 2018, 3:55am UTC](https://discourse.cataclysmdda.org/t/overriding-item-amount/17791/2 "2018-12-08T03:55:09Z")

</div>

Doesn’t `"charges": [1, 10]` work for you?

---

<div class="post-metadata">

**Author:** ![TheMurderUnicorn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/themurderunicorn/32/5706_2.png) [@TheMurderUnicorn](https://discourse.cataclysmdda.org/u/TheMurderUnicorn)\
**Post date:** [December 8, 2018, 4:01am UTC](https://discourse.cataclysmdda.org/t/overriding-item-amount/17791/3 "2018-12-08T04:01:02Z")

</div>

Ah, it totally does. I didn’t know you could use charges on items that weren’t things like lighters. It makes sense, but I didn’t even consider it.

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [December 8, 2018, 5:03am UTC](https://discourse.cataclysmdda.org/t/overriding-item-amount/17791/4 "2018-12-08T05:03:25Z")

</div>

Always start by blindly hacking away at it. When you hit a problem, read the docs. Then go back to hacking away at it. 😉
