• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Where and how to count class levels?

DeltaMasterMind

Well-known member
Ok so I am trying to come up with different methods to accurately have HeroLab count levels for a value. I am not sure if #levelcount[CLASS] can even be used in Eval Script for extracting a value to insert to the abValue within Class Specials. I have also tried:

perform hero.childfound[cSAssassin].setfocus
doneif (state.isfocus = 0)
field[abValue].value = focus.field[cIndex].value

and

perform hero.childfound[cSAssassin].setfocus
doneif (state.isfocus = 0)
field[abValue].value = hero.childcount[cBonusHD]

but I seem to have issues with finding the right timing to even make them work let alone count the right value. I usually get just a value of 1 even when I have 10 levels of specific class loaded up. I have been searching the forum a few days now trying to find specific code, sadly I have come up short. Any suggestions?
 
Within the editor, go to the Help menu...Help On Using the Editor.

Then go to Tutorial 7 (Creating the Alchemist Class), and within that tutorial, read the "Class Specials Part 1: Alchemy and Bonus Feats" section. That includes an example with the answer to what you're asking here.
 
Back
Top