ID:144630
 
Code:
Equip()
if(usr.hands == 1)
usr << "You already have hands on!"
return
if(usr.hands == 0)
usr << "You put [src] on!"
src.suffix = "hands"
src.on = 1
usr.hands = 1
usr.overlays += src
usr.armor += src.stat_gain
return
UnEquip()
if(src.suffix == "hands")
if(usr.hands == 1)
usr << "You take off [src]!"
src.suffix = null
src.on = 0
usr.hands = 0
usr.armor -= src.stat_gain
usr.overlays -= src
return


Problem description:

this is a simple equip/unequip verbs. the only trouble i am having currently is that the overlay wont remove itself when i unequip. i could overlay it as a simple /obj/equipment/chain_gauntlets but they can be dif colors so i cant do that. any ideas on how to remove the icon from overlay?
try something like:

var/list/L = src.overlays
L-=src
src.overlays=L


I'm not good with lists but it's something like that...
In response to Spire8989
That won't work, you're setting his overlay objects to a list.
In response to Worldweaver
fixed it. no thanks to you bloody yankees. worldweaver helped a lil.