Procedural Item Module Generation
I have written a Python script which will procedurally generate Fantasy Grounds items based on a set of parameters.
It reads in a JSON file which defines parameters for how the items should be generated, and outputs into a definition.xml and db.xml file suitable to be copied directly into your modules/ folder and loaded. If you wish to generate items to add to an existing module, you can pass the script an "--id" parameter and it will start generating items at that ID instead of at id-00001, so you can open the resulting db.xml file and copy/paste into your module's <item> section without conflict.
The items it makes can have a name, description, nonidentified name, nonidentified description, cost, and weight. The script allows for essentially unlimited numbers of modifiers, which can be selectively applied to base items as desired and each of which may change any of the names, descriptions, cost, or weight of the base item. This means you can very quickly produce hundreds of different items based on a few dozen lines of definition, thanks to combinatorial math. Note that there is no randomness involved - it generates every single possible item within the constraints that have been defined for it.
The items will import into the following rulesets correctly: Core RPG, MoreCore, D&D 2E, D&D 3.5E, D&D 4E, D&D 5E, Pathfinder 1E, Pathfinder 2E, Starfinder, Fate Core, Cypher System, Numenera, The Strange.
As an example of a practical use for it, I have recreated the items from LordEntrails' Gemstone Items Module in it (although the "Documentation" library reference page / story entry is a simple "author + contributors" list and would need to be modified by hand or with another tool). The definition for this is 120 lines long and generates 324 items (and just over 4,200 lines of xml). More, adding a new type of gemstone (and therefore 6 new items) takes a single line of definition, and adding a new size (and therefore 54 new items) takes 4 lines of definition. You can see this example on the github repository - the definition file is "examples/lord_entrails_compact.json" and the output is "examples/lord_entrails_compact/"
You can find the script on GitHub here: https://github.com/theoldestnoob/fg-item-generator with much more detailed documentation and several examples of the input file and what it outputs.
Please let me know what you think, if you run into any issues, or if you have any ideas for improvements you would like to see.