Thanks for the help on the tile changer, but I have found another problem (not with your suggestions, but with my planning). I want this to be a stand-alone program, with the map files copied into the same folder, but the way I understand it, FileWriteMap() works on the current map, and the only way (I know) to switch that is to use Map(), and that stops my code. I want to know if it is possible to either:
- Switch to a map without stopping the code.
- Discover and change the startup function of a map, before switching to it.
I would prefer to do one of these two things, but if they are impossible, I will just have the user set the startup function manually.
Also, is it possible to find the number of layers in a map without running through the RenderString (like a curmap.layers variable)?