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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
" Eye Rays. The mindwitness shoots three of the following magical eye rays at random (reroll duplicates)". How do I roll 3d6 rerolling any duplicates (rerolling until I have 3 unique numbers)?
You have to do it manually without the API, a pro subscriber perk. You could generate the total possible combinations of the possible values and then build a rollable table to randomly choose between them to get it in one go. That could be quite the undertaking if there are more than a few options. N!/(N-3)! rows.
I believe there are only 20 unique combinations of three different eye rays (out of only six different rays), so a rollable table would be pretty easy to set up. Replace the 1's, 2's, and 3's below with the name of the rays if you like.
123
124
125
126
134
135
136
145
146
156
234
235
236
245
246
256
345
346
356
456
You can avoid duplicates between two of the three comparisons with this: [[1d6r[[1d6]]r[[1d6]]]] $[[0]] $[[1]] But there's no way I can think of to link the final two dice.