Battles

Hello, is there a way to make it impossible to escape from battles, and if only one party member dies, it's game over? (Unless he's brought back to life with a potion in the battle). Thanks!
Hello, is there a way to make it impossible to escape from battles, and if only one party member dies, it's game over? (Unless he's brought back to life with a potion in the battle). Thanks!


Hello there!

To make it impossible to Escape battles, that is as easy as unticking a checkmark box when you setup a Battle Configuration.
To do this, go to your Event Commands, then go to Page 3. It is the first option called "Battle Processing" under Scene Control. There is a checkmark box that says "Can Escape". Just make sure that box is unchecked. This will make it to where the player cannot escape from the battles.


As for your other request, can you clarify something? Do you want...just, any of the one characters to die for it to be game over? Or do you want it to where only a certain character dies?

If it's only one particular character who dies and gives an instant game over, this can easily be done with a common event. Simply setup a Common Event in your System that's on Autorun. Now, make the trigger for this Common Event a Switch that only turns on if this particular Actor in your party is under the Death state. That should work and give an instant game over. (So use a Conditional Branch).

Hope that helps!
Just to add a bit to this answer:
To make it impossible to Escape battles, that is as easy as unticking a checkmark box when you setup a Battle Configuration.
That is under the presumption that the battle is getting activated by an event using the Battle Processing command. If you want your game to be this way using random encounters, you can remove the Escape command from the game entirely (or, as a slightly more complex option, tie it to a switch so you can turn it on and off).

This would require a little plugin. The one to remove Escape as a command can be easily found in a ton of threads with a quick Google.

If it's only one particular character who dies and gives an instant game over, this can easily be done with a common event. Simply setup a Common Event in your System that's on Autorun.
That won't work, autorun and parallel common events only work on the map.

You would give whichever actor(s) this applies to the Immortal state, then have Troop Events that check for them to be <= 0% HP, then call Game Over.
Thanks, you two! Yep, I want just any character to die for it to be game over. (Again, unless he's brought back to life in a battle).
I am not clear about your death condition.

If someone dies, Game Over
If someone dies, revive them and then no Game Over

So how long does a character have to be dead to trigger the Game Over?
Or, do you mean if the battle ends and someone is still dead that it's Game Over?

If it's the latter, are you happy for a Game Over if a character dies and the next hit from another character kills the enemy? Unless you have a ctb or atb type system, everyone's action will have been chosen at the beginning of the turn so this possibility is very real.
Hello, I meant if the battle ends and someone is still dead, thanks.
there is a trick to make a common event run only after a battle.

you'll need a switch, select one and name it "after battle"
make a common event, set it to parallel and and use that switch as trigger.
then have it check and do whatever you want to do after a battle, like checking if actor xy is dead and gameover.
as the last command if not gameover, you control the switch after battle to off (so that the event doesn't repeat.

then in every troop (or in the base troop if using a base troop plugin) you add one troop event on condition turn 0 and span=battle that turns the switch after battle = ON.

Since parallels do not run in battle, the entire battle will commence normally and the parallel will only run after the battle even if triggered in turn 0.
Thanks! That was confusing, but I'll give it a go!
That was confusing,
In that case I strongly suggest that you give the tutorials another go.
aside from the comments on why it works, my post was almost literally step-by-step instructions on how to do that. If you really had problems understanding that, then you're missing a few of the very basics of the RPG Makers.
I see. Well anyway, I watched a youtube video and it's all sorted! Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/battles.151030/