Yes it could be. I am afraid I don't know much about Pathfinder. I downloaded the demo though, and it looks like the charges field has been changed to be called "trkMax", so try
field[trkMax].value = hero.child[cHelpWpM].field[cTotalLev].value
Also, if you are asking about Pathfinder stuff, there is a seperate forum for that, and they may prove more able to assist than I.
|