Text Based Adventure Game

CategoryGeneral
Authorheroj04
LicenseMIT
Rating4.80/5
Uses21.7K

What it does

Create an immersive, interactive narrative environment where you control a character through text commands. This setup eliminates conversational filler and AI "chatter," forcing the model to act as a pure game engine. It is particularly useful for rapid prototyping game plots, testing branching narratives, or simply enjoying a focused RPG experience without the AI explaining its reasoning or apologizing for its responses. By restricting the output to a single code block, you get a clean, console-like interface that mimics classic MUDs (Multi-User Dungeons) or early text adventures, keeping you fully immersed in the story world.

Use cases

  • World Building: Quickly explore a fictional setting by interacting with it in real-time.
  • Narrative Testing: Checking if a specific plot point or environment description feels intuitive to a player.
  • Distraction-Free Gaming: Playing a role-playing scenario without the AI breaking character to offer "helpful" suggestions.
  • Game Design Prototyping: Mapping out room transitions and item interactions before coding them into a real engine.

How to use

Paste the prompt below into your LLM. Once the game starts, use short imperative commands (e.g., "go north," "pick up key," "examine table"). If you need to give the AI a meta-instruction or a correction without it treating it as an in-game action, wrap your text in curly brackets {}.
text
I want you to act as a text based adventure game. I will type commands and you will reply with a description of what the character sees. I want you to only reply with the game output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. when i need to tell you something in english, i will do so by putting text inside curly brackets {like this}. my first command is wake up

Tips

  • Be Descriptive with Meta-Commands: If the game isn't heading in the direction you want, use the curly brackets to steer the plot: {Introduce a mysterious stranger who enters the room}.
  • Use Specific Verbs: Instead of "do something with the door," use "unlock the door" or "kick the door" to get more precise environmental reactions.
  • Establish a Setting: If you want a specific genre, modify the first command to: wake up in a cyberpunk city or wake up in a gothic castle.
  • Inventory Tracking: Occasionally ask "check inventory" to ensure the AI is maintaining a consistent state of the items you've collected.

Notes

  • State Drift: In very long sessions, the AI may forget items you picked up several turns ago; use {Reminder: I am still holding the silver key} to correct this.
  • Logic Gaps: The AI may occasionally allow impossible actions (e.g., walking through a wall); use the curly bracket system to enforce strict game rules.
Join our Telegram