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

Query inside query problem

 I wanted to make some macros for my new v20 campaign, and I have experience with DND 5e, but macros for 5e were so easy in comparison withv20… So I have this small macro /r ?{Number of Dice?|1}d10>6sd Result is almost what I need. I need to input not only the number of dices, but also the number of successes. I know that I can solve this with a simple addition /r ?{Number of Dice?|1}d10>?{Difficulty?|1}sd But before I tried different thing: ?{ What difficulty? |6,  ?{Number of Dice?|1}d10>6sd |7,  ?{Number of Dice?|1}d10>7sd } And the code above didn’t work. I don’t understand why,but I know that for future projects I have to. Please, tell me how can I make this work. P.S. I’ve tried to write all signs in HTML in inner query.
1636154581
vÍnce
Pro
Sheet Author
You have to substitute certain characters when nesting queries... ;-( <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> try this /r ?{ What difficulty?|6, ?{Number of Dice?&amp;#124;1&amp;#125;d10&gt;6sd|7, ?{Number of Dice?&amp;#124;1&amp;#125;d10&gt;7sd}
Thank you so much