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 .
×

Success Dice roll question

I have a macro that rolls 10d20 looking for values over 12 and giving the success count. That works fine How do I roll 10 (2d6) looking for success values? I've tried several combinations of () and {} but at best I get 102d6 which is not what I need.
1643776468

Edited 1643776495
GiGs
Pro
Sheet Author
API Scripter
If you want to handle groups of dice, there only way is to list them all, and use a Group Roll (enclose with { }, and separate by commas): /roll {2d6,2d6,2d6,2d6,2d6,2d6,2d6,2d6,2d6,2d6}>7 or [[{2d6,2d6,2d6,2d6,2d6,2d6,2d6,2d6,2d6,2d6}>7]]
1643777384

Edited 1643777688
GiGs
Pro
Sheet Author
API Scripter
If you want to handle different number of dice, it gets complicated. You have to listed out every combination of dice in a query and ask the roller to choose. First step is to create a query where you ask how many dice to roll /roll ?{query| 2 groups of 2d6,{2d6,2d6}>7| 3 groups of 2d6,{2d6,2d6,2d6}>7} But when you try this, it will fail. There's a fix for this, but first lets explain the construction. A query is something like ?{question|Label for Option 1, Option 1|Label for Option 2,Option 2} So the query ends with a }, and uses commas to break up the labels and options. But a group roll also uses } to end the group, and comma to break up the dice. A query doesnt know how to fix that - the first comma or } it encounters that isnt part of the query will break it. So the first step is to put everything outside the query you can. The { and }>7 part of the roll is repeated on each line, so it can be moed outside the query. That leaves the commas inside the group roll. You have to replace them with a special character: } or ,. These are html entities, when the roll is processed by roll, they'll be converted back into cammas and the roll with work properly. So that will look like /roll { ?{Roll What?| 2 groups of 2d6,2d6 , 2d6| 3 groups of 2d6,2d6 , 2d6 , 2d6| 4 groups of 2d6,2d6 , 2d6 , 2d6 , 2d6} }>7 I put spaces either side of the , to make it more readable, as well as before and after the query. You can generally use spaces wherever you want and put line spaces after the | in queries to break up code and make it more readable. This will work, but its pretty ugly and tedious. Sadly there's no way around that.
Thank you for getting back so fast. This is for a game of ironclads which uses 2d6 to resolve cannon hits. I will likely just convert to % and use a d100. 
1643857854
GiGs
Pro
Sheet Author
API Scripter
Ray S. said: Thank you for getting back so fast. This is for a game of ironclads which uses 2d6 to resolve cannon hits. I will likely just convert to % and use a d100.  You're welcome, qnd yeah if you want to vary number of dice, using a single die like a d100 is a lot easier.