• 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

Cost of a Spellbook

hangarflying

Active member
Is there a way to quickly determine the cost of a spellbook? If not, how difficult would it be to add a note, perhaps on the "Wizard" tab, along the left side (near the Caster Level, Concentration, etc notes)?
 
There's not a way to do this at present. The first thing that comes to mind for difficulty is differentiating between spells that you get for free (from level advancement or to start) and those you scribe in yourself. Unless you're looking to just calculate the cost of them all irregardless of what you paid.
 
I'm looking at it from the perspective of selling captured spellbooks. So I guess with that in mind, it would be the total cost of the spellbook, including the value of the "free" spells.
 
You also have the issue of not associating spells with spellbooks in the first place.

It is very easy from 10th level to have more spells that fit into a conventional spellbook.

So the ability to tie spells to spellbooks would be great :)
 
You can already add Custom Gear and set it's name, weight and price. Could you not use this to track your spellbooks?

Implementing this as well as I suspect you guys would like would involve making each added spellbook gear thing an entity which could independantly choose the spells in it, then you'd either have to re-add the same spells to your book on each class with a spellbook, or we'd have to figure out some way to transmit spells from the gear versions to the class versions (which I am not even sure is possible).

Bottom line is, to do this well would require a lot of complex work, for relatively little functionality gain.
 
I think the idea is to be able to track how many pages are being used in the spellbook (and by extension, how many are left). At least, that's how I took it. It might not be that hard. I'll look into this tomorrow (though if someone feels like beating me to it, feel free).
 
If all you guys wanted was to get the # of pages needed, that wouldn't be too hard to do.
Yea pretty easy actually. Here is something I just put together in about 30 minutes. Its a Spellbook gear item that when you select Wizard or Magus it calcs the total cost of the spells and the number of pages required.

Its a good start I think to get the needed info and have it auto calculate for a player or DM with a NPC.

Attached to this post is the .user file. Just add it to your HeroLab\Data\Pathfinder folder and start HL. Then on the "Gear" tab add "Spellbook" and select the class you wish to calc.
Noname.jpg
 
Last edited:
What happens when you have two books, how does the program know which book to add the spell to?
As its not clear who exactly your asking this of I will assume its to me. ;)

This does NOT add spells to a spellbook. It calculates the total cost of the Class Spells and number of pages those spells take up. Actually adding spells to a specific spellbook is WAY beyond what can currently be done.

So I built something that should help in keeping track of the info.

So lets say you have a wizard and my new Gear item calculates that you need 254 pages. So you will then need to add enough spellbooks to hold that many pages. If using the default CORE spellbook you would need 3 books to hold all your spells.

But as their are travel books and other ones you need some combo of books to hold 254 pages.

As I mentioned its a quick work around that gets people "Closer" to what they want but you will still have to do some manual steps. But at least the cost and pages are calculated for players cutting down on some math. :)
 
Last edited:
Maybe we should assume all wizards have a blessed book ;)

Seriously it is mainly the wizard who has this issue, and when playing one I usually have 2-3 books each containing the same spells. So I have a working copy, a protected travelling copy (extra dimensional space - on another character) and one back at the home base.

Does the Magus and witch actually use spellbooks? or any other classes?
 
Does the Magus and witch actually use spellbooks? or any other classes?
A Magus uses a spellbook just like a wizard. A witch uses her familiar actually to store her spells. Their is no cost to putting a spell in your familiar but their is a chance the scroll is lost.

When you add the Gear Item I created you simply select your Class from the drop down. This way it works for any class and if you are a Wizard/Magus you can have the calculations be different by having two different Books. Each will calculate differently.
 
Last edited:
Shadow, with the spell book, is it possible to have it as spellbooks, and when you exceed the page limit of the books it just adds another book to it by increasing the weight?

That way we can have travelling spellbooks, standard spellbook and blessed book in this style?
 
Shadow, with the spell book, is it possible to have it as spellbooks, and when you exceed the page limit of the books it just adds another book to it by increasing the weight?

That way we can have travelling spellbooks, standard spellbook and blessed book in this style?

I suspect there should be a relatively easy to way to use the number of pages calculated to change the name and weight of the item.

Edit: I added a little bit to the code to make that happen. One drawback to it is that it wouldn't automatically deduct money for buying a new spellbook. It also assumes that each spellbook has 100 pages. Here's that code if you wish to use it:

Code:
var Cost  as number
var Pages as number
var Books as number
var Class as string
Cost = 0
Pages = 0

