My object code
obj
robe
icon = 'Black Robe.dmi'
verb
get()
set name = "Get"
set category = "Commands"
set src in view(1)
usr << "You pick up the [src]"
src.loc = contents
del(src)
Code:
my equip verb
player
verb
wear(obj/O in contents)
set category = "Commands"
set name = "Wear"
usr.overlays = "[O]"
usr << " You wear [O]"
Problem description:
I've tried editing my wear command many times.. I tried
usr.overlays += "[O]"
and my recent attempt is up there but i'll display again
usr.overlays = "[O]"
I even tried editing the get command so it adds the robe to your characters overlay RIGHT when you pick it up but that is retarded so now I think i'll just ask for help cause overlays hate me xD For some reson the robe just dosent show up on my player icon and when I use wear it dosent give me a list of the objects in my contents. I also tried taking:
del(src)
out of my code but that still didnt help
There this should work(I hope :P)