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

max for dice rolls

I am making a kinetic monk build. I want to put in the extra damage the kinetic fist dmg. It does 1d6 dmg for every 3 kinetic blast dice. I figured the max formula for the number of dice, max(1,floor(floor((@{level}+1)/2)/3)). First floor calculates the blast dice and the second for the fist. Not sure on how to assign that to be the #d6. I first tried [[max(1,floor(floor((@{level}+1)/2)/3))d6]] and it didn't work. Thoughts?
1670320380
GiGs
Pro
Sheet Author
API Scripter
Does max() work? You usually need to use the {num,num}kh1 construction. try changing this part d6]] to ]]d6 - putting the calculation of how many dice inside inline roll brackets. You can then wrap the whole thing inside a second set of inline roll brackets if you need the roll to be inline. But I think you have floor in there one too many times, you should be able to simplify that to something like [[{floor(@{level}+1)/6,1}kh1]]d6 or, if you need the whole thing inlining: [[ [[{floor(@{level}+1)/6,1}kh1]]d6]]
Thank you. I noticed one minor mistake and only noticed it while testing. The floor should include the "/6" otherwise it comes out as a fraction. For thos interested here is the fixed version [[ [[{floor((@{level}+1)/6),1}kh1]]d6]]