Attack(mob/M as mob in oview(1))
if(M.name = "dummy")
set hidden
else
set category="Attack"
var/damage = usr.str - M.def
usr<<"You attack [M] for [damage] damage!"
oview()<<"[usr] attacks [M] for [damage] damage!"
M.HP -= damage
M.Death()
usr.LevelUp()
Train(mob/Monster/dummy as mob in oview(1))
set category="Attack"
usr << "You train on the dummy"
oview()<<"[usr] trains on dummy!"
usr.Exp += rand(1,15) - usr.Level
usr.LevelUp()
Problem description:
I'm trying to make it so the player can only train on the dummy not attack it. How to I do this? When I try the above it says on the:
if(M.name = "dummy")
set hidden
errors:
Verbs.dm:13:error::missing expression
Verbs.dm:14:error:hidden :bad statement