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

Help with Exploding Dice, Target Number, Query Macro

March 27 (5 years ago)

Hi there,

I'm just wondering if it's at all possible to combine a few different macros that I've slowly figured out.  We're using a D10 system with exploding dice, and removing successes with 1's

Current functional macro:  /roll{10d10!}>6f1

That macro does (almost) exactly what I want it to do, but the problem is that I'll be typing a different permutation of that every time, and have to teach my players the (rather simple) macro.  But I want to make things even easier for them.


This macro: /r ?{Number}d10>?{TN}

Makes things easy for my players, but it doesn't incorporate the exploding dice or the failure on 1's.

I'd like a macro that I can give my players that will query how many exploding dice they want to roll, and I'll pass out different ones depending on the TN.
Ultimately something like:

/roll ?Number d10!>6f1

But that macro (and no permutations I've found) have worked for what I'm trying.  Hopefully that gives you enough to understand my question!

Thank you!

March 27 (5 years ago)
Ziechael
Forum Champion
Sheet Author
API Scripter

It should work out of the box by replacing the static numbers with queries:

/r {?{Number|1}d10!}>?{Target|6}f1
March 27 (5 years ago)

That's perfect, thank you so much!

March 27 (5 years ago)
Ziechael
Forum Champion
Sheet Author
API Scripter

You're welcome, you were almost there to be honest!

Happy rolling :)