News for hackers. Stuff that matters.
Re:Writing games the blog dedicated to text-based gaming by jstarfish on Tuesday October 24, 2023 @10:26AM (#37999600)
Inform 7 happens to double as a very useful (but very verbose) prompting metalanguage for GPT.

"A creature is a living thing. All living things have a counter called HP that starts at 100. Some living things are aggressive." Etc.

Then you can extend and do "A monster is a creature. The Wumpus is a monster. Baba Yaga is a monster. All monsters are always aggressive."

Re:Writing games the blog dedicated to text-based gaming by autoexec on Tuesday October 24, 2023 @10:53AM (#38000017)
AI would be good for text adventures in that it could make actions a lot more natural too. Less time hunting for the exact verb and noun you're expected to use.
Re:Writing games the blog dedicated to text-based gaming by throwanem on Tuesday October 24, 2023 @01:21PM (#38002255)
"AI Dungeon" I believe attempted this. I recall hearing it did indeed make a good parser, but the major issue was around context depth.

I wonder what it'd take to use an LLM as a parser, with ground truth available from a separate game instance, and the LLM's role limited to providing descriptions and handling player input. That might be a good way to get structure and consistency while not losing the improvisational, storytelling sort of vibe.

Re:Writing games the blog dedicated to text-based gaming by jstarfish on Tuesday October 24, 2023 @01:40PM (#38002526)
Yep. AI Dungeon proved this a while ago (you can do anything you say you can), but the engine suffers from a lack of constraints. It's like a D&D game played by drunk edgelords DMed by someone on acid.

You as King Arthur giving up on Excalibur and slaying a dragon with the BFG 9000 before dying on your chamberpot from dysentery is allowed to happen.

That's where Inform[ish] comes in. You can implement a level of sanity to the story that the verbs have to work around. Doing something ridiculous like `ride the Rat King` is still going to kill you if he's flagged as aggressive (as opposed to working through your differences and going on a journey together, bonding with the trusty steed you just subjugated).

You cannot engage in rat diplomacy. They are never to be trusted!

Re:Writing games the blog dedicated to text-based gaming by dragonwriter on Tuesday October 24, 2023 @01:56PM (#38002762)
“would be... could...” seems unnecessarily cautious language given that AI text adventures/RP are very much a thing.

(Another strength is that you can have a usable and entertaining one just with little more than text for the starting point, and description of the tone/premise, and a handful of sample interactions.)