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

[PF] Help with a class ability macro

Hi, I know nothing about Javascript or CSS so I'm trying to fumble my way through the character sheet for Pathfinder. I'm playing a warpriest and trying to put a macro into the Pathfinder sheet to get my Fervor ability to work. I need it to roll 1d6 for every 3 levels I am past second level, but trying "Heal [[((@{class-0-level}-1) / 3)d6]]" isn't working - I need to find a way to get the output to always round up, so 5/3 rounds up to 2 instead of down to 1 for example (Fervor is 1d6 at 2, 2d6 at 5, 3d6 at 8, etc). Any advice is appreciated!
CheshirePhoenix said: I need to find a way to get the output to always round up I'm sure you'll be pleased to know that the ceil() function does exactly this! Heal: [[ [[ ceil((@{class-0-level} - 1) / 3) ]]d6 ]]"
So ceiling and floor round up and down? Thank you!