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

[Request] Script to announce distance measured with the ruler

January 02 (8 years ago)
Jen
Pro
Any chance there's a way to use the API to announce the distance measured with the ruler tool over in the chat section?

Could be a handy alternative fix for this Suggestion: 
https://app.roll20.net/forum/post/1244188/the-size-of-the-distance-measurement-should-scale-with-zoom-levels-ruler/
January 02 (8 years ago)
Lithl
Pro
Sheet Author
API Scripter
The API can't react to using the measurement tool, but it could report the distance you moved a token by.
January 02 (8 years ago)
Andrew C
Marketplace Creator
You might also be able to get away with a kind of 'target Token and a vector finder.

Obj A = Target, Obj B = Shooter
Choose Obj B and tell Script it is the Shooter. Click on Obj A.
API Calculates distance based on Obj positions.
Dump it in chat as "((Target)) is ((number)) ((unit lifted off map settings)) from ((Shooter))".
January 02 (8 years ago)
Jen
Pro
Ah-hah, this ought to help: https://app.roll20.net/forum/post/537763/script-range-finder
January 03 (8 years ago)
http://imgur.com/a/Mkc2k

Image album full of targeting arrows and pointers. Useful for making tokens and giving players access to, which work better than pinging the map. The pointers and targeting reticules stick around. That way you can see what the players are pointing to instead of having to ask them to re-ping it if you were looking away. Also useful with the range finder script if you want to find the range if there are no tokens to target in that area.