Game Over calls common event help?

I just spent a long time googling this and have yet to find a solution. I want my game to call a common event when I die outside of battle (I have no battles). I already have a common event that checks if I have a revival item in my inventory before deciding if I really go to the game over screen when I die, but this only has worked when i have more than one person in my party. It is supposed to be a single person game, so I don't want to have a placeholder character in my party the player can see. I've read that creating a script that calls a common event instead of going to game over is "easy", but I can't find a script that does this. The game over call seems to override any eventing I do.


EDIT: If this post can be deleted, go ahead and please do so. I don't see if I can delete this myself or not.


BUT! I have found a solution by keeping my party as one player, changing enemy attacks to not "allow knockout" and doing a death check event when the player is hit and before deducting HP. So the player will always go down to 1 HP before dying, but if they are hit when they are at 1 HP, the death check event will trigger the game over screen.

Original thread: https://forums.rpgmakerweb.com/threads/game-over-calls-common-event-help.73319/