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

Passing Arguments to Macros

1387174381

Edited 1387174564
Is there any way to make macros that you can pass an argument to? For example, #foo(x) in order to do /roll xd10 I'm using the New World of Darkness system, which is based around situational bonuses and penalties independent of tokens. The macro system doesn't seem to accommodate this.
1387176065
Alex L.
Pro
Sheet Author
The best we have is ?{Question|Default answer} that will prompt the user for input. It would be nice if we had something along the lines of #{macro|arg1|arg2|arg3} that would just override the user prompts in order.
That's disappointing. World of Darkness roll commands tend to get complex, especially with the various system permutations, so I wanted to use macros to prevent typos and to not burden my players with having to learn roll commands. I guess I'll just roll for my players instead.
1387213504
Gauss
Forum Champion
This will do what your example above is trying to do: Macro name: #foo Macro body: /roll ?{number of dice|1}d10