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 Help, a query within a query

November 30 (9 years ago)
I've set up a single macro for my skill checks. I click the button, select the skill I want from the drop-down menu, and off we go. However one of my skills tends to need multiple rolls in one go.

If I make a separate macro, it works exactly how I want it to. It rolls X times, compares each result to the target number and reports the number of successes.
/me appraises the equipment before him. /roll ?{Number of Items|1}d100<30

But if I try to include it within a selection list, everything goes wonky
?{ |Ability 1, /me appraises the equipment before him. /roll ?{Number of Items|1}d100<30 |Ability 2, /me does whatever. /roll 1d100<50 }

Instead of choosing between the two abilities, I get a choice between Ability 1 and 1 (which should be the default value for the second selection). If I choose Ability 1, it fills the default value with "Ability 2,/me does whatever./roll 1d100<50". I'm assuming I need a set of brackets somewhere, but everything I've tried that makes sense to me doesn't work.
Any help would be appreciated. Thanks!

November 30 (9 years ago)
Hi, Justin K. Please check out: Advanced Usage for Roll Queries and let us know if you'd like any further assistance.
November 30 (9 years ago)
Just what I needed, works perfect now. Thanks so much!
November 30 (9 years ago)
Glad to hear it!