MZ Alternative to Himeworks custom death states for MZ

Is there a plugin that makes it so you can make states that act like the death state but keep your HP/MP (e.g. petrified in final fantasy) for MZ.
There probably is one for MZ, but from a brief look at the code of Himeworks Custom Death States I imagine that one would work too. Link for convenience:
There probably is one for MZ, but from a brief look at the code of Himeworks Custom Death States I imagine that one would work too. Link for convenience:
It did. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/alternative-to-himeworks-custom-death-states-for-mz.151464/