I am working on a World Map for players to click on to get transferred to different maps within the game. This is a rough draft of what I am working with. I need to set it up for when a player clicks on any of the setup regions, they are transferred to that map. I am still very new to this so I am not exactly sure what kind of Event I need to create to accomplish this. Any help would be greatly appreciated. Thank you ahead of time!
Transfer Player from World Map to setup Regions
RPG Maker MV SupportCan anybody answer this for me? I am stuck!
Start with a parallel process and a conditional branch that using the script line
next, under control variables we're going to set a variable to the region id using the script operand
So basically, when the player touches or clicks the map it'll convert the screen coordinates to map grid coordinates and get the region id of that tile.
With the Region ID stored in a variable you can proceed to transfer the player based on that.
TouchInput.isPressed()next, under control variables we're going to set a variable to the region id using the script operand
$gameMap.regionId($gameMap.canvasToMapX(TouchInput.x),$gameMap.canvasToMapY(TouchInput.y))So basically, when the player touches or clicks the map it'll convert the screen coordinates to map grid coordinates and get the region id of that tile.
With the Region ID stored in a variable you can proceed to transfer the player based on that.
You could also save the Region ID to a variable from “Get Location Info…” on the third Event tab. Just make sure you have the destination X and Y stored to variables and that your Region ID matches the Map ID for where you’re trying to send them.
Do you want to transfer when the player clicks on the area, or when the character walks into it?
Original thread: https://forums.rpgmakerweb.com/threads/transfer-player-from-world-map-to-setup-regions.138140/