Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
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! |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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. |
#2 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
Aaron:
many, many thanks. Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#3 |
|
|