mahem1 wrote:how do you link teleporters that are in a group.
mahem1 wrote:And the wiki is pretty vague about the '*' character in links. How does that character work?
You have to know a bit about wildcard characters to understand that. A "*" character means anything that can fit with the other specified parameters make a match.
Here is an example: Let us say you have seven teleporters named the following:
Code: Select all
teleporter1
tele
teleporter2
Fred
tower_top
tower_bottom
teleporterer
Now, if we wanted to link tele to teleporter2, we would do something like this:
Code: Select all
link
from tele:f
to teleporter2:f
end
Simple enough, right? Now what if we wanted to have it
choose between teleporter1 or teleporter2 randomly? We could easily do this:
Code: Select all
link
from tele:f
to teleporter*:f
end
Or this:
Code: Select all
link
from tele:f
to teleporter?:f
end
In the first example, teleporter* will take anything with the word teleporter in it, and anything after the word teleporter will be considered. This makes teleporter1, teleporter2, and teleporterer all matches. In the second example, a "?" character is used to make only one valid character match. This means only teleporter1 and teleporter2 would be considered. The equivalent for teleporterer to work would be a match like this: teleporter?? which would only select teleporters with two exact characters.
This may sound complicated, but let's see one more:
In this one, the two asterisks will expand for anything before and after
re. Teleporters F
red and Teleporte
rer could be selected.
One final note is that teleporter links are only determined
On map startup. This means once they are picked between a select number of teleporters, it will always teleport you to the same spot until the map is restarted, so the randomness can only be taken so far.
As far as linking teleporters in groups, that is impossible. Even naming them inside of groups and linking them is not possible. All teleporters must be separate and have their own unique names outside of a group in order to work correctly.