ID:169086
 
Can someone explain to me how i use this proc? i cant get it to work
What don't you understand?

mob
verb/Adjust_State()
src.icon = 'buttons.dmi'
var/icon/myicon = icon(src.icon) //first we need to refer to an icon as an icon
var/list/states = myicon.IconStates() //states now refers to a list of icon_states belonging to myicon (which is src.icon)
src.icon_state = input("What would you like your icon state to be?","Icon State") in states //adjust our icon_state to something in the list
In response to DeathAwaitsU
Ah thanks for the help