ID:178723
 
If possible, how can I change the Overlays/Underlays' icon state? I kinda prefer this than having 87647395087 dmi files! I tried some stuff like this:

if("Select Armor")
ArmorType = input("Select Armor","Edit Character",ArmorList[1]) in ArmorList
ArmorIcon.icon_state = ArmorType
src.overlays += ArmorIcon
(ArmorList contains all the proper names of the icon states in my Armor dmi file)

but no luck. Can anyone help plz?
It would be easier to make it an object:


obj/overlay
icon = 'someicon.dmi'
icon_state = "iconstate"

mob/verb/add_icon()
usr.overlays += /obj/overlay
In response to Nadrew
aaaaahhh I see!
Well...is there still a way to do it anyway? It might be helpful!