Hi there, new Mentor here who's a bit out-of-date as a programmer, I'd like to ask a Question: I'm trying to Implement D&D3.0 (now called Pathfinder?) and as you know the Ability Score Modifiers increase by one for every two points of Ability Score, from average (no bonus, score of 10-11) up to +4 (ability score of 18 or 19), etc. I have the six Abilities defined on my Character Sheet, so if the ability in question were Charisma, then the formula that I am using would be: (floor(@{Charisma}/2-5)) . I'd like to write a global function for that... would that technically be a Macro, or an API script? How do I create a macro that works like a function: meaning, I pass it a Character's Attribute, and it returns a number that I can easily use in a /roll expression?