mob/proc/damage(amount as num, mob/attacker)
src.health -= amount
if(src.health <= 0)
if(src == attacker)
src.loc = null
src << "You killed yourself!"
world << "[src] kills \himself"
src.score-=1
src << "You are dead, you must wait a few seconds to get back into the game"
sleep(100)
src.health = src.max_health
src.SetHealthIconState()
switch(alert(src,"Your ready to go back in!","Ok"))
if("Ok")
..()
src.SetHealthIconState()
src.loc = pick(locations1)
src.SetHealthIconState()
else
src.loc = null
attacker.score += 1
world << "[src] dies!"
src << "You are dead, you must wait a few seconds to get back into the game"
sleep(100)
src.health = src.max_health
src.SetHealthIconState()
switch(alert(src,"Your ready to go back in!","Ok"))
if("Ok")
..()
src.SetHealthIconState()
src.loc = pick(locations1)
src.SetHealthIconState()
else
return
Sometimes, when people die, they don't leave the map. It says, the person dies. I happens when they move. Like if they die when moving, they stay in the same spot... Gughunter has seen this last night during the test. Its kinda hard to explian.
Thanks for reading!
-ST