Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 11:29 AM
I am trying to create a new Bardic school: White Wind College. This is a a healer's college.

3rd) It grants the bard proficiency in Medicine (working).

3rd) It grants the bard a 2 plus level of the healing spell slot bonus on damage healed (stolen from cleric life domain. (working)

6th) It grants bard the ability to target 2 individuals with a healing spell that normally targets 1 individual.

14th) Allows the bard to chose 2 'Cleric' spells and add him to his list of prepared spells. Now this is pretty much identical with the Magical Secrets ability of the College of Lore, so I tried to steal the code and just change the usrCandid1 & usrCandid2 to limit the spell selection to cleric spells.

Easy I thought. Just use the code from the Magical Secrets feature . . .NOT!
The custom expressions seem to work fine showing only cleric spells.

In the Eval Rules script I changed the references to the College of lore tag to my features tag.

Unfortunately I get an error that I have selected the spells but not added them . . .

I can post the Eval Rules scripts from the original and mine if necessary.
I've tried to stick to the original script just changing the references to my feature . . .


Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 5th, 2016, 11:40 AM
Yep need to see the scripts. Otherwise we are working blind...

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   #2 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 11:51 AM
If you need any further info please let me know.

Eval scripts (same on original and mine)


Quote:
doneif (tagis[Helper.ShowSpec] = 0)

doneif (tagis[Helper.Disable] <> 0)

if (field[usrChosen1].ischosen <> 0) then
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
endif

if (field[usrChosen2].ischosen <> 0) then
perform field[usrChosen2].chosen.pulltags[ClsAllowSp.?]
endif

perform root.pushtags[ClsAllowSp.?]
Eval Rules (Magical Secrets feature)
College of Lore Tag: cBrdColLor
Custom Expresses 1 & 2 on class Special: component.BaseSpell

Quote:
validif (tagis[Helper.ShowSpec] = 0)

validif (tagis[Helper.Disable] <> 0)

var spellname1 as string
var spellname2 as string
var searchexpr as string
var messnames as string
var foundone as number

@valid = 1

if (field[usrChosen1].ischosen <> 0) then
foundone = 0
searchexpr = "KnowSpell." & field[usrChosen1].chosen.idstring & " & SpellType.cHelpBrd & Helper.Known"

foreach pick in hero from BaseSpell where searchexpr
foundone = 1

~ If this copy of the ability is bootstrapped by the College of lore, the chosen spells should be marked as Free, because they don't count against our spells known limit.
if (root.tagis[Ability.cBrdColLor] <> 0) then
perform eachpick.assign[Helper.Free]
endif
nexteach

if (foundone = 0) then
spellname1 = field[usrChosen1].chosen.field[name].text
@valid = 0
endif
endif

if (field[usrChosen2].ischosen <> 0) then
foundone = 0
searchexpr = "KnowSpell." & field[usrChosen2].chosen.idstring & " & SpellType.cHelpBrd & Helper.Known"

foreach pick in hero from BaseSpell where searchexpr
foundone = 1

~ If this copy of the ability is bootstrapped by the College of lore, the chosen spells should be marked as Free, because they don't count against our spells known limit.
if (root.tagis[Ability.cBrdColLor] <> 0) then
perform eachpick.assign[Helper.Free]
endif
nexteach

if (foundone = 0) then
spellname2 = field[usrChosen2].chosen.field[name].text
@valid = 0
endif
endif

if (@valid = 0) then
messnames = splice(messnames, spellname1, ", ")
messnames = splice(messnames, spellname2, ", ")
@message = "You have selected the following spells for Magical Secrets but not added them to your Bard spells known: " & messnames
endif
Additional Magical Features (My Feature)
White Wind College Tag: cBrdSOEWWC
Custom Expresses 1 & 2 on class Special: component.BaseSpell & sClass.cHelpClr

Quote:
validif (tagis[Helper.ShowSpec] = 0)

validif (tagis[Helper.Disable] <> 0)

var spellname1 as string
var spellname2 as string
var searchexpr as string
var messnames as string
var foundone as number

