Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Work in Progress: Teleport Update

1745702954
Pat
Pro
API Scripter
With the experimental sandbox branch option of graphics being able to copy for instances of marketplace images, I've updated the Teleport script as I'm testing - I've done a few other cleanups, too.&nbsp; For cross-page teleport, there no longer needs to be a token on the target page as long as other conditions are met (see following) For cross-page teleport, there was a potential bug when trying to teleport graphics that had no associated character sheet For cross-page teleport,&nbsp;multiple tokens with the same character sheet would not teleport properly - it now distinguishes based on sheet + name For cross-page teleport,&nbsp;tokens with no character sheet but uniquely named could not duplicate or find existing tokens - now they can (provisionally) For cross-page teleport, tokens now duplicate set status markers from the teleporting token - they did not before Still not corrected:&nbsp; Combining player ribbons back into party ribbon (still working on it)&nbsp; Duplicating set auras <a href="https://github.com/Gritmonger/teleport_revised/blob/main/teleport.js" rel="nofollow">https://github.com/Gritmonger/teleport_revised/blob/main/teleport.js</a> To use the capability of duplicating marketplace art tokens, you'll need to set your sandbox to experimental. To do this, go to the root Mod select tab on your mods page ("Mod Library") and select the drop-down that says "API Sandbox Version" and set it from "Default" to "Experimental".&nbsp;
1745703631
Pat
Pro
API Scripter
Additional to-do:&nbsp; Make an option for cross-page to pop-up a confirm for people with multiple tokens on the same page (say, pets, mounts, summons, etc.)&nbsp; Potentially make a player-teleport command (to move players only) to allow for a toggle on player teleport on token teleport (options)&nbsp; Make it a chat command for better accessibility to teleport players/player ribbons, with restrictions potentially (determine by GM placing a teleport token on pages players can teleport to)&nbsp; Potentially develop an interface/popup to allow a selection of potential player-accessible pages (say, an inventory page, or a map page that players can freely teleport from-to)&nbsp;
1745732220

Edited 1745732240
bit off topic,&nbsp; is there any cons (in general, outside of your api) to using experimental? didn't realize we got 2 variation.&nbsp;
1745734545
Pat
Pro
API Scripter
As far as I know, Experimental may be a) unstable as it's not part of a common release and may have bugs and b) anecdotally some folks will have their sandbox switch back to default on game restart or after a period of inactivity, so if you have a script reliant on an experimental feature it may not work. Additionally, any scripts with experimental protocols may eventually become obsolete if the features you're using in experimental get changed or removed.&nbsp;
1745799958

Edited 1745811560
Pat
Pro
API Scripter
Reported bug with mutli-page teleport pads, working currently, will post here when the cause is determined, and what fixes are available.&nbsp; So far: multi-teleport of multiple tokens of multiple statuses in Experimental and Default on Jumpgate: Had one instance where multiple global pad references were lost, but have been unable to replicate the circumstance. Attempted delete of teleport token, which invokes clean-up of tokens to remove references, but this did not trigger the same circumstance Put in new safety measure to prevent accidental global teleport of teleport tokens, will put in the same for local teleport, not up on the new build yet.&nbsp;