ID:1002195
 
(See the best response by Kaiochao.)
turf
icon ='turfs4.dmi'

i0.0
icon_state="0.0"
i0.1
icon_state="0.1"
i0.2
icon_state="0.2"
i0.3
icon_state="0.3"
i0.4
icon_state="0.4"
i0.5
icon_state="0.5"
i0.6
icon_state="0.6"
i0.7
icon_state="0.7"
i0.8
icon_state="0.8"
i0.9
icon_state="0.9"
i0.10
icon_state="0.10"
i0.11
icon_state="0.11"
i0.12
icon_state="0.12"
i0.13
icon_state="0.13"
i0.14
icon_state="0.14"
i0.15
icon_state="0.15"
i1.0
icon_state="1.0"
i1.1
icon_state="1.1"
i1.2
icon_state="1.2"
i1.3
icon_state="1.3"
i1.4
icon_state="1.4"
i1.5
icon_state="1.5"
i1.6
icon_state="1.6"
i1.7
icon_state="1.7"
i1.8
icon_state="1.8"
i1.9
icon_state="1.9"
i1.10
icon_state="1.10"
i1.11
icon_state="1.11"
i1.12
icon_state="1.12"
i1.13
icon_state="1.13"
i1.14
icon_state="1.14"
i1.15
icon_state="1.15"
i2.0
icon_state="2.0"
i2.1
icon_state="2.1"
i2.2
icon_state="2.2"
i2.3
icon_state="2.3"
i2.4
icon_state="2.4"
i2.5
icon_state="2.5"
i2.6
icon_state="2.6"
i2.7
icon_state="2.7"
i2.8
icon_state="2.8"
i2.9
icon_state="2.9"
i2.10
icon_state="2.10"
i2.11
icon_state="2.11"
i2.12
icon_state="2.12"
i2.13
icon_state="2.13"
i2.14
icon_state="2.14"
i2.15
icon_state="2.15"
i3.0
icon_state="3.0"
i3.1
icon_state="3.1"
i3.2
icon_state="3.2"
i3.3
icon_state="3.3"
i3.4
icon_state="3.4"
i3.5
icon_state="3.5"
i3.6
icon_state="3.6"
i3.7
icon_state="3.7"
i3.8
icon_state="3.8"
i3.9
icon_state="3.9"
i3.10
icon_state="3.10"
i3.11
icon_state="3.11"
i3.12
icon_state="3.12"
i3.13
icon_state="3.13"
i3.14
icon_state="3.14"
i3.15
icon_state="3.15"
i4.0
icon_state="4.0"
i4.1
icon_state="4.1"
i4.2
icon_state="4.2"
i4.3
icon_state="4.3"
i4.4
icon_state="4.4"
i4.5
icon_state="4.5"
i4.6
icon_state="4.6"
i4.7
icon_state="4.7"
i4.8
icon_state="4.8"
i4.9
icon_state="4.9"
i4.10
icon_state="4.10"
i4.11
icon_state="4.11"
i4.12
icon_state="4.12"
i4.13
icon_state="4.13"
i4.14
icon_state="4.14"
i4.15
icon_state="4.15"
i5.0
icon_state="5.0"
i5.1
icon_state="5.1"
i5.2
icon_state="5.2"
i5.3
icon_state="5.3"
i5.4
icon_state="5.4"
i5.5
icon_state="5.5"
i5.6
icon_state="5.6"
i5.7
icon_state="5.7"
i5.8
icon_state="5.8"
i5.9
icon_state="5.9"
i5.10
icon_state="5.10"
i5.11
icon_state="5.11"
i5.12
icon_state="5.12"
i5.13
icon_state="5.13"
i5.14
icon_state="5.14"
i5.15
icon_state="5.15"
i6.0
icon_state="6.0"
i6.1
icon_state="6.1"
i6.2
icon_state="6.2"
i6.3
icon_state="6.3"
i6.4
icon_state="6.4"
i6.5
icon_state="6.5"
i6.6
icon_state="6.6"
i6.7
icon_state="6.7"
i6.8
icon_state="6.8"
i6.9
icon_state="6.9"
i6.10
icon_state="6.10"
i6.11
icon_state="6.11"
i6.12
icon_state="6.12"
i6.13
icon_state="6.13"
i6.14
icon_state="6.14"
i6.15
icon_state="6.15"
i7.0
icon_state="7.0"
i7.1
icon_state="7.1"
i7.2
icon_state="7.2"
i7.3
icon_state="7.3"
i7.4
icon_state="7.4"
i7.5
icon_state="7.5"
i7.6
icon_state="7.6"
i7.7
icon_state="7.7"
i7.8
icon_state="7.8"
i7.9
icon_state="7.9"
i7.10
icon_state="7.10"
i7.11
icon_state="7.11"
i7.12
icon_state="7.12"
i7.13
icon_state="7.13"
i7.14
icon_state="7.14"
i7.15
icon_state="7.15"
i8.0
icon_state="8.0"
i8.1
icon_state="8,1"
i8.2
icon_state="8,2"
i8.3
icon_state="8,3"
i8.4
icon_state="8,4"
i8.5
icon_state="8.5"
i8.6
icon_state="8.6"
i8.7
icon_state="8.7"
i8.8
icon_state="8.8"
i8.9
icon_state="8.9"
i8.10
icon_state="8.10"
i8.11
icon_state="8.11"
i8.12
icon_state="8.12"
i8.13
icon_state="8.13"
i8.14
icon_state="8.14"
i8.15
icon_state="8.15"
i9.0
icon_state="9.0"
i9.1
icon_state="9.1"
i9.2
icon_state="9.2"
i9.3
icon_state="9.3"
i9.4
icon_state="9.4"
i9.5
icon_state="9.5"
i9.6
icon_state="9.6"
i9.7
icon_state="9.7"
i9.8
icon_state="9.8"
i9.9
icon_state="9.9"
i9.10
icon_state="9.10"
i9.11
icon_state="9.11"
i9.12
icon_state="9.12"
i9.13
icon_state="9.13"
i9.14
icon_state="9.14"
i9.15
icon_state="9.15"
i10.0
icon_state="10.0"
i10.1
icon_state="10.1"
i10.2
icon_state="10.2"
i10.3
icon_state="10.3"
i10.4
icon_state="10.4"
i10.5
icon_state="10.5"
i10.6
icon_state="10.6"
i10.7
icon_state="10.7"
i10.8
icon_state="10.8"
i10.9
icon_state="10.9"
i10.10
icon_state="10.10"
i10.11
icon_state="10.11"
i10.12
icon_state="10.12"
i10.13
icon_state="10.13"
i10.14
icon_state="10.14"
i10.15
icon_state="10.15"
i11.0
icon_state="11.0"
i11.1
icon_state="11.1"
i11.2
icon_state="11.2"
i11.3
icon_state="11.3"
i11.4
icon_state="11.4"
i11.5
icon_state="11.5"
i11.6
icon_state="11.6"
i11.7
icon_state="11.7"
i11.8
icon_state="11.8"
i11.9
icon_state="11.9"
i11.10
icon_state="11.10"
i11.11
icon_state="11.11"
i11.12
icon_state="11.12"
i11.13
icon_state="11.13"
i11.14
icon_state="11.14"
i11.15
icon_state="11.15"
i12.0
icon_state="12.0"
i12.1
icon_state="12.1"
i12.2
icon_state="12.2"
i12.3
icon_state="12.3"
i12.4
icon_state="12.4"
i12.5
icon_state="12.5"
i12.6
icon_state="12.6"
i12.7
icon_state="12.7"
i12.8
icon_state="12.8"
i12.9
icon_state="12.9"
i12.10
icon_state="12.10"
i12.11
icon_state="12.11"
i12.12
icon_state="12.12"
i12.13
icon_state="12.13"
i12.14
icon_state="12.14"
i12.15
icon_state="12.15"
i13.0
icon_state="13.0"
i13.1
icon_state="13.1"
i13.2
icon_state="13.2"
i13.3
icon_state="13.3"
i13.4
icon_state="13.4"
i13.5
icon_state="13.5"
i13.6
icon_state="13.6"
i13.7
icon_state="13.7"
i13.8
icon_state="13.8"
i13.9
icon_state="13.9"
i13.10
icon_state="13.10"
i13.11
icon_state="13.11"
i13.12
icon_state="13.12"
i13.13
icon_state="13.13"
i13.14
icon_state="13.14"
i13.15
icon_state="13.15"
i14.0
icon_state="14.0"
i14.1
icon_state="14.1"
i14.2
icon_state="14.2"
i14.3
icon_state="14.3"
i14.4
icon_state="14.4"
i14.5
icon_state="14.5"
i14.6
icon_state="14.6"
i14.7
icon_state="14.7"
i14.8
icon_state="14.8"
i14.9
icon_state="14.9"
i14.10
icon_state="14.10"
i14.11
icon_state="14.11"
i14.12
icon_state="14.12"
i14.13
icon_state="14.13"
i14.14
icon_state="14.14"
i14.15
icon_state="14.15"
i15.0
icon_state="15.0"
i15.1
icon_state="15.1"
i15.2
icon_state="15.2"
i15.3
icon_state="15.3"
i15.4
icon_state="15.4"
i15.5
icon_state="15.5"
i15.6
icon_state="15.6"
i15.7
icon_state="15.7"
i15.8
icon_state="15.8"
i15.9
icon_state="15.9"
i15.10
icon_state="15.10"
i15.11
icon_state="15.11"
i15.12
icon_state="15.12"
i15.13
icon_state="15.13"
i15.14
icon_state="15.14"
i15.15
icon_state="15.15"


