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

keep and drop macro

Is there a way to make a macro that drops the best result and keeps second best but not the others? i want to roll 6d10 and keep second and third best results thank you for your time!
1591212689
Kraynic
Pro
Sheet Author
I don't know of a way to automatically just reduce output to those 2 dice, but you could sort them and make it easy to pick them out that way. /roll 6d10sd The sd is "sort descending".
1591213245

Edited 1591213280
GiGs
Pro
Sheet Author
API Scripter
You could even keep the top 3, and just manually discard the top one. /roll 6d10sdkh3 That's the best you can do. There's no way to drop the highest and keep the next two.
Ok, i will do that. Thanks for your help.
1591221915

Edited 1591221939
Ziechael
Forum Champion
Sheet Author
API Scripter
You could use this: /roll 6d10sddh1kh3 It will roll the 6d10, sort them into descending order and drop the highest 1 and keep the highest 3... effectively leaving only the 2nd and 3rd highest result not greyed out :)
1591222239
Kraynic
Pro
Sheet Author
I... didn't think you could have seemingly contradictory modifiers like that, so I never thought to even try!
1591222370
GiGs
Pro
Sheet Author
API Scripter
Thats news to me too!
1591222774
Ziechael
Forum Champion
Sheet Author
API Scripter
(didn't know if it would work myself till I tried it ;) )
1591222982
GiGs
Pro
Sheet Author
API Scripter
I was sure I'd tried it before, I wonder if behaviour has changed - though they dont make changes to the roll code, so its unlikely. Then again we have that new $[[0]] 'feature' so who knows.
THANKS AGAIN