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

Re-rolling dice if they are the same #

need help with a macro that adds the dice rolled and re-rolls any if they are the same number, adding to the total, until no more matching die are rolled. Example: rolling 4d6 results 2,3,3,6=14 + [re-rolling the 3's] 2,4= 20.
1414484194

Edited 1414484249
Gauss
Forum Champion
here you go: /r 4d6!=3 Link to the guide on this: <a href="https://wiki.roll20.net/Dice_Reference#Exploding_Dice" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Exploding_Dice</a>
that does not do what i need. it only re-rolls a 3. i need to re-roll all die that are the same, and continue to re-roll until they are not the same. rolling 6d10 results 3,5,4,2,5,5 = 24 + re-rolling the matching 5's ( 2,2,4) = 32 + re-rolling the matching 2's ( 2,3) = 37 total. I mainly need to re-roll 2d6 if it's a pair , DARO = Doubles Add & Roll Over.
1414485275

Edited 1414485311
Gauss
Forum Champion
Ahhhh, well for that you would need the API (a Mentor level feature). Alternately, /r 4d6sd would at least organize it in an easy to read format.
thanks, going to look into what API is.
1414485707

Edited 1414485991
Gauss
Forum Champion
API is the Application Programming Interface. The campaign owner would need to be a Mentor to make use of an API script but does not need to know how to program. There are plenty of people who will happily write a script for you. Just post a request in the API forum. <a href="https://wiki.roll20.net/API:Introduction" rel="nofollow">https://wiki.roll20.net/API:Introduction</a>
1414487383
Finderski
Plus
Sheet Author
Compendium Curator
You could have a macro something like this: /r ?{Number of Dice|1}d6sd+?{Previous Roll Total|0} That would simulate at least what would happen if you were at a table using real dice. You'd have to run the macro multiple times if you get matching rolls,but it could keep things a little easier maybe? Here's an example of the output: