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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Macro Question: Attributes as target number

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?
1409239638
The Aaron
Roll20 Production Team
API Scripter
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}
1409242744
Lithl
Pro
Sheet Author
API Scripter
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}]]