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

Eleven Accuracy Macro Help

Looking for help on this Elven accuracy macro. I have used this in past campaigns under the [rtype] attribute in the character sheet without much issue. Starting a new campaign I found the [rtype] field no longer there. While it appears that I can add it back and it seems to work fine I was curious if there was a better way since it triggers on every type of roll. Is there anyway to make this code only apply on attack rolls? {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[1d20|Elven Accuracy,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[2d20k1|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[1d20}
I think on most character sheets there will be some default that gets used for attributes like that, until the attribute is actually changed.  So once you change that attribute (by selecting something on the character sheet, such as 'Always Whisper' then the attribute will show up on the Attributes and Abilities page.  But that may be character sheet dependent (depending on how the character sheet code was written). Your code is missing a template field. Which game and character sheet are you using?
Jarren said: I think on most character sheets there will be some default that gets used for attributes like that, until the attribute is actually changed.  So once you change that attribute (by selecting something on the character sheet, such as 'Always Whisper' then the attribute will show up on the Attributes and Abilities page.  But that may be character sheet dependent (depending on how the character sheet code was written). Your code is missing a template field. Which game and character sheet are you using? Playing D&D 5e - Lost Mine of Phandelver. DM is pro and has access to API's.
1649796464

Edited 1649797052
So after looking at this a bit more I think the best solution is to continue using the rtype field. As far as I can tell the only downside is that the straight stat mod rolls and attack rolls are hardcoded in the sheet to use rtype. Luckily saving throws and skill checks on the character sheet only references rtype when the "Roll Queries" settings is set to "query advantage".  It would be nice if they eventually added the ability to reference those character sheet elements like the rest allowing for you to modify them individually. In this case I would just need attack rolls to point at a customer attribute say "rtype2" with the code in it, but that doesn't appear to be possible outside creating customer macros for each weapon.