• 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

A fix for a fix

Hi out there,
I had a problem with spellbook-using clerics being unable to pick domain spells. The below script fixed that but the spellbook button has disappeared. I think it may be becasue of the "delete[Hero.Spellbook]" part. He says the program uses three different tags. Could this be the one for the button? I need the tag that tells the program to look in the spellbook for secondary spells. I've found no easy way to look this up.

Thanks for any help.



~ If we don't have any secondary class spells allowed tags, we haven't added
~ a domain, and shouldn't need to do anything here.
doneif (tagis[ClsScAllSp.?] = 0)

~ We need to make a different set of tables show up for our secondary
~ spells. Fortunately, the tags which are used to determine whether book
~ or unrestricted tables show up, differ between primary and secondary/
~ tertiary spells, so we can change one without affecting the other.
perform delete[Hero.Spellbook]

~ The secondary spells we are allowed to take are dependant solely on the
~ domain we may have taken (they don't need to be in our spellbook), which
~ should have applied it's ClsScAllSp tags to us already. Overwrite the
~ automaticallly generated tag expression with just those tags, nothing
~ else.
field[cSplScExpr].text = tagids[ClsScAllSp.?,"|"]
 
Last edited:
Hmm, I hadn't noticed that behaviour when I was testing the code. At this point, I think I'll have to change things in the program specifically to accommodate you. I'll see what I can do before the next release (likely sometime next week).
 
So, I just loaded the file you sent me with the original report, with the change I recommended, and I am not seeing what you describe, at least not for the one class I modified. Is this occuring for only some classes or all of them? Something else must be going on here, and I would rather know how to fix things as they stand now than rejigger things unnecessarily.
 
Current files

Hi Aaron. Here are the files. The special abilities button shows up, but not the spellbook one. Hoepfully it's a simple fix not a major program change. Also, on a side note, any progress on getting spellbooks to print for non-standard spell casters (I have them using standard spell lists with my spells added, but it still won't print)?
 

Attachments

Could you do me the favor of changing the unique ID of your Fate's Favored trait? If we're going to be trading this file back and forth, I don't want to have to keep commenting it out so I can compile.

The Hidden thing you have for the Halfling race also prevents compile for me, since that is bootstrapped by a minion in one of the books.
 
Last edited:
Alright, I hope I have this worked out for you. Unfortunately it did require that I define some new tags and rejigger things slightly, so it won't work for you until our release next week.

Basically, once the release is out, in the place I told you to delete Hero.Spellbook, delete the Helper.SecSplBook tag instead
 
As for the printing other spellbooks, that's not going to be easily moddable any time soon, so I made a seperate file for you. To add new classes to it, open the file in a text editor, and modify the List expression of the oSplBkTbl2 portal. Right now it looks like this:

Code:
      <list><![CDATA[
        Spellbook.? & !Helper.CustomItem & ((hero#Classes.MagDruid & Spellbook.cHelpMDrui) | (hero#Classes.MagPriest & Spellbook.cHelpMPrie)) & !Hide.Spell & !Helper.ActMythSpl
        ]]></list>

If you wanted to make the spells of the Chef class show up, you would modify it to look something like this:

Code:
      <list><![CDATA[
        Spellbook.? & !Helper.CustomItem & ((hero#Classes.Chef & Spellbook.cHelpChef) | (hero#Classes.MagDruid & Spellbook.cHelpMDrui) | (hero#Classes.MagPriest & Spellbook.cHelpMPrie)) & !Hide.Spell & !Helper.ActMythSpl
        ]]></list>
 

Attachments

Last edited:
Thanks again. This one is taking me a bit to figure out but I think I got the gist. I have the test file running parallel to the aldyryc one, and I add the "hero#Classes.Chef & Spellbook.cHelpChef" part for each of my other magician classes, adjusted accordingly for each. Looks likes it's working great. Looking forward to the release. Love the program.
 
Back
Top