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

How do I make this Macro Work?

Here is the Macro: [[(?{First Die?| d2, d2 | d4, d4 | d6, d6 | d8, d8 | d10, d10 | d12, d12}) + (?{Second Die?| d2, d2 | d4, d4 | d6, d6 | d8, d8 | d10, d10 | d12, d12}) + (?{Third Die?| None, 0 | d2, d2 | d4, d4 | d6, d6 | d8, d8 | d10, d10 | d12, d12}) + (?{Fourth Die?| None, 0 | d2, d2 | d4, d4 | d6, d6 | d8, d8 | d10, d10 | d12, d12})]] If it wasn't obvious, the point is to create a macro with 4 possible variable dice that all add together into a single roll. When I use it as is, it will either do nothing, or the browser will redirect to a "aw snap" message. I tried to replace the syntax with html, but upon saving the Macro, it all just reverted to basic syntax (I can't even seem to post the html here without it automatically being converted to syntax).
Inline rolls do not work across multiple lines. Try this: [[ ?{First Die?|d2|d4|d6|d8|d10|d12} + ?{Second Die?|d2|d4|d6|d8|d10|d12} + ?{Third Die?|None, 0|d2|d4|d6|d8|d10|d12} + ?{Fourth Die?|None, 0|d2|d4|d6|d8|d10|d12} ]]
That worked perfectly! It is such a simple fix that it makes me feel stupid.