This might be outside the realm of the API scripting. but is it possible to make scripts others call on, like the way you call methods in other class files?
For example instead of having to do the whole 'find player, find character sheet, find attribute on sheet' in every script that needs to pull an attribute, I could have a script of 'commonly used' items and call them and pass variables. like instead of having to do this 20 times in 10 scripts(a short one to keep it simple):
Having to do that every time to get one, I could have it on another script of common used methods called 'MyCalls' as 'GetAtt' and call it with like
anyone know if this is possible?
For example instead of having to do the whole 'find player, find character sheet, find attribute on sheet' in every script that needs to pull an attribute, I could have a script of 'commonly used' items and call them and pass variables. like instead of having to do this 20 times in 10 scripts(a short one to keep it simple):
var oCharacter = getObj("character", obj.get("represents"));
var oA = findObjs({_type: "attribute",name: "STR",_characterid: oCharacter.id});
Having to do that every time to get one, I could have it on another script of common used methods called 'MyCalls' as 'GetAtt' and call it with like
"MyCalls.GetAtt(Bob,STR);or such.
anyone know if this is possible?