ID:139840
 
Code:
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


I think your guidance should start here. There is quite a few issues with that. Some of which are you aren't using checks properly, you are making an individual variable for attacking, and using ":". I can tell this is from some sort of source, I know I recognize it.