AI-Driven Narrative Engine
for Text Adventure Games



WHAT IS TALYXR?

TALYXR is a narrative engine that combines the best of classic text adventures with modern AI capabilities. Inspired by games like Zork and Anchorhead, TALYXR uses deterministic rule-based systems alongside LLM-generated prose to create consistent, living interactive fiction.Think SCUMM, but for text adventures. A reusable engine for multiple stories, not just one game.


WHAT TALYXR IS NOT

Let's be clear about what this isn't:

AI generating the story
The plot, characters, puzzles, and world are human-authored.

ChatGPT with extra steps
This is not "talk to an AI and see what happens." The world has rules. Real rules.

Procedurally generated slop
No random plot generation. No AI inventing story beats. No infinite possibilities with zero coherence.

Replace-the-writer tool
TALYXR is for writers who want their stories told with rich, responsive prose. The AI doesn't write your story. You do.

What it actually is
A constraint system that forces an LLM to narrate within strict narrative boundaries. The story is yours. The prose is generated. The world stays consistent.


HOW IT WORKS

Example: You type "examine the photos"Here's what happens behind the scenes:

1. Rule System Checks:
Are photos present in this location? Yes.
Has player picked them up yet? No.
Are they interactable? Yes.
2. Rule System Retrieves:
Pre-authored photo descriptions (authored by you, the writer)
3. LLM Narrates:
Takes the pre-authored content and generates natural prose:
"You pick up the photographs. The first shows a wide shot of the storage room, costume racks visible at the edges. The second..."
4. World State Updates:
Photos added to inventory.
Location state changed.
NPC can now reference that you've seen them.
The story is authored. The prose is generated. The world stays consistent.


WHY TALYXR?

Traditional interactive fiction (Twine, Ink, ChoiceScript):

  • Rich branching narratives

  • But every variation must be pre-written

  • Exponential authoring burden

  • Static prose for every playthrough

Pure LLM games (AI Dungeon, etc.):

  • Infinite possibilities

  • But zero consistency

  • No persistent world state

  • Players break immersion instantly

  • Story becomes incoherent

TALYXR gives you both:

  • Pre-authored narrative structure (consistency)

  • LLM prose generation (variety & responsiveness)

  • Deterministic rules (no chaos)

  • Reusable engine (write once, multiple stories)


CORE FEATURES

  • Turn Resolution System (TRS)
    Deterministic turn-by-turn world simulation. One input = one turn. Time advances consistently. No chaos.

  • Dialogue Resolution System (DRS)
    Player speech is never auto-generated. You say what you say. NPCs respond based on memory and context.

  • NPC Social Memory
    Characters remember conversations, detect inconsistencies, and react to your choices across the entire game.

  • Inventory & State Management
    Objects persist. Doors you opened stay open. Changes stick. The world remembers.

  • NPC Initiative
    Characters can act autonomously within scene constraints. They feel alive, not scripted.

  • Rule Enforcement First
    All rules are enforced BEFORE the LLM generates prose. The AI cannot break your world.


TECHNICAL ARCHITECTURE

Python Backend: Rule engine, state machine, LLM API integrationState Management: Deterministic save/load, world state persistence, NPC memory storageFrontend: TypeScript/React web interfaceThe engine is story-agnostic. Write your narrative rules, plug in your story, and TALYXR handles the rest.


FIRST GAME: THE HARTWOOD UNIVERSITY MURDERS

You are Jonathan James, a third-year Musical Theatre student at Hartwood University in Oregon. It's a Friday afternoon in late January. You're scheduled to meet Rosalie, an exchange student from Amsterdam studying analog photography, for a casual campus tour as part of the International Buddy Program.What begins as a simple introduction becomes something else entirely.Rosalie wants to see the photography facilities. In the red-lit darkroom space where analog photographs are developed, you find images that shouldn't exist. Staged violence. Deliberate composition. Recent. Real.And then, in the silence of that chemical-smelling room, the door opens behind you.What you've found isn't random. The photographs. The staging. The locations. They follow a pattern. One you don't understand yet. Something is being reenacted. Something that was never supposed to happen again.You can talk. Actually talk. Ask Rosalie anything. She'll respond like a person, not a dialogue menu. NPCs take initiative. They'll start conversations, make suggestions, act on their own impulses.You can ask yourself questions. Forgotten a detail? Ask your character what they remember. Check what Jonathan knows about the campus, about people, about what he saw this morning. Your character has a mindl. You can access it.The world responds to everything. Examine objects. Try unconventional solutions. Lie, tell the truth, stay silent. The story doesn't railroad you into one path. It reacts to what you actually do.Relationships are real. No friendship score. No romance flags. Just how you treat people, what you say to them, whether they trust you. Rosalie will remember. Not mechanically, but humanly.


LOOKING FOR CO-CREATORS!

TALYXR is currently a passion project, not a company. I'm not looking for contractors or employees. I'm looking for people who find this problem space fascinating and want to help shape what this becomes.WHO I'M LOOKING FOR

  • Game Designers
    Narrative mechanics, player agency, rule design, interactive fiction craft

  • Python/AI Developers
    LLM API integration, constraint systems, state management, ML pipelines

  • Full-Stack Developers
    React/TypeScript, web interfaces, developer tools

  • Anyone fascinated by computational narrative
    If this sounds like an interesting puzzle, let's talk.

WHAT TO EXPECT

  • Time Commitment
    This is a free-time project for everyone involved. I do this in my free time as well. I don't expect people to pour in 10+ hours a week. If we can make steady progress together, that's enough.

  • Location
    Based in Culemborg, Netherlands. Local collaboration preferred, but not required.

  • Compensation
    None. This is a passion project. Potential future revenue share if TALYXR becomes something, but no promises.


Marvin van der Horst
Founder, TALYXR