Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
OK call me dumb, but how do I determine is the class i am creating is able to cast a specific level of devine spells? Thanks.
PS: Also how can i add a "+1 level of existing spellcasting class" as a special ability for the class? Thanks again. |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
validif (tagcount[Hero.Divine] >= X + 1)
Where X is the level of spell use required. You can do that in the Extra Magic/Power levels button in the class tab of the editor, scroll down, it is near the bottom. |
#2 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
Cool, thanks. Now, any idea how can i check to see what deity is listed for the character? The Shadowspy prestige class requires a specific deity.
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Can't currently be done.
|
#4 |
Senior Member
Join Date: Jul 2007
Location: Syracuse, NY (USA)
Posts: 213
|
Awhile ago I wrote this script as a pre-req for a custom feat:
Code:
@valid = 0 var result as number result = compare(hero.child[background].field[bDeity].text, "Somename") if (result = 0) then @valid = 1 endif |
#5 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
I'll give it a try, thanks.
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
That's really not proper, since it relies on exact spelling and capitalization. Just leave the requirement as text.
|
#7 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
Ya, i was worried about that as well. But i am looking for Pelor, so spelling really shouldnt be a big problem, and i could look for either instance of it, so i'll let you know how it goes.
|
#8 |
|
|