ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/Developers/teleporters
Revision: 1.2
Committed: Thu Sep 7 21:42:52 2006 UTC (17 years, 8 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Moved documents to doc/historic

File Contents

# Content
1 Teleporters
2
3 'Updated 11/5/95 to include full documentation on teleporters (mwedel)'
4
5 Teleporters operate in a manner similar to exits - when something is on a
6 teleporter, and the teleporter gets its movement, the object is then
7 teleported. The main difference between that and normal exits is that normal exits
8 transport the person either when they step on it (auto_apply), or when they
9 apply it. Teleporters operate without user control - you will get
10 teleported whether or not you want to. Also, teleporters have speed associated
11 with them - the way speed works.
12 with teleporters is the same as with other objects - when the teleporter
13 gets its chance to move, it teleports at that time. Thus, if a teleporter
14 has a speed of 0.05, it would teleport something once very 20 ticks.
15
16 Teleporters can be set to operate in three ways:
17
18 1. Slaying (new map) with destination coordinates. In this case, it
19 will teleport the player to the new map.
20
21 2. Destination coordinates, but no maps supplied. In this case, it will
22 teleport the object to the same map, new coordinates.
23
24 3. No coordinates or map supplied.
25
26 Note that there is a difference between #1 and #2 above even if the map
27 supplied is the map you are on. If a map is provided, even if it is the
28 same map, only players will be teleported. In the case of #2, all objects
29 will be teleported. Thus, in most cases, if you are doing a same map
30 teleport, you want to leave the slaying field blank, so it will teleport all
31 objects. In the case of #3, it will teleport you to any teleporter that is with 5
32 spaces of the source teleporter. Note that for this to work, the destinatin
33 teleporter must either be the first or second object on the space (ie, if a
34 teleporter has 2 objects beneath it, it will not work). Which teleporter
35 you go to is randomly determined.
36
37 Now for special teleporters:
38
39 By default, teleporters teleport anything which steps
40 on them to x,y,map (see map editor) If you'd like to make
41 teleporters trigger off of something, you must:
42
43 * make sure that the teleporter object has a speed of 0.
44 pentagrams have a speed of zero by default, other
45 teleporters must be modified using the map editor
46
47 * give the teleporter a connected value. You may use
48 any object to trigger the teleporter. This includes
49 magic ears, which recognize words, buttons, levers,
50 altars, pedestals, perhaps even monsters.
51
52 When the connected object is triggered, the teleporter
53 will trigger also, teleporting whomever is on it
54 someplace.
55
56 NOTE: In order to teleport items other than players, the teleporter can not
57 have an exit path set. This means that it must be moving the objects
58 between the same map. Even if the exit path is set to this same map, the
59 teleporter will not work properly for transporting objects.