@valid = 1

if (field[usrChosen1].ischosen <> 0) then
foundone = 0
searchexpr = "KnowSpell." & field[usrChosen1].chosen.idstring & " & SpellType.cHelpBrd & Helper.Known"


foreach pick in hero from BaseSpell where searchexpr
foundone = 1

~ If this copy of the ability is bootstrapped by the White Wind College, the chosen spells should be marked as Free, because they don't count against our spells known limit.
if (root.tagis[Ability.cBrdSOEWWC] <> 0) then
perform eachpick.assign[Helper.Free]
endif
nexteach

if (foundone = 0) then
spellname1 = field[usrChosen1].chosen.field[name].text
@valid = 0
endif
endif

if (field[usrChosen2].ischosen <> 0) then
foundone = 0
searchexpr = "KnowSpell." & field[usrChosen2].chosen.idstring & " & SpellType.cHelpBrd & Helper.Known"

foreach pick in hero from BaseSpell where searchexpr
foundone = 1

~ If this copy of the ability is bootstrapped by the White Wind College, the chosen spells should be marked as Free, because they don't count against our spells known limit.
if (root.tagis[Ability.cBrdSOEWWC] <> 0) then
perform eachpick.assign[Helper.Free]
endif
nexteach

if (foundone = 0) then
spellname2 = field[usrChosen2].chosen.field[name].text
@valid = 0
endif
endif

if (@valid = 0) then
messnames = splice(messnames, spellname1, ", ")
messnames = splice(messnames, spellname2, ", ")
@message = "You have selected the following spells for Additional Magical Secrets but not added them to your Bard spells known: " & messnames
endif
Phase & Priority is the same on both so I didn't include them.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 5th, 2016, 12:09 PM
Well the problem is that the original script does not work. I just built a bard with College of Lore to confirm.

The issue is in the first script:
Code:
doneif (tagis[Helper.ShowSpec] = 0)

doneif (tagis[Helper.Disable] <> 0)

if (field[usrChosen1].ischosen <> 0) then
perform field[usrChosen1].chosen.pulltags[ClsAllowSp.?]
endif

if (field[usrChosen2].ischosen <> 0) then
perform field[usrChosen2].chosen.pulltags[ClsAllowSp.?]
endif

perform root.pushtags[ClsAllowSp.?] 
The above "assumes" that it has been bootstapped by the class but it was bootstrapped to the "College of Lore" Custom Special. So its putting the allow spell tags on the wrong Pick.

The above needs to be changed to:
Code:
perform root.linkage[table].pushtags[ClsAllowSp.?]
That will actually go to the Custom Special and then to the class to correctly set the allow spell tags on the class.

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   #4 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 12:13 PM
I think the College of Lore was created by HL themselves . . .

Should I report this as a bug or have you already done so?

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 5th, 2016, 12:17 PM
Quote:
Originally Posted by Mergon View Post
I think the College of Lore was created by HL themselves . . .
Yep appears so..


Quote:
Originally Posted by Mergon View Post
Should I report this as a bug or have you already done so?
If you could that would be great!

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   #6 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 12:18 PM
Once I get my script to work, I'll do that. Just buildign a bard to test the original before i do anything.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #7 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 12:25 PM
<sigh>

I wasn't thinking, I can't go in and fix the issue on the original.

My version is still not working. I guess I'll put this project on the back burner until HL fixes the bug.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 5th, 2016, 01:12 PM
Quote:
Originally Posted by Mergon View Post
I wasn't thinking, I can't go in and fix the issue on the original.
Nope. We need to report it to LW as a bug.

Quote:
Originally Posted by Mergon View Post
My version is still not working. I guess I'll put this project on the back burner until HL fixes the bug.
You put in the fix I listed above and it doesn't work? I tested the script with the fix and it works. So can you re-post your current script so we can see why its not working...

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   #9 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 6th, 2016, 09:13 AM
Scripts are identical to what I posted earlier, but I changed the line in the eval script as you suggested. Did I miss a change else where? I'll go over my scripts again.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #10 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 09:29 PM.


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