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

Macro help, please! I want to make a macro to roll from a table 1d4 times

I have a rollable table of six items, and I need to roll from it 1d4 times. I want to do it in one click, and make the result look nice in chat by using a template.  How would I go about that?
1484144139
The Aaron
Pro
API Scripter
Probably the best thing you can do is use the default roll template: You would need to specify each roll on an individual line (so, can't really dynamically choose 4 rolls or 3 rolls, etc): &{template:default}{{name=Options}}{{one=[[ 1t[Weather] ]]}}{{two=[[ 1t[Weather] ]]}}{{three=[[ 1t[Weather] ]]}}{{four=[[ 1t[Weather] ]]}} Labels need to be unique.  If you want the same label, just put ever increasing spaces after it ( foo=, foo =, foo  =, etc).
:/ I was afraid of that.  I had hoped it would be possible to make a for-loop or something similar. I guess I *could* make a rollable table of all possible outcome combinations, but if my maths is correct, that'd be 56 different entries...
The alternative is using /r [[1d4]]t[table-name] outside of a Roll Template, or [[ [[1d4]]t[table-name] ]] within one.
1484225519
Andrew R.
Pro
Sheet Author
I do this all the time with default roll templates in 13th Age monster abilities. I would call out the D4 roll and follow with 4 rolls on the table.  In play I just ignore the rolls greater than the D4 result. Easy!