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 .
×

Macro Roll Query Help

So, I've got a macro that I'd like to setup for my character, I've got it working well enough, but there's a point on the Wiki that I can't seem to figure out. The wiki mentions "If you'd like to use a variable modifier with your macro roll, simply end the macro command with the modifier, and then specify it when calling your macro", but this seems ridiculously vague, and I can't seem to figure out what it's actually saying. Is there a way to make it so the variables ?{Attack#}, ?{PowerAttack}, and ?{Bonus} take the next numbers given after #attack. I'd like to be able to type "#attack 1, 10, 3" instead of having to deal with the prompts. The current macro: #attack Zmogus swings for [[1d20 + @{Zmogus|BaB} + 5 - ?{Attack#|1}*5 + @{Zmogus|Str} - ?{PowerAttack|0} + ?{Bonus|1}]]. He deals [[1d10 + 1.5*@{Zmogus|Str} + 2 * ?{PowerAttack|0} + ?{Bonus|0}]] damage. Any chance someone can help me? This seems the right forum, as the API has to do with scripting, rather than ingame commands.
The 'specify it when calling' isn't referring to Queries in your macro. It means if you want to modify the final result by say +5, you can type "#attack +5" When using queries in a macro, you will always be prompted for each unique instance of the query. ie: if you used ?{blah|5} the result from that will be used automatically anytime you use ?{blah} somewhere else. (but that's not part of your question, really.)
Yeah, I was just hoping there was a way to pass it the values for those prompts without having it open the prompt.
You'd need Mentor level subscription and the API to do any real programming. The closest Macros get is interactive inputs.