Is it always modifying trkPsiPnt? If so, then you don't need any of the pChosen stuff; that's only if the adjustment can pick from a list of things (like if your adjustment can choose whether to modify your choice of Strength, Dexterity, Con, etc.)
So if the adjustment is always modifying the same thing (trkPsiPnt), then it should go like this:
That second section is going to be reusable for anything that modifies the Psi Points maximum. Just change the "field[pAdjust].value" part to whatever number or variable you want to add to the maximum.
So if the adjustment is always modifying the same thing (trkPsiPnt), then it should go like this:
Code:
~ If this adjustment isn't enabled, get out now
doneif (field[pIsOn].value = 0)
~ Adjust the Psi Point tracker Max Value up or down
hero.childfound[trkPsiPnt].field[trkMax].value += field[pAdjust].value
That second section is going to be reusable for anything that modifies the Psi Points maximum. Just change the "field[pAdjust].value" part to whatever number or variable you want to add to the maximum.
Last edited: