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 February 29th, 2016, 03:08 PM
Ok, for me this is something completely new that I have never worked with before, so bear with me. I don't even know if want I want to do is even possible.

I am working on converting a very old 1st/2nd edition D&D version of an Alchemist. So far things have gone fairly smoothly, but that only because I have been working on the easy stuff first. What I am working on now is completely different.

This version of the alchemist is supposed to have a book of alchemical formulas.

I want to use either the Wizard or the Flexible Book (Arcanist) as my base.

The class is Intelligence of course.

The magic type will be Alchemical Extracts.

Now this version of the Alchemist can only create his Alchemical recipes a very limited number of times per day, much like the Warlock, so I want to use the Warlock Spell Progression. This also means I don't have to worry about spell levels combining with other classes.

The problem I need help with is as follows. I need to set up a eval script that counts the number of each level of formulas (spells) in the spell book and set that number as the number of spells known.

This should involve a foreach search of the spellbook I believe along with tagcount but so far, due to my lake of experience still with foreach searches and tags I am in need of assistance badly.

<looking at ShadowChemosh & Aarom slyly>

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old March 1st, 2016, 08:10 PM
Use debugging to see what tags are specific to the spells in the spellbook, then do

Code:
var spelllevel as number
foreach pick in hero from BaseSpell where "WHATEVER TAG"
  spelllevel += eachpick.tagvalue[sLevel.?]
  nexteach

~ Do whatever you need with the total number of spell levels in the book.
Aaron is offline   #2 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 2nd, 2016, 11:36 AM
Aaron:

many, many thanks.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #3 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 04:34 AM.


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