Alright heres my problem:
DeathCheck()
if (HP <= 0)
world << "[src] dies!"
del(src)
It's supposed to get rid of the corpse when a monster dies but it dosen't O.o, there arent any errors or anything when i compile it, so what could be going wrong?
Thanks in advance =o)
P.S. It was working last night.
ID:175634
Mar 25 2003, 7:23 am
|
|
Do you get the message that "[src] dies!"? If not, I'd say the DeathCheck isn't getting called. Look at the part of your code where the thing is taking damage or whatever... make sure you have a call to DeathCheck() afterwards.
For example: mob/proc/damage(dmg) src.HP -= dmg src.DeathCheck() <---- this is calling DeathCheck() If you have the call in there, make sure you don't return before it, or have it indented on a different level. |
Siientx