Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

ctbritt/gpt4-dnd5e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Release Download Count

Forge Installs

What this is

A simple incorporation of ChatGPT into foundry to assist in lookup rules, stats, etc.

⚠️ OpenAI API Keys Configuration ⚠️

(thanks to Significant-Gravitas for this part of the Readme.)

Obtain your OpenAI API key from: https://platform.openai.com/account/api-keys.

To use OpenAI API key for Auto-GPT, you NEED to have billing set up (AKA paid account).

You can set up paid account at https://platform.openai.com/account/billing/overview.

For OpenAI API key to work, set up paid account at OpenAI API > Billing

PLEASE ENSURE YOU HAVE DONE THIS STEP BEFORE PROCEEDING, OTHERWISE NOTHING WILL WORK!

How to use it

Simply preface your question with a ? and ask. It will attempt to spit out D&D rules and information.

Example

?Fireball

Fireball is a 3rd-level evocation spell that creates a burst of flame that spreads around corners. The spell has a range of 150 feet and affects all creatures within a 20-foot radius sphere centered on a point the caster chooses. Each creature in the area must make a Dexterity saving throw. On a failed save, a creature takes 8d6 fire damage, or half as much on a successful one. The spell ignites flammable objects in the area that aren't being worn or carried. The spell can be cast using a spell slot of 4th level or higher, increasing the damage by 1d6 for each level above 3rd.

To-do

  • Improve the settings panel to hide the API key from prying eyes
  • Include a game game system selection and update the internal prompt to reflect that.
  • Custom game prompt as well
  • style the responses so they look nice and reflect the appropriate stat blocks.
  • Open to suggestions on other improvements?

Special Thanks

Thanks very much to brunocalado#1650 on the foundry discord for a) convincing me to update and b) for suggestion code modifications.