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.
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.
The theme used in this screenshot is SirMotte's Hearth.
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.
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!