Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:Auto Teleporting and Chat Based Teleporting"

From Roll20 Wiki

Jump to: navigation, search
(tagged as "discontinued API")
(API no longer available, redirect to Teleport(closes existing API))
 
Line 1: Line 1:
{{script overview
+
#redirect[[Script:Teleport]]
|name=Auto Teleporting and Chat Based Teleporting
+
<!-- api discntinued, link to best replacement
|author={{user profile|84478|Josh}}
+
|version=1.3
+
|lastmodified=2013-06-10}}
+
  
'''Auto Teleporting and Chat Based Teleporting''' allows the GM to teleport one or more characters to a location based on a token placed on the GM layer of the map. Manual teleportation is achieved with the API command <code>!Teleport</code>. Automatic teleportation is toggled with <code>!AUTOTELEPORTER</code>. Both commands are GM-only.
+
don't remove redirect, help center still links to this outdated page -->
 
+
=== Syntax ===
+
{{syntaxbox top|formal=true|Auto Teleporting and Chat Based Teleporting}}
+
{{API command|Teleport}} {{API parameter|name=target}}, {{API parameter|name=characters}}<br>
+
{{API command|AUTOTELEPORTER}}
+
{{Formal API command|
+
{{token|S}} {{rarr}} {{API command|Teleport}} {{token|target}}, {{token|characterList|-}}
+
{{token|target}} {{rarr}} {{string|-}}
+
{{token|characterList}} {{rarr}} {{token|character}}{{token|characters|-}}
+
{{token|character}} {{rarr}} {{string|-}}
+
{{token|characters}} {{rarr}} {{epsilon}}
+
{{token|characters}} {{rarr}} , {{token|characterList|-}}
+
}}
+
{{syntaxbox end}}
+
 
+
{{param description top}}
+
{{param description|name=target|value=The name of an object on the GM layer used as the teleport target location. }}
+
{{param description|name=characters|value=A comma-separated list of character names to teleport.}}
+
{{param description bottom}}
+
 
+
=== Installation ===
+
There are two configuration variables near the top of the script. You may alter them to customize the script functionality:
+
 
+
* '''Teleporter.AUTOTELEPORTER''' &ndash; The default state of the auto teleportation behavior. Use <code>true</code> or <code>false</code>. The autoteleporter state will not persist between sessions, so you should set this value to the state you intend to use most often.
+
* '''Teleporter.GMName''' &ndash; Set to the display name of the user with permission to use the teleportation commands.
+
 
+
==== Manual Teleport Setup ====
+
In order to teleport a token somewhere, you must have a named object on the GM layer. The object's name will be used as the first parameter to the <code>!Teleport</code> API command.
+
 
+
==== Automatic Teleport Setup ====
+
In order to automatically teleport tokens, you must have objects on the GM layer with a specific naming scheme. Each object's name should end with a number in the range <nowiki>[2, 9]</nowiki> followed by a capital letter in the range <nowiki>[A, I]</nowiki>. Linked teleporters need to have identical names, with the exception of the capital letter at the end, which should be unique among the set of otherwise-identical objects.
+
 
+
The number in the object's name indicates how many teleporters exist in the sequence. The letter in the object's name indicates what position in the sequence the object is located at. For example, a three-teleporter sequence might be named "stair3A", "stair3B", and "stair3C". Automatically teleporting tokens will loops through the sequence as they step on the squares that the objects are located on.
+
 
+
You can also create one-directional teleporters by having an incomplete sequence. If you have "stair3A" and "stair3B" but there is no object on the GM layer named "stair3C", tokens will teleport from A to B, but will not teleport from B to anywhere else.
+
 
+
=== Changelog ===
+
{{changelog version|1.3|2013-06-10|* Release}}
+
[[Category:Discontinued API Scripts]]
+

Latest revision as of 21:09, 20 September 2021

  1. redirectScript:Teleport