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

Help with "Auto Teleporting and Chat Based Teleporting" script.

1476897981

Edited 1476898035
Hi All, I've found the script, code here:&nbsp; <a href="https://gist.github.com/DarokinB/5806230" rel="nofollow">https://gist.github.com/DarokinB/5806230</a> written by DarokinB(Josh on Roll20&nbsp; <a href="https://app.roll20.net/forum/post/193270/script-au" rel="nofollow">https://app.roll20.net/forum/post/193270/script-au</a>... but I'm not getting it to work. It's 3 years old at this point with no updates, so I'm wondering if something was changed/disabled that does not allow it to work. My setup: Copied the script over to my game and set the GM name to my name. (Sandbox loads fine, no errors) Loaded in and verified the script was running. !AUTOTELEPORTER into chat says it's turning the feature on and off. I created two teleporter pods on the GM layer (1 grid square sized) named&nbsp;test2A &&nbsp;test2B. I move one of my player's tokens (set to "represent" a character sheet properly) onto that same spot on the map (token layer) and nothing happens. Furthermore, if I try !Teleport test2A, playerName nothing happens either. Any ideas? Is this out of date? Is there a different/better script out there? Thanks!
1476898188
The Aaron
Pro
API Scripter
Make sure the player ribbon is on the page where you are moving the tokens. &nbsp;It will only operate on that page.
1476898242
Silvyre
Forum Champion
I'd try this one: <a href="https://gist.github.com/shdwjk/387e647d627ce71a5fc93eab8babe5c8" rel="nofollow">https://gist.github.com/shdwjk/387e647d627ce71a5fc93eab8babe5c8</a>
The Aaron said: Make sure the player ribbon is on the page where you are moving the tokens. &nbsp;It will only operate on that page. ...Now that is a great tip in general, I was did not have the ribbon on the right page. (Setting up a new dungeon don't want players loading in) Silvyre said: I'd try this one: <a href="https://gist.github.com/shdwjk/387e647d627ce71a5fc93eab8babe5c8" rel="nofollow">https://gist.github.com/shdwjk/387e647d627ce71a5fc93eab8babe5c8</a> That one works for me! Thanks
1476899153
The Aaron
Pro
API Scripter
Yeah, on that second one, it's possible I fixed that limitation as it was a constant annoyance.. =D
1476899284
The Aaron
Pro
API Scripter
Yep, just verified, I removed that restriction. =D I also improved the collision detection. The original only worked if the moved token's top left corner was aligned with the marker's top left corner. &nbsp;This version operates when the center of a token enters the boundary of the marker.
1477288630
Sithun
Pro
Sheet Author
I can't get the autoteleporters to work (manual teleporting works just dandy). I wrote some debug-messages into to code to check for what the heck is going on, and it told me the NewX and NewY are the same as the "old" x and y coords. That was tested/debuged on a script you posted here:&nbsp; <a href="https://app.roll20.net/forum/post/3432348/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/3432348/slug%7D</a> I've not worked the debug-messages into the latest code Silvyre posted, but I'll experiment some more with it.
1477312039
The Aaron
Pro
API Scripter
My guess would be you haven't named the teleport pads correctly. &nbsp;The tokens need to have the identical names, but end in 2 special characters, a number and a letter. &nbsp;The number tells how many teleport pads there are, the letter tells the order for traversal.&nbsp; Examples: 2 teleport pads: Teleporter2A Teleporter2B 3 teleport pads: Bouncer3A Bouncer3B Bouncer3C Capitalization is important, so you can't use teleportPad2A and Teleportpad2b, etc.
1477327727
Sithun
Pro
Sheet Author
Apparently, the naming standard of the gm-layer tokens aren't readily apparent. So disregard my previous post. This is a correct name-format for the gm-layer tokens: Teleport[*unique name*][How many teleporters are linked together? 2-9][Which teleporter is this? A-I] Given the above format, "TeleportAttic2A" and "TeleportAttic2B" are appropriate names for gm-layer tokens, while "TeleportAttic1A" and "TeleportAttic1B" are not. The naming standard does not allow for "singleton" teleporters, which is what the second example describes. I can probably provide a graphical aid to the naming standard, but I don't know how many would find it usefull.
1477327810
Sithun
Pro
Sheet Author
Well, crap, I replied before I saw your response. Thanks for the help all the same! :D&nbsp;
1477328273
The Aaron
Pro
API Scripter
cool! &nbsp;Glad you got it working. &nbsp;I forgot about the Teleport preface!