• 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

Class Level Dependent Ability

Sevisin

Well-known member
Hello,

I just recently purchased Hero Lab and though I'm relatively happy with the amount of content in the base files, I did notice a number of things the software itself is missing. Luckily, there is the Editor so I can add things in manually. However, I'm having some problems getting things to work. Maybe I'm missing something or something isn't clicking, but things are just not working how I want them to. The documentation isn't complete and rather vague in a number of places nor can I find a suitable API so I can't find the solution to my problem. Maybe I'm looking in the wrong place. Here is what I plan on doing...

A class is level 1. At that level, they can pick between ability A and B. At level 2, the player can pick between abilities C and D and so on.

I currently have it to where the abilities show up and are available at the level, but only at the level. For example, I start the character at level 2. I can select abilities C and D, but A and B are grayed out.

here is the section of code I have in the Pre-Reqs section on each of the abilities...
Code:
@valid = 0
if (#levelcount[MyClass] = 1) then
  @valid = 1
endif

After reading the code, I realize why it's doing what its doing, but I can't find any decent documentation to resolve my problem.

Thanks,

-S
 
Back
Top