---------------------------------------------------------
on another matter,
is this wrong? and what could I do instead?
Thanks in advance.
mob/proc
KO_Check()
if(src.HP <= 5)//checks if the users HP is 5 or less
src.ko = 1
view() << "<B>[src] is knocked out!</B>"
DeathCheck()
if(src.dead == 1)
world << "<B>[src] has been killed by [usr]</B>"
src.HP = 5
src.loc = locate(60,50,1)
Yes, the code you posted is wrong.
Problem here: view() implies usr as its point of reference. Use view(src) instead.
Here, you should have sent an argument to DeathCheck() telling it who killed src, instead of relying on usr at all. The rule of thumb is: Never put usr in a proc. (You also shouldn't use ==1 and ==0 for yes/no tests on your vars. if(thevar) and if(!thevar) are better.)
Lummox JR