[solved] Yanfly's State Categories - Game over on fully frozen/petrified party?

Hi
I came across custom death states by Hime, but since I've been using yanfly's plugins as something crucial for my game, it just didn't work (frozen enemies die instantly, characters stay in their death stance and I can't recover them). I recently discovered yanfly's state categories and it seems it'd perfect, except that I don't really know much about coding. Basically there are 5 states in my game that are labeled as "death" in the notetags and I'd like the game trigger a game over whenever the party is fully affected with any combination of this category, but I'm not sure how to code it in the troop events.
Victor engine has a plugin called Incapacitate state.

If you want to create game over, simply use troop event page with duration of one turn and make a conditional branch ckecking each hero if he has these deadly states. If all of them have, game over.
Thanks a lot Poryg 😀
I thought VE's incapacitate would be incompatible with yanfly's plugins (I've had some problems with other VE plugins) but it worked like charm (I turned off state categories just in case). I didn't need to do any eventing either, which is a relief since there are many playable characters in my database and eventing for each one of them (and for every incapacitate state) would be a pain.
*tagging this as solved*

Original thread: https://forums.rpgmakerweb.com/threads/solved-yanflys-state-categories-game-over-on-fully-frozen-petrified-party.82669/