
Teleport is up in one-click.
Cross-page Teleport setup using Global Teleport Pad List
New version 1.2.2 is up on one-click, but only works properly (as version 1.2.2 with all features) if imported instead of added.
^ This has been corrected and it should now work from one-click. Thanks to The Aaron!
This version keeps tokens which are trying to move off of a teleport token and don't make it in a single movement, or are on a very large target pad and move around within it, from teleporting inadvertently.
Link to post
Version 1.2.1
This version corrects a crash due to invalid data being present in a teleport token, and keeps player tokens from auto-teleporting if they are already on a teleport pad and have a graphic:change event other than movement (rotation, add condition, etc).
Also, has a query button to confirm removing deleted teleport pad references from all other teleport pads.
Also a fix for cross-page teleport (still unstable, still a work in progress)
(legacy installation instructions for in-development gist)
The current version supports:
- Creating teleport pad tokens. Names do not have to be special and are expressly so the creator can identify them, and can be changed at any time.
- Teleporting a selected token to a teleport pad with chat buttons
- Setting up auto-teleport by setting a teleport pad's destination to another teleport pad
- Setting up two-way auto-teleports (pads that are linked to each-other)
- Setting up many-to-one teleports (many teleport pads can have the same target teleport pad)
- Setting up one-to-many teleports (one teleport pad has many targets; toggle between random (a random target pad is selected out of the many targets) (default) and select (token's player is presented with a list of the destination teleport pads as a list of the names given to a teleport pad in a chat button)
- Setting up token keys on teleport pads (status indicators) that player tokens have to match to auto-teleport (this does not stop GM manual teleport through the chat menu)
- A special feature where having one or more destination tokens from a one-to-many with token keys prevents them from showing up in the select list. I.e. if the player doesn't have matching status indicators, a destination is kept "secret" from the drop-down.
- Cross-page teleport: all of the above features supported for cross-page teleport. Caution: the API implementation appears to not have the same status as the drag-drop implementation. Much like the jukebox, where a track started by the Jukebox controls can't be turned off by the API, an individual player ribbon moved by drag-drop cannot be moved by API. Additionally, API individual player ribbon moves are not retained if the player logs off/leaves the game as normal, unlike drag-drop operations. A returning player who was on another page due to API will be automatically re-merged with the main Player ribbon. We are investigating the difference at this time, but it appears the API has lost its access to the "real" player status.
- Individual teleport pads can have special effects selected from a series of drop-down menus to perform effects when a player auto-teleports to them.
- Player tokens that teleport through the GM using the chat buttons or through auto-teleport get an invisible individual ping by default. The invisible ping is performed by temporarily setting their player color to "transparent" and then re-setting it after the ping.
- Individual teleport pads have optional text that is activated in chat on a player token auto-teleporting. It does not activate on the GM chat button teleport, since it is from a "sending" pad. Sending pads send chat to text, receiving pads activate optional special effects.
- Individual teleport pads can be restricted from their usual auto-teleport (if they have a linked pad) without deactivating all auto-teleport by turning them off through the chat button menu. This does not stop GM chat button activation, just auto-teleport.
Hello, new scripter here.
Yes, there are teleport scripts out there - I wanted to try creating one instead of modifying one, so I started from scratch. The algorithm for detecting a token intersecting with a teleport pad is not complete, but teleport pad management I think is coming along nicely. Using this menu system, you can create one-way portals, chained portals, chained portals that flow into one-another (many-to-one in one direction), the plan is for including one-to-many as a randomizer (you will eventually be able to link one portal to a list of other potential portals: if it detects more than one linked portal, it goes into randomizer mode). It has portal locking, but not portal keys yet (I need to look into how to implement this with custom tokens, for example), and placeholder functions for special FX and text output.
It is mostly through chat buttons, you can copy and paste portals too as all of the data is stored in the token.
I hope to keep updating this thread with the most current version and have people give feedback.
Once pasted in and running, type "!teleport --help" to get started. Hopefully the chat buttons and navigation are clear, the small buttons have mouseover text/titles to explain their function, and I've included chat messages for common fail conditions.
Edited to add: New checks and features on multi-selected target pads.
Link to Installation Instructions:
https://app.roll20.net/forum/post/9436375/script-teleport-from-scratch-teleport-token/?pageforid=9460991#post-9460991