I made a death check for my game, and I keep getting the same 4 errors:
Players.dm:119:error:HP:undefined var
Players.dm:119:error:HP:undefined var
Players.dm:119:error:Strength:undefined var
Players.dm:120:error:HP:undefined var
And this is the death check:
proc/DeathCheck(AD)
HP = HP - Strength - AD // error #'s 1, 2, and 3
if(HP < 0) // error #4
src << "You have died!"
oview() << "[src] has died."
if(usr.key)
usr.Move(locate(/area/gate1))
else
del src
I also have the var's in there for HP and Strength(spelled the same as in the code), but they're still causing errors. Can someone help me?
ID:149428
May 2 2002, 2:48 pm
|
|
May 2 2002, 2:51 pm
|
|
Make it a mob proc and with HP=(put it in parentheses)
|
In response to Super16
|
|
Hmmm should have noticed the mob proc....ofcourse I shouldn't come home and sleep for a couple hours then work either....and the ( )'s aren't needed, they just bring more errors, but thanks.
|
Players.dm:119:error:HP:undefined var -- These errors mean your don't have these vars defined. Define them first, like this: mob var HP = 30 //Set these vars to whatever you want. Strength = 5 It's as simple as that. |