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

Dynamic Dices

I'm creating a simple formulae for the spell Fire bolt, where the damage increases at 5, 11 and 17 levels, here is the formulae: (floor((@{sorcerer_level} - 5) / 6) + 2) it is simple and worked fine, but how do I convert the number I receive to the number of dices that must be rolled, I tried (floor((@{sorcerer_level} - 5) / 6) + 2)d10  but did not worked, and I really dont know how to do it
1454559625
The Aaron
Roll20 Production Team
API Scripter
This worked for me: [[(floor((@{sorcerer_level}-5)/6)+2)d10]] Are you getting an error?
no error message, it is just making the math ( returning 1, 2 or 3) but the d10 is not rolling, like 1d10, 2d10,3d10
The Aaron said: This worked for me: [[(floor((@{sorcerer_level}-5)/6)+2)d10]] Are you getting an error? this way not worked, but I tried using what u made and this way worked: [[(floor((@{sorcerer_level}-5)/6)+2)]]d10
You can't use floor in a dynamic dice roll... atleast not without nesting it... try [[[[(floor((@{sorcerer_level}-5)/6)+2)]]d10]]
after the nesting it worked perfectly, thanks