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

"Pathinder by Roll20" sheet Spell Range Macro Question

1556816665

Edited 1556816697
My Group uses the "Pathfinder by Roll20" Sheet Okay I've been trying to streamline my Sheet so i don't have to edit each spell when i level or do a few secs of math each time i use a spell. Anyway i've run into a problem with the range macro for close range and the whole "+5ft. /2 levels" thing, the other ranges are fine cuz they are per level. the farthest i've gotten is this (Just copied from the range part of the spell) "Close [[@{class1_level} * .5  * 5 + 25]] ft." but i noticed that since i'm an odd level i end up with an extra 2.5ft. XD So my question is how do i get it to only add 5ft every even level? (i mean i could just round down to the nearest 5 but .... honestly it's just annoying me -_-* and i've looked at other posts having to do with this but they all are talking about the pathfinder community sheet and every time i try to use them i get a huge text wall in the chat of the full macro... not sure why
1556819623
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
well, you just need to round down your classLevel/2: Close [[floor(@{class1_level}/2)  * 5 + 25]] ft.
okay i'll give it a try. i did try the /2 but didn't do (or know about) the "floor" bit, i'll let you know if it works.... probably will XD
IT WORKED! Thank you for your help Scott C. :D