# When 0 set Mana 100

**URL:** <https://forums.unrealengine.com/t/when-0-set-mana-100/339094>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, editor, UE4, CPP, Blueprint, question\
**Created:** [November 20, 2015, 7:14am UTC](https://forums.unrealengine.com/t/when-0-set-mana-100/339094 "2015-11-20T07:14:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chosentwo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chosentwo](https://forums.unrealengine.com/u/chosentwo)\
**Post date:** [November 20, 2015, 7:14am UTC](https://forums.unrealengine.com/t/when-0-set-mana-100/339094/1 "2015-11-20T07:14:09Z")

</div>

i was working on my prject, i need to set my “mana” to 100 when my healty get zero… how i can do that??

---

<div class="post-metadata">

**Author:** ![CKong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CKong](https://forums.unrealengine.com/u/CKong)\
**Post date:** [November 20, 2015, 7:18am UTC](https://forums.unrealengine.com/t/when-0-set-mana-100/339094/2 "2015-11-20T07:18:52Z")

</div>

When you decrease your character health, use a branch node to check if it is equal to 0, then if it is true, set your mana to 100.

---

<div class="post-metadata">

**Author:** ![Pimney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pimney](https://forums.unrealengine.com/u/Pimney)\
**Post date:** [November 20, 2015, 9:51am UTC](https://forums.unrealengine.com/t/when-0-set-mana-100/339094/3 "2015-11-20T09:51:45Z")

</div>

Don’t forget to set this question as resolved
