ID:155024
 
Hi guys,

I was wondering is it possible to change an objects icon_state in game like with a verb?
(with objects i mean like a rock or a wall)

Greetings,
Chaokai
Yes
In response to Zaoshi (#1)
Can you explain to me how?
In response to Chaokai (#2)
Simple:

obj
wall
icon = 'turf.dmi'
icon_state = "wall"
density = 1

verb
change_icon()
set src in oview(1)
src.icon_state = "rock"
In response to Speedro (#3)
Okay but this works only when its in front of me. I need to be able to change it from anywhere on the map.
In response to Chaokai (#4)
Like this?

obj
wall
icon = 'turf.dmi'
icon_state = "wall"
density = 1

verb
change_icon()
set src in world
src.icon_state = "rock"