this is my code:
mob/verb/Attack(mob/M in oview (1))
var/damage=rand(1,12)//This will be a rand-random number between 1 and 12 (45,54)
M.hp-=damage
M.deathcheck
if (usr hp==0)
src<<"[M] has died!"
and this is the error:
Knights n' Wizards.dm:61:error: hp: missing comma ',' or right-paren ')'
ID:150355
Oct 18 2001, 1:56 pm
|
|
In response to Nadrew
|
|
mob/verb/Attack(mob/M in oview (1)) var/damage=rand(1,12)//This will be a rand-random number between 1 and 12 (45,54) M.hp-=damage M.deathcheck if(usr.hp==0) src<<"Bonzi Bonzi Bonzi Bonzi" Add period between usr and hp |
Just a few things about your code:
and