• 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

Limiting racial spells

frumple

Well-known member
I am working on a monster that casts spells as a sorcerer but is limited to the Illusion and Necromancy schools as well as the spells from the Evil domain. I have tried the following script:

Code:
Final Phase/10000

 ~ only allow Sor spells from the Illusion and Necromancy schools and the Evil domain

foreach pick in hero from BaseSpell where "!(sSchool.Illusion | sSchool.Necromancy) & sClass.cHelpSor"
   perform eachpick.assign[Hide.Spell]
nexteach

but it doesn't work. All the sorcerer spells are still showing up on the creature's racial spell list.
 
I think the issues is that the Hide.Spell tag is not working as it should (or my timing is off, but i have tried different timings including First/100, First/10000, and Post-Levels/10500). All the spells chosen in the script have the tag, but they are not doing anything.
 
What you need to do is modify the expression that chooses which spells appear for the race, the appropriate field is cSpellExpr on the race.

Look at the eval script on the Red Mantis Assassin prestige class modifies it for a Class and see if you can adapt that for a race.
 
Back
Top