mob/Special/verb/Heal(M as mob in oview(1))
if(M:HP==M:Max_HP)
usr << "This player doesn't need to be healed..."
return
else
if(usr.level = 1)
M:HP += 5
usr.mp -= 5
if(usr.mp <= 0)
usr << "You don't have enough MP..."
return
if(usr.level = 3)
M:HP += 10
usr.mp -= 10
if(usr:mp <= 0)
usr << "You don't have enough MP..."
return
Problem description:
Ok, It says that there is a problem with: if(usr.level = 1) and, if(usr.level = 3). It says there's a missing expression. Would appreciate any help...
~Chris
First off, using : is an ugly way to do things. just make it M.whatevervar.
Secondly, you are using the assignment operator (=) and not the equality test operator (==). In other words, it should read if(usr.lvl == 1).
§atans§pawn