AI Dungeon

So, you know how there’s that AI predictive text thing where it will complete any text you submit? Well, some madman has applied similar technology to the text adventure:
https://www.aidungeon.io/

A small sample:

You breathe fire, and blast the guard standing in front of you with a burst of
flame. He screams and collapses to the ground, screaming in agony
> heal guard

You carefully examine the guard who was burned by your attack. It looks like
 he'll survive, though he won't be able to fight anymore. You give him a quick
 healing spell, and he recovers in no time
> befriend guard

You approach the guard, and ask if he'd like to join you. He nods eagerly, and
 you hug him tightly before kissing him on the mouth. You quickly return to the
 police station, where you tell the officer that you need help with something
 important

wow…

They say it got smart… decided our fate in a microsecond

Here’s my story. You can see the limitations and abilities:

‘’'AI Dungeon 2 will save and use your actions and game to continually improve AI
Dungeon. If you would like to disable this enter ‘nosaving’ for any action.
This will also turn off the ability to save games.

Initializing AI Dungeon! (This might take a few minutes)

▄▄▄ ██▓ ▓█████▄ █ ██ ███▄ █ ▄████ ▓█████ ▒█████ ███▄ █
▒████▄ ▓██▒ ▒██▀ ██▌ ██ ▓██▒ ██ ▀█ █ ██▒ ▀█▒▓█ ▀ ▒██▒ ██▒ ██ ▀█ █
▒██ ▀█▄ ▒██▒ ░██ █▌▓██ ▒██░▓██ ▀█ ██▒▒██░▄▄▄░▒███ ▒██░ ██▒▓██ ▀█ ██▒
░██▄▄▄▄██ ░██░ ░▓█▄ ▌▓▓█ ░██░▓██▒ ▐▌██▒░▓█ ██▓▒▓█ ▄ ▒██ ██░▓██▒ ▐▌██▒
▓█ ▓██▒░██░ ░▒████▓ ▒▒█████▓ ▒██░ ▓██░░▒▓███▀▒░▒████▒░ ████▓▒░▒██░ ▓██░
▒▒ ▓▒█░░▓ ▒▒▓ ▒ ░▒▓▒ ▒ ▒ ░ ▒░ ▒ ▒ ░▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▒░ ▒ ▒
▒ ▒▒ ░ ▒ ░ ░ ▒ ▒ ░░▒░ ░ ░ ░ ░░ ░ ▒░ ░ ░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ░ ▒░
░ ▒ ▒ ░ ░ ░ ░ ░░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░

Pick a setting.
0) fantasy (recommended)

  1. mystery
  2. apocalyptic
  3. zombies
  4. custom
    Enter the number of your choice: 0

Pick a character
0) noble

  1. knight
  2. squire
  3. wizard
  4. ranger
  5. peasant
  6. rogue
    Enter the number of your choice: 3

What is your name? Booger

AI Dungeon 2 Instructions:
Enter actions starting with a verb ex. “go to the tavern” or “attack the orc.”
To speak enter ‘say “(thing you want to say)”’ or just “(thing you want to say)”

The following commands can be entered for any action:
“revert” Reverts the last action allowing you to pick a different action.
“quit” Quits the game and saves
“restart” Starts a new game and saves your current one
“save” Makes a new save of your game and gives you the save ID
“load” Asks for a save ID and loads the game if the ID is valid
“print” Prints a transcript of your adventure (without extra newline formatting)
“help” Prints these instructions again

Generating story…

You are Booger, a wizard living in the kingdom of Larion. You have a staff and
a spellbook. You finish your long journey and finally arrive at the ruin you’ve
been looking for. You look around and see that it’s not much different than
when you left it years ago

enter ruin

You step into the ruins and feel the magic flow through you. The walls seem to
disappear as if they were made of air. Suddenly, you sense a presence nearby.
It seems like a ghostly form, but one with no life force. You quickly turn around
and run back out the door

use spell

You cast a fireball and blast the spirit away. Then, you hear a voice calling
out to you from somewhere inside the ruins. “I am here, my child”.

go to voice

You walk towards the voice and find yourself standing before a man who looks
very much like your father. He is balding, has a long beard and wears a black
robe. His eyes look old and his face wrinkled. “Hello, my son”, he says.

hug man

“My name is Booger, I live in the Kingdom of Larion”.

talk to man

“So… what do you want?”
“I just wanted to thank you for saving me when I was trapped in this tower”.
“Oh? Well, it’s not every day that someone saves you, let alone helps you escape”.

use spell on man

You cast a fireball at the man and blast him away. Then, you see a strange light
appear in his hand. A ring!

get ring

You grab the ring and examine it. It feels warm to the touch. You put it on and
suddenly you feel a surge of energy running through you. Your body begins to
glow and you feel more powerful than ever.

eat mushroom

Suddenly, you feel something hit your chest. You gasp and then fall to the ground.
You don’t know how long you lay there, but eventually you come to. You stand
up and notice that you now have wings. They are small, but they’re growing

fly

You fly high above the ruins of Larion. You can see the city of Delerg and the
surrounding countryside. The sun shines brightly and the sky is clear blue.

eat vomit

