It looks like the macros you found are for a different or older sheet. From the template it looks like you're using 5e, so for example the second to last unfound attribute warning is for @{selected|npcd_cha_mod}. For a 5e NPC this should be @{selected|charisma_mod}. Every sheet type can have different ability names baked in. If you open an NPC character sheet to the Attributes & Abilities page, then pop it out into a new window with the button in the top left, you can use the browser's CTRL-F search function to find the attributes you need if something isn't working. I think a recentish??? update standardised a bunch of core attributes names for 5e, there's a lot less str/dex/cha abbreviations, and the NPC_ has been dropped from a bunch of attributes where it was superfluous. Could be wrong about that. Side note, if you want to remove all the errors from the macro, chuck a &{noerror} right at the start. You will still get the errors within the template (unavoidable I think), but it'll get rid of all the peachy flesh coloured errors.