You can connect the maps between each other using "teleporters" - furniture objects on the map that, when stepped on, "transport" the character to another map. In TheoChat we use animated arrows as "teleporters".
In order to add "teleports" to your own map, you have to place the "teleport" furniture on the map in Map Editor. You can use our arrows or any other furniture. After you save the XML file with your map, open it and locate that furniture's line in the code. You can locate the arrows using it's ID (libItemID="66"):
<f col="4" row="4" libID="2" libItemID="66" libFrame="8" oWalkable="teleport" destRoom="12" destTile="7,14"/>
Here is the list of parameters you have to add/modify:
- * libFrame="8" - indicates the frame of the furniture object (in the case when you use multi-frame furniture). With our arrows those frames are used for different directions. "8" corresponds to the Constants.DIR_UP_LEFT (upper left corner) direction.
- oWalkable="teleport" (or oWalkable="10") - (mandatory) the most important parameter that transforms the furniture into a "teleport".
- destRoom="roomName" - the destination room name (make sure you use unique names)
- destTile="7,14" - (optional) indicated the destination tile on the new map on which the character will land on (or somewhere around it, if that tile is taken). If you skip this parameter the character will be placed on a random available tile.
|