Paizo Top Nav Branding
  • Hello, Guest! |
  • Sign In |
  • My Account |
  • Shopping Cart |
  • Help/FAQ
About Paizo Messageboards News Paizo Blog Help/FAQ
Pathfinder Roleplaying Game

Starfinder


Pathfinder Society


Pathfinder Adventure Card Game

Random Spellbook Generator


Homebrew


9 people marked this as a favorite.

Generating spellbooks is always a hassle. Each book is its own unique collection of spells, requiring considerably more care and effort to assemble than other classes of magical items. At the same time they tend to be throw-away items, something for the party wizard to study in his downtime before pawning it off. So I really don't want to put a lot of effort into making these things, especially if I'm just stocking the local magick shoppe with merchandise my wizard player might not even purchase.

So, I decided to create a >> Random Spellbook Generator <<

I still plan on improving this further, but I feel it's far enough along to share it and get some feedback. I do plan on including more sources as well (in the immediate future, Ultimate Combat and Advanced Class Guide are priorities). Any feedback, questions, feature requests, or bug reports are welcome.


So can inappropriate spells be replaced with homebrew spells when they occur? If there is a GMs choice that comes up, that is just as well.


Fun. The only error I noticed in generating a handful of spellbooks was that Ear-Piercing Scream was misspelt.

It's quite interesting looking at such a spellbook and imagining what it says about the wizard who compiled it.


Do all spells have an equal chance of showing up, or are some spells more likely to occur?

Silver Crusade

Pathfinder Adventure Path, Starfinder Adventure Path, Starfinder Maps, Starfinder Roleplaying Game Subscriber; Pathfinder Comics Subscriber

Very useful.

Liberty's Edge

Thanks for this! Lots of wizard NPCs in my games and my random spellbook generation has heretofore been very time-consuming.


Goth Guru wrote:
So can inappropriate spells be replaced with homebrew spells when they occur? If there is a GMs choice that comes up, that is just as well.

Sure, the GM absolutely has final say over what they bring into their game. If you want to tweak these random spellbooks after generating them, power to you.

avr wrote:
Fun. The only error I noticed in generating a handful of spellbooks was that Ear-Piercing Scream was misspelt.

Fixed.

avr wrote:
It's quite interesting looking at such a spellbook and imagining what it says about the wizard who compiled it.

One of the first spellbooks I generated was a 5th level Evoker whose only two 3rd level spells were Daylight and Tiny Hut.

The occasional surreal result is one of the charms of using random generators.

Ciaran Barnes wrote:
Do all spells have an equal chance of showing up, or are some spells more likely to occur?

Spells from your specialty school are significantly more likely to appear, and spells from opposition schools won't appear. Otherwise yes, all spells have an equal chance of appearing. (Edit: also you're guaranteed at least one specialty school spell at every included spell level)

Adding some more weighting options is definitely something I'd consider doing. Weighting by source seems to be the easiest approach, and I could replace the checkboxes with weighting sliders for each source to give the user control over that. Weighting by individual spell may be more problematic since there's no way I could fit that on the user interface, so I'd need to apply my own subjective discretion to determine what the weighting should be. Still, this would allow iconic spells like fireball, dispel magic, or invisibility to be prioritized. I'm definitely open to any suggestions people may have on the matter.


Pathfinder Adventure Path, Pawns, Roleplaying Game, Starfinder Accessories, Starfinder Adventure Path, Starfinder Roleplaying Game Subscriber

This is a nice tool, but it would be nice to have some spells always in the list. i.e. an Evoker will always have fireball. A weighting system may be a way to do this.

Opposition school spells still should show up, but with a low chance. Some spells are occasionally worth two spell slots to mem.

Support for elementalists would be nice too.


Toblakai wrote:
This is a nice tool, but it would be nice to have some spells always in the list. i.e. an Evoker will always have fireball. A weighting system may be a way to do this.

