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

Query inside Character Atrribute - how to make it work?

I'm not sure if this is beyond the capabilities of the roll20 macro engine, but I'm asking cause I can't make it work. I want a macro that rolls a specific skill which is chosen by a query for every character. Say I have two characters, Frodo and Sam: Frodo's Check: [[1d20 + @{Frodo|?{Skill}}]] Sam's Check: [[1d20 + @{Sam|?{Skill}}]] So when I click the macro, it asks me to insert a name for a skill, I put in, say, "Perception" and it rolls the skill. Except this doesn't actually work. Is there a way to get a functionality like that?
Any suggestions? It'd be really useful if this could work.
Take a look at a similar thread. <a href="https://app.roll20.net/forum/post/2698778/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/2698778/slug%7D</a>
Uh I can't seem to view that thread.
Roll Queries cannot be used to construct Attribute calls because Roll Queries have a lower precedence than Attribute calls on the Order of Operations . To work with the Order of Operations, you'll need to instead place your Attribute calls within a Roll Query. For example, @{selected|?{Q|A|B|C}} will not work, but ?{Q|A, @{selected|A}|B, @{selected|B}|C, @{selected|C}} will work.
Yea that's the answer I feared :P Oh well, guess I'll have to settle for that