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 .
×

Using < in a dice roll macro

Trying to come up with something that does a percentile roll check against a characteristic score that could be modified to various degrees. Along the lines of: #Ag-Test /r 1d100&lt;(@Ag-Character+ Then if I wanted to add a +10 modifier to the test I tried in the chat: #Ag-Test 10) and it returns an error. Is it not possible to write an open-ended macro like that? Any other options or workarounds? Thanks. EDIT: Apologies about the title, I had a &lt; in there and it looks like that is a no-no.
1374086625
Gauss
Forum Champion
David, the reason that it isnt working is that you cannot&nbsp;put parenthesis around two values after the inequality sign without it returning an error.&nbsp; However, you could try this:&nbsp; /roll 1d100&lt;[[@Ag-Character+ and then in the chat put: #Ag-Test 10]] Note: The macro will not work unless the closing brackets are in place so it wont be usable except in the chat.&nbsp; - Gauss
Yay, go brackets! Thanks for the solution Gauss!