Stall a Game Over when all party members hp=0

I have a spike trap that shaves off 5 hp from the party every time you step on it. It is possible to be killed by one of these.

However, the game goes abruptly to the Game Over screen when the spikes achieve a party kill. I want the game to display a "You have died..." message before the game over screen if the spikes successfully get a total party kill. Sadly, there's no conditional branch that checks an actor's hp for overworld events (unless I'm completely blind...). And conditional branches checking if the sole member that the party has for 80% of the game has death inflicted on him fail because the Game Over screen takes priority.

I think the way around this is to delay the Game Over until the conditional branch has been fully executed (or stop it completely, and then use the "Force Game Over" event command). Is there a way to delay or stop the Game Over without scripting, or would I absolutely have to script it?

Heres a picture of my event, if it helps in any way:

*Note: Where it says "Transparent" for the text line, it's actually a "Dark". This snipping was taken before I corrected the error.

Spoiler
qE74.png
What do you mean "for overworld events"? Events are events. There is a conditional branch to check an actor's HP. But yes, the gameover screen would probably take precedence.


There ARE gameover scripts that will take you to another map or allow you to do something different either before, or instead of calling up the gameover screen.


Moderator note: Moving this to RGSS3 Script Requests[mod][/mod]

Original thread: https://forums.rpgmakerweb.com/threads/stall-a-game-over-when-all-party-members-hp-0.25957/