the first is my AI Attack
proc
Attack(mob/monster/T)
for(var/mob/M in get_step(T,T.dir))//Checks for mobs infront of T
var/damage=round(M.def/2) // calculates the damage
if(M.def <= 0)
damage = 1
M.health-=damage
view(6)<<"[T] attacks [M] for [damage] damage!"//Shows everyone how much the enemy attacked M for
M:LevelUp()
M:DeathCheck()
The second is my garment
obj
var
eq=0
obj
robe
name = "Shinobi Robe"
icon = 'Clothing.dmi'
verb
Equip()
if(src.worn)
eq=0
src.worn = 0
usr.overlays -= src.icon
usr.overlays += usr.hair
usr.def = 0
else
eq=1
src.worn = 1
usr.overlays += src.icon
usr.overlays -= usr.hair
usr.def += 100
Drop()
if(src:worn == 1)
usr << "Not while its being worn."
if(src:worn == 0)
src.loc=locate(usr.x,usr.y-1,usr.z)
Get()
set src in oview(1)
src.loc = usr
usr<<"You picked up a [src]"
Any help with this would be great
its that section thats causing u ur problem