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

Need Help: Macro Outputting Value, Not Rolling Dice

I'm putting together a macro for a spell, but the spell's damage is based on caster level (CL), and the CL of the character is constantly in flux (due to their class's unique gimmick). The character builds "Combo" points, and adds half of their Combo to their CL (Ex: A Combo of 6 would add 3 to their CL). The spell the character is casting does 1/2 the caster's CL in d8s. I wrote a macro to calculate the characters modified CL, but I can't get it to actually roll that many d8s. Instead, it just spits out the character's modified CL. Hopefully someone can take a look and tell me what I'm doing wrong. In the following example I'm using CL 5, and Combo 2. The macro correctly outputs a value of 3 using ((CL+(Combo/2))/2). However, instead of rolling 3d8, it simply outputs the number 3. Thoughts? Suggestions?
1612195433
David M.
Pro
API Scripter
This seems to work, but the extra inline brackets hide the math leading up to the "3". [[ [[floor(floor(2/2) + 5/2)]]d8 ]]
Thank you so much! The lack of displayed math won't matter much, once I know the formula is correct. I spent hours toiling away at this. You're a real life saver!