Thread: 5e Dark Sun
View Single Post
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 600

Old February 9th, 2023, 08:47 PM
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:

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.

Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub.

Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts!

Last edited by Fenris447; February 9th, 2023 at 08:50 PM.
Fenris447 is offline   #21 Reply With Quote