ID:150087
 
I cannot figure out how do add an overlay to a mob when I attack them, I have it all set up but when I attack the mob I get the overlay on my character
how would I fix this
(example please)
You have a mistake between src and usr.

I can't give an example unless I can see your code.
In response to Spuzzum
mob/verb/Attack(mob/M in oview(1))
set category = "Combat"
var/damage=1.5*usr.strength
M<<"[usr] has attacked you"
src.overlays += 'damage.dmi'
usr<<"You Attacked [M] for [damage]"
M.hp-=damage
usr.Exp+=10
usr.uexp+=10
M.deathcheck()
usr.Levelup()
usr.Statup()

is the code
In response to Vermolius
M<<"[usr] has attacked you"
src.overlays += 'damage.dmi'

M is the person being attacked, but you're putting the overlay on src. You want to put the overlay on M.