Morturg / random-spellbook

Fantasy Grounds Extension for the 5E ruleset that adds the option of creating random spellbooks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random Spellbooks

Fantasy Grounds Extension for the 5E ruleset that adds the option of creating random spellbooks. The main use case is generating random loot for wizard PCs.

How

The "Items" window now has a "Spellbooks" button next to the "Forge" button.

The Random Spellbook window allows the DM to specify:

  • a name for the spellbook;
  • a way of generating a random spellbook name;
  • spell selection preferences and weights;
  • the number of spells per spell levels to select.

random-spellbook-1

The theme used in this screenshot is SirMotte's Hearth.

Ranked Spell Selection

When selecting spells, the generator will first shuffle the list of spells. It will then rank each spell according to the set of chosen preferences. If a spell matches the preference, the associated weight is added to the spell's rank. Ranked spells are then reverse sorted by rank and the target number of spells per spell level are added to the new spellbook.

Why

I primarily wanted to learn how GUI programming works in FGU (windows, templates, anchors, etc) and starting a new campaign with a wizard PC gave me an excuse!

About

Fantasy Grounds Extension for the 5E ruleset that adds the option of creating random spellbooks.

License:MIT License


Languages

Language:Lua 100.0%