Junior Member
Join Date: Feb 2010
Posts: 4
|
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:
Item Selection Section Select From: Spell levels 1-6 Restrict First List to: All Things Code: field[usrCandid2].text = "component.BaseSpell & sClass.? & !sClass.cHelpMag & (val:sLevel.? = " & field[abValue].value & " & sSchool.Necromancy)" |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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 & ")" Also note, I haven't tested this specifically, but it is based on something I've used before. |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
In example: Code:
field[userCandid1].text = "component.BaseSpell & sSchool.Necromancy & (val:sLevel.? <= " & root.field[cMaxSpLev].value & ")" Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#3 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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.
|
#4 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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 * |
#5 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
If only there were a nice API document so that everyone could know what everything does :-P
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
I should go change some code I created this weekend to use that actually! No kidding Mr Pathfinder comes in to show up all us newbs! Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
LOL I was going to write that and figured not worth kicking a dead horse!
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#8 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
|
#9 |
|
|