I wouldn't say that Evokers would always have Fireballs, but weighting such an iconic spell higher than others makes a lot of sense to me. The difficult question is which spells and how much higher should they be weighted. That's a very subjective question.

I think I will make an effort this weekend to rework the back-end randomizer to support more nuanced weighting. I'm not sure how I'm going to weight the spells, but I'll get the support in there so that it's not a pain to implement in future. At very least this will let me introduce opposition spells as being unlikely rather than impossible.

Toblakai wrote:
Support for elementalists would be nice too.

Yeah, I think that's doable. I'm adding it to the to-do list.


Time wizards are more likely to have expeditious retreat and haste. Less likely to have slow and hold person.


I've updated the spellbook generator. The program now supports elemental specialization and opposition options, and has a toggle to specify the maximum number of pages the spellbook can contain.

Note that unlike the conventional spell schools, the elemental options are Wizard exclusive and will have no effect if you try to use them on other classes. The spellbook generator also has an upper limit on how much content it will generate for a single spellbook, so there's no point to having spellbooks with four digit page counts (the theoretical maximum is 720 pages used, but realistically you probably won't see higher than 500 even with a 20th level Wizard)

I've already done a lot of work towards supporting spell weighting, and the bulk of the work now is in actually deciding which spells to give increased weighting to. Some are obviously iconic, like Magic Missile or Invisibility or Dispel Magic, but there are a lot of spells that straddle that line. Glitterdust, Black Tentacles, or Sending; spells that are very common, but not really iconic in the way the three I mentioned earlier.

@Goth Guru: I won't be weighting by theme. I am definitely open to general suggestions of which spells should be weighted highly for any Wizard. Both Haste and Slow are very iconic Transmutation spells in my view, for instance.


It's stopped generating anything for me. No visible activity when I click Generate Spellbook.


So if you had Time School wizards, especially in Occult or Spacefinder, you could go transmutation opposed by abjuration. I might go with spirit anchor, where anybody who finds the spellbook might become possessed by the original owner.


avr wrote:
It's stopped generating anything for me. No visible activity when I click Generate Spellbook.

What setting configuration did you use?

Goth Guru wrote:
So if you had Time School wizards

I wasn't aware there was a Time School option published for Wizards. Could you link me to the source?


I tried a few different settings. L10 alchemist first, then a L10 wood elementalist wizard, then a L1 diviner wizard. CRB, APG & UM selected as sources, no other options changed.

Playing around just now it looks like the problem occurs with either APG or UM selected as a source.


Thanks for spotting this. I've found and fixed the issue, so it should now support multiple sourcebooks properly again.


Is there a spell I'm missing named 'power wall kill"? Or is it a typo.


Probably Power Word Kill, but Phantasmal Killer in wall form would be awesome.


Yes, it's supposed to be Power Word Kill. As awesome as Power Wall Kill sounds, I've fixed the typo.

I made another update just now to support weighting different spells. Opposition spells are now just weighted low rather than being completely eliminated from contention, and I've weighted Core spells 20% higher than spells from other sources. I plan to go through the spell list tomorrow and pick out specific iconic spells to have significantly increased chances of appearing.


I've updated the spellbook generator. It now supports spells from Ultimate Combat and the Advanced Class Guide.

I've also adjusted the weighting of individual spells from the core rulebook to weight iconic ones more highly than others. You can find the weighting in this spreadsheet. A blank entry in the weighting column means normal weight, and each point of weighting is approximately a +25% chance of appearing (exact odds will vary).

Another option that's been added is the "style" of spellbook generation. Standard maintains the behavior from previous version, while slim will generate fewer spells per level on average and thick will generate more spells per level on average. Note that the exact number of spells is still random, and it is possible for 2d4 to out-roll 3d6.


Must say that I like this muchly.


Super cool thanks!


Pathfinder Roleplaying Game Subscriber

Very nice! Are you planning any further details? Cover, Page material, Safeguards?


This is a neat generator, thanks for sharing it!


