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

Crimson rite damage die

2*floor((@{level}+1)/6)+4 This is what it looks like in excel: Which is exactly what the crimson rite damage die should be at each level. However, when I roll /r 1d(2*floor((x+1)/6)+4) In roll20, no matter what x is, it always "rolls" 1. I am wondering what roll20-compatible macro would create a table like the above?
You need to put the calculation inside of an inline roll to get it to calculate before rolling the die result. /r 1d[[2*floor((@{selected|level}+1)/6)+4]] This will roll the desired formula using the selected token's level attribute.
1528403049
GiGs
Pro
Sheet Author
API Scripter
Try using inline roll brackets, like so /r 1d[[2*floor((x+1)/6)+4]] I assume you have x replaced with an attribute, like: /r 1d[[2*floor((@{attribute}+1)/6)+4]] or a query like /r 1d[[2*floor((?{Score?|1}+1)/6)+4]]
Using the [[...]] brackets works, thanks everyone.