• 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

Modifying Magus Spells

AndrewD2

Well-known member
So I'm working on an archetype that adds all abjuration spells to the magus spell list. I think great I've done something like this before I've used cSpellExpr for another class.

Well that didn't work what I had was

Code:
linkage[varies].field[cSpellExpr].text = "(" & linkage[varies].field[cSpellExpr].text & ") | (sSchool.Abjur)"

I didn't do what I wanted, in fact it made it so only Abjuration spells showed up as spells I could take (and only the one in the spellbook).


So then looking around I find cSplBkExpr and think maybe that's what I need

Code:
linkage[varies].field[cSplBkExpr].text = "(" & linkage[varies].field[cSpellExpr].text & ") | (sSchool.Abjur)"

and that made all the abjuration spells show up as available in the spellbook, but that was all that showed up.

I've tried these both at PL 10500 (which is when Red Mantis Assassin has the timing set for cSpellExpr) and Final 99999999 (which is what Aaron had said to someone in a forum post for the alchemist) I'm really lost as to why it's losing all the spells from the Magus' list, any ideas would be great.

Thanks,
Andrew
 
In your second script, why set a spell-book specific field equal to the general spell field? Why not set it equal to the existing spellbook field, along with your addition?
 
Yeah I just caught that. I think I just got it working, although I take it I need to change both expressions because when I only changed the spellbook field the new spells didn't show up as selectable after I added them to the spellbook.
 
Back
Top