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
Can you explain to me how?
In response to Chaokai
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
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
Like this?

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

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