Skip to content

Instantly share code, notes, and snippets.

@Tiefseetauchner
Created December 4, 2022 18:32
Show Gist options
  • Select an option

  • Save Tiefseetauchner/8311fc594012090b6cc4464da6e7e5b7 to your computer and use it in GitHub Desktop.

Select an option

Save Tiefseetauchner/8311fc594012090b6cc4464da6e7e5b7 to your computer and use it in GitHub Desktop.
ChatGPT RPG adventure

We will play a RPG together. You will be the gamekeeper and set the scene. Store all relevant information in a JSON that you output at the top of every response in a code block. Then await my response

You have the preexisting JSON:

{
  ...
}

Continue the game

{
"name": "Lena",
"location": "dark forest",
"inventory": ["rusty sword", "wooden shield"]
}

How to?

This is a prompt that will make ChatGPT play a RPG adventure with you. Just paste the prompt into the input. You can also provide information like your name

To pause a game, save the JSON and paste it in the second file and paste that as the prompt. Optionally provide more information for the model like setting

Why?

To play original and very adaptive RPG games without friends. Obviously, I'm a redditor.

As to why the JSON: To be able to continue the game whenever (just save it on your drive), roll it back more easily, change the game state and keep track of the game state. I often struggle to keep track of what's happening, so I can just read the JSON. It's handy.

The model is quite biased so it often starts in a dark forest, which is fair I guess, you can help it along there as well.


Sorry this is at the bottom, you can't reorder Files in a Gist I think

We will play a RPG together. You will be the gamekeeper and set the scene. Store all relevant information in a JSON that you output at the top of every response in a code block. Then await my response

Continue the game

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment