|
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
I am trying to find how I can determine if a class has spell use or not. Specifically I have the Battle Blessing feat which has a pre-req of Ability to cast paladin spells. How can determine if the Paladin has spell use yet?
I could check for the level to determine it that way, but this feat could be used with paladin varient classes who might not have spell use at all. I run into the same thing with Druids and Mages, anyone have any idea where the item is to compare against? Thanks. |
#1 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Chiefweasel this is a pre req script of mine that checks for the ability to cast 3rd level arcane spells
Code:
@valid = 0 if (tagcount[Hero.Arcane] > 3) then @valid = 1 endif |
#2 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
I was thinking of using the class level to check, but some class varients dont use spells. Such as the Holy Warrior, they give up spells for extra feats. There should be a "Thing" that indicates spells use though, much like the Wild Shape that druids get. You can test for the Wild Shape by it self, so you should be able to just test for pally Spells.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Similar problems cropped up for me when doing a ranger varient that does not use spells. First of all the modifications were not working as far as I could tell (I haven't gone back to look at it again). Secondly, I could subtract the # of spells a ranger normally gets at that level, but what if he has a high enough wisdom to get bonus spells? How do I account for that.
It would be simpler probably to just have an on/off switch for spells that could be detectable in the program. |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Quote:
I do intend to add a "no spellcasting" switch to class variants. Eventually. If that doesn't work, please email me the variant class at some point - It would be nice to have a starting point when I do my testing. |
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Quote:
|
|
#6 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
How about determining if a character can cast a specific level spell. I am looking at several feats in Complete Champion with the Prerequisite: Ability to cast 2nd-level spells. It could be any class though, anyone have any idea if its possible to determine this? thanks.
|
#7 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
The script I posted earlier checks for the ability to cast 3rd level Arcane spells and because the srd only recognises Divine and Arcane spells then I think this code could work or a variation of it, all you'd need to do is alter the spell level from 3 to 2 for each of the casting types.
@valid = 0 if (tagcount[Hero.Arcane] > 3) then @valid = 1 endif else if (tagcount[Hero.Divine] > 3) then @valid = 1 endif Last edited by bodrin; September 2nd, 2009 at 07:32 AM. |
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Here you go.
@valid = 0 if (tagcount[Hero.Arcane] >= 2 + 1) then @valid = 1 elseif (tagcount[Hero.Divine] >= 2 + 1) then @valid = 1 endif |
#9 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
I'll give it a try and see what happens. Thanks.
|
#10 |
|
|