• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help!

Mergon

Well-known member
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> :rolleyes:
 
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.
 
Back
Top