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

Script to keepTokenB relative to TokenA? When I move A, B should move the same

1679183694
Looking for a script that would let me link one or more secondary tokens to a ‘leader’ token. When someone moves the ‘leader’ token, other tokens should keep the same relative distance. I tried “Marching Order” from the mod library, but it is not working (not even menu will show up).
1679237266
I'm using Marching Order and it is working fine. When a mod doesn't seem to be working, one of the first things to check is that the API sandbox hasn't crashed. Because it will.
1679238122
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Also (this is common with a lot of scripts), make sure that the player flag is set to the page you are using.
1679240529
With this script, the player flag doesn't seem to matter. But good call.
1679241120
Everything seems to be in order, and yet !showMarchingOrderMenu gets no effect. Console output: {"who":"error","type":"error","content":"Unable to find a player or character with name:  <div style="}
1679243905
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Do all of the tokens selected represent character sheets? Or do the tokens, sheets or player names contain any nonbasic characters like quotes or punctuation?
1679256670
keithcurtis said: Do all of the tokens selected represent character sheets? Or do the tokens, sheets or player names contain any nonbasic characters like quotes or punctuation? Yes they have sheets, no strange names. And its even the basic menu that's not opening. I also recall another script called something like 'Carry Tokens', same author, it didnt work for me either.
1679262297
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Another thing to try is to see if there is something specific about interaction with other scripts in the game, by creating a test game (you can make a copy of your existing game) and only using that one script. If it works there, it narrows the problem down to something you might be able to account for.