Item State Help

If anybody could please help me create the states below that would work as follows:

STATE'A'
When player takes damage in battle
-Damage calculation
-Death break (if damage is sufficient enough to kill the player, kill the player, end the script)
-Once death break is resolved, heal 50% damage taken

STATE 'B'
"GUTS" effect, where if the player takes enough damage to kill him/her, leave the HP at 1%
-Player consumes item
-Guts state is inflicted
-When damage is enough to kill player, remove guts.

Please and thank you....
This could be done via the custom react notetags of Yanfly's Buff and State core, and/or his Action sequences.
If you are willing to use Yanfly scripts, I can cook those states for you. Let me know in PM...

Original thread: https://forums.rpgmakerweb.com/threads/item-state-help.108490/