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

Macro Assist Compare number of successes & display individual results of the rolled dice

I am in need of a macro that will let me & players choose X number of d10s.
That displays the results of each rolled die separately.
Compares the result to an inputted number.

Popup How many d10s Popup
Ask for a Target number
Displayed each roll result individually
How many rolls met or beat  the target number

I've can figure out how to get 3 out of the 4,
but I can't figure out how to get all 4

If you wanted to go above and beyond
Built in
1 always has to be beaten
10 always has to be met

Thanks for any help in advance.
And thanks for your time. Cheers.

This simplest way to do this is with a roll command since that will display your rolls whilst allowing to count successes.

/roll ?{Dice Count|1}d10>[[ {10,0?{Target Number|2},2}kh2dh1]]

The target number is also clamped to be between 10 and 2 so 1's always fail and 10's always succeed.

Thanks I'll see if that does what I am looking for.

That does appear to be what I was looking for, not quite as pretty as I'd have liked, but I am never one to take form over function.

Thanks again :)

March 18 (2 weeks ago)

Edited March 18 (2 weeks ago)

Try pasting this into a macro.  Think I got most of this out of an older version of the Mage 20th sheet.  It prompts for reason for roll, number of dice and difficulty.  It'll show the number of successes with a border that's red if there's 1s, green for 10s and blue for a mix and if you mouse over the successes it'll show the values for the individual dice.

&{template:default} {{ Reason=?{Reason For Roll} }} {{Rolls= [[ ?{Amount Dice|1}d10>?{Difficulty|6}f1 ]] }}


Yeah thats kinda close to what I originally had.