The calls mentioned by LaughingLeader, such as
CharacterGetAttribute, are for
Osiris scripting. GetStat is a behaviour script call, which can also request attribute values along with others. I'm not sure whether there's a behaviour script to change an attribute value, but you can do it from Osiris (using the Set calls mentioned above).