# Multiple item actions possible in JSON

**URL:** <https://discourse.cataclysmdda.org/t/multiple-item-actions-possible-in-json/18535>\
**Category:** The Toolbox\
**Created:** [January 24, 2019, 8:46pm UTC](https://discourse.cataclysmdda.org/t/multiple-item-actions-possible-in-json/18535 "2019-01-24T20:46:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Escaron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/escaron/32/4367_2.png) [@Escaron](https://discourse.cataclysmdda.org/u/Escaron)\
**Post date:** [January 24, 2019, 8:46pm UTC](https://discourse.cataclysmdda.org/t/multiple-item-actions-possible-in-json/18535/1 "2019-01-24T20:46:36Z")

</div>

Hello,  
is it possible for one item to have multiple action items specified? Like one drug having an ability to act as a weak painkiller and weak disinfectant? Is it possible to do this in JSON?

---

<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:** [January 24, 2019, 10:59pm UTC](https://discourse.cataclysmdda.org/t/multiple-item-actions-possible-in-json/18535/2 "2019-01-24T22:59:14Z")

</div>

Yes, you just specify the use actions in an array.

---

<div class="post-metadata">

**Author:** ![Medi\_Ding](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/medi_ding/32/5091_2.png) [@Medi\_Ding](https://discourse.cataclysmdda.org/u/Medi_Ding)\
**Post date:** [January 24, 2019, 11:24pm UTC](https://discourse.cataclysmdda.org/t/multiple-item-actions-possible-in-json/18535/3 "2019-01-24T23:24:24Z")

</div>

cdda-\>data-\>json-\>items-\>comestibles-\>meds seems to be where a lot of the drug json is stored.

If the following is too long, the json text file is easy enough to understand that you don’t need to read further.

use\_action is where a lot of the properties are specified. From what I see, the stimulation bonus, morale bonus, health bonus, and addiction chance are specified outside of the use\_action object.

There are two types of use\_action, at least for drugs. There is consume\_drug, meaning you just eat it, and then there is heal, where you choose which limb to apply the drug to.

You will probably use the heal type, since you disinfect specific limbs on the body, and then you can add the effects array to it.

example (item is based on disinfectant, and changes are in bold italics):  
{  
“id”: “test”,  
“type”: “COMESTIBLE”,  
“comestible\_type”: “MED”,  
“name”: “test”,  
“description”: " _This item is based on disinfectant. All the properties are the same except the words in bold italics_ ",  
“weight”: 27,  
“volume”: 1,  
“price”: 1500,  
“charges”: 10,  
“symbol”: “~”,  
“color”: “light\_cyan”,  
“phase”: “liquid”,  
“container”: “bottle\_plastic\_small”,  
“use\_action”: { “type”: “heal”, “disinfectant\_power”: 4, “bite”: 0.95, “move\_cost”: 100, **_“effects”: [{ “id”: “pkill1”, “duration”: 100 }]_** }  
}  
So the effects array will result in the disinfectant causing a painkiller effect with a bit less duration than aspirin (aspirin’s duration is 120).
