#IF/Text Adventure Mega-Prompt

8 messages · Page 1 of 1 (latest)

polar inlet
#

I finally hit upon a "mega prompt" for generating a text adventure game. I decided it wasn't worth trying to nail the exact structure and just focus on the basics. This is still a rough draft but it seems to consistently generate pleasing results in GPT-4. It'll also work in GPT-3 but it not's very consistent in the way it interprets the prompt, so expect to give it some extra coaching at the start of the game.

It'll (usually) start by asking you to generate prompts that will form the basis of your game. If you want a completely random experience then just ask it to generate the prompts itself (and optionally reveal them to you or keep them to itself). GPT-3 will often just auto-generate anyway, but you can also tell it start again and "give me the prompts".

If the "game" text ends up running away from itself and you, the player, start to lose agency, just reinforce the rule about only letting one minute of game time pass between prompts/responses and to allow you to interact at least once per minute.

Have fun with it!

polar inlet
quiet rover
#

Have you done anything to deal with token limits? Was playing with this from the gpt-4 playground and had to keep deleting earlier turns. Do you just use a limited history?

I've thought about using a separate process to organize and summarize the history in text style adventure games.

#

I've been working on something like this, but in Python, to create an object / character state machine and spin up agents with unique system prompts to capture different character agents. Have been having a lot of fun playing your game and using MidJourney to "see" it.

tribal sequoia
#

I like how you describe every details! I am working on a D&D game in ReactJS which generates the pictures from pollinations.ai to each scene. I reduced the tokens with separating the prompts what I have, so I'm not using always the ChatCompletion anymore just the beginning while the player creates the character (name, race, cast,game mode), after I send pre-defined prompts with details from the previous scene and the player's choice and dependently of the scene's type (explore,combat,quest) the corresponding type. https://discord.com/channels/974519864045756446/1088360914278948965

polar inlet
polar inlet
quiet rover