This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Link: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
m Put this in a category so people can find it.  | 
				|||
| Line 17: | Line 17: | ||
In either of the from/to parameters, "*" or "?" can be used to make multiple matches. To specify which side of the teleporter you are linking you can use the ":f" (forward) or ":b" (backward) after the name of the teleporter. Ex: tele:f  | In either of the from/to parameters, "*" or "?" can be used to make multiple matches. To specify which side of the teleporter you are linking you can use the ":f" (forward) or ":b" (backward) after the name of the teleporter. Ex: tele:f  | ||
==Links for groups==  | |||
Links for [[Teleporter]] done inside a [[define]] are done by naming your [[group]].  | |||
 define blah  | |||
 teleporter tele  | |||
 position 0 0 0  | |||
 size .125 10 10  | |||
 border 1.5  | |||
 end  | |||
 enddef #blah  | |||
 group blah  | |||
 name green #important part  | |||
 shift 200 200 0  | |||
 end  | |||
 group blah  | |||
 name red  #important part  | |||
 shift -200 -200 0  | |||
 end  | |||
 link   | |||
 from green:tele:*  | |||
 to red:tele:*  | |||
 end  | |||
 link  | |||
 from red:tele:*  | |||
 to green:tele:*  | |||
 end   | |||
Your group must have a name as a reference.  | |||
==History==  | ==History==  | ||
Revision as of 22:46, 19 July 2012
A Link is a BZW object which creates a link (route) between two teleporters.
Links go in hand with teleporters.
Codelink name example_link from * to * end  | 
Valid parameters for a link are:
- from: From what teleporters
 - to: To what teleporters
 
In either of the from/to parameters, "*" or "?" can be used to make multiple matches. To specify which side of the teleporter you are linking you can use the ":f" (forward) or ":b" (backward) after the name of the teleporter. Ex: tele:f
Links for groups
Links for Teleporter done inside a define are done by naming your group.
define blah teleporter tele position 0 0 0 size .125 10 10 border 1.5 end enddef #blah group blah name green #important part shift 200 200 0 end group blah name red #important part shift -200 -200 0 end link from green:tele:* to red:tele:* end link from red:tele:* to green:tele:* end
Your group must have a name as a reference.
History
Editor Support
The link object is supported by all known editors.