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 parameter

Hi all! I have a macro for a specialized dice pool that currently gives a popup for its input (thanks  GiGs!) /roll ?{number|1}d6>6f<3 + ?{number} I have this aliased as #pool. That works great. However, is there a way to get the number of dice input inline with the #pool command instead of via a popup? I.e., so a user can just type #pool 4 and get the result with no intervening popup? Thanks!
1674098167
timmaugh
Roll20 Production Team
API Scripter
Not exactly. First, that sort of command-line entry is how scripts might receive and parse arguments, so you'll see this in that sort of application. However... Second...  to have it truly hard-coded like this, you'd need a different command line for each option (1, 2, 3, etc.). So the best solution might be... Third, you can write the macro in such a way that it will read something that has been recorded and written down. For instance, if you used bar3 as the source of the number of dice (and you kept that value updated to be the number of dice you wanted to use), you could rewrite your macro to be: /roll @{selected|bar3}d6>6f<3 + @{selected|bar3}
1674103472
GiGs
Pro
Sheet Author
API Scripter
As Tim says, there is no way to avoid this without a custom Mod script (requiring a Pro subscription). That said, you can speed up the pop very fast. Run the code, then type a number and click enter. Dont touch your mouse. You can do this very quickly - just as fast the macro method you were asking for.