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

[Question] Ruler Waypoint API

I was wondering, can a script be developed that allows you set multiple way points while using the ruler, perhaps using TAB to set the way point. The ruler would continue to keep track of the length of the plotted movement. You could set CNTL-Z to undo the previous way point. Now why would this be a good thing? It would allow people to plot movement distance around corners etc. If this is a doable script further development would be to allow editing of the map layer to set movement cost for terrain. Allowing the area to be selected and its movement cost (probably set as  variable of some type). The ruler would then take this variable into account when the movement is plotted. This would allow plotted movement around corners and take into effect different types of terrain.
1371379914
Alex L.
Pro
Sheet Author
You cant use keyboard shortcuts at this time.
Konrad J and I both created scripts for tracking movement. Both allow multiple waypoints during movement to track it. In both, if you don't like the result you can restart the turn. This does what you are suggesting, just not using the ruler but instead using tokens. That said, you certainly could add code to it to check for hindered terrain in the path and adjusting the calculations for speed. It's not easy but doable. I might toy around with it when I get time.