Halftonex / npc-generator-gpt

Foundry VTT module - NPC generator for D&D5e powered by ChatGPT
Creative Commons Attribution 4.0 International
7 stars 6 forks source link

[FEAT]: Context Field for extra context to guide the generation #13

Open Daxiongmao87 opened 6 months ago

Daxiongmao87 commented 6 months ago

Description

I would love to have a multi-line field to put some background information for the NPC generation. Say I have a town that has a rich history, if I can put a summary of some important details, it could be used for the GPT as a reference for generation.

Additional Information

It would also be nice to have the ability to enter custom values for things like Job

Daxiongmao87 commented 6 months ago

The current workaround that I use is the name field, following the name I just insert a brief description of the character, but this isn't a guarantee

Daxiongmao87 commented 6 months ago

Thank you for doing the ground work @Halftonex , I made a bunch of changes to the code in my fork and it's working lovely. some things i've added/changed:

You can check out the changes if you'd like here: https://github.com/Daxiongmao87/npc-generator-gpt/tree/enhancements I just dabble in code so apologies for not following any standards, it's pretty protoypical :)

Edit: Also I need to clean up a lot of the code. Most of it was stumbling around trying to see what worked.

Halftonex commented 6 months ago

Hi @Daxiongmao87, thanks for spending some time with this project. I'll check your changes as soon as I have some free time.