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

Checking for failures before exploding

I'm trying to find/make a macro for a game of Vampire we're hoping to start soon. Only thing is, the dice rolls are kinda complicated and I can't find exactly what I need. Here's an example of what I'm looking for :  Player rolls 6d10 dices, successes over 6, 10's explode into new rolls, 1's are critical failures and remove successes (and thus should also remove 10's before they explode, this is the complicated part).  So far, this is what I have, but 10's explode before 1's are factored in :  /r {?{Number|1}d10!}>?{Target|6}f1  Any help would be appreciated.
1629490395
GiGs
Pro
Sheet Author
API Scripter
Unfortunately it's not possible to do this without the API (a Pro subscriber perk). You could do it as a non-exploding roll, and if you get any exploding dice do a follow up roll with those dice.
Through dirty hacks, arcane magic and what is basically bit-field manipulation I did find a way, but only with the /roll command /r ([[(10**[[([[((10**6-1)/9)-(((10**6-1)/9)%[[10**(6-[[(([[10**(6-[[6d10cs0<1]])]]-1)/9%9)d9cs0cf0>5]])]])]]%9)d5cf0>5]]-1)/9]]*$[[3]]%$[[1]]%9)d10>6f1! +$[[4]]%$[[1]]%9 Fails:$[[0]] Initial successes:$[[2]] Of which explode:$[[5]] It works by calculating how many fails in the base dice How many initial successes in the remaining dice How many of those successes are exploding Then using the fails to drop the normal successes first and if required the exploding successes Any remaining exploding successes get rolled against the target/failure numbers and added to the un-dropped initial successes