• 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

Spell Use

chiefweasel

Well-known member
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.
 
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

If you modify the Hero.Arcane to Hero.Divine and the >3 and follow it with if else statements then that may work for you. First by checking for the Divine tag of the paladin then checking for minimum spell level.
 
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.
 
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.
 
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.
 
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:
Here you go.

@valid = 0
if (tagcount[Hero.Arcane] >= 2 + 1) then
@valid = 1
elseif (tagcount[Hero.Divine] >= 2 + 1) then
@valid = 1
endif
 
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.

Subract 99 spells per level, not just the exact number. It won't create any problems.

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.
 
Here you go.

@valid = 0
if (tagcount[Hero.Arcane] >= 2 + 1) then
@valid = 1
elseif (tagcount[Hero.Divine] >= 2 + 1) then
@valid = 1
endif

And just as a reminder of some new programming conventions:
Code:
validif (tagcount[Hero.Arcane] >= 2 + 1)
validif tagcount[Hero.Divine] >= 2 + 1)

Will do exactly the same thing with less typing.
 
Subract 99 spells per level, not just the exact number. It won't create any problems.

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.

Hey, mghel, I mentioned in another post, the spell adjustments are not working. It might have gotten lost in the shuffle of other posts I made during the week prior and during Gencon. I'll e-mail the class to you.
 
Back
Top