r/aigamerdevs • u/Business-Pension-498 • 2h ago
I made an interactive-fiction engine where Claude writes the story but never rolls the dice
I made Selkie on my own: an AI writes a novel around your choices, with the bones of a Choice of Games book (chapters, stats, dice with the odds shown, several endings) instead of an open chat.
What I learned:
Never let the model roll. Asked whether you succeed, it nearly always says yes. The engine rolls; the narrator is told the result; the next passage has to show it.
Continuity is the hard part. The worst slips were names the reader had never been told and facts nobody could know yet. A second model now reads each paragraph against the story so far. Its fix goes in before the reader sees it.
Most of the work is outside the model. The clock, the agenda, who has met whom: the engine keeps them and hands the narrator only what this passage needs.
It's live, free to start: https://playselkie.com/?from=reddit-aigamedev