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

Adding on rerolls

1485722274

Edited 1485722445
So, in our campaign a character has to roll for corruption, essentially it's 1d20 vs a target number, re-roll failures till you succeed, you get +1 on each successive attempt, add up the total number of failures.  This formula comes close for a target of 18 but doesn't include the +1, does anyone know how to do that?  (apparently less than counts as less than or equal) /roll {1d20!<17}<17
1485723264

Edited 1485723285
Not possible without an API script.
1485723315
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Silvyre may come by with some crazy macro magic, but I'm not aware of a way to do what you're asking.
Ok, thanks.  I'll probably change the mechanic instead.
Without the API, you could list out a bunch of rolls like so: &{template:default} {{name=Roll for corruption }} {{ Target Number ?{Target Number|18}= [[ 1d20 + 0 ]] [[ 1d20 + 1 ]] [[ 1d20 + 2 ]] [[ 1d20 + 3 ]] [[ 1d20 + 4 ]] [[ 1d20 + 5 ]] [[ 1d20 + 6 ]] [[ 1d20 + 7 ]] [[ 1d20 + 8 ]] [[ 1d20 + 9 ]] [[ 1d20 + 10 ]] }} Or, you could use a macro to make manually rerolling easier: ! [[ 1 &{tracker} ]] &{template:default} {{name=Roll for corruption }} {{Target Number=[[ ?{Target Number|18} ]] }} {{Result=[[ 1d20 ]] }} {{[Reroll](!
 [[ 1d20 + @{tracker|} ]] 
! / [[ 1 &{tracker:+} ]]) }} The above macro hijacks the Turn Tracker entry of a selected Token, so it's best used by the GM or outside of combat.