TILE ID. Changing ground tiles.

Hello. I was on Steam and saw a question being answered by a very active member there, "Hajami".

So I got a few questions arising from his own answer, and since he can not give more insight on that, I decided to move this question here, as my own, since I am interested to learn about it.

 

You can find the original post by clicking HERE.

The answer said that you can use the following command to do a temporarly tile changing.

 

$game_map.data[11,5,0] = 2816

 

explaining:

 

$game_map.data[mapx, mapy, layer] = Tile ID

It changes Temporarly one Map Tile to another Maptile of your Tileset.

 

So here are my questions:

1] How are the TILE IDs layered on the tilesets?

2] It says that the it is a temp change. When does the map tile change to "normal" again?

 

Thanks for any replies. 🙂

 
The change stays until you reload a saved game. In my testing it persisted through teleports but didn't save.
depending on the script used, it will also revert on reloading the map or leaving it, because there is only one game_map for the current map, and all data gets erased on map change.
depending on the script used, it will also revert on reloading the map or leaving it, because there is only one game_map for the current map, and all data gets erased on map change.
Good to know @Andar.

What about  Tile ID?

The only thing that was given here as a script was actually one command.

$game_map.data[11,5,0] = 2816

2816 is a Tile ID. Does anyone know how are the tiles numbered?
0 = Layer A

1 = Layer A2

2 = Layer B-E

That are the 3 Layers of Ace Mapping. You can put A Tiles on B with this i supose, not exactly sure didnt Tested it much.

To find out about the Tile IDs i would make a little Test Mechanic. Use Eventcommand get Location info to get Tile ID of Layer 0,1 or2 on the Hero mapX and mapY, where he is standing.

A Variable and a Textbox should do the rest to find the Ids easier. If someone is real good , he maybe also Events/Codes a accurate Change for Autotiles.

But as u see i dont know much about it just read about that Command in this Forum some Time ago.

Edit:

After Mapchange the Change reverts to normal. The Safefile seems to Safe it Perfectly fine.

Edit2:

Tsukuhime made a Tileswap Script, its good but the POS Revert Command is Buggy Broken and not repaired since 18 Month and more. Thats how i ended up using this Command too.
sorry, I don't know.


But check the following two links:


http://himeworks.com/2013/02/tutorial-easy-tile-swapping/


http://himeworks.com/2013/02/tile-swap/


Tsukihime uses a different form of Tile ID in her scripts (B27 or C17 or similiar), but somehow in her script there is the function that places the data, and that should give the transformation into the correct number.
The change stays until you reload a saved game. In my testing it persisted through teleports but didn't save.
Wrong. Andar is correct. By default, each time the map changes, the data gets loaded again from the original files.

Good to know @Andar.

What about  Tile ID?

The only thing that was given here as a script was actually one command.

$game_map.data[11,5,0] = 2816

2816 is a Tile ID. Does anyone know how are the tiles numbered?
Take a look at this topic here. 🙂
Wrong. Andar is correct. By default, each time the map changes, the data gets loaded again from the original files.

Take a look at this topic here. 🙂
Thanks everyone. Really appreciate your help.

@SOURCE that link is what I was looking for.

@Andar I think you are absoloutely right on the first part! 

So, it seems this is soved. 😀
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/tile-id-changing-ground-tiles.41721/