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

Macro Math Question (Square Roots)

I can't tell if this is a bug or a feature that is not yet supported but... I have been trying to write a quick macro (not API) to take in two variables (height and depth) and result in the distance traveled. My games involve a lot of 3D combat and having a quick macro that everyone can use to determine the distance between them and the target based on the old Pythagorean formula. There is a similar one for height, width and depth (just solving for the hypotenuse of one for the side of the other). The problem comes when doing the square roots. It appears that there is no square root function or exponent function in the math syntax for macros. Is this intentional? And if not can someone detail the proper syntax? Thank you. Dan.
1391467648
Gauss
Forum Champion
There is no square root function in Roll20 at this time.
If they have exponents, maybe ^(.5)
the exponent symbol ^ came up with a syntax error. Is there plans to add an exponent option?
1391511274
GiGs
Pro
Sheet Author
API Scripter
When there don't seem to be plans for a proper rounding function, I very much doubt you'll see an exponent function outside the API.