mob
verb
Attack(mob/M as mob in oview(1))
var/damage = usr.str - M.def
if(damage <= 0)
usr << "[M] easily dodges your attack!"
M << "You easily dodge [usr]'s attack."
else
(damage >= 0) src.Str_Mastery += 1
else
M.hp -= damage
view() << "[usr] attacks [M] for [damage] HP!"
M:deathcheck()
Problem description: Not too much of a problem but what i'm trying to do is make every attack that I do increase my str_Mastery by 1. I know somethings wrong but i've been testing it out for a while to see what i've been doing wrong and I cant find it. If you can help i'd gladly appreciate it.
Attack.dm:9:error: src: expected end of statement