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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
Hi ! I've searched in the doc but i didn't found how to manage this case : Ask for a number and roll : number - ((number/12)+1)d12 Thx for your answers.
If you want to see the rolled dice, replace the outermost [[ ]] and start with /roll, like this: /roll ?{number|1} - [[ (floor(?{number}/12))+1 ]]d12 You must be using pretty big numbers for this roll to make sense!
@GiGs Thx i just find it Yes it's a custom game from a friend the system has pretty bad probabilities but we have fun and it's the most important.
I just noticed there's an unneccessary set of brackets in the expression. It doesnt make any real difference in this case, but if you want your code to be a bit more efficient: /roll ?{number|1} - [[ floor(?{number}/12)+1 ]]d12