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

Specific Macro

1548871599

Edited 1548970226
Hey guys, just curious about something. Is there a way to make a macro re-roll a dice roll on a specific number while keeping that number. for example 1d6 but on a roll of a  6 become 6+1d6, and then re-roll. I'm sure there is a way to do this with API but I was just wondering if there is a way to build this into a macro. Any help would be appreciated, thank you. 
1548871967
GiGs
Pro
Sheet Author
API Scripter
You can use this: /roll 1d6!! If you roll a 6, it will again and add, and show the result as a single die. So if it rolls a 6 then a 3, you'll see a roll of 9.
Awesome thank you! this is exactly what I was looking for. just out of curiosity. If I only wanted it to reroll a single time so the max result was 12. is there anyway simply to do that? 
1548877053
GiGs
Pro
Sheet Author
API Scripter
There's a way to fake it. /roll {1d6!!,0d0+12}dh1 This will ignore any results higher than 12. But if you want to roll multiple dice, it gets complicated. You have to repeat that for each die. If you were rolling a d10 and a d6, and each die could explode in this way, you;d use /roll {1d10!!,0d0+20}dh1 + {1d6!!,0d0+12}dh1 It's not pretty!
GiGs said: There's a way to fake it. /roll {1d6!!,0d0+12}dh1 This will ignore any results higher than 12. But if you want to roll multiple dice, it gets complicated. You have to repeat that for each die. If you were rolling a d10 and a d6, and each die could explode in this way, you;d use /roll {1d10!!,0d0+20}dh1 + {1d6!!,0d0+12}dh1 It's not pretty! This helps a lot thank you so much for your time!