• 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

Change custom ability count

Sendric

Well-known member
I'm probably missing it, but I can't seem to find it in the forums. Is there a way in a script to change the custom ability count? For instance, I am working on a special that would reduce a wizard's tertiary ability (arcane bond) ability count from 1 to 0.
 
There's a checkbox on the archetype tab for each of the custom ability categories that allows you to remove that category.
 
Ok, but I'm trying to do it with a class special, not an archetype. The class special belongs to a prestige class that removes the arcane familiar. I suppose, though, that I could create an archetype and bootstrap it to the special. Would that work?
 
Add a few levels of Wizard to a test character. In the Develop menu, choose "Floating Info Windows", "Show Selection Fields", and scroll way down in that list, and select "Wizard (cHelpWiz)"

Study that list of the fields that are on the wizard class. Do you see any that are related to tertiary abilities?
 
Ok, so I think I found the field I want to change. I did some searching on the forum, and came up with this code (its a class special):

Code:
root.field[cCustTeTot].arrayvalue[0] -= 1

It compiles ok, but doesn't seem to have any effect on the Tertiary ability count. I tried moving around the timing with final (5000) and Post-Levels (5000) to no avail. Am I on the right track or should I be looking elsewhere?
 
Earlier - It's likely to be looked up during the Levels phase, since it's related to the level of a class. So, you need to apply your change before Hero Lab looks it up.
 
Last edited:
I tried it at Levels (1000), then dropped it down to Pre-Levels and First. Still no change to the array value. I'll keep at it though.
 
Isn't the class special on the prestige class, but you want to change the array on the Wizard class?

root. will get you to the prestige class, if you're starting in one of that class' class specials.
 
hmm...that makes sense. So I guess I need to figure out how to get from the prestige class' class special to the array on the wizard class.

edit: got it

Code:
hero.child[cHelpWiz].field[cCustTeTot].arrayvalue[0] -= 1

Thanks for your help, Mathias.
 
Last edited:
Back
Top