Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Portilis
Senior Member
 
Join Date: Feb 2013
Location: Blandford, UK
Posts: 164

Old April 15th, 2013, 06:10 AM
I've been working on implementing the Erudite class from Complete Psionic and whilst I overall have something that works I have hit a slight snag with powers known.

The class learns spells in a similar manner to a wizard, so unlike the rest of the psionic classes which have a set quantity of powers they can have at each level, Erudites have a base amount they start with then can learn more as and when desired.

In the long term, it would be good to see the addition of a spellcaster type dropdown much like is used for regular spellcasting (i.e. memorised, spontaneous, spellbook, unrestricted), but for now I'm trying to create an adjustment to allow me to add extra slots for the powers as I get them.

The issue I have hit is in trying to work out exactly what to add. I've narrowed the field down to cPsiPowTot, but am stuck there. When I try to use it as a straight .value it comes up with the error "defined with an incompatible style", but it doesn't appear to use an array in the xml for the class. I tried with array values of 0 and 1 to see if that helped, but whilst it doesn't present an error, it also doesn't affect it at all.

Code at present is:

Code:
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ If nothing chosen, get out now
      doneif (field[pChosen].ischosen = 0)

      ~ Add extra powers appropriately
      field[pChosen].chosen.field[cPsiPowTot].value += field[pAdjust].value
If anyone has any idea on the details for the field, it would be handy to know.


Mike
Portilis is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old April 15th, 2013, 02:29 PM
cPsiPowTot is an array value. You would use this to increase power points at a specific level (ie hero.child[??].field[cPsiPowTot].arrayvalue[3] would increase points at 4th level). To simply increase total points, try cPsiPPMax.
Sendric is offline   #2 Reply With Quote
Portilis
Senior Member
 
Join Date: Feb 2013
Location: Blandford, UK
Posts: 164

Old April 16th, 2013, 02:03 AM
Quote:
Originally Posted by Sendric View Post
cPsiPowTot is an array value. You would use this to increase power points at a specific level (ie hero.child[??].field[cPsiPowTot].arrayvalue[3] would increase points at 4th level). To simply increase total points, try cPsiPPMax.
No, cPsiPowTot appears to be what is being referenced in the xml for the quantity of powers known, which is what I'm after. I'm not after power points, which is what cPsiPPTot references and by the sound of things cPsiPPMax will be a reference to the same thing.

I tried cPsiPowMax however after reading this, and it worked, so thanks
Portilis is offline   #3 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old April 16th, 2013, 05:21 AM
Ah. Sorry for the confusion. I was in kind of a rush. Glad you got it figured out though.
Sendric is offline   #4 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:18 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.