MZ Special Game Over Events?

Hi everyone.

I'm wondering if anyone knows a way to have a special game-over event when the player reaches 0HP.

For example, what I'm trying to do is have a death-like character that the player can have a short cutscene with. I want the game to remember the number of deaths the player has had, and the cutscene changes the more times that the player dies or when the player reaches a certain point in the game.

Any ideas?
If you want a custom death scene, just flip knockout over to Continue in the System settings so the game doesn’t yank you to the default Game Over. Then, in each troop, toss in a quick "If the whole party is dead" conditional check and call a Common Event. That Common Event is your little backstage trapdoor, bump your Death Count variable, fade out, warp the player to your new game over map, run whatever weird little conversation you want (autorun), then revive them and spit them back into the world. The cutscene can evolve just by branching off that Death Count, so the more they die, the more your reaper gets to roast them by having that event or common event check the death count variable and play the proper game over scene you crafted.

Original thread: https://forums.rpgmakerweb.com/threads/special-game-over-events.181698/