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

Different Dice, Same Target Number?

What's the shortest and most efficient way to roll a wildly varying pool of dice, but always against a steady target number? Currently using something like [[?d8>7+?d10>7+?d12>7+?d20>7]] It works, it's just not as clean as I was hoping for. Seems a bit silly having to constantly state the target number over and over.
1511430499

Edited 1511521841
Ziechael
Forum Champion
Sheet Author
API Scripter
How about: [[ ?{How many}d?{What die|4|6|8|10|12|20}>?{Target Number} ]] You can replace any of those queries with hard coded values if some of the data never changes. edit: oh hang on, I see that you can have a pool of dice of different values... let me just tweak... Something like: [[ {?{d4s|0}d4,?{d6s|0}d6,?{d8s|0}d8,?{d10s|0}d10,?{d12s|0}d12,?{d20s|0}d20}>?{Target Number} ]] Although that only counts the grouped rolls as successes or failures, is it individual dice that need to beat the target or each group of the pool? If it is each individual die then your way is likely the best although you could substitute the target for a single repeated query so that you can have a flexible roll with only one query for the target: [[ ?{d4s|0}d4>?{Target Number} + ?{d6s|0}d6>?{Target Number} + ?{d8s|0}d8>?{Target Number} + ?{d10s|0}d10>?{Target Number} + ?{d12s|0}d12>?{Target Number} + ?{d20s|0}d20>?{Target Number} ]]
Neither of those worked, unfortunately. The middle one because, as you noted, it adds the dice together instead of checking them individually, and the bottom one always seems to return a value of zero success and never actually rolls the dice?
1511505434

Edited 1511505449
Silvyre
Forum Champion
Duncan H. said: the bottom one always seems to return a value of zero success and never actually rolls the dice? Remove the extra > near the beginning of the macro, and it should work for you. :)
1511521889
Ziechael
Forum Champion
Sheet Author
API Scripter
Yup, just noticed that! (have edited the original post) sorry about that, the perils of copy/pasting while in a meeting at work ;)
Thank you very much for the help.