ID:140389
 
Code:
obj/var/worn
obj
Shinigami_suit
name = "Shinigami Suit"
icon = 'Shinigami Suit.dmi'
layer = 9999999999
worn = 0
verb
Wear()
if(src.worn == 1)
src:worn = 0
usr.overlays -= 'Shinigami Suit.dmi'
usr.Defense-=90
src.suffix = ""
else
src:worn = 1
usr.Defense+=90
usr.overlays += 'Shinigami Suit.dmi'
src.suffix = "Wearing"
Look()
usr<<"A Suit Made For Shinigamis/Soul Reapers It Gives User More Defense Power (REMAKE OF LEGENDARTY SUIT)."


Problem description:Every time I Hit Wear It Doesnt go over his body its like the base has a bigger layer and i made sure in login i put usr.layer=0 it goes under the user so its like the usr is the suit lol

usr.overlays += 'Shinigami Suit.dmi' //causes normal layers
/* try */ usr.overlays += src
In response to Ripiz
You guys do know that "usr" defaults to the top level of the tree right? So in this case "usr" is the object.
In response to Ripiz
Thank you This Is The First Time I Ever Had This Problem
In response to Hulio-G
Hulio-G wrote:
You guys do know that "usr" defaults to the top level of the tree right? So in this case "usr" is the object.

I hope they don't know that, as that is false.