Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
shadowninja
Junior Member
 
Join Date: Feb 2010
Posts: 4

Old May 22nd, 2017, 06:28 AM
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)"
shadowninja is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old May 22nd, 2017, 08:35 AM
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.
AndrewD2 is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 22nd, 2017, 12:49 PM
Quote:
Originally Posted by AndrewD2 View Post
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.

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.
ShadowChemosh is offline   #3 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old May 22nd, 2017, 01:28 PM
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.
AndrewD2 is offline   #4 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old May 22nd, 2017, 02:19 PM
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 *
Aaron is offline   #5 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old May 22nd, 2017, 02:25 PM
If only there were a nice API document so that everyone could know what everything does :-P
AndrewD2 is offline   #6 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 22nd, 2017, 02:26 PM
Quote:
Originally Posted by Aaron View Post
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!

Quote:
Originally Posted by Aaron View Post
* Code Snobbery activate *
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.
ShadowChemosh is offline   #7 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 22nd, 2017, 02:27 PM
Quote:
Originally Posted by AndrewD2 View Post
If only there were a nice API document so that everyone could know what everything does :-P
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.
ShadowChemosh is offline   #8 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old May 22nd, 2017, 02:55 PM
Quote:
Originally Posted by ShadowChemosh View Post
LOL I was going to write that and figured not worth kicking a dead horse!
That horse has been kicked, animated by a necromancer, fought in multiple battles, then finally smote into the ground by an army of paladins.
Aaron is offline   #9 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:13 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.