Persistent World Simulation
AnyRPG is an AI-driven text-based TTRPG where the world runs 24/7. NPCs live full lives, economies shift, wars emerge, and kingdoms fall — whether you are watching or not.
What It Does
Everything persists. Every NPC remembers. Every choice ripples outward through a simulated world that never stops evolving.
The world runs continuously — day and night, whether you are logged in or not. Return after a week to find genuine changes: NPCs who died, economies that shifted, quests that expired.
An LLM-powered narrator that operates within your world’s structured database. The AI cannot hallucinate — every character, item, and location it references is a real, validated database record.
Create characters with full visual customization, personality traits, relationship networks, and lifecycles. Characters age, form alliances, fall in love, and leave lasting legacies.
SchemaLang defines every entity in your world. One schema generates C++, Lua, Python, and SQL — ensuring perfect consistency across all layers. No contradictions. No hallucinations.
Continents, kingdoms, cities, and streets form a hierarchical world structure. Cities grow, buildings rise and fall, trade routes evolve, and travel takes real simulated time.
Quests are not scripted. They emerge from the state of the world — NPC relationships, resource scarcity, political tensions, and random chance. Every playthrough is genuinely different.
Full suite of editors: World Builder, Character Editor, Quest Designer, Item Creator, Spell System, Faction Manager. The same tools the AI uses internally — exposed to you.
Host adventures for friends. One player runs the world as game master; others connect as characters. Or let the AI serve as game master for everyone in a shared persistent world.
Pick up a book in one library, cross a continent, return weeks later — the shelf is empty and the book is in your inventory. Every object, letter, and artifact exists with full consistency.
Architecture
A multi-layered system where structured data, high-performance simulation, and AI storytelling operate in concert.
All world entities — NPCs, items, quests, locations — are defined in SchemaLang, a custom data modeling language.
SchemaLang generates C++, Python, Lua, and SQL automatically. All language layers stay perfectly synchronized.
A high-performance C++ engine runs the world simulation in parallel threads. Characters act, economies shift, events unfold.
LLMs generate content — dialogue, quests, lore. All output is validated against your schema before it enters the database.
All world state saves to SQLite or MySQL. Every session starts exactly where the world left off — nothing is lost.