Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old August 16th, 2020, 05:52 PM
So I'm adding a few items from Griffen's Saddlebag and the first one...literally the first item in the book...

"if the character knows this wizard spell they can have it prepared for free and it doesn't count towards their daily total of prepared spells."

So...

I'd be looking for a eval script that checks his spellbook (tSplBkExpr?) for the spell, then if the spell is in the book then it gets added to his prepared list

I'm assuming it's possible to check the spellbook but I may be wrong.
Enforcer84 is offline   #1 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old August 17th, 2020, 04:14 AM
I think one method to try would be to have a script along the lines of:

Code:
foreach pick in hero from BaseSpell where "thingid.ofspell"

     perform eachpick.pushtags[Helper.Free]

nexteach
replace thingid.ofspell with some unique tag on the wizard spell. E.G. thingid.spAcidArro for acid arrow.

I'm thinking that all you need is the tag Helper.Free to remove it from the slot calculations. By looking at the Cleric Domain spells, they just have two tags that make them free and memorized. (Helper.Free and Helper.Memorized).

The script above just assumes the spell has been added to the character somehow, so you might want to look at extending the where clause to nail down that it's not a racial spell or item spell.

like

where "thingid.ofspell" AND !"Helper.ItemSpell"

The ! means NOT, I'm not sure if it needs to be in the quotes (") or not though.
dungeonguru is offline   #2 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633

Old August 18th, 2020, 12:55 AM
Quote:
Originally Posted by dungeonguru View Post
I think one method to try would be to have a script along the lines of:

Code:
foreach pick in hero from BaseSpell where "thingid.ofspell"

     perform eachpick.pushtags[Helper.Free]

nexteach
replace thingid.ofspell with some unique tag on the wizard spell. E.G. thingid.spAcidArro for acid arrow.

I'm thinking that all you need is the tag Helper.Free to remove it from the slot calculations. By looking at the Cleric Domain spells, they just have two tags that make them free and memorized. (Helper.Free and Helper.Memorized).

The script above just assumes the spell has been added to the character somehow, so you might want to look at extending the where clause to nail down that it's not a racial spell or item spell.

like

where "thingid.ofspell" AND !"Helper.ItemSpell"

The ! means NOT, I'm not sure if it needs to be in the quotes (") or not though.
Try this
Code:
  perform hero.childfound[thingid].assign[the tag]
but limit it to the correct class helper. I think you can do this one without running a foreach loop.

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #3 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old August 18th, 2020, 07:43 PM
Will give these things a try.
Enforcer84 is offline   #4 Reply With Quote
Reply

Thread Tools
Display Modes

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 11:37 AM.


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