# A couple of Questions

**URL:** <https://discourse.cataclysmdda.org/t/a-couple-of-questions/5724>\
**Category:** The Toolbox\
**Created:** [April 4, 2014, 3:20am UTC](https://discourse.cataclysmdda.org/t/a-couple-of-questions/5724 "2014-04-04T03:20:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chiko](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/chiko/32/3238_2.png) [@Chiko](https://discourse.cataclysmdda.org/u/Chiko)\
**Post date:** [April 4, 2014, 3:20am UTC](https://discourse.cataclysmdda.org/t/a-couple-of-questions/5724/1 "2014-04-04T03:20:04Z")

</div>

What does creature size do? I can guess it dictates how much meat you can harvest from a creature… but what else can this piece of code do?

Also, I’m not really sure I fully understand item spawning.

`{
        "type": "monitems",
        "id": "mon_zombie_cop",
        "item_groups": [
            ["cop_weapons", 20],
            ["cop_gear", 40]
        ]
    },`  
Is the number next to the item group a % of spawning? Are they affected by the number next to the item in the item group file?

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [April 4, 2014, 8:18pm UTC](https://discourse.cataclysmdda.org/t/a-couple-of-questions/5724/2 "2014-04-04T20:18:12Z")

</div>

Size determines a few other things like corpse weight, and has some effect on both the creatures ability to target you (body part wise) and their ability to dodge your attacks (small getting boost, large getting a penalty).

Item spawning is a weighted average. So in this case there would be a 20/(20+40) = 33.3% chance of spawning an item from cop\_weapons, and a 66.6% chance of spawning an item from the cop\_gear item group.

---

<div class="post-metadata">

**Author:** ![Chiko](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/chiko/32/3238_2.png) [@Chiko](https://discourse.cataclysmdda.org/u/Chiko)\
**Post date:** [April 4, 2014, 9:36pm UTC](https://discourse.cataclysmdda.org/t/a-couple-of-questions/5724/3 "2014-04-04T21:36:31Z")

</div>

Hmm… but sometimes lots of items are spawned from those 2 items groups. How does that works?
