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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
I had an idea that it might be nice to be able to use the ruler in a macro, something like this: ~{<measurement title>, @{selected}, @{target}} And it would output the distance using your games ruler settings. Is this possible?
If something like this is possible, it would require the use of API, which is a Pro subscription level perk. I'll bounce this over to API and see what the scriptomancers have to say on the subject :)
<a href="https://github.com/shdwjk/Roll20API/blob/master/Me" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Me</a>... Select 2 or more tokens and issue either of the following commands: !wmeasure
!measure (The w version whispers to the player issuing the command) You'll get a list of distances (in map units) between the selected tokens.
Hey The Aaron, any chance this could be used by a "target" instead of "selected"? It would love to implement this into my macros. A player typically doesn't have the ability to select tokens except his own. This works great for a DM by the way. I like the output. Thanks
It actually already does work with target. =D !measure @{target|first|token_id} @{target|second|token_id} @{target|third|token_id} Just supply all the token ids as arguments to the command. =D
ohhh, I think my players would like that as well. (I'm just posting this so that it shows in my list of following as I don't know how to find these posts later.)