Skip to content

michaelmj/npc-generator-byo-llm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPC Generator for D&D 5e - Bring your own LLM

This Foundry VTT module allows users to generate random NPCs using multiple LLM APIs. It is based off of NPC Generator by Halftonex. If you want something more stable please use that module.

Setup

To install, follow these instructions:

  1. Inside Foundry, select the Game Modules tab in the Configuration and Setup menu.
  2. Click the Install Module button and enter the following URL: https://github.com/michaelmj/npc-generator-byo-llm/releases/latest/download/module.json
  3. Click Install and wait for installation to complete.

Usage

  1. Go to https://platform.openai.com/account/api-keys
  2. If you don't already have one, create a new account.
  3. Generate a new secret key.
  4. Open the module settings.
  5. Paste your secret key in the "Api Key" field.

N.B. OpenAI's APIs are not free, although, given their limited usage by the module, they are very cost-effective. The average cost per generation is about $0.001. You can find the exact generation cost as log in the console (F12).

To check your available credit, please visit the following address: https://platform.openai.com/account/billing/overview


Generate

After installing and enabling the module, you will find a new button on top of the Actors tab.

After pressing the button, a window will open allowing you to select certain parameters.

Here's an example of an NPC created with this module.


Enhance

You will also find a new button on the NPC character sheet, this button will let you scale an existing NPC to a desired CR.

Before

After

Settings

Support

For any issues, requests and bug reporting, you can dm me on discord @half.tone or visit the project's Github issue page here.

Licence

This Foundry VTT module is licensed under a Creative Commons Attribution 4.0 International License.

About

Foundry VTT module - NPC generator for D&D5e powered by ChatGPT

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.5%
  • Handlebars 3.5%
  • CSS 2.0%