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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
I'm trying to write a macro that compares generates a success when the roll is less than or equal to an attribute. Here's what I've got right now: /r 1d100<@{Character|Attribute} What am I doing wrong?
That looks correct to me, as long as you have a character named "Character" with an attribute named "Attribute", you should be good. /r 1d20<@{selected|Hit Points}
The problem may be that the attribute in question is a calculated value; the target has to be a single number, not a calculation. If the attribute is an equation, however, you can combine the /roll command and an inline roll: /r 1d100<[[@{Character|Attribute}]]