/fgripper

a collection of hot garbage

Primary LanguageJavaScript

What?

This repository houses a collection of nasty hacks. The most useful of these if fgcreatures.py, which can be used to dump a proto-5etools-JSON format version of the creature statblocks in an FG module. Be warned, it's far from complete, and is intended purely for internal use.

fgcreatures requires:

  • bestiary/, a copy of the 5etools data/bestiary/ directory
  • spells/, a copy of the 5etools data/spells/ directory

Command-line arguments would be too sensible, so the parameters of the script can be found in the # CONFIGURABLE STUFF region in the file itself. Generally, set DO_TRANSFER = False.

(Old README)

This script is a disgusting hackfest and I don't know how to python and you should leave now

allitems.json generated by executing this in the console on 5etools items page: JSON.stringify({item: itemList.map(i => ({name: i.name, source: i.source}))}, null, "\t")

allspells.json same as above, on the spells page JSON.stringify({spell: spellList.map(s => ({name: s.name, source: s.source, lvl: s.level}))}, null, "\t")

allbackgrounds.json same, on backgrounds page JSON.stringify({background: bgList.map(b => ({name: b.name, source: b.source}))}, null, "\t")

bestiary is jsut a copy of 5etools bestiary data dir, BUT WITH THE THIRD PARTY CONTENT REMOVED. TODO: fix this so it's not done manually