• 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

Scripting Arcane Dabbler trait

evilash

Well-known member
I'm currently trying to script the trait Arcane Dabbler from Elves of Golarion. The trait works almost like the Magical Talent trait, with the exception that you should only be able to select arcane level 0 spells. How do I implement this?
 
Since in Hero Lab, each spell can be applied to multiple classes, it's the classes, not the spells, that determine whether they're arcane, divine, or neither (which is currently only the case for the Alchemist's extracts).

Therefore, the closest you can come is to restrict the list of spells available to wizard and bard spells (and any other arcane classes you may want to add).

Take the existing expression for magical talent:

Code:
component.BaseSpell&sLevel.0
and add an additional restriction that the spell be available to wizards or bards (since there aren't any sorcerer spells that aren't also available to wizards, you only have to restrict the list to one or the other):

Code:
component.BaseSpell&sLevel.0 & (sClass.cHelpWiz | sClass.cHelpBrd)
 
Back
Top