Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
CptCoots
Senior Member
 
Join Date: Apr 2013
Location: Poughkeepsie, NY
Posts: 102

Old May 7th, 2014, 02:20 AM
I know that as things stand right now this is "unsupported". I was curious as to what the limiting factor was.

Part of the reason I'd love to see this is for class abilities like Advanced Learning. This is currently implemented, as I've seen it, as a Class Special with a Feat of the same name bootstrapped. The Feat then has a Freeform edit control in the Select From...doohicky. This does not add the spell to spell lists, and thus only shows up on the character's Specials tab (not optimal). I've been reduced to writing a version of the Feat for a specific character where I know the spell(s) I want and I've made that version of the spell with a User tag for it. This tag denotes what I let the feat choose from and then I get that spell (adding yet another tag to the spell, from the feat which then lifts the violation of an Expr-req).

What would be supremely awesome would be if I could check the fChosen field and grab the idstring. Then go through eachpick on your hero where CasterSrc.Arcane is present. Now add a bootstrap of the idstring spell from fChosen and add the tags required for that particular caster.
CptCoots is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old May 7th, 2014, 04:47 AM
Quote:
Originally Posted by CptCoots View Post
I know that as things stand right now this is "unsupported". I was curious as to what the limiting factor was.

Part of the reason I'd love to see this is for class abilities like Advanced Learning. This is currently implemented, as I've seen it, as a Class Special with a Feat of the same name bootstrapped. The Feat then has a Freeform edit control in the Select From...doohicky. This does not add the spell to spell lists, and thus only shows up on the character's Specials tab (not optimal). I've been reduced to writing a version of the Feat for a specific character where I know the spell(s) I want and I've made that version of the spell with a User tag for it. This tag denotes what I let the feat choose from and then I get that spell (adding yet another tag to the spell, from the feat which then lifts the violation of an Expr-req).

What would be supremely awesome would be if I could check the fChosen field and grab the idstring. Then go through eachpick on your hero where CasterSrc.Arcane is present. Now add a bootstrap of the idstring spell from fChosen and add the tags required for that particular caster.
The Advanced Learning class feature for Warmage and Beguiler have been upgraded for the upcoming release. There is no longer a feat attached to this class special. Instead, I am using the following script to take the chosen spell and add it to the warmage list:

Code:
doneif (field[usrChosen1].ischosen = 0)

var spell as string
spell = field[usrChosen1].chosen.idstring
spell = "thingid." & spell

hero.childfound[cHelpWMa].field[cSpellExpr].text &= " | " & spell
Same code for Beguiler, except with the right cHelp??? child.
Sendric is online now   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 7th, 2014, 09:46 AM
Quote:
Originally Posted by Sendric View Post
Code:
doneif (field[usrChosen1].ischosen = 0)

var spell as string
spell = field[usrChosen1].chosen.idstring
spell = "thingid." & spell

hero.childfound[cHelpWMa].field[cSpellExpr].text &= " | " & spell
So you would need to test but I am 99% sure you can remove the "hero.child[]" part and use "root." instead. This way the class special becomes 100% generic. It will affect the spell expression on whatever class its bootstrapped too.

I don't think this is a Pathfinder specific logic I think that is part of the HL authoring kit logic.

Code:
doneif (field[usrChosen1].ischosen = 0)

var spell as string
spell = field[usrChosen1].chosen.idstring
spell = "thingid." & spell
~ Change the spell expression for the class we are attached too
root.field[cSpellExpr].text &= " | " & spell
Just another thought that I know I have been pushing HL scripts more and more but it means you can combine more steps together:
Code:
~ If nothing chosen get out now!
doneif (field[usrChosen1].ischosen = 0)

~ Change the spell expression for the class we are attached too
root.field[cSpellExpr].text &= " | " & "thingid." & field[usrChosen1].chosen.idstring

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
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old May 7th, 2014, 10:14 AM
And here I thought I was already being efficient. You're such a show-off.

Alright, I can use this instead, though I don't think I can make one universal class feature though. They gain this ability multiple times each, and each time the list of spells they can choose from grows, which means new custom expressions for each one. Still, very useful. Thanks, Shadow.
Sendric is online now   #4 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 07:10 AM.


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