Forgive the ignorance, but I think I'm struggling with the same issue.
Was looking for a simple way to get magic armor as a percentage and found this in the story_header.div:
query CharacterGetMagicArmorPercentage([in](CHARACTERGUID)_Character, [out](INTEGER)_Percentage) (2,0,133,1)
When I open the script editor and try to use CharacterGetMagicArmorPercentage in a charscript, the text stays black, instead of turning red. Does that mean the editor doesn't recognize it, and it won't do anything for me?