User Tools

Site Tools


linking_maps_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linking_maps_tutorial [2017/07/27 11:20] justinlinking_maps_tutorial [2017/11/07 11:27] (current) justin
Line 2: Line 2:
 ---- ----
  
-This tutorial demonstrates how to link one map to another (for example, linking a dungeon entrance tile in a wilderness map to a separate dungeon map) with the use of a simple script. Generally, a hand-written script is the quickest and most convenient approach for this common type of scenario, however this guide will cover both the [[Quick Script]] method and the alternate approach of creating a visual script in the [[Script Editor]].+This tutorial demonstrates how to link one map to another (for example, linking a dungeon entrance tile in a wilderness map to a separate dungeon map) with the use of a simple script. Generally, a hand-written script is the quickest and most convenient approach for this common type of scenario, however this guide will cover both the [[quick script]] method and the alternate approach of creating a visual script in the [[Script Editor]]. 
 + 
 +<WRAP center round info 100%> 
 +You can now also use the "Link with Map" shortcut available from the Map Editor's right-click menu to easily generate the necessary quick scripts. To do so, select a tile in one map, then right-click the destination tile in the other map and choose "Link with Map" from the popup menu. 
 +</WRAP>
  
 **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. **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.
Line 16: Line 20:
 {{:wiki:link_map_tut_02.png?nolink|}} {{:wiki:link_map_tut_02.png?nolink|}}
  
-**5)** Select [[Quick Script]] from the Script dropdown box, then click the pencil icon to start editing the script in the [[Quick Script Builder]].+**5)** Select "Quick Scriptfrom the Script dropdown box, then click the pencil icon to start editing the script in the [[Quick Script Builder]].
  
 {{:wiki:link_map_tut_03.png?nolink|}} {{:wiki:link_map_tut_03.png?nolink|}}
Line 24: Line 28:
 {{:wiki:link_map_tut_04.gif?nolink|}} {{:wiki:link_map_tut_04.gif?nolink|}}
  
-**7)** Click OK to close the [[Quick Script Builder]], then close the Properties dialog. If markers are enabled in the [[Map Editor]], you'll see a marker icon ({{:wiki:script_lightning.png?nolink|}}) appear over the selected tile indicating that there is now a [[Quick Script]] attached to the tile.+**7)** Click OK to close the [[Quick Script Builder]], then close the Properties dialog. If markers are enabled in the [[Map Editor]], you'll see a marker icon ({{:wiki:script_lightning.png?nolink|}}) appear over the selected tile indicating that there is now a [[quick script]] attached to the tile.
  
 {{:wiki:link_map_tut_05.png?nolink|}} {{:wiki:link_map_tut_05.png?nolink|}}
  
-**8)** I will also demonstrate how to visually create the same script using the [[Script Editor]]. If you've already completed the [[Quick Script]] approach, you can still follow along to learn, or skip ahead to step 12 if you'd prefer.+**8)** I will also demonstrate how to visually create the same script using the [[Script Editor]]. If you've already completed the [[quick script]] approach, you can still follow along to learn, or skip ahead to step 12 if you'd prefer.
  
 **9)** Click the "New Resource" button ({{:wiki:new_resource.png?nolink|}}) on the [[Game Explorer]] toolbar. Select "Script" for the type, then enter a name for the script (for example, "load_dungeon") and click OK. **9)** Click the "New Resource" button ({{:wiki:new_resource.png?nolink|}}) on the [[Game Explorer]] toolbar. Select "Script" for the type, then enter a name for the script (for example, "load_dungeon") and click OK.
linking_maps_tutorial.txt · Last modified: 2017/11/07 11:27 by justin