Make game over when X character dies in battle

Is there a way I can make a common event that when X character dies in battle that the game is over. I made a common event with a conditional branch that if my character X dies in battle that it goes straight to Game Over, but I assume that since the trigger is none, it won't run like a parallel process and always be running. Is there a way I can make it work? So that the entire game if character X dies it goes straight to Game Over? Please any and all tips are appreciated 🙂
You either need a script/plugin or an event in each enemy troop that triggers when actor X has 0% HP. Unfortunately, there's no other way.
What if I made it auto run if x switch is turned on. And as long as that switch is on.. Then it would auto run then right? I'll have to test that. That seems like that would work.
What if I made it auto run if x switch is turned on. And as long as that switch is on.. Then it would auto run then right? I'll have to test that. That seems like that would work.
It would - but only after you exit the battle.  Auto Run events placed on the map won't activate while you are inside battle if I am understanding what you are trying to do correctly.
Yeah I tried the Auto run for a switch being turned out and the game started lagging, so I switched it with a parallel process for the common event and although it did work, It like you said won't activate while in battle.
This has nothing to do with your question, but as for the lagging: Always have a wait frame (or 2) in Parallel Processes to reduce the lag. For most parallel processes the wait frame really doesn't mess anything up. 🙂
I've never had a lag issue with parallel processes. I think I need a Plug in I guess to achieve what I want, thanks for the help guys.
I think the Yanfly Battle Troop Event plugin will be exactly what you are looking for.  Just check to see if the character is dead at the end of every turn.
Unless you have thousands of troops, copy-pasting a battle event page with a common event call into every troop isn't that time-consuming either, though. 🙂 I don't want to lessen Yanfly's accomplishments with his scripts or anything, but sometimes I feel that people use scripts way too often, even for things that can relatively easily be done with events.

Original thread: https://forums.rpgmakerweb.com/threads/make-game-over-when-x-character-dies-in-battle.54981/