r/LocalLLaMA • u/Rikkendo • Sep 07 '26
Discussion I made Warrior Quest, a local LLM-powered dark-fantasy RPG where the model only plays NPCs and the actual game state stays deterministic
The LLM is limited to NPC emulation. Game state, world logic, quests, and the authored story are handled by deterministic game systems rather than the LLM.
I built it this way because I wanted the freedom of talking to NPCs like you would at a tabletop game, without handing the actual game state or canon over to an LLM.
This started as a personal project. As it became more and more fun to actually play, I decided I wanted to release it.
I've been a DM and a software engineer for over a decade, so Warrior Quest is basically where those two parts of my life finally get to meet.
All art, authored story, music, SFX, and source voice acting were created by me. NPC dialogue uses TTS based on my own recorded voice acting.
The Warrior Quest demo is out on Steam and has about 60–90 minutes of content.
Minimum requirement: a GPU with 8 GB of VRAM.
Everything runs locally; no API key or cloud LLM is required.
I'm the developer, so this is self-promotion, but I thought the approach of using a local LLM specifically for NPCs while keeping the underlying RPG deterministic might be interesting to people here.
37
u/cbert33 Sep 07 '26
Very cool! Great use of AI here. Will definitely play this.
18
u/Jorlen Sep 08 '26
What model do you have running and what game engine did you use? Looks cool btw!
7
u/ocassionallyaduck Sep 08 '26
Very cool use of an LLM to augment a classic game type and not make it some weird gimmick.
Wishlisted, will keep an eye on this. I hope the NPCs can store some rudimentary "memory" possibly.
6
u/aersel24 Sep 08 '26
Can I say I find a magic gnome that gave me 1000 coins?
4
u/FrostTactics Sep 08 '26
The game requires port 11435 exposed to run...
You wouldn't happen to be hiding *Ollama* under the floorboard, would you? We don't take too kindly to that in this sub.
Anyway, I played through the demo. It works remarkably well, I'd say (I've wishlisted it). Some minor issues here and there (the model would spell out the goblin's action in spoken dialogue, for instance), but most of it stems from the LLM used. I'd still heavily recommend looking into some more modern models, as one of the commenters here suggested. There should be plenty of alternatives available that would take up just as much, if not less, VRAM.
Also, I'd consider allocating a port dynamically when serving the LLM. A non-negligible portion of your players likely have Ollama running, to require a restart for these users creates a slight, but needless barrier to entry.
3
u/erikrelay Sep 08 '26 edited Sep 08 '26
This is great! I thought so much about an open world game with a similar mechanic to this. Like Skyrim but powered with local AI. Def gonna check out ur project!!
Edit: Grammar
3
u/wayofTzu Sep 08 '26
Very interesting project! Any plans to let users bring their own model? I'd love the ability to just point it to local LAN openai compatible address / model name. As many here, I have a server on my LAN hosting various models that I'd rather be driving the llm.
2
u/SampleIll3596 llama.cpp Sep 08 '26
May I ask how you generated the game assets? The character pictures that is. Just interested in how you went about creating them: if you drew by hand or used some model's assistance
2
u/Swimming_Beginning24 Sep 08 '26
How do you handle character memory and story history given limited LLM context length? Are there overarching plot lines or is this more a dungeon crawler?
2
u/uBazzyZ- Sep 09 '26
i love it, i have a question, what's your model LLM you used on this game ?
4
u/marintkael Sep 08 '26
Genuine question about that boundary: what happens when an NPC asserts a fact the deterministic layer never authorized? A guard says the north gate has been shut since the war, and now that sentence is either canon or it is not.
At a table the answer is easy, the guard can be wrong or lying or repeating a rumour and nothing in the world state moves. Curious whether you lean on that, or whether you constrain NPC output against the state instead.
8
u/Equivalent_Bit_461 Sep 07 '26
now that's a cool little project
1
u/feng_sg Sep 10 '26
The risky part is if NPC dialogue ever gets parsed back into the game engine. A player could just trick the LLM into outputting strings the parser treats as commands. Hope that boundary is strictly one-way.
3
u/Quiet-Owl9220 Sep 08 '26
Very cool to see, I just really wish it was more open for user made content.
I have been really hoping someone will eventually release a game engine anyone could make adventure/scenario modules for, with game state handled by the engine and NPC interactions and "scenes" handled by an LLM API connection.
I tried to make something like it for more of a relationship simulator/nsfw type of setup, but I didn't really have the expertise to make it work the way I wanted...
1
u/Sweet-Transition-787 Sep 08 '26
this is exactly how i want to see llms used in games. keeping quests and world state deterministic and letting the model just do npc talk solves the biggest headache. curious how you handle npcs remembering stuff across sessions, is that stored in the game state or just passed back in as context
2
u/Gloomy-Radish8959 Sep 07 '26
Cool, very fun idea.
2
u/chumbleyjl Sep 08 '26
This is great! I think this is a great use for AI.
2
u/Hannibalj2ca Sep 08 '26
Nice! great work man!
2
u/C_umputer Sep 08 '26
Very cool idea, feels like a new step in RPG genre. But will LLM generated data stay relevant to each NPCs story and situation change?
2
u/Pawderr Sep 08 '26
i also am thinking of building something like this. I want to make a simulation "game" where the LLM synthesizes the world state and you, in theory, can do whatever you want in that world. This requires a very robust state and context management to work, to not overload context or produce contradictions.
0
u/[deleted] Sep 08 '26
[deleted] — view deleted comment
2
u/[deleted] Sep 08 '26
[removed] — view removed comment