Spotlights/Features I need help, how to make a passive skill that keeps the actor's HP at 1 by continuing to use mana every time he gets attacked

I'm developing a game for my final project for college, I want to create a passive skill call refuse death.where when the character get attack by enemy, his HP will be at 1, and when get attack again, his HP will remain at 1 by continuing to consume mana until it runs out. Do you have any tricks or suggestions?
This thread was moved from Product Discussion and Support to RPG Maker MV Support.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-how-to-make-a-passive-skill-that-keeps-the-actors-hp-at-1-by-continuing-to-use-mana-every-time-he-gets-attacked.177417/