User Tools

Site Tools


linking_maps_tutorial

This is an old revision of the document!


Linking Maps Together


(Work in Progress)

This tutorial demonstrates how to link one map to another with the use of a script, for example to link a dungeon entrance tile in an wilderness map to a separate dungeon map. Generally, a hand-written script is the quickest and most convenient approach for this type of scenario, however the guide will cover both the Quick Script method and the alternate approach of creating a visual script in the Script Editor.

1) Open the destination map that you'd like to link to in the Map Editor and switch into “Edit” mode. In this example, I will be linking to a dungeon map.

2) Locate the the target tile that you want the player to be positioned on after the map has loaded (in this case, the stairs), then right-click on the tile and select “Copy (X,Y,Z) Coordinate” from the popup menu. This will copy the coordinate of the selected tile onto your system's clipboard to be used in a later step.

3) Open the map you will be linking from (the wilderness map) in the Map Editor and locate the tile that should trigger the destination map to be loaded when the player steps onto it. Using our example, this would be the dungeon entrance tile. Right-click on this tile and select “Properties” from the popup menu.

Select Quick Script from the Script dropdown box and then click the pencil icon to start editing the Quick Script in the Quick Script Builder.

In the palette list on the left, double-click the Load Map function to add it to the script. You will want to change the function parameters (map name, X,Y,Z coordinate, and player direction) to the desired values. For the X,Y,Z coordinate, you can highlight the default values of “0, 0, 0” and then press Ctrl+V to paste in the target coordinate that you copied earlier.

Click OK to close the Quick Script Builder and then close the Properties window. If markers are enabled in the Map Editor, you'll see a script marker appear over the selected tile indicating that there is now a script attached to the tile.

Save the map, and then follow the same procedure to make the reverse connection (for example, linking from the dungeon back to the main starting map). The player will now be able to traverse back and forth between the two maps!

linking_maps_tutorial.1501113576.txt.gz · Last modified: 2017/07/26 16:59 by justin