• 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

Error with Class Special

AndrewD2

Well-known member
I'm receiving this error when I use a class special (It creates a Ki pool, I based it off of the Rogue's Ki Pool talent, changing where necessary.

Error said:
Attempt to access field 'cTotalLev' that does not exist for thing 'cKusKiPool'
Location: 'field calculate' script for Field 'xTotalLev' near line 28

I'm not sure what this cTotalLev isfor sure, I see it in an eval script for checking if you have monk levels in the rogue ability, I even copied that section, but I'm still getting the error.

Any help would be great.
 
Class Specials may only be bootstrapped from one of the following:

A Class
A Custom Ability
An Archetype

If you bootstrap it from anywhere else, you'll get that error when the class special tries to figure out what its effective level is. The error I've seen most often is bootstrapping one class special from another class special.
 
And now I'm fearing I may have to make a class special that does not bootstrap the monk one, but if that's the case I'm afraid of how I'll have to handle prereqs that require a ki pool and abilities that increase your ki pool (I really don't have to have to recode them all for a second class)
 
Well trying to get this to work I've made an Ability that I'm bootstrapping to the class to change the information to view properly. I've got the tracker adjusting, I've got the abSumm showing up, but when I try to change the text that shows up when you click the ? and the summary it shows on the Class tab it still stays with the monks info. I've run the scripts and Post-Attribute, Final and Render all at 10000.

I think I'm missing something here, but I don't know what.
 
The ? usually shows the description of an ability. Are you trying to overwrite the ability description? Is that your aim?
 
Yes, I just need it to still be cMnkKiPool (for prereqs and other abilities that increase the ki pool), but that ability is specific in description to Monk and Ninja.
 
Well for pre-reqs you can just have the ability forward the HasAbility tag for cMnkKiPool to the hero, but redirecting other stuff to it would be a pain. You'd have to modify things which add or pull from the original to pull from the new ability instead (or in addition too, depending on your intention).

As for changing the description, you can't overwrite the existing description, but you can use the #appenddesc macro to add text to the end. I'm afraid that's the best I can think of for now.
 
I actually found a way to adjust the actual description in a dataset I was working on.

This is in an eval rule at First/1000
perform state.thing[<your ability id>].amendthing[description, replace(state.thing[<your ability id>].field[descript].text,"<text to replace>","<text to replace with>",0)]

Now I just used it to replace a couple of words,so you may want to experiment to see how much you can replace at one time.
 
Back
Top