/npc-generator-gpt

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

Primary LanguageJavaScriptCreative Commons Attribution 4.0 InternationalCC-BY-4.0

NPC Generator (GPT) for D&D 5e

This Foundry VTT module allows users to generate random NPCs using ChatGPT APIs.

Dynamic JSON Badge Dynamic JSON Badge Dynamic JSON Badge GitHub release (latest by SemVer including pre-releases)

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/Halftonex/npc-generator-gpt/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.