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

Ordering mixed die sizes

I have [[@{d10}]]d10sa which will roll the number of d10s I specify in the @{d10} attr and sort them in an ascending order. What I need is to make a roll with a mixture of die sizes and sort the whole lot of them, but I can't find the correct syntax for this. So the final roll will look like this:   [[@{d4s}]]d4+[[@{d6s}]]d6+[[@{d8s}]]d8+[[@{d10s}]]d10 But how would I sort all the values together rather than within their own die-size groups?
1659884307

Edited 1659884409
GiGs
Pro
Sheet Author
API Scripter
By default, you can only sort by the dice results, not the die sizes. If you want to sort by die types, you'd either need to use a custom roll template or the Reusing Rolls method. &{template:default} {{name=This Roll}} [[ [[@{d4s}d4sa]]+[[@{d6s}d6sa]]+[[@{d8s}d8sa]]+[[@{d10s}d10sa]] ]] {{d4s=$[[0]]}} {{d6s=$[[1]]}} {{d8s=$[[2]]}} {{d10s=$[[3]]}} {{Total=$[[4]]}} This assumes @{d4s}, @{d6s}, etc all include a number. Unfortunatelly the sorting of individual dice types only shows on mouse over, but this way you get to see the total of each die type. If you want to see all the individual dice, you'll have to use a sheet worker or script-based solution.
Thanks GiGs. I've actually just figured out a workaround and this is part of the CRP query you've been helping me with, so I'll post my full solution there.