# Stacking

**URL:** <https://discourse.cataclysmdda.org/t/stacking/4358>\
**Category:** The Lab\
**Created:** [December 2, 2013, 9:23pm UTC](https://discourse.cataclysmdda.org/t/stacking/4358 "2013-12-02T21:23:43Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Cat09](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/cat09/32/285_2.png) [@Cat09](https://discourse.cataclysmdda.org/u/Cat09)\
**Post date:** [April 24, 2014, 3:10pm UTC](https://discourse.cataclysmdda.org/t/stacking/4358/21 "2014-04-24T15:10:48Z")

</div>

not sure exactly what is in the item code, but from a logic standpoint I see:

(spoilered for space)  
STACK\_ITEMNAME // (that is name not ID) this would have to be dynamic otherwise every single item would need a separate def.  
{  
STACK::1 = itemid,itemname,itemdata1,itemdata2,etc… // it would be good to include a stack priority pointer which points to an  
STACK::2 = see above // item data value that says “put me first if i’m most rotten” for instance.  
…  
}  
   
when this may not be as desirable is when you want a specific type of [itemname], which may be ameliorated by a stack dividing option that shows substacks by item ID.

[Previous page](https://discourse.cataclysmdda.org/t/stacking/4358.md?page=1)
