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

Math Functions rolling problem

1535542279
Sad
Sheet Author
API Scripter
My TRPG  system roll look like floor(((@{resolve_sum})-1)/5)d10 but roll20 dont support  roll floor number.   /roll floor((7-1)/5)d10  [[floor((7-1)/5)d10]] Above code just got nothing. Is there any way to fix it?
1535551765
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Try this: [[[[floor((7-1)/5)]]d6]] I believe the formula has to resolve into a number, but that doesn't make a lot of sense. Anyway, it seems to work
1535872284
Sad
Sheet Author
API Scripter
It's work. Thank you!