# Heal Function

**URL:** <https://discourse.cataclysmdda.org/t/heal-function/11654>\
**Category:** The Toolbox\
**Created:** [April 4, 2016, 8:29pm UTC](https://discourse.cataclysmdda.org/t/heal-function/11654 "2016-04-04T20:29:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pisskop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/pisskop/32/1327_2.png) [@pisskop](https://discourse.cataclysmdda.org/u/pisskop)\
**Post date:** [April 4, 2016, 8:29pm UTC](https://discourse.cataclysmdda.org/t/heal-function/11654/1 "2016-04-04T20:29:20Z")

</div>

Im trying to add a heal function to effects, since negative hurt doesnt seem to do it and the only other workaround Ive found is using artifact properties or aid kit style menus instead of a slow ‘regen’ effect.

Im found how the Rivtech stimpacks do it, and Ive doodled in the effect.cpp files, but Im not sure if there even exists a heal function outside of healall or how I would implement one.

Im trying to work out how to use a compiler but I didnt actually define a ‘heal’ member dooddad ala

```
 extract_effect(j, mod_data, "hurt_tick", member, "HURT", "tick");

```

- 
- 

```
   // Then heal

```

- 

```
   extract_effect(j, mod_data, "heal_amount", member, "HEAL", "amount");

```

- 

```
   extract_effect(j, mod_data, "heal_min", member, "HEAL", "min");

```

but HEAL doesnt actually seem to pop up anywhere else in code?

---

<div class="post-metadata">

**Author:** ![pisskop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/pisskop/32/1327_2.png) [@pisskop](https://discourse.cataclysmdda.org/u/pisskop)\
**Post date:** [April 15, 2016, 2:30pm UTC](https://discourse.cataclysmdda.org/t/heal-function/11654/2 "2016-04-15T14:30:15Z")

</div>

Heal function is actually available via negative hurt per turn.

It appears that while negative hurt\_amount does not heal, hurt\_min and hurt\_ma do, although the message ‘your [bp] hurts!’ still displays
