Tile swaps?

I just got RPGMV and I've realised that

Tile_Swap()doesn't work anymore?

Where is the alternative for this, I may just be an idiot but i looked thorough all 3 event pages?!
Tileswap never was possible by default in the Makers, it always required a plugin
What script were you using in Ace that allowed to you to do this? Maybe the creator would consider porting it to MV.
$game_map.data[11,5,0] = 2816This is the Script command used in Eventcommand Script for VX-Ace. Found in this Forum under Scriptequivalents i believe.

Works without aditional Scripts. But the changes are undone after teleporting between Maps.

Maybe this helps to answer the others questions to help OP better.
No, the OP is specifically talking about a script that allowed you to use a Tile_Swap command, not by changing the map data directly.


I want to know what that script was.
The OP wrote nothing about a Script, that was Andar
The OP wrote nothing about a Script, that was Andar
The OP wrote a script command that doesn't exist in default, and it can't be done without a script anyway.
Even your variant (which is also a script command) will be erased the second the map is reloaded, because it will only temporarily change it.
This is more complex than it sounds.

I mean, retaining the swaps after teleport will be a really complicate override update on the core scripts and it will make the program require more resources to function.

Not sure if it is worthy, especially when you can do stuff using event swapping (or graphic changes). Just a suggestion. I am not sure if it will help you since I don't know what you wanna do.
Guys, I just realised I used Kread-EX, with the script:

$game_system.add_swap_tile(x, y, z, v)But it auto-changes it to what I put above for ease of use.
The OP wrote nothing about a Script, that was Andar
The OP used a script call that doesn't exist in Ace. That tells me they were using a custom tile swapping script, whether they actually said the words or not.


Dreadshadow, there are a number of tile swapping scripts in Ace. It would not be difficult to create one in MV as well. Retaining the swaps after teleport just requires the scripter to include the details in one of the files that gets saved with the player's data. Not difficult at all.
Dreadshadow, there are a number of tile swapping scripts in Ace. It would not be difficult to create one in MV as well. Retaining the swaps after teleport just requires the scripter to include the details in one of the files that gets saved with the player's data. Not difficult at all.
OH! Never thoguht of file involvement. I suppose my mind is stuck on Ruby where things were harder. Of course. Even making a new file to store such data there will work too right? 🙂
That's one way of doing it, and I think Hime's script actually did save the data away. When the map was loaded, it looked to see if any tiles had been changed. My way of doing it just required a parallel process event set up to change the tiles as needed, so the data didn't need to be included in the save file.


It would be a small thing to do the same in MV. The biggest issue is that MV has additional map layers and the data is not saved in the same format (Ace used a table, which is a multi-dimensional array; MV doesn't).
It would be a small thing to do the same in MV. The biggest issue is that MV has additional map layers and the data is not saved in the same format (Ace used a table, which is a multi-dimensional array; MV doesn't).
I can live with that. Two and of course also multi dimension arrays are harder to proccess for the hardware anyway. 🙂

So here is one of the reasons performance is enhanced on MV (not to mention OpenGL usage and JS in general).
I'm not convinced of that - what makes you think multi-dimensional arrays are harder to process?


Without it, I have to do a calculation to determine which element in the single-dimension array is the equivalent of a 3-dimensional array in Ace, or a 5-dimensional array in MV. This requires several multiplication and addition operations.
I'm not convinced of that - what makes you think multi-dimensional arrays are harder to process?

Without it, I have to do a calculation to determine which element in the single-dimension array is the equivalent of a 3-dimensional array in Ace, or a 5-dimensional array in MV. This requires several multiplication and addition operations.
I am considering this to alternative ways of data manipulation.

I didn't mean not to use any data structure at all and you can use 1 dimension arrays to achieve better performance on some languages but that is a little technical anyway I suppose.

Original thread: https://forums.rpgmakerweb.com/threads/tile-swaps.49748/