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] Movement tracker v2.0

Hey all, I have changed the movement tracker, and made it easier to work with the new waypoint system. The problem I have noticed is that when people move their tokens, if they do not use the spacebar commands, then it erased the old movement from their turns. This script adds their old move to their current move list, thus logging all their moves, only resetting it when you move the initiative to the next token. This system is ignored when the initiative pane is closed. It also has a function to prevent tokens from being moved when not their turn. Because of easy scripting and token action buttons, I roll initiative for everything, so this does not cause a problem. Change the toggle for this (to true) to allow movement when not a token's turn. Here is a link to the gist: <a href="https://gist.github.com/DarokinB/8426111" rel="nofollow">https://gist.github.com/DarokinB/8426111</a>
To use this, just move the tokens normally without using the spacebar to toggle waypoints. Once you set a token down, select it and press spacebar and it will show you all the moves made, and the total distance based on your setting.
What a nice and simple script. Would be nice to be able to reset the entire tracking of a token without changing turn.
I agree, I think I will add a !MoveReset command.
1391772008
Konrad J.
Pro
API Scripter
This is so simple, great idea! It almost even fixes one thing about the way points. When using Roll20 waypoints and then pressing ctrl Z after you have placed the token down it takes you all the way back to where you started. It would be nice if it would just take you back one waypoint at a time. Its even worse, it takes you straight back as if it was another move so the distance increases. With your script it actually almost works. It takes you back a move at a time of course, but its still adding each backwards move as a new move so the distance and the waypoints increase. I think after you press the crtl Z your script is recording all the movements as it goes back. Since I don't think we can take control of keys yet we would have to give it the ability to go backwards via a chat command. Then put that command as a macro and you can just press the macro button to go backwards one waypoint. I might try that out?