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

Floor( macro question

I'm not getting this to work, and not understanding why... this is pathfinder sheet trying to build a macro that rolls a number of d6's equal to half the character level rounding down (it defualts to rounding up without the floor( this is what I'm working with: [[ Floor( (@{class-0-level}/2) )d6]] also tried: [[ (Floor( (@{class-0-level-}/2) ))d6]]
1551403909

Edited 1551403936
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
To roll dice, it needs a number or something that has been evaluated to a number. Try this: [[ [[floor(@{class-0-level}/2 )]]d6]]
thanks that seem to have worked and I even get why it works