• 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

Custom Ability pre-req defined by choosing class

Sendric

Well-known member
So I have a bit of an issue with the Tome of Battle that I didn't realize until I read the unofficial official errata. Each base class from the book carries its own initiator level. For example, a Crusader 11/Swordsage 8 would have an initiator level of 15 for the Crusader, but only 13 for the Swordsage. Both classes have access to some maneuvers, but if the maneuver requires an initiator level 15, then that maneuver would only be available to the character via his/her Crusader levels. So, how do I script such a thing? I can set up the initiator level for each class fine. For example, if I have a special called "Initiator Level - Crusader" and it sets its value appropriately. Checking the value on this is easy enough, but makes the maneuver available to both classes. To make it only available to the crusader, I tried this:

Code:
if (linkage[table].field[cTotalLev].value <> 0) then
 validif (hero.childfound[xInitCrusa].field[Value].value >= 15)
endif

This gave me the following error upon compiling:

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'pre-requisite rule' script for Thing 'cStoDra081' on line 1
-> Script reference is invalid under the circumstances

Either I'm using the linkage command incorrectly (which is highly probably given my lack of experience with it) or it doesn't work right in d20. Either way, does anyone have any suggestions on how to handle this?
 
A prereq has to be tested both before and after it's been added to the character, but a linkage isn't established until after the pick has been added, so a linkage can't be used in a prereq.
 
So is there a way to check the parent class prior to it being added to the character? Would the above script work in an eval rule?
 
Last edited:
So is there a way to check the parent class prior to it being added to the character? Would the above script work in an eval rule?
This is exactly the same issue I had with Path of War (Pathfinders Tome of Battles Rules). You can't figure out what class from a Table Selection. I confirmed this by looking how LW implemented Psionics in d20. That works the exact same way with Powers.

Until the Power becomes a "pick" you can't test what your attached too. So only after your a "pick" can you throw the error. It can't be done while you exist as a "Thing" in a table. :(
 
Back
Top