Post 07 Oct 2014, 00:07 by Lewin
If you want a way to change large areas of the map at once I can add a command like this:
Actions.MapPaste(Data: AnsiString; X1, Y1, X2, Y2: Integer);
which lets you paste a large area of the map at once (even the whole map). The string "Data" would be some ASCII encoding of the map tiles and there could be a way to extract that information from the map editor when you copy an area.
The only reason the current commands are slow is that after running each one the game must recalculate stuff like pathfinding caches (passability and floodfill) which is slow. But if there was one command it would only have to update these caches once after changing all the map tiles, so the performance would be much better.
However, what would be the purpose of replacing the entire map at once? What kind of script would use this?