Connect two maps
connect_mapsLinks two RPG Maker MV maps by creating door events that transfer the player between them in both directions, validating both maps before writing.
Instructions
Link two maps with Transfer Player events in both directions in one call. A door event is placed on each map; stepping on (or pressing OK at) the door on map A moves the player to map B's spawn tile and vice versa. Give each side its door tile; add spawn when the player should appear next to the door instead of on it (always do this for doors drawn into walls). Both maps are validated before anything is written, and a door is refused if another event already stands on that tile (allowOverlap overrides). Use twoWay=false for a one-way link (map A's door only). Check the result with render_map_image (doors show as blue markers) and list_map_connections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| fade | No | black | |
| sound | No | Sound effect to play before leaving, e.g. {name: 'Open1'} | |
| twoWay | No | Create the return door on map B as well | |
| trigger | No | touch = player walks onto the door tile, action = player presses OK facing it | touch |
| doorName | No | Event name prefix; default 'To <destination map name>' | |
| allowOverlap | No |