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

Progressive DC Macro

1568852125

Edited 1568852733
Is there a way to have a multi-dice rolling macro where the target DC changes depending upon previous successes? Example: roll a d20. If the result is 15 or more, the next roll's target number is 14. Roll 1d20 until a 14 is reached. This reduces the target number to 13. Continue until the target number is 1 or more. Then note the total number of rolls required to do this.
1568856917
GiGs
Pro
Sheet Author
API Scripter
No, not without a Pro subscription anyway. You would need to use a query to ask for the current modifier, or store the target number on an attribute and have a call to that value. 
1568883017

Edited 1568883376
Ziechael
Forum Champion
Sheet Author
API Scripter
You could set up a token with a couple of values in the 'bubbles'. Bar1 being Target and Bar2 being rolls made. It would be a manual process but you'd use a macro like: [[1d20>@{selected|bar1}]] which would result in a 1 or a 0 depending on if it was a success or not. You'd repeat that macro until you got a 1 then update bar1 to be 1 lower and bar2 to record the number of rolls made so far. Rinse and repeat until you get to 1 as the target and you should have neatly recorded the number or rolls with minimum effort? It's not the most elegant solution but beyond a pro subscription (on the game creators account) and therefore the API you are left with tabletop-esque solutions. Took me 28 rolls in testing... is that good or bad? Target of 13 took me 8 attempts alone :(