• 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

Creating a restricted list based by spell level

shadowninja

New member
Hi!

I need a help to create a classe feature using the following characteristics:

Each level the character can select any necromantic spell from any list, limited by your maximum spell level he can cast, and add to your spellcasting list and, to help selecting, the first selection list determines the level. (I done that!)

My problem is: I can't create a restriction. I am using the following options e codes, inspired in Elven Arcana (Oracle) and Greater Spell Selection (Magus):

Code:
[B]Item Selection Section[/B]

[I]Select From:[/I] Spell levels 1-6
[I]Restrict First List to:[/I] All Things

[B]Code:[/B]
      field[usrCandid2].text = "component.BaseSpell & sClass.? & !sClass.cHelpMag & (val:sLevel.? = " & field[abValue].value & " & sSchool.Necromancy)"
 
You shouldn't need to restrict level with a separate selection, that can already be done right with the usrCandid

Code:
field[userCandid1].text = "component.BaseSpell & sSchool.Necromancy & (val:sLevel.? <= " & hero.childfound[cHelp???].field[cMaxSpLev].value & ")"

Since you did specifically say what it was on this is for a classes class special, just replace the ??? with the class you're targeting's abbreviation. You should be able to add this any number of times to the class and it allow selection of any necromancy spell up to your current max spell level.

Also note, I haven't tested this specifically, but it is based on something I've used before.
 
Since you did specifically say what it was on this is for a classes class special, just replace the ??? with the class you're targeting's abbreviation. You should be able to add this any number of times to the class and it allow selection of any necromancy spell up to your current max spell level.
Maybe I am missing something but couldn't you just use "root" instead of the "hero.childfound" to the specific class helper be easier. Sense the class special is bootstrapped to the class helper.

In example:
Code:
field[userCandid1].text = "component.BaseSpell & sSchool.Necromancy & (val:sLevel.? <= " & root.field[cMaxSpLev].value & ")"

This way the special is totally generic and can be bootstrapped to any class and the logic will work. :)
 
Yep you could, but I had just copied from some old code. It was actually from an archetype for Rite and since it wouldn't be going to other classes it was just using the class instead of root.linkage[varies].???. I was also very new still back then. Not so new now.
 
If this is running from a class special, I would call the foctoclass procedure, myself. That way it will get to the class helper it is associated with, whether bootstrapped to the class helper directly or added by something else, like an archetype.

* Code Snobbery activate *
 
If this is running from a class special, I would call the foctoclass procedure, myself. That way it will get to the class helper it is associated with, whether bootstrapped to the class helper directly or added by something else, like an archetype.
oh yeah. I totally forgot about that procedure. That is very nice then you just have to do focus and never care where the ability is bootstrapped.

I should go change some code I created this weekend to use that actually!

* Code Snobbery activate *
No kidding Mr Pathfinder comes in to show up all us newbs! :eek: :D :)
 
Back
Top