ID:178827
 
i cant get it to work the verb doesnt show and ive made the icons and im just not sure about the code.
obj/Door
icon = 'door.dmi'
icon_state = "closed"
density = 1
opacity = 1
verb/Action()
set src in oview(1)//within one tile of the user
if(src.icon_state == "closed")//if it's closed
icon_state = "open"
density = 0
opacity = 0
else //Already open
icon_state = "closed"
density = 1
opacity = 1


Don't copy paste this code.