Setup a variable to record current health and round up to the nearest full heart (Health is in 16ths of a heart IIRC). Set up another to represent a "life bar". Set up a 3rd for "checked damage"

Then run a function that runs every frame to check for damage, deduct "checked damage" from "life bar" and if life bar <= 0, set life bar back to max, and health to "current health "- 16. Otherwise, set health back to "current health".

The ONLY problem with this is that you may "die" with one full E-tank, and given how ZC works, I'm not sure if there is a way around this @ZoriaRPG