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

Looking at a value for Xd6?

Hey there everyone, I'm looking to have a roll template look for an attribute's value (say 2) to then have it roll Xd20 as 2d6. I know there is the roll query option to manually input a value, but i'd rather just use the value since it would be affected by equipped equipment. I thought calling the attribute out directly would work like the roll query but unfortunately not. Anyone have an idea on how to resolve this? Thanks, Kaze
1636901318
The Aaron
Roll20 Production Team
API Scripter
Are you talking about: [[@{some_char|some-attr}d6]]
Yes, though i just found what i was doing wrong actually. I was calling for {{roll=[[(@{attr_def_dice})d6 ]]}} when I needed {{roll=[[(@{def_dice})d6 ]]}} I forgot that it already is looking at "attr" without me needing to put it in.