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

Query for target roll using attributes as assets and dificulty selection

Hello!, i'm currently trying to figure out how to properly work this macro, I'm trying to query while using the attribute number as the quantity of d10s rolled for a target roll. Bellow is what I got, it works fine, but I'd like it to be a query, so my players don't have a massive line of different macros for each attribute, but i'm clueless on how to do it: &{template:default} {{name=Dex Roll}} {{Result=[[ [[@{DEX}]]d10>?{Difficulty|0}]]}} Any advice is greatly appreciated.
&{template:default} {{name=Dex Roll}} {{Result=[[ [[?{Attribute?|Strength,@{STR}|Dexterity,@{DEX}|Constitution,CON| ... }]]d10>?{Difficulty|0}]]}} If I understand what you're looking for, this should start it for you.  You'll need to add in the remaining attributes you want to use where there's the ' ... '. A query follows this format: ?{ | , | , } ?{queryname|item 1,result 1|item 2,result 2|item 3,result 3| ... } Make sure you don't add any extra spaces between vertical pipes and commas.
Jarren K. said: &{template:default} {{name=Dex Roll}} {{Result=[[ [[?{Attribute?|Strength,@{STR}|Dexterity,@{DEX}|Constitution,CON| ... }]]d10>?{Difficulty|0}]]}} If I understand what you're looking for, this should start it for you.  You'll need to add in the remaining attributes you want to use where there's the ' ... '. A query follows this format: ?{ | , | , } ?{queryname|item 1,result 1|item 2,result 2|item 3,result 3| ... } Make sure you don't add any extra spaces between vertical pipes and commas. Thank you!!!