~ Get the Spellbook Class ID
Class = field[usrChosen1].chosen.tagids[Spellbook.?,"|"]

~ Read through all the spells on the selected class
foreach pick in hero from BaseSpell where Class
   ~ Total up the Cost and number of pages used at each spell level
   If (eachpick.tagis[sLevel.0] <> 0) Then
      Cost += 5
      Pages += 1
   elseIf (eachpick.tagis[sLevel.1] <> 0) Then
      Cost += 10
      Pages += 1
   elseIf (eachpick.tagis[sLevel.2] <> 0) Then
      Cost += 40
      Pages += 2
   elseIf (eachpick.tagis[sLevel.3] <> 0) Then
      Cost += 90
      Pages += 3
   elseIf (eachpick.tagis[sLevel.4] <> 0) Then
      Cost += 160
      Pages += 4
   elseIf (eachpick.tagis[sLevel.5] <> 0) Then
      Cost += 250
      Pages += 5
   elseIf (eachpick.tagis[sLevel.6] <> 0) Then
      Cost += 360
      Pages += 6
   elseIf (eachpick.tagis[sLevel.7] <> 0) Then
      Cost += 490
      Pages += 7
   elseIf (eachpick.tagis[sLevel.8] <> 0) Then
      Cost += 640
      Pages += 8
   elseIf (eachpick.tagis[sLevel.9] <> 0) Then
      Cost += 810
      Pages += 9
   Endif
nexteach

~Get number of books
 Books = Pages/100
 Books = round(Books, 0, 1)

~ Set the live name to include the cost and number of pages
if (Books > 1) then
 field[livename].text = " "& Books & " " & field[thingname].text & "s" & " " & Cost & "gp " & Pages & " pages"
else
 field[livename].text = field[thingname].text & " " & Cost & "gp " & Pages & " pages"
endif

~ Set weight.
field[gWeight].value = Books*3
 
Last edited:
I suspect there should be a relatively easy to way to use the number of pages calculated to change the name and weight of the item.
Yea I thought so too until I actually tried to implement this Sendric. The issue is the timing involved does not work out correctly. So you can't just add into the weight especially at the Final timing that the original script runs at as it never will get onto the hero.

At the time that you have to calc the books, Post-Levels 10,050, we are just past the point where adjusting the weight of the gear item gets added to the hero.

So I then went ahead and added the weight directly to the Hero which worked until I tried to move the gear item to the "Dropped to Ground" container. The weight still gets to the hero. I then tried to figure out I was in the "Dropped to Ground" container but I can't figure out a way to detect I am in the bag. :(

So unfortunately the code you posted is not a correct solution as it will never get the weight to the hero. I spent close to 2hrs working on this and can't find a perfect solution yet. I can get close is all and I just don't have more time to spend on this. :(

Shadow, with the spell book, is it possible to have it as spellbooks, and when you exceed the page limit of the books it just adds another book to it by increasing the weight?

That way we can have travelling spellbooks, standard spellbook and blessed book in this style?
This is pretty cool idea actually. :) Attached is a new version of the file with the following:

-Added new "Spellbooks" gear item that calculates the number of books and sets the weight based on the number of books required.
-Added new "Compact Spellbooks" gear item that calculates the number of books and sets the weight based on the number of books required.
-Added new "Traveling Spellbooks" gear item that calculates the number of books and sets the weight based on the number of books required.

Known Issue: You will not be able to remove the spellbook weight values from the hero without completely removing the gear item. (FIXED)
 
Last edited:
Yea I thought so too until I actually tried to implement this Sendric. The issue is the timing involved does not work out correctly. So you can't just add into the weight especially at the Final timing that the original script runs at as it never will get onto the hero.

At the time that you have to calc the books, Post-Levels 10,050, we are just past the point where adjusting the weight of the gear item gets added to the hero.

So I then went ahead and added the weight directly to the Hero which worked until I tried to move the gear item to the "Dropped to Ground" container. The weight still gets to the hero. I then tried to figure out I was in the "Dropped to Ground" container but I can't figure out a way to detect I am in the bag. :(

So unfortunately the code you posted is not a correct solution as it will never get the weight to the hero. I spent close to 2hrs working on this and can't find a perfect solution yet. I can get close is all and I just don't have more time to spend on this. :(

I see. I should have looked a little closer at that when I did that this morning. Sorry.

So if I understand how the new file works, I need to have two versions of the custom spellbook in the gear section, yes? One to calculate value of the book and the other to calculate weight. Is that correct?
 
Back
Top