What is an icon state?
An icon can have different images or animations to display for different circumstances, such as a living and a dead version of a Goblin, and each of these is called an icon state. A dmi file is made up of one or more icon states. When you open a dmi file in DreamMaker, each image you see represents one icon state for that dmi file; the icon state can be a single image or an animation. You can double-click the icon state to edit it, or right-click and use the content menu. In the simplest case, the dmi file has only one icon state, and that is used whenever that dmi file is used. For more complex situations, objects that can be displayed in the map have an icon_state variable. By default this is null, but you can set it to any value you want. If an object’s icon_state variable is set, then BYOND looks in the dmi file for an icon state of the same name. So say you have a barrel which is normally a fine upstanding barrel, but when dumped into the ocean it bobs up and down. To implement th