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

Quick Dice Question

1387320250

Edited 1387324137
Solved. I would like to roll a d3 with the sides being 0, 1, and 2. (Basically, 5d3-5 but i don't want to have to include the -5 because the number of dice will vary based on a macro connected with a ?{modifier} i don't want players to have to input twice) Also, i want the lowest value to be 0 so i don't want to use fate dice
1387321653

Edited 1387321759
Pat S.
Forum Champion
Sheet Author
This is from the wiki: Rounding Rolls You may want to use rounding in your roll formulas to emulate mechanics such as "half a level, rounded down to the nearest level." Roll20 provides two functions to accomplish this: floor() , which will always round the number down (e.g. 5.7 becomes 5), and ceil() which will always round the number up (e.g. 5.1 becomes 6). You can use these functions almost anywhere in your roll formulas (around a single math expression, groups of math expressions, or even the entire roll). For example: /roll floor (2d6/2) will half then round down to the whole number so there will not be any partials. /roll ceil (2d6/2) will do the same but round up. You can put any dice type and amount in there so if you want half of 1d100 roll it will give you that. Not sure how to add the query roll into it but someone more experienced will answer soon.
1387323153

Edited 1387323205
I'd make a rollable table with three entries named "0" "1" and "2" - call it Table. Then, you can create a Macro with the following entry: /r (?{DICE|2})t[Table] That gives a prompt for the number of dice to roll. If you want to create a macro for each number of dice you want to roll and query for the modifier, use the following: /r Xt[Table] + ?{Mod|0} Replace X with the number of dice for each macro.
1387323473

Edited 1387323620
Tried playing around with it for a little bit, but i can't see it functioning as i want it to. Especially since it would ceil the entire 6d3 roll, though i'm sure there's a way to do each /2 individually it still doesn't become a 0 1 2 roll, like i'm looking for. Thanks though. oH-~ The table would work. Yep. The table will solve the problem, thanks a ton. I hadn't though about using it.
Cool - I wasn't sure if you wanted to query for the number of dice or for the modifier, so I put both. Good luck!
1387323929
GiGs
Pro
Sheet Author
API Scripter
You can do something like this: /roll [[@{stat} + ?{modifier|0}]]d3-[[@{stat} + ?{modifier|0}]] Since the Rugged Reroll update yesterday, you are not prompted multiple times for modifiers with the same name. So this macro will prompt you for a modifier, and use that number in both places above.