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

Macro pulling incorrect AC value

Hello! I'm trying to make use of this macro to get an overview of my players' AC and HP before/during combat. I've made all the modifications ala changing player names etc. per the instructions, but it appears to be pulling the wrong value for AC. All the HP ones are fine. You can see in this screenshot a sample of one of my characters. She has 14 AC with armor, 13 without. Yet, the AC value the @{playername|ac} call pulls is neither of those numbers. The unarmored AC for the 2nd listed PC is 9, but the command calls "ac", not "ac_no_armour," so I think that's just a coincidence, but they're all incorrect. (Not to mention the odd verbose-print floor calc equations). I've examined their character sheets and nothing seems amiss that I can see. Does anybody have a guess what may be causing this issue? I've tried to do a good ol' web search, but I haven't found anything. I'm using the community-contributed 5E sheet , if that's helpful. Thanks!
1588470554
GiGs
Pro
Sheet Author
API Scripter
Fron a quick look at the sheet, it looks like you need AC_calc, and putting inline roll brackets around it should stop the autocalc text  from showing up. &{template:default} {{name=Health Check}} {{PC 1= AC [[@{PC1|AC_calc}]] - HP @{PC1|hp} / @{PC1|hp|max}}}
Wow, yeah, that took care of it! Thank you so much!
1588527813
GiGs
Pro
Sheet Author
API Scripter
great :)