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 Duplicates

Is it possible to write a script so that if a duplicate value is rolled in a dice set, it re-rolls automatically? For example, a player rolls 3d10 and rolls 2, 6, 6, the system will re-rolls the second 6 and continues until all 3 numbers are unique? Thanks!
This is possible with the  ScriptCards mod . It has a unique roll option. XuY 3u8 Roll a Y-sided die X times, but only generate unique values. If X is greater than Y, only Y dice will be rolled. So in your example --=Roll|3u10 Here's a tiny example: !script {{ --=Roll|3u10 --+Result|[$Roll] --+Rolls|[$Roll.Text] }} And that displays output like:
Great!  Thank you!