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 .
×
Advertisement Create a free account

Is there an API script that lets you specify a master-token and a slave-token, and then have the slave clone either moves, rotations, or both?

1634313969

Edited 1634314305
Basically, I'm talking about a script that does almost the exact same thing as The Aaron's "Bump" script, except without necessarily having to keep the master-token and the slave-token in different layers :-) Just curious, because if the answer is "yes" then that would open up some very interesting possibilities indeed... :-D
1634314302
The Aaron
Forum Champion
API Scripter
Twins does this across pages.&nbsp;&nbsp; <a href="https://app.roll20.net/forum/permalink/1634979/" rel="nofollow">https://app.roll20.net/forum/permalink/1634979/</a> Script:&nbsp; <a href="https://github.com/shdwjk/Roll20API/blob/master/Twins/Twins.js" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Twins/Twins.js</a>
Thank you so much, that did it! :-D And also, big thanks for making it so wonderfully easy to modify your code! Even a Javascript newbie like me was able to open the code for Twins, remove the word "rotation" there at the beginning, and voila! I had exactly the script that I needed! :-D Once again, the magnitude of your awesomeness is shocking! SHOCKING, I TELL YOU!! :-D
1634329249
The Aaron
Forum Champion
API Scripter
Lol!&nbsp; No problem. =D
Stupid question : could "twin" be used on différnt layers rather than on different maps?&nbsp; The idea would be to link a token and a dl path so it interacts together. For example for a wall of fire that is not supposed to let people see through. Or a door you could rotate instead of opening fully... A few things like that could be handy if we can twin a token on the token layer and a related path on the dynamic lighting layer.&nbsp; Silly question probably but may be worth investigating...&nbsp; Thanks
1634436965
The Aaron
Forum Champion
API Scripter
Twins can't do that, but an API script could. The hardest part is the interface.&nbsp;