Bwang wrote:
Very nice! Are you planning any further details? Cover, Page material, Safeguards?

I probably won't have time to do anything on it until next weekend, but I would definitely consider adding touches like those. Safeguards and protections would probably be the highest priority among the things you listed, but some randomly generated flavor text regarding the tome doesn't sound like a bad idea at all :-)


The cover is made from [tanned gnome skin] with [jade] [clasps]. The [highest level spells] are protected by [fire trap].

Ever played Dwarf Fortress?


avr wrote:
The cover is made from [tanned gnome skin] with [jade] [clasps]. The [highest level spells] are protected by [fire trap].

More or less what I had in mind, but the devil is always in the details.

avr wrote:
Ever played Dwarf Fortress?

No, I value my sanity too much.


Neat. One thing I would add (that shouldn't be too hard to add) is the ability to mandate a certain GP value (and possibly a percent the value can be deviated from), as it'd be handy for creating loot.

As for weighting spells, if you went with that I'd recommend an option basing weighting on how guides rate them. Would ensure Mage Armor is more common than Damp Powder.


THIS IS AWESOME


deuxhero wrote:
Neat. One thing I would add (that shouldn't be too hard to add) is the ability to mandate a certain GP value (and possibly a percent the value can be deviated from), as it'd be handy for creating loot.

Hmm... now you've got me thinking about the best way to do this. Capping the GP value would be pretty easy, but it'd require a bit more work to prevent the randomizer from undershooting while still respecting the page limits. I'll think about it and see what I can do.

deuxhero wrote:
As for weighting spells, if you went with that I'd recommend an option basing weighting on how guides rate them. Would ensure Mage Armor is more common than Damp Powder.

There is already some weighting going on, but I based it less on the mechanical strengths of the spells and more on how iconic they are. Mage Armor is more than twice as likely to appear than Damp Powder based on the current weighting. I have the weightings listed in this spreadsheet. Blank means standard weighting, and each point of weighting means approximately +20% odds of appearing. Exact odds can vary based on your specialty and opposition.


Pathfinder Roleplaying Game Subscriber

My system is graded by CR. There is a bunt of the caster's level to prevent a spell book of a first level being the high end wizard's only, plus a bump to more/bigger books at higher levels. I am 40yrs out of programming, but your doing good work!


Pathfinder Adventure Path, Campaign Setting, Cards, Roleplaying Game, Starfinder Adventure Path, Starfinder Roleplaying Game Subscriber

Great stuff here! I used it again this week. Capital work!

Paizo / Messageboards / Paizo / Pathfinder® / Pathfinder RPG / Homebrew / Random Spellbook Generator All Messageboards

Want to post a reply? Sign in.

©2002-2017 Paizo Inc.® | Privacy Policy | Contact Us
Need help? Email customer.service@paizo.com or call 425-250-0800 during our business hours, Monday through Friday, 10:00 AM to 5:00 PM Pacific time.

Paizo Inc., Paizo, the Paizo golem logo, Pathfinder, the Pathfinder logo, Pathfinder Society, Starfinder, the Starfinder logo, GameMastery, and Planet Stories are registered trademarks of Paizo Inc. The Pathfinder Roleplaying Game, Pathfinder Campaign Setting, Pathfinder Adventure Path, Pathfinder Adventure Card Game, Pathfinder Player Companion, Pathfinder Modules, Pathfinder Tales, Pathfinder Battles, Pathfinder Legends, Pathfinder Online, Starfinder Adventure Path, PaizoCon, RPG Superstar, The Golem's Got It, Titanic Games, the Titanic logo, and the Planet Stories planet logo are trademarks of Paizo Inc. Dungeons & Dragons, Dragon, Dungeon, and Polyhedron are registered trademarks of Wizards of the Coast, Inc., a subsidiary of Hasbro, Inc., and have been used by Paizo Inc. under license. Most product names are trademarks owned or used under license by the companies that publish those products; use of such names without mention of trademark status should not be construed as a challenge to such status.