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

Help with dice re-rolling formula

1667308003
Chris Jones
Pro
Sheet Author
Hi all I'm trying to get a formula working, whereby any result of 8 and above is a success, and any result of a 10 is kept, and also rerolled. So far i've got the following, but instead of counting how many results of 8 and above we get, it's just tallying up the numbers. /roll...   d10!>10>8 I've experimented with a few variations, and read over the details on the Dice reference page, but i'm clearly missing something. Any help is greatly appreciated! Chris
1667310915
Gauss
Forum Champion
To confirm:  1) You want to explode on a 10 (keep the die and reroll is called exploding dice). Is this a single reroll or infinite rerolls?  2) You want any die roll that is 8, 9, 10 to be counted as a success.  Your dice roll above should be doing what you need it to, giving you successes.  This gives me number of successes in my testing: /r 1d10!>10>8
1667314256
Chris Jones
Pro
Sheet Author
Yes, that's exactly what i want, and what i expected to happen based on the notes - however instead of 8, 9, and 10 counting as a success, it just adds together the values of the dice rolled! It's very confusing! Is there any other way to express this?
An alternate way of expressing this is /r d10>8! However this should be functionally identical. One thing to note with /roll syntax is that it will display all the rolls and it does separate them using + signs a potential source of confusion since those values aren't being summed. Below the rolls it will display the number of successes and that value should be correct.
1667320769
Chris Jones
Pro
Sheet Author
Brilliant, that version has worked a treat - much appreciated!
1667327901
Gauss
Forum Champion
Chris J said: Yes, that's exactly what i want, and what i expected to happen based on the notes - however instead of 8, 9, and 10 counting as a success, it just adds together the values of the dice rolled! It's very confusing! Is there any other way to express this? I don't think it is adding them together, as RainbowEncoder stated, it looks like it is due to the plus signs, but it isn't actually adding them together.