How do I change a B-E tile with an event?

Hello;

I would like to change a tile (not the tileset) in an event.  I want to change a tile on the B,C,D or E level.

I can see you can change tilesets on event page 3, but I just want to change the value of a single (x,y) map location (say from a log to a flower for example) without touching the background.

This change does not have to be saved once I exit the map.

thanks for your time.

yours

winkr7
you can't - the map structure can't be changed without scripts.

What you can do is instead of placing the tile, you place an event using the B-E tile as a graphic, and then change the event graphic by changing the active event page.
Thanks Andar;

Do you know how to access the Map in Javascript?  like $Map[x,y].terrainB type of thing?

thankyou for your time.

yours

winkr7
Why? why would you need that info or why can't you use an event like described?

Because it's not that easy to change the map by javascript - it is a single line (without storing the data it will revert back on reload), but it's more difficult to determine the tiles for the commands than to simply switch an event page...
Once again, thanks for your help Andar;

I just wondered how to access the map in Javascript.

yours

winkr7
Why? why would you need that info or why can't you use an event like described?


Because it's not that easy to change the map by javascript - it is a single line (without storing the data it will revert back on reload), but it's more difficult to determine the tiles for the commands than to simply switch an event page...

Hi Andar-- do you happen to know what that line is?  


I've been looking for it in the $gameMap, but I don't see anything like that.


In case you're wondering why I need it, it's because I'm making lots and lots of alterations, programattically, and I think I should probably use a type of data that's less messy than dozens of inert events.
@Internetomancer


No, I don't know that line, I just saw it somewhere and know that it simply replaces the data stored (it's not a function at all).


Please make a new topic in learning javascript instead of hijacking and necroposting in this topic.


I'm closing this

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-change-a-b-e-tile-with-an-event.51044/