Ok, so I know how to trigger a game over during battle, but i dont know how to trigger it being outside of battle, like the character dying due to poison in the overworld, can anybody help me?
How to trigger game over if MC dies OUTSIDE of battle?
RPG Maker VXAce SupportThis is a "support" question, not a discussion of a game mechanic design.
Doesn't it happen automatically?
Doesn't it happen automatically?
This forum is about designing game mechanics. Straightforward "How do I...?" questions should be in the Support forum for the engine you are using. So, based on the info under your avatar
I've moved this thread to RPGMaker VX Ace. Please be sure to post your threads in the correct forum next time. Thank you.
I've moved this thread to RPGMaker VX Ace. Please be sure to post your threads in the correct forum next time. Thank you.
Yep. It happens automatically, but your WHOLE party has to die. Go to the System tab and check the K.O. by Slip Damage checkbox.
No, what I mean is, if one specific character dies, can i trigger a game over outside of battle. Do i need a script or is it possible without one?
Set up a common event as a parallel process, conditioned by a switch, and turn the switch on right at the start of the game.
The common event should have a Wait 60 Frames (so it doesn't cause lag), followed by a Conditional Branch testing if the actor is inflicted with the 'death' state (or you could use a Control Variables command to put the actor's HP into a variable, then in the conditional branch just check if the variable is equal to or less than 0), and if so, use the Game Over event command (under Scene Control on tab 3). You will still have to check the KO by Slip Damage box in the System tab of the database.
The common event should have a Wait 60 Frames (so it doesn't cause lag), followed by a Conditional Branch testing if the actor is inflicted with the 'death' state (or you could use a Control Variables command to put the actor's HP into a variable, then in the conditional branch just check if the variable is equal to or less than 0), and if so, use the Game Over event command (under Scene Control on tab 3). You will still have to check the KO by Slip Damage box in the System tab of the database.
ok, thank you so much
I did this but it isn't working right, I have the event and the common event both running at a parallel process. Is that what I want to do? also, I have the condition switch for the common event turned on in the event containing the common event. Am I missing something?
The event that turns on the switch should be on your very first map (if you want this check to be happening for the entire game). It should be parallel process and should have an Erase Event command as the second command. Or if you're coming back to this map, turn on the switch, then turn on a self switch, and add an extra page conditioned by the self switch, with no other changes.
If it's not working, check your System tab and make sure you've checked the KO by Slip Damage. Make sure the actor you're using in the conditional branch IS the actor you've got in your party. As you walk around, the screen should be flashing red every time HP is reduced. Make sure they get to 0 HP.
If it still doesn't work, post a screenshot of your event and your common event.
If it's not working, check your System tab and make sure you've checked the KO by Slip Damage. Make sure the actor you're using in the conditional branch IS the actor you've got in your party. As you walk around, the screen should be flashing red every time HP is reduced. Make sure they get to 0 HP.
If it still doesn't work, post a screenshot of your event and your common event.
I got it, it works now. Thank you for your help.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-trigger-game-over-if-mc-dies-outside-of-battle.64716/