View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old July 12th, 2012, 07:33 AM
So I've been looking at the Metamind prestige class you provided in the latest release of the Psionics Unleashed. I have yet to figure out how to increment the power point totals. The only idea I came up with that I wasn't able to try out is to somehow use a foreach loop to increment the array lookup.

My current foreach loop looks like this:

Code:
foreach pick in hero from BaseClSpec where "SpecSource.cHelpPsi & thingid.cPsiPPTot"

  eachpick.field[xExtraLev].value += 1

nexteach
This compiles, but doesn't actually do anything (not surprisingly). Is there a field other than xExtraLev that would tell HL to use the next array value? cPsiPPTot is an array, and the goal here is to use the next value. The current value is derived from cMagicLev as far as I can tell, but that also is used to indicate how many powers and the power levels that are available so we can't simply increase that. Any thoughts from the people who understand the code better than me?
Sendric is offline   #3 Reply With Quote