mob.Click(mob/M in oview(1))
if(M == usr)
return
else
view()<<"<font color = red><B>-[usr] attacks [M]!-"
M.HP -= (usr.Str - M.End)
usr.Stam -= 5
Problem description:Here's the problem; runtime error: undefined variable /turf/Grass3/var/End
proc name: Click (/mob/Click)
usr: Kay (/mob)
src: Kay (/mob)
call stack:
Kay (/mob): Click(Tales of Xenologia (5,5,1) (/turf/Grass3))
-Kay attacks Tales of Xenologia!- thats actully the turf. I'm trying to make it attack a person/mob. Please help.
Here's a better way to code it.