Is there an easier way?

That's pretty scary looking. Is there not some way of parsing icon states, without needing to explicitly write them out? If not, it sure would be useful. If I had that many states, I would list them in their own separate DM file, just to keep it away from the rest of my code.
I also put the code in it's own separate code file too. Wasn't very fun to type out.... So yeah I'm hoping there is an easier way. not implying rockinawesome isn't easier, I just haven't gotten to test it yet, taking a break atm.
Forum_account's Fog of War library has a bunch of icon states in it, and he seems to be doing something special with them. I can't quite comprehend what it is exactly since I'm not experienced enough, but the states are not even listed in the code.
In response to Multiverse7
It's because icon_state is a variable that can be set to anything at runtime.

OP: What are all these objects for?
They are for my map
In response to Ncju
In the map editor, there is a command to "Generate instances from icon states." All you need is one object with the icon containing the states, and you can automatically generate an instance for all of them.

The map editor's instances, if you're not aware, are simply modified types. You have object types, like /mob, /obj, /turf, etc., and you can set their variables (to constant values) in code as well as in the map editor.
Wow that is much easier.

Can you re-explain your last 2 sentences in another way.
In response to Ncju
Best response
Object types have variables with default values set in code.
Most of the variables can be set in the map editor. When you change a variable of an object in the map editor, you get a new instance to separate it from the original, unmodified instance.

It's like in the icon editor, you can change the palette and draw. You're always drawing pixels (objects), but pixels will have different colors (variables). In the code you'd have defined an object type (/pixel) and given it variables (color, r, g, b, a). In the editor, you place pixels, and to change the color of them, you don't have to go back into the code.
Understood, thanks.
Just to clarify and make sure we are 100% on the same page.

Types come with default variables that can be edited in the map editor. New variables you set for those types may also be edited from the map editor.
I think you mean to say "values."

Your objects all have an icon_state variable. The values of them are "0,0" through "15,15".

Kaiochao is saying that instead of having a separate object for each icon_state, you can have just one object. Then, in the map editor, you can create many "instances" of that object, each with a different value for icon_state.