ID:2892579
 
Code:


Problem description:

Hellooo so I'm back with another strange question. I'd like to have like a seasonal feel without massive lag. Is there anyway to check an icon_state at runtime so I could change say tree colors. I did make a verb to change all my tree icons to a different icon state but byond really didn't like that T.T. Anyways to clarify:
Getting a large amount of icons(Like trees) to change at runtime or pre reboot per a global proc to have different icon_states - or to add an if statement to a spawn turf? If that's possible.
Make them add themselves to a list on New() and when you go to change the trees make it go through the list of trees, otherwise it checks every single turf in the game to see if it's a tree before changing it. Then depending on map size you come to realise this is possibly a number in the millions lol, that's why byond didn't like it.
Ohhh okay! Thanks so much! I'm so happy this community is so helpful, I literally never would have figured that out lol.