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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

Rounding a number of dice to be rolled?

I've been playing around with the CEIL and FLOOR macros, and am having trouble with rounding a number of dice. My example includes the Cleric's Channel Energy Class Feature from Pathfinder RPG. Its formula for healing is basically "one-half your level, rounded up in d6s" I figure this should express ass "CEIL(@{Level}/2)d6" However Roll20 appears to not like this rounding of the number of dice. Is there a way to do this?
1400391228
Lithl
Pro
Sheet Author
API Scripter
/roll [[ceil(@{Level}/2)]]d6
I see. So the only way to make that work is if it is in an inline before the d6. Can you embed inlines? Perhaps an embedded macro would suffice...
Any way to have the entire formula as an inline?
1400554781
Lithl
Pro
Sheet Author
API Scripter
Unfortunately, no.
/roll (@{Level}/2)d6 automatically rounds to the nearest die (in this case, rounding up assuming integral levels). Drop the ceil entirely, your life will be richer for it. Specifically, you may either use: /roll (@{Level}/2)d6 or [[(@{Level}/2)d6]]