- Joined
- Mar 15, 2014
- Messages
- 26
- Reaction score
- 1
- First Language
- English
- Primarily Uses
Hi, I'm making a game that cannot have gameovers, so I have to have an event that is constantly checking if the player has 0 or less than 0 HP. If they do, it runs a common event to respawn the player without loss of any data, etc. Is it possible to do this without relying on third-party scripts? Because I currently have a Common Event that is checking if 0001:HP is less than or equal to 0 (This variable is set to actor 1's Current HP Pool) but because the trigger has to be none (Since adding a switch trigger to the event on the spawn area that is always active, causes the player not to be able to move) it can't keep checking forever.
It has to be a global event because the map has to tell that global event what map you died in, etc.
I have a loop set up on a map right now, and it still isn't working:
It has to be a global event because the map has to tell that global event what map you died in, etc.
I have a loop set up on a map right now, and it still isn't working:
Code:
@> Loop @>Conditional Branch: Variable [0001:HP] <= 0 @>Call Common Event: [DeathCheck] @> : Else @> : Branch End @>: Repeat Above@>
Last edited by a moderator:


