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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Roll 3d6, keep 2 and roll 1d6 again

1588427450

Edited 1588427674
We're having a bachelor party in Roll20 tonight and I'm trying to convert our local drinking game into macros. Simplified rules: you have 3d6, can roll up to 3x and keep as many dice as you want to achieve special combinations. For example the best result possible is [4][2][1] I need a macro the makes it possible to set 2 numbers, while rolling another die. I roll [4][2][6] in the first roll, so just want to roll the [6] again, but have all 3 numbers show up in the text box. My first try was: [[1d6]] [[?{keep|0}]] [[?{keep|0}]] but obviously that doesn't work... I hope that makes sense, I can't describe it any better :-/
1588444072
GiGs
Pro
Sheet Author
API Scripter
Queries for different values have to have different names. The bit before the first | is the queries name. So you can do [[1d6]] ?{First Number?|0} ?{Second Number?|0} If you want it a bit prettier, you can do &{template:default} {{Rolls=[[1d6]] [[?{First Number?|0}]] [[?{Second Number?|0}]] }} You dont need the [[ ]] around the queries, but it will make sure all dice results are formatted the same.