ID:174791
 
I was wondering if this was possible. In my game, when it checks to see if the user has less than 0 health, the process is repeated up to 30 times. Is there a way I can somehow pause the verb or something to stop the person from getting 30 wins? (Note: What I mean is it repeats deathcheck part over and over. Yes, it does stop later though...)

-Camaro-
at the end of the verb, put return 0
In response to Goku72
Didn't work, it still spams. I didn't use a deathcheck proc, i just used an if statement. could that be why?
In response to Camaro
can u post the code?
var/DeathChecked = 0

mob/proc/Winbattle(mob/M in oview(10))
//blah stuff here
if(M.DeathChecked) // the if thing
return 0
if(!M.DeathChecked)
if(M.health <= 0)
//blah blah
M.DeathChecked = 1

Just see if the dead guy has been deatchecked before. Then, after the usr wins, set the DeathChecked back.

<-Airjoe->

*wonders why he didn't think of this before on AIM*