This script restores an old function from RM2k, namely the ability to swap tiles with others within a map. While VX Ace gave us back the tilesets and the option to change them in-game, the tile swap option has not been restored. So here it is: Download!
Of course, the harsh reality is that this script can be complicated to use, while creating a new map with the desired tile changes is much easier. But it was fun to make. DON’T RUIN MY FUN.
There are three possible script calls available to use the Tile Swap.
$game_system.add_swap_tile(map_id, old_tile_id, new_tile_id, layer)
Swaps a tile with another.
$game_system.remove_swap_tile(map_id, old_tile_id, layer)
Remove a swap data.
Clears all the swap data for the map.
The ID of the map where the swap takes place.
The ID of the tile to be removed. To retrieve this data, you can create a copy of the tile on your map, and use Acquire Position Information on it.
The ID of the tile the old tile will be replaced with. To retrieve this data, you can create a copy of the tile on your map, and use Acquire Position Information on it.
The layer. Rather self-explanatory but note that it starts at 0, not 1.
Swapping autotiles, like in the screenshot example, is rather tricky. You need to know the ID of the autotile from all possible angle. To put it into perspective, here’s an excerpt of the event I made.