I am using RPG Maker MZ and I have a section of the game where you are in a flooded area and you can bring the water down. To do this I made two different maps, one with water and one without, but other than that they are identical. When you interact with an event you swap to the other map, but the problem is there is a boat on one. I tried to move the vehicle to the next map since the coordinates would lead to the same place, but I couldn't find a way to save the vehicle's X and Y in a variable. Does anyone know of a way to do this with vanilla RPG Maker or do I need a plugin?
How do I turn a vehicle's X and Y coordinates into a variable?
RPG Maker MZ SupportIn the Script field of Control Variables, you can put
or
Code:
$gameMap.vehicle("boat").x
.yOriginal thread: https://forums.rpgmakerweb.com/threads/how-do-i-turn-a-vehicles-x-and-y-coordinates-into-a-variable.171683/