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

[Help] Measuring Formulas

1594933191
Randy Knapp
Pro
Sheet Author
I cannot figure out if the API is capable of creating a new measuring formula. The game I am creating has a custom measuring algorithm but I don't see how to add a new way to measure. Any suggestions?
1594935789
The Aaron
Roll20 Production Team
API Scripter
You can look at my Measure script for what the API is capable of in that regard. You can't add new methods to the tool, but you can perform your own calculations given two (or more) points on the page. In that script, I'm measuring between tokens and using the configured formula, but you could imagine using your own (logarithmic distance or thresholds or whatever). You could also create a marker and drag it about providing a measurement on the page for its journey, etc.  
1594940984
Randy Knapp
Pro
Sheet Author
Thanks, that helps a lot.