Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
evilash
Member
 
Join Date: Sep 2009
Posts: 55

Old March 31st, 2010, 01:06 AM
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?
evilash is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,217

Old March 31st, 2010, 08:22 AM
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)
Mathias is offline   #2 Reply With Quote
evilash
Member
 
Join Date: Sep 2009
Posts: 55

Old March 31st, 2010, 10:20 PM
Makes sense, thanks.
evilash is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:08 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.