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

Twin Script (by The Aaron) Troubles

Hi There, Brand new to APIs here, and not terribly tech-savvy. I'm hoping to use the Twin Script, written 9 years ago by The Aaron, to have multiple copies of the same token move simultaneously on different maps (this is for a shifting cave system on The Elemental Plane of Earth).  Unfortunately, I can't seem to make it work.  I've plugged in the token IDs (I'm only using two for my test), but the two don't seem to be twinning. If anyone can help, I would greatly  appreciate it. Thanks :)
1730813685
Andrew R.
Pro
Sheet Author
Is this a Jumpgate game? Because I don’t think a Mod like that will work with Jumpgate. They made a change that breaks things. 
1730832700
timmaugh
Pro
API Scripter
Actually, I just tested this in a Jumpgate game, and the Twins script does work (at least the version I got off of  Aaron's GitHub repo ). (The Jumpgate change they made to reverse the points on paths is all the more indefensible in that it doesn't affect all objects -- like tokens -- on a map.) But, Twins should work. You have to establish the connection between 2 token with a command like: !twins -N1234567890abcdef -OAxNdXrSkdW-OAGRcsX Then when you manually move one token, the twinned token should also move. Just running the command to "twin" the tokens doesn't make one token mirror the other (ie, match location). You have to instigate a manual change to a token to have the matching twin (on another page) match it. If you are still having trouble, post back with your actual command line, as well as a description of what is happening in your game. Now, with the script as written, you can only "twin" 2 tokens... so, as far as getting multiple tokens connected, you're going to either have to get creative, or get the script changed. Looking at the script, I don't think it would take too much to change it (so that it worked with multiple sets of tokens), but since it's Aaron's script I'd want to check with him to see if he wants to do it. Let me reach out to him and see if he has the bandwidth to do that.
Thank you so much for your replies thus far! I am not using Jumpgate.&nbsp; I only just got my Pro Tier subscription, and haven't had a chance to look at that yet, and I'd really rather wait until it's out of Beta before considering using it for my games. I tried it a few more times, and it doesn't seem like it's working.&nbsp; Do I need to install or set anything up before using the script? The script I'm using is off a post I found from 9 years ago (found here: <a href="https://app.roll20.net/forum/post/1631638/script-request-linking-tokens-on-seperate-maps/?pageforid=1634979#post-1634979" rel="nofollow">https://app.roll20.net/forum/post/1631638/script-request-linking-tokens-on-seperate-maps/?pageforid=1634979#post-1634979</a> ).&nbsp; I inputted this into chat:&nbsp;!twins -OAuMGZepx3amc5dxQrY -OAuMb9HdWrrkq3HV_DT It's good to know this will only work for linking 2 tokens together.&nbsp; I was hoping for 6.&nbsp; I'm running this game on Thursday night (2 nights from now), so I'll plan on just moving tokens manually.&nbsp; I'll set up a "coordinates" system on the GM layer and reference that during the course of play.&nbsp; It'll be a bit clunky, but will probably work closer to what I want to achieve in the end. I'd still love to know if this kind of thing can be achieved in the future, or if there's a more efficient way go going about it if anyone has an answer, but I really do appreciate the feedback I've gotten so far :) .