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 .
×

Hi, need help for a simple macro

Hi, and sorry if my english is not really good. I'm creating a rpg set of rules that i want to test on roll20 but i have troubles to create a macro. I need to roll Xd10 and count the nomber of dice under a specific value and reroll the 10 (and count them as a succes, for my game 10=0). To do that, i used this macro: /r {3d10r10}<4 The macro works but i dont know how to consider the 10 as succeses. Does anyone know if i can do that please ? Thanks for reading me guys.
It would be easier to do a number higher as Roll20 dice consider the 10 to be a 10, why not bump up all the difficulties by one and have 1 be the reroll <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a>
1554613511

Edited 1554613612
So, the short answer is, you probably need a script for that. The slightly longer answer is, change your dice logic, so that you count dice above a value as successes, then also use exploding dice for 10s.&nbsp; so now your dice roll becomes /r {3d10!}&gt;7 Or alternatively make 1s your exploding dice and still keep the under a number logic. Hope this helps
Thx for the answers. I'll have to think about it. I like my rule for pen and paper but it's not efficient on Roll20. i'll see what i can find about script :) and use Evil's solution during the process. Thx again
1554638441
GiGs
Pro
Sheet Author
API Scripter
You can set the die to explode on any value, the problem is setting the dice result of 10 to 0.&nbsp; You can simulate it by rolling 1d10-1, in which case the range of results is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, exactly the same as a d10 where you are treating 10 as 0. Then the roll you listed above r {3d10r10}&lt;4 becomes /r {3d10!1-1}&lt;4 Breaking this down: This is a group roll {3d10-1}&lt;4 any modifier here is applied to each die individually. So if you rolled 6, 5, and 2, they would be treated as 5, 4, and 1, and you'd get 2 successes, This part 3d10!1 Says explode (roll again) on results of 1. This is before the modifier of -1 gets applied. So its actually rolling again on results of 0, which is your 10 result. So the roll&nbsp; /r {3d10!1-1}&lt;4 does seem to do what you want. The dice displayed in chat wont match the rolls (because of the -1), so it might look weird but it is accurate.
Hi Gigs and thx a lot for your answer