I've read more of the forums now, and I understand a bit more about the limitations. What I had hoped was to use macros as functions I could refer to for a variety of game mechanics, so that I didn't have to type in the formula each time, using them like subroutines. For example, in the game an attribute's point cost is based on its rank, where each cost is equal to all of the ranks up to that one added together (the sum), so that a rank of 4 costs 1+2+3+4, or 10 points. If I had a function that would let me give a rank and return the sum, it would be re-usable. The way it is I have to type in a formula for each instance, which is fine. But I also have other uses for that function, as well as for a reverse version (provide cost and get rank, a more involved formula). What I can do is just copy and paste for each case, then insert the relevant constants. I'm trying to digest the api script protocols for Roll20, which would seem to enable the creations of callable functions, but am I right that even then the result would post to chat, not provide input for attributes or macros?