Well, unless you need to access the attribute itself, just put the modifier in the first block, and the attribute in the second. ie: Strength: 4 18. Then @Strength will return 4. Not that that gives you the max value, but it looks like you want to use the max for something other than the actual maximum anyways?