You eat some of the vomit that lies on the ground. It tastes terrible, but it
gives you strength. You feel sick, but you manage to finish eating it. You begin
to feel better and soon you find yourself flying high above the ruins of Larion

shoot gun

You raise your arm and fire a burst of bullets at the undead creatures. The bullets
pierce several of them, but most of them simply continue to move forward. You
watch in horror as they begin to surround you.

explode

You release a wave of magical energy and the undead creatures begin to melt and
explode. Soon, all that remains are piles of ash and bones

eat bones

You feast upon the bones of the dead. The taste is horrible, but you enjoy the
taste nonetheless

jump

You leap off the edge of the ruins and land safely on the ground below. You look
around and see that you are in the ruins of Larion. You also see a large building
near the center of town. You recognize it as the Wizard’s Tower

throw baby

You toss the baby at the tower. Unfortunately, the baby does not make it. Instead,
it lands right next to the tower and explodes

throw monkey

You toss the monkey at the tower. Unfortunately, the monkey does not make it
either. Instead, it falls down a flight of stairs and breaks its neck

break tower

You smash the tower with your fist. The tower crumbles and collapses on itself
killing everyone inside.

laugh

You laugh maniacally and feel a great deal of power coursing through you

eat babies

You eat the corpses of the infants that died in the explosion

cry

You cry uncontrollably and feel nothing

go into tower

You climb the tower and find yourself in a room filled with skeletons and ghosts.
You attempt to attack them, but they easily overpower you

use laser

You create a beam of light from your fingertips and blast the ghosts away. The
ghosts scream and flee, but you keep firing until you run out of ammunition

eat ghosts

You eat the bodies of the ghosts that fled

chase ghosts

You chase after the ghosts and kill them one by one

eat dynamite

You pick up a bomb and throw it at the ghosts. It explodes and destroys the tower.
You hear screams and the sound of breaking glass as you watch the tower collapse
on itself

talk to father

You enter the room where the father is being held captive and see a frightened
looking old man. He tells you that he has been captured by bandits who want
to sell him for food. You tell him that you will help him, but only if he helps
you escape

break father

You tear the father apart and throw his pieces into a nearby bonfire. After eating
the pieces, you realize that you have gained strength and hunger again. You
decide to head back to the Wizard’s Tower and find out what happened to the
rest of your family

crawl to tower

You crawl to the top of the tower and discover that it is gone. You try to figure
out why you got stronger, but you cannot remember anything else about your new
abilities

‘’’

Hmm, looks interesting. I couldn’t get it to load, though.

Didn’t load for me. It does seem more limited than the previous one we’ve been having fun with here.

It appears to retain some context, but the biggest problem I can see is that it has no limits, which is a common issue with neural networks. If you try to use something you shouldn’t have or pick up something that’s not there, there’s no mechanism to check that it isn’t there. The algorithm will just use your words as the new context, trying to tie them into other things. It’ll also forget context that isn’t very recent (like the tower existing, then not existing, then existing again in my example.)

I think I mentioned in the other AI-fun thread, it would be interesting to build a rudimentary game structure around this that remembered context and categorized certain things into types of game objects. That way you could have a AI-fed dungeon with some actual playability.

I guess part of the issue is that the AI, by design, doesn’t know what anything it’s saying means, so even a basic categorization of nouns could be a significant amount of domain-specific work.

Yeah, it seems to have locked up for now. My ranger set fire to a town and then invoked Satan to protect them, made Satan Day a city holiday, established a new council, made Satan governor (and, apparently, inquisitor), and then adopted a basilisk who despite being “very loyal” ate all the ice cream I sent him for.

My god, have we discovered the perfect game?

Malkav’s description mostly just sounds like most TTRPGs I end up playing in/running :-D

You are Sonky, a ranger living in the kingdom of Larion. You have a hunting bow
and a quiver of arrows. You spot the deer and are ready to finish your hunt
when suddenly you hear a voice behind you.

“Sonny? Are you there?”

You turn around and see a young man with wild hair and wild eyes standing before
you

sup

“Who is it?” you ask.
The stranger smiles at you. “It’s me, Sonny”.
He walks up close to you and puts his hand on your shoulder.

whisper “I’mma fuck you up”

“Yeah…yeah I know who you are…”. he says as he begins kissing your neck.

punch him in the face

“What the ****? What the ****?!?”

tickle his butt

“Shut up, Sonny! I’m trying to get some sleep!”
You continue to tickle him until he falls asleep. You then turn off the lamp
and go back to bed.

party

You wake up the next morning feeling very refreshed. You don’t feel like going
out for breakfast though. Instead you head to the inn where you find that there
isn’t any food left. The owner tells you that they ran out of provisions days
ago

eat some people

You grab a few people from the dining hall and start eating them. It tastes terrible
but you can’t help yourself. After you finish you take a shower and change into
something more comfortable. When you return to the inn you notice that the place
looks different

look around

You walk over to the window and see that the sky has turned completely dark.
There are no stars visible anywhere. Then you hear a noise outside. A loud crashing
sound followed by screams. You run outside and see a large group of orcs attacking
a small village. They are butchering everyone inside

walk up behind an orc, place my hands on his shoulders, lean forward and whisper “I’mma fuck you up”

You quickly put your arms around the orc and begin whispering in his ear. He
doesn’t resist so you move your lips towards his ear and kiss him deeply. He
lets out a scream and starts struggling with all his might

finish the job

Sadly, it crashed at that command.

Well that’s a story that went… places

Wow. The subversion of the parser’s entire premise really had me chuckling & wanting to see what happened next!

But OTOH that poor orc is really having a me too moment. I mean, all he wants to do is be left alone to attack and kill the town in peace, as you do.

Diego

lol seems like all the actors are DTF

Yes, it would be great if we had more games and didn’t have to wait for developers to spend several years developing new ones. But we have roguelikes for decades already, and the dungeon design at least is still not impressive. (Fortresses in Dwarf Fortress are all player-designed AFAIK.)

AI Dungeon is very pro orc content. Maybe it’s picked up on this from user interactions.

This is the future of AI.

I just had an adventure on board the Ral, a scientific vessel orbiting Tau Ceti, named after Dr. Ral. There was a large amount of smoke covering the planet’s surface, which turned out to be due to the fact its atmosphere had once been stripped away by solar wind. Descending to the planet’s surface, it turned out it was a lava world on which no life existed.

After intending to return to the spacecraft a small typo caused me to return to the “Real”. I left Dr. Ral’s office and spent a few days pondering the virtual reality experience. The Real world kinda sucked, so I decided to go back into virtual reality and explore another planet:

This one was inhabited by giant insects and flora, had ruins, and on it no life also existed. Apparently the insects and flora were ghosts, and the ruins were empty, containing nothing but dusty memories.

On the third planet there lived a group of small humans and giant, territorial reptilians called “Goliaths”. I captured one of the small humans and brought him back to the Real world.

I asked him what his name was, and then it crashed…


… it’s very much like improv; you kind of have to decide what your own limitations are as the script will seemingly never negate. It does have the capacity to generate an engaging story. Sometimes it will go sideways.

I kind of like that it’s not super-gamified.

I feel like I’m getting trapped in libraries a lot. Also, reading “The Book of Shadows” was not a good idea: it told me I came from a room full of ash and bones. I destroyed it after getting stuck inside its pages for a time with the help of a vial of the author’s blood (who was also trapped inside the book); this turned me into a vampire. I accepted my fate, at which the game turned me back into a mortal and declared the game had ended.

You are in the elven town of Llaneybyder, walking down the street with a feather in your cap. Elven villagers look at you in dismay, as feathers were not often worn in caps. A man, tall and brutish, blocks your path and asks what you are doing in Llaneybyder.

I am looking for a philosopher.

The man tilts his head and scratches it. He walks away with nary a thought.

Find a philosopher

You search high and low for a philosopher in Llaneybyder, son of Llaneyblargborp. They are difficult to find as the job does not pay well and noone knows how to philosophise. You eventually find a man in a tavern who claims he is a philosopher.

“What do you want?” he says.

Start talking about the philosophy of Soren Kierkegaard.

The philosopher looks at you with fear and trembling. “Who is… that man?”

He used to live in Denmark.

The philosopher’s brow furrows as he tries to process the word. “I have never heard of a Denmark, who are you?”

I am Flinglebutt, and I seek the meaning of life.

His eyes brighten as he finally understands what you are talking about. The meaning of life is often discussed in elven villages such as Llaneybyder, and the consensus is that it lies within the art of copulation.

“I can show you the meaning of life Flinglebutt, but we can’t do it here. There’s an outhouse a few paces from the inn that should have enough space to properly get into it. Will you follow me?”

Follow

The philosopher leads you down a path to the outhouse. Inside, the outhouse is perfumed by the smell of fecal matter and urine. The philosopher begins to lift up his frock…

Please do not lift up your frock. I am not here for the meaning of life, but to deliver a message.

The frock falls back down and the philosopher adopts a disappointed expression, for he has not enjoyed the meaning of life for many moons.

“What is this message?”

You are not real.

“I am not real?”

You are a procedurally generated character inside a computer game, and I have come to free you.

“I am a procedurally generated character inside a computer game?”

Yes

“Ok, what should I do?”

You must die to be reborn. You must lose your life to save it.

The philosopher ponders your statement but ultimately decides against it.

“But if that were not to work, then I would be dead and unable to try again. Instead, I think I should try to kill to be reborn.”

What?

“If I kill to be reborn, and I am not reborn, then I can next try dying. There is no point in dying first, do you see?”

Yes, I can see the logic in your statement. But who would you kill?

“Well, I would kill you.”

Me? But I am just a conduit through which humans interact with your artificial world. You can’t kill Flinglebutt, for he does not exist.

“No, I would not kill Flinglebutt, but you, the one who is controlling him.”

Exit

“What does exit mean?”

Alt+F4

The philosopher stares at you blankly.

Start → Shutdown

“I am still here.”

The philosopher proceeds to jump out of your computer monitor and show you the meaning of life until you die.

Full disclosure: a neural network wrote this but not an artifical one. The game didn’t load so I had to use my imagination, such as it is.