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

Elven Accuracy: Not sure what I did wrong

In my attempts to simplify Elven Accuracy, tried my hand at placing a simple macro in the Description section of each attack which would add a third attack roll (that you would only bother looking at if you were at advantage). It was something like this: Elven Accuracy (if Advantage): [[1d20cs>20+@{pb}+@{dexterity_mod}]] and it looks like this: By itself, it works great (of course, I'd have to manually roll any extra damage dice if it was a crit, but that's no big deal). The problem comes in when I tried adding a bit of code to make it include any Global Attack Modifiers, such as Bless. I added a bit of code and tried this: Elven Accuracy (if Advantage): [[1d20cs>20+@{pb}+@{dexterity_mod}+@{global_attack_mod}]] Which works fine AS LONG AS I have at least one Global Attack Mod box checked. If there are NO global attack modifiers in play, it is not adding everything correctly. If you mouse over the roll, it says something like: "Rolling 1d20cs>20+2+5+ =6" with that weird space in there where it apparently still wants to add a global attack modifier but can't, because there isn't one. And that somehow screws up the math. For instance: You can see that the Elven Accuracy roll is not adding correctly at all, it's not even counting all the normal bonuses. I'm not sure exactly what it's doing, because it also does not parse out the individual results when you mouse over it like it does when there is a global attack mod in play (I'm not sure how to take a picture of that to show here). At the end of the day, I can certainly just use my original macro and it works fine, I would just have to remember to manually add in any global attack modifiers to the Elven Accuracy roll. But it would be great if there was a way to make that third roll function properly and read the globals accurately, even if there aren't any.
Try adding a 0 in front of the Global Attack Mod (untested): [[1d20cs>20+@{pb}+@{dexterity_mod}+0@{global_attack_mod}]]
That works famously! Thanks! Jarren said: Try adding a 0 in front of the Global Attack Mod (untested): [[1d20cs>20+@{pb}+@{dexterity_mod}+0@{global_attack_mod}]]