| 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. (New coordinates must not |
| 23 |
be 0,0.) |
| 24 |
|
| 25 |
3. No coordinates or map supplied. |
| 26 |
|
| 27 |
Note that there is a difference between #1 and #2 above even if the map |
| 28 |
supplied is the map you are on. If a map is provided, even if it is the |
| 29 |
same map, only players will be teleported. In the case of #2, all objects |
| 30 |
will be teleported. Thus, in most cases, if you are doing a same map |
| 31 |
teleport, you want to leave the slaying field blank, so it will teleport all |
| 32 |
objects. In the case of #3, it will teleport you to any teleporter that is with 5 |
| 33 |
spaces of the source teleporter. Note that for this to work, the destinatin |
| 34 |
teleporter must either be the first or second object on the space (ie, if a |
| 35 |
teleporter has 2 objects beneath it, it will not work). Which teleporter |
| 36 |
you go to is randomly determined. |
| 37 |
|
| 38 |
Now for special teleporters: |
| 39 |
|
| 40 |
By default, teleporters teleport anything which steps |
| 41 |
on them to x,y,map (see map editor) If you'd like to make |
| 42 |
teleporters trigger off of something, you must: |
| 43 |
|
| 44 |
* make sure that the teleporter object has a speed of 0. |
| 45 |
pentagrams have a speed of zero by default, other |
| 46 |
teleporters must be modified using the map editor |
| 47 |
|
| 48 |
* give the teleporter a connected value. You may use |
| 49 |
any object to trigger the teleporter. This includes |
| 50 |
magic ears, which recognize words, buttons, levers, |
| 51 |
altars, pedestals, perhaps even monsters. |
| 52 |
|
| 53 |
When the connected object is triggered, the teleporter |
| 54 |
will trigger also, teleporting whomever is on it |
| 55 |
someplace. |
| 56 |
|
| 57 |
NOTE: In order to teleport items other than players, the teleporter can not |
| 58 |
have an exit path set. This means that it must be moving the objects |
| 59 |
between the same map. Even if the exit path is set to this same map, the |
| 60 |
teleporter will not work properly for transporting objects. |
| 61 |
|
| 62 |
You can restrict what a teleporter will act on by setting the 'subtype' field. |
| 63 |
It is a bitmask field indicating what to ignore. Normally the teleporter will act |
| 64 |
on the first non-floor object above it, but use the following values to ignore other |
| 65 |
object types: |
| 66 |
1 -- ignore non-player objects |
| 67 |
2 -- ignore player objects |
| 68 |
4 -- ignore non-mosters |
| 69 |
8 -- ignore monsters |
| 70 |
16 -- ignore no_pick objects |
| 71 |
|
| 72 |
You can also restrict a teleporter to a specific arch type by specifying the |
| 73 |
'other_arch' field. If this is set, the teleporter will only act on the matching |
| 74 |
arch type regardless of what else is above it. |