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

Link for re-roll in a roll template

I've got a roll template up and working but would like to add a link in the output for a player to re-roll the attempt. More specifically, it needs to re-roll all the dice (d6) that were not 6s and then count the new number of 6s (successes) and add the number of successes from the first roll. E.g. First attempt comes up 6,6,5,2,1 = 2 successes. Re-roll rolls 3d6 and gets 6,2,1. Result of re-roll = 3 successes (2+1). How would I go about this in the sheet's html?
1599232875
GiGs
Pro
Sheet Author
API Scripter
There's no way to do this without an API script. You cant do it in html.
Ah right, thanks!
1599236279
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
MIGHT be able to do this with some fancy roll template code, but I can't guarantee it and it'd be a massive amount of code if it is possible. Might be better to simply make a reroll sheet roll that goes something like [[?{reroll how many|}d6+?{previous successes}]]
1599272316
GiGs
Pro
Sheet Author
API Scripter
How would you store the previous roll and know how many dice you'd need to roll on the reroll?