var some_icon = "cartoonanimals.dmi"
var species = "wolf"
obj.icon = icon
obj.icon_state = species
Problem description:
Long story short, I tried to set an icon via a variable and it doesn't seem to work. I tried both "cartoonanimals.dmi" and "'cartoonanimals.dmi'", but nothing happened. Is there a certain workaround or way that you have to do it?
I suppose you could do something like...
Edit: the above method appears to work.