Is it possible to game over on a different state than State 1 (Dead)

I'm trying to do a petrify status effect in my game.  I want it to work similar to the way most Final Fantasies handle it.  If all characters in the party are petrified, it's game over.  Is this possible with the database editor?  Or am I looking at a plugin script?  Thanks!!
Scripting probably. I'm sure there is a lightweight ex-death script that allows you to assign states that count towards game over.
Yanfly's State Categories can do that. Just add the notetag '<Category: Group Defeat>' to the state.
Just like Ice Bear says, Yanfly's State Categories.... Or why not event? Link the statuses.
Yanfly's State Categories can do that. Just add the notetag '<Category: Group Defeat>' to the state.

 Thats exactly what I needed!  Yanfly for the win again.  Thanks guys!

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-game-over-on-a-different-state-than-state-1-dead.64611/