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 .
×

Angle Calculator

Is there a way to measure an incline in Roll20? We are considering using a system where height and precise measurements matter. External options like this exist that we can use, but if we can do it in game, that would be ideal. Note : We have a Pro membership, so if Mods are required, that's okay. Thanks!
Just the Pythagorean theorem if you have the horizontal and vertical distance is simple: &nbsp; You can use this directly in chat: [[ [[ [[?{A}**2]] + [[?{B}**2]] ]]**0.5 ]] Or if you want to get fancy (I borrowed the decimal portion from GiGs - thanks!): $[[0.computed]]&amp;sup2; + $[[2.computed]]&amp;sup2; = [[ round([[ [[[[?{A}]]**2]] + [[[[?{B}]]**2]] ]]**0.5*10)/10 ]]&amp;sup2; <a href="https://wiki.roll20.net/Dice_Reference#Math_Operators_and_Functions" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Math_Operators_and_Functions</a> <a href="https://app.roll20.net/forum/post/10723963/pythagorean-macro/?pageforid=10724111#post-10724111" rel="nofollow">https://app.roll20.net/forum/post/10723963/pythagorean-macro/?pageforid=10724111#post-10724111</a>
1776692479

Edited 1776692623
Or, if you like a slightly different output, you can create a macro like this, which doesn't need a script or even a Pro account: &amp;{template:default}{{name=Distance to Target}}{{Difference in Elevation:=[[?{Difference in Elevation (ft)?|0}]]ft}}{{Horizontal Distance:=[[?{Horizontal Distance (ft)?|0}]]ft}}{{Total Distance to Target:=[[round([[?{Difference in Elevation (ft)?}*?{Difference in Elevation (ft)?} + ?{Horizontal Distance (ft)?}*?{Horizontal Distance (ft)?}]]**0.5)]]ft}} Firing the macro will prompt for Difference in Elevation and Horizontal Distance, then produce this output in chat. The distance along the hypotenuse is rounded to the nearest whole number:
Wicked! Thanks, folks! 😍