Blizz ABS/RMX-OS Respawn script

Started by whitespirits, August 19, 2014, 01:19:46 pm

Previous topic - Next topic

whitespirits

Hi guys so im looking for a script that will give respawns and allow players to set them. I have one called go return at the moment but its causing abs errors all the time :(

Zexion

I did this with 3 common events, couldn't tell ya why I didn't just do one. Also, make sure to turn off instant game over in BABS.
For the example we need 3 switches. The ones I use are:
2 : Death?
3 : Game Start
5 : Recovery

First, just make a common event that runs at all times during the start of the game. (none of these variables/switches are global)
The script condition in the picture is : $game_party.actors[0].hp == 0 && $game_switches[5] == false
This checks if the player is dead, and they are not recovering already. Then turns on the Death? switch.
Spoiler: ShowHide


This is what you want the screen to do as the player dies. I just made it fade out, but you could make it flash, etc. This one
only runs when the death? switch (from above) is on. you also need to turn on the Recovery switch and turn off the death? switch at the end.
Spoiler: ShowHide


Last, you handle what happens to the player as soon as they die. Since I had the screen fade out, I had to have some wait frames because it didn't look good for the player to dissapear. Then I did a room transfer, to a temporary death map (so that the dead player is no longer seen on the same map), and then I transferred them back to the starting map.
Spoiler: ShowHide


The result:
Spoiler: ShowHide

whitespirits

August 30, 2014, 09:31:36 am #2 Last Edit: August 30, 2014, 05:04:07 pm by whitespirits
Thanks man works a treat!


Ok having a problem, when i enter another map and logout, when i log back in the common event isnt running?

Zexion

Wasn't there a problem in your game with switches not saving? Because that would cause that not to work