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

Roll Advantage (dnd 5e) for X creatures in a single line of command, or best close solution?

I'm trying to find a way to roll advantage for x attackers in a single line. I can do /r 2d20kh1 to roll advantage for one and it'll give me the results of that advantage. Now I need to get that result x times in a row. Am I to understand it's impossible with the current API? Found this <a href="https://app.roll20.net/forum/post/3918802/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/3918802/slug%7D</a>... but it is closed. Seems to say it's not really possible. What about the table Aaron is speaking about, what does that entail exactly?
1480090505
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
With the API, you could certainly do this via a script, but with the current dice roller, it is not possible. Aaron's example in that thread was that you could make 3 tables that would have the proper distribution of results based on what you are doing (equally weighted d20 results for normal rolls, and then properly weighted for advantage and disadvantage). I'm not sure what the proper weights would be, but that is certainly possible.
Without API, I generally handle "unknown" number of rolls by just rolling out a bunch and only taking the first few that I need, discarding and ignoring the rest.&nbsp; This comes up a lot with identifying items in PF (several Spellcraft checks needed in a row, but never the same number of times) ie:&nbsp; [[1d20]]|[[1d20]] • [[1d20]]|[[1d20]] • [[1d20]]|[[1d20]] • [[1d20]]|[[1d20]] • [[1d20]]|[[1d20]] • [[1d20]]|[[1d20]] • [[1d20]]|[[1d20]] • [[1d20]]|[[1d20]]
1480247728

Edited 1480247756
I might actually have found a way (but a very imperfect one). For 8 creatures rolling d20 with advantage to beat 13: {8d20ro&lt;13}&gt;12 The problem with that is that you miss on the possible crit that would have been obtained with rolling twice (sometimes it's not even a 20, but a 19 or 18 that crits). But I wonder if there is a way to perfect that solution.
I'd recommend creating the table Aaron suggested. Scott C. said: Aaron's example in that thread was that you could make 3 tables that would have the proper distribution of results based on what you are doing (equally weighted d20 results for normal rolls, and then properly weighted for advantage and disadvantage). I'm not sure what the proper weights would be, but that is certainly possible. The weights would be the "%" column from the anydice program multiplied by 100 (because weights must be integers).