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

Automatically Move Token?

September 29 (6 years ago)

Is there some way to make it so when a token lands on a certain square, it is automatically moved to another square elsewhere on the map? I am thinking staircases and the like automatically functioning.


Thanks!

September 29 (6 years ago)
The Aaron
Pro
API Scripter

Yup!  Look for the teleport script. I’ll drop a link when I’m back at my computer if you haven’t found it. 

September 29 (6 years ago)

Fantastic! Thank you!

September 29 (6 years ago)
The Aaron
Pro
API Scripter

I think this is the most recent thread: https://app.roll20.net/forum/post/6265365/script-map-teleporters-updated-w-slash-automated-demo-campaign/?pagenum=1


September 29 (6 years ago)

Hmm, whenever I input the github info, the API output console says "SyntaxError: Missing ) after argument list" after copying in all 269 lines.

September 29 (6 years ago)
The Aaron
Pro
API Scripter

Try using the Raw link: https://gist.githubusercontent.com/finalfrog/124f67ad84204546caf16fffd84115e4/raw/e11b9c1bf1f0a35e8f72b9f967fbb70b56d80801/MapTeleporters.js

If that doesn't work, PM me an invite and GM me and I'll come help you get it set up.  It's possible there is a problem with that version.