# Monster attack tokens

**URL:** <https://discourse.cataclysmdda.org/t/monster-attack-tokens/8888>\
**Category:** The Toolbox\
**Created:** [February 10, 2015, 1:30pm UTC](https://discourse.cataclysmdda.org/t/monster-attack-tokens/8888 "2015-02-10T13:30:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RipRoarinBoogerPenis](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/riproarinboogerpenis/32/20_2.png) [@RipRoarinBoogerPenis](https://discourse.cataclysmdda.org/u/RipRoarinBoogerPenis)\
**Post date:** [February 10, 2015, 1:30pm UTC](https://discourse.cataclysmdda.org/t/monster-attack-tokens/8888/1 "2015-02-10T13:30:08Z")

</div>

How do monster attack tokens in monsters.json (like [“LEAP”, 5]) work with monattack files in the src?

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [February 10, 2015, 2:13pm UTC](https://discourse.cataclysmdda.org/t/monster-attack-tokens/8888/2 "2015-02-10T14:13:42Z")

</div>

“LEAP” is mapped (hardcoded) to a leap attack function.  
5 is the cooldown.

It all happens in monstergenerator.cpp

If you want to add a new attack, you need to add a function for it in monattack.h and .cpp and a mapping in monstergenerator.cpp. That’s all from the code side, rest is just adding it to monsters.
