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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Macro Help Needed

Hello, I'm trying to do a drop-down macro where I choose an option that has a specified number and then I add a modifier to change the dice. This command works: /em attacks for [[?{Mode|X, Y|X, Y}d6sd]] . However when I do a command like this: /em attacks for [[?{Mode|X, (Y+?{Modifier|0})|X, (Y+?{Modifier|0})}d6sd]] it gets all wonky and thinks the first 0 is an option. Is there a way to fix this or is it not possible? Thanks, Nick D.
1459482751

Edited 1459482884
When nesting a query you need to do some HTML entity replacements for the characters used in the query function. Specifically the ,  and | and }. Replaced those with , | and } See  Advanced Usage for Roll Queries
What about this? (?{Mode|X|Y} + ?{Modifier|0})d6sd To answer your question, it is possible to nest Roll Queries within other Roll Queries. However, it's a bit complicated, and would be best avoided if an alternative solution is possible. If you're still interested, check out Advanced Usage for Roll Queries .
Thanks for the help! It works now lol.
1459529454
Gen Kitty
Forum Champion
As the question has been answered, I'll go ahead and close this thread.  Please don't hesitate to start a new thread if you've any questions or concerns!