Build immersive interactive fiction with branching storylines, character progression, and multiple endings. Perfect for storytellers, game designers, or anyone who wants to create engaging narrative experiences.
Quick Start
Jump right into creating your first interactive story:
Create a fantasy text adventure game about exploring an ancient temple
Generate a sci-fi detective story where I investigate a space station mystery
Create an epic horror adventure with inventory system and multiple endings
Ready to Play
Each generated adventure comes as a complete HTML file that you can open in any browser and play immediately. No installation required!
What It Creates
Think of this as having a master storyteller and game designer working together to craft your interactive fiction. create_text_adventure
generates complete, playable games with sophisticated narrative structures and engaging gameplay mechanics.
Your generated adventure includes:
- Rich Storytelling - Immersive descriptions and atmospheric writing
- Meaningful Choices - Decisions that genuinely affect the story outcome
- Character Progression - Stats, skills, and inventory that evolve with play
- Multiple Endings - Different conclusions based on your choices and actions
- Save/Load System - Continue your adventure across sessions
- Polished Interface - Clean, intuitive design that focuses on the story
Each adventure is a complete, self-contained HTML file with embedded JavaScript - perfect for sharing, playing offline, or embedding in websites.
Parameters
Customise every aspect of your interactive fiction:
Parameter | Type | Default | Description |
---|---|---|---|
theme |
string | "fantasy" |
Story setting and genre Options: "fantasy", "sci-fi", "mystery", "horror", "historical", "modern", "steampunk", "cyberpunk"
|
complexity |
string | "intermediate" |
Story and gameplay complexity level Options: "simple", "intermediate", "advanced" - affects branching paths and mechanics depth
|
length |
string | "medium" |
Expected adventure duration Options: "short" (15 min), "medium" (45 min), "long" (2+ hours), "epic" (multiple sessions)
|
playerClass |
string | "custom" |
Character archetype and starting abilities Options: "warrior", "mage", "rogue", "ranger", "detective", "scientist", "explorer", "custom"
|
features |
array | ["inventory", "stats"] |
Game systems to include Options: "inventory", "stats", "save_game", "multiple_endings", "combat", "puzzles"
|
All parameters are optional - the system will create engaging adventures with sensible defaults
Adventure Examples
Here are some inspiring setups to get your creative juices flowing:
🏰 Epic Fantasy Quest
houtini-lm:create_text_adventure with:
- theme: "fantasy"
- complexity: "advanced"
- length: "epic"
- playerClass: "ranger"
- features: ["inventory", "stats", "save_game", "multiple_endings", "combat"]
🚀 Space Mystery
houtini-lm:create_text_adventure with:
- theme: "sci-fi"
- complexity: "intermediate"
- length: "long"
- playerClass: "detective"
- features: ["inventory", "save_game", "puzzles", "multiple_endings"]
🎭 Victorian Mystery
houtini-lm:create_text_adventure with:
- theme: "historical"
- complexity: "advanced"
- length: "medium"
- playerClass: "detective"
- features: ["inventory", "puzzles", "multiple_endings"]
👻 Atmospheric Horror
houtini-lm:create_text_adventure with:
- theme: "horror"
- complexity: "intermediate"
- length: "medium"
- playerClass: "explorer"
- features: ["inventory", "stats", "multiple_endings"]
⚙️ Steampunk Adventure
houtini-lm:create_text_adventure with:
- theme: "steampunk"
- complexity: "advanced"
- length: "long"
- playerClass: "scientist"
- features: ["inventory", "stats", "save_game", "puzzles"]
Story Themes
Each theme creates a completely different atmosphere and set of story possibilities:
🏰 Fantasy Adventures
Magic, quests, and mythical creatures - Classic fantasy with wizards, dragons, enchanted forests, and ancient prophecies. Perfect for epic quests and character development through magical abilities.
🚀 Sci-Fi Explorations
Space exploration, technology, and futuristic scenarios - From space station mysteries to alien encounters, time travel to cyberpunk dystopias. Great for thought-provoking scenarios and technological puzzles.
🔍 Mystery Investigations
Detective work, puzzles, and investigation - Unravel crimes, follow clues, interview suspects. Features logical deduction, evidence gathering, and satisfying revelations.
👻 Horror Experiences
Atmospheric tension and supernatural elements - Psychological horror, haunted locations, supernatural mysteries. Focuses on atmosphere, tension, and difficult moral choices.
🏛️ Historical Journeys
Real historical settings and characters - From ancient Rome to Victorian England, experience different eras with authentic details and historical figures.
🌆 Modern Thrillers
Contemporary settings and realistic scenarios - Urban adventures, corporate espionage, modern mysteries. Grounded in familiar settings with current technology.
Game Features
Each feature adds depth and replayability to your adventure:
🎒 Inventory System
Collect items, manage resources, and use objects to solve puzzles or overcome challenges. Items can have special properties or combine in interesting ways.
📊 Character Stats
Develop your character through strength, intelligence, charisma, and other attributes that affect story outcomes and available choices.
💾 Save Game
Continue your adventure across multiple sessions with automatic save points and the ability to save at crucial decision moments.
🎭 Multiple Endings
Your choices matter - different paths lead to different conclusions, encouraging replay to explore alternative outcomes.
⚔️ Combat System
Tactical turn-based combat with strategy elements. Use weapons, spells, and special abilities to overcome adversaries.
🧩 Puzzle Elements
Logic puzzles, riddles, and environmental challenges that require thought and creativity to solve.
Feature Combinations
Features work together beautifully - inventory items might be needed for puzzles, stats affect combat outcomes, and save games let players explore different choice branches.
What You'll Learn
Creating text adventures teaches valuable development concepts whilst being incredibly fun:
🧠 State Management
Understanding how to track game state, player progress, and story branches. Essential for any interactive application development.
🏗️ Data Structures
Learn how inventory systems, character stats, and story trees are implemented using objects, arrays, and complex data relationships.
📖 Narrative Design
Discover how to create branching storylines, meaningful choices, and satisfying character arcs. Valuable for any content creation.
🎮 User Experience
Understand how to design intuitive interfaces and engaging user flows, applicable to any interactive design.
💾 Data Persistence
Learn how save/load systems work using localStorage and JSON serialisation - crucial for many web applications.
🎨 Interactive Storytelling
Master the art of player agency, consequence systems, and emergent narrative - skills valuable in game design and interactive media.
Best Practices
Create more engaging and memorable adventures with these storytelling tips:
🎯 Start with Clear Intent
Be specific about the type of experience you want to create:
- Action-packed adventure vs. contemplative mystery
- Character-driven story vs. puzzle-focused gameplay
- Linear narrative vs. open-ended exploration
- Serious themes vs. light-hearted fun
📏 Match Length to Complexity
- Short + Simple - Perfect for quick, focused experiences
- Medium + Intermediate - Balanced gameplay with satisfying depth
- Long + Advanced - Epic adventures with rich character development
- Epic + Advanced - Multi-session experiences with deep mechanics
🎭 Choose Character Classes Wisely
Player class affects available actions and story approaches:
- Detective - Great for mysteries, investigation-heavy stories
- Warrior - Perfect for combat-focused, heroic adventures
- Mage - Ideal for fantasy settings with magical solutions
- Scientist - Excellent for sci-fi themes and logical puzzles
- Explorer - Versatile choice for discovery-driven narratives
⚙️ Balance Game Features
Don't overwhelm players with too many systems:
- Simple adventures: 1-2 features maximum
- Intermediate adventures: 2-4 features work well
- Advanced adventures: Can handle all features
- Always include "multiple_endings" for replayability
Pro Tip
The best adventures focus on meaningful choices rather than complex mechanics. A simple story with impactful decisions often creates more memorable experiences than a complex game with shallow choices.
Troubleshooting
Common issues and how to solve them:
Story feels too simple or short
The generated adventure doesn't have enough depth or content.
- Increase complexity to "advanced" for more branching paths
- Set length to "long" or "epic" for extended gameplay
- Add more features like "puzzles" and "multiple_endings"
- Be more specific in your initial prompt about what you want
Generated adventure has too many features
The game feels overwhelming with too many systems to manage.
- Reduce complexity to "simple" or "intermediate"
- Limit features to 2-3 core systems
- Focus on story-driven features like "multiple_endings"
- Avoid combining "combat", "stats", and "puzzles" in simple adventures
Theme doesn't match expectations
The story setting or atmosphere isn't what you envisioned.
- Be more specific in your prompt about the exact sub-genre
- Mention specific influences: "cyberpunk like Blade Runner"
- Include tone preferences: "dark and gritty" vs "light adventure"
- Specify historical periods: "Victorian England" vs just "historical"
Character class doesn't fit the story
The player character doesn't feel right for the adventure type.
- Match class to theme: detective for mysteries, warrior for fantasy
- Use "explorer" as a versatile choice for most themes
- Try "custom" to let the system choose the best fit
- Consider how the class affects available story options
Adventure takes too long to generate
The function seems to hang or takes much longer than expected.
- Start with "simple" complexity and "short" length for testing
- Ensure LM Studio has sufficient memory for complex generations
- Use fewer features initially, add more in subsequent generations
- Check that your model has 13B+ parameters for best results
Save/load system not working
The save game feature doesn't persist progress properly.
- Ensure you're accessing the game via HTTP/HTTPS (not file://)
- Check browser settings allow localStorage
- Clear browser cache and try again
- Some browsers restrict localStorage in private/incognito mode