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

Dice pooling macro advice

Below is a macro I'm playing for Firefly (cortex plus), whereby you say how many of each dice type you want to roll and it totals the highest two. My experience with macros and queries is very basic, and I'm wondering is it possible to tweak this to use the /me function to keep it inline without the full breakdown, but also return both the highest two results totalled, and the number of ones rolled? /roll { ?{d4}d4 + ?{d6}d6 + ?{d8}d8 + ?{d10}d10 + ?{d12}d12 }kh2
1473164441
Finderski
Plus
Sheet Author
Compendium Curator
Quick clarification...keep the highest two totals, or the highest two dice? Because with the formula above, it would keep the highest two totals of each dice pool and total those two totals. If you wanted to keep the two highest dice, using the /me command, you could something like this: /me does something cool and rolls: [[{ {?{d4}d4}kh1, {?{d6}d6}kh1,{?{d8}d8}kh1,{?{d10}d10}kh1,{?{d12}d12}kh1 }kh2]] Otherwise, if the formula above is correct, then just replace /roll with /me and enclose the formula in [[ ]].
It should just be the total of the two highest dice rolled, and so far it's been working fine, even if I roll 4 of each type, it pics out the highest two, even if they're in different sub pools:   As you can see from that shot, it gives a complete breakdown of all dice (which in hindsight I'll need to keep, since players may choose to spend a point to add a third die), it would just be nice to have it tell you how many 1s were rolled e.g. " = 19 with 3 jinxes", but I don't know if that is possible...
A Mars Reject said: return both the highest two results totalled, and the number of ones rolled? /roll { ?{d4}d4 + ?{d6}d6 + ?{d8}d8 + ?{d10}d10 + ?{d12}d12 }kh2 In line or quantum roll, neither produce 2 results (finally amount and a count of x) I think your only options are inline and a mouse over to manually count the 1s, or a quantum (/roll) that doesn't hide the rolls in a tooltip. I'm sure with the API or custom character sheet scripting, you might have a bit more flexibility.