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!

I'm struggling to get my head around macro commands. How do I get an output from a d3 to dictate how many times that's rolled on a table? Example: r 1d3 = 2 <-- that roles twice in table X
/r [[1d3]]t[Table-name]
Kyle G. said: /r [[1d3]]t[Table-name] That easy huh? Guess I need to learn more...thanks Kyle.
1537303864
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
What's happening here is that surrounding a roll expression in brackets causes it to resolve to a number before the larger expression is resolved. the [[1d3]] looks like a 1, 2 or 3 to the table roll.