All Discussions > Steam Forums > Off Topic > Topic Details
AI Adventures
So I have recently started using AI models because I am bored of looking through books and net searches for fixing up code and figured the lazy way is the way to go I thought it was about time I got into learning about the new tools on the open platform that we all share.

This is a topic about rule sets and starting your own text adventures and so on.
I found quickly it is literally like the holo deck from star trek.
you can keep refining it (in a limited way ofcourse) and get what you want.

Coding wise it is very easy to do and also very easy for it to make errors and then fix those error and then you need to add a bit more and then either that chat tokens are done and you got to start again or your daily limit is used up (on another platform) and then you got to go and find another one.

Last night I couldnt be bothered to access my own brain for code - if this sounds strange to you it is because I literally zone into things and its like being Joe 90 just without the cool clothes and cool intro music.
Problem with zoning is it takes effort and I am on auto pilot in a weird way - feels great but does have its drawbacks.
So AI to the rescue I say make me the js and html code for a simple MUD but for solo player offline. (Multi User Domain / Dungeon) .
Almost immediately it came up with it, i added bits and if you make it do all the work it will do a bit of a hatchet job as you continue to tell it exactly what you want it to do - rather than just ask it for a bit of code here and there which is where it shines.

My own research on everything I comment on these forums is not based on AI for the simple reason I know how to research the topics and double check who is providing them and get different sources.
By the time I told AI what I want I could have done it myself and can sum it up myself and then putting my opinion on the forums.
The AI has limits naturally and like any tool you learn what they are.

Some people look at a hammer and then look at a building and say 'I can't see it knocking that down!' and just watch it expecting the hammer without any force being applied to it will just demolish the building in a single tap.
- these people are called AI critics. Same sort of people said the tri corders would never become a thing or the simple communicators from star trek were unrealistic.
Yet here we are with androids doing just that and a hundred thousand things more.

Anyway I had a fun little Aliens game and even put a alien picture in the background as I sent lone Colonial Marines to text fight awaiting Aliens.
It is quite satisfying.

The AI kept making little mistakes and nothing major but after few hours messing about I thought I could have written this code myself a lot better, much more suited to my way of modification and more my style of coding.
- if you imagine Doctor Sean Murphy doing Surgery in The Good Doctor on one end and well there is the way I code in the manner I like which is more Jeremy Clarkson with a petrol bomb.
You got tonsillitis?
Don't worry when I am done with you, you are not going to be bothered about tonsils!


So I got playing with another Aliens game all in the AI chatbox itself (you can get it on any modern browser) And it made a little adventure of my Colonial MArine scouting out a tunnel and his job was to check the area and any sign of Alien infestation get the heck out of there back to the command vehicle and get support - and live.

It worked quite well considering its an AI that did it instantly with very few parameters to go by.
Multiple choice pick the number you want to choose and play.

The downside was it could get a little bit 'stuck' on doing the same thing.
I was guarding the door of the command vehicle and already fought off some aliens and used different tactics and by now i just wanted reinforcements so i could win the game.

And a few events around the command vehicle and my support turns up and then that chat's tokens ran out. I could have opened a new chat put in the game i wanted to play give it a little brief of the current progress i had made and i would have picked up more or less at the command vehicle.
But it was like a dream sometimes you got to just wake up and get on with something else.

What do I dislike about AI?
you know the toaster on Red Dwarf?
Look up 'do you want toast' if you never watched that fabled episode.
I literally have to tell the aI every new chat 'do not use ! when talking to me. Do not tell me to 'feel free to ask any questions' and so on.
Watch red dwarf and you will understand or just talk to an AI for ten minutes and I will not be responsible for any damage you cause your machine.

I'll give an example of an adventure that was created in seconds after I wrote this post.
< >
Showing 1-14 of 14 comments
Me The AI Mastercrafter says :
I want to play a text game set in a medieval fantasy world. I want you to provide stats similar to the d20 system and you make the rules of combat and play. I am a man at arms traveling through the Stephen / Matilda war period escorting merchants from one city to another. I will play it here.

The AI says :

Welcome to the medieval fantasy world set during the tumultuous Stephen and Matilda war period! In this game, you will take on the role of a man-at-arms, escorting merchants through dangerous territories.

### Character Stats
You will have the following stats, similar to the d20 system:

1. **Strength (STR)**: Measures your physical power and ability to deal damage in combat.
2. **Dexterity (DEX)**: Represents your agility, reflexes, and ability to dodge attacks.
3. **Constitution (CON)**: Determines your health and stamina; affects your hit points.
4. **Intelligence (INT)**: Reflects your knowledge and ability to solve problems or strategize.
5. **Wisdom (WIS)**: Represents your perception and insight; useful for noticing dangers.
6. **Charisma (CHA)**: Measures your ability to influence others and negotiate.

### Combat Rules
- **Initiative**: At the start of combat, roll a d20 and add your DEX modifier to determine the order of actions.
- **Attack Roll**: To attack, roll a d20 and add your STR modifier (for melee) or DEX modifier (for ranged). If the total meets or exceeds the target's Armor Class (AC), the attack hits.
- **Damage Roll**: If you hit, roll the appropriate damage dice (e.g., 1d8 for a sword) and add your STR modifier.
- **Defense**: Your AC is determined by your armor and DEX modifier. Enemies must meet or exceed your AC to hit you.
- **Hit Points (HP)**: Start with 10 + your CON modifier. If your HP drops to 0, you are incapacitated.

### Starting Your Adventure
You are currently in the bustling town of **Brighton**, preparing to escort a group of merchants to the nearby city of **Winchester**. The roads are known to be dangerous, with bandits and rival factions lurking in the shadows.

**Your Stats:**
- STR: 3
- DEX: 2
- CON: 2
- INT: 1
- WIS: 1
- CHA: 1

**Hit Points (HP):** 12

**Armor Class (AC):** 12 (based on your armor)

### Scene
As you gather your gear and meet the merchants, you overhear whispers of a bandit group that has been ambushing travelers on the road to Winchester. The merchants are anxious but determined to make the journey.

What would you like to do? You can:
1. **Speak to the merchants** to gather more information.
2. **Scout the area** for any signs of danger.
3. **Prepare your weapons and armor** for the journey.
4. **Set out immediately** to begin the escort.

Choose your action!

### Scouting the Area

You decide to scout the area for any signs of danger before setting out. You move away from the merchants, keeping low and using the cover of nearby trees and bushes to conceal your presence.

**Roll for Perception:**
Roll a d20 and add your WIS modifier (which is +1) to see if you can spot any threats.

Please roll a d20!

I told it to do the rolls

Alright, I'll roll the d20 for you.

*Rolling...*

You rolled a **14**. Adding your WIS modifier (+1), your total is **15**.

### Scouting Results

With a total of 15, you successfully spot some signs of recent activity in the area. You notice:

1. **Footprints**: Several sets of footprints leading off the main path into the woods, suggesting that a group may have been lurking nearby.
2. **Broken Branches**: Some branches are broken, indicating that someone has been moving through the underbrush recently.
3. **A Distant Sound**: You hear faint voices coming from the direction of the footprints, suggesting that a group may be planning an ambush.

### Decision Time

With this information, you have a few options:

1. **Return to the merchants** and warn them about the potential ambush.
2. **Investigate further** to see how many bandits there are and gather more information.
3. **Set a trap** for the bandits, using the element of surprise to your advantage.
4. **Change your route** to avoid the area altogether.

What would you like to do?

= = = =

So that was in seconds it came up with that.

If AI was around when I was a bairn I might have actually had a friend.
Bjørn Jun 2 @ 8:47am 
This is pretty interesting.

It won't be long until there will be 'One game to rule them all', I suspect:

One 'game', or rather an AI can create any game you want, for example:

"Make a first person RPG set in a dystopian cyberpunk-world"

... then the AI creates a game similar to Cyberpunk 2077 in minutes, fantastic graphics and all, detailed landscapes, realistically furnished interiors etc, fully open world.


Or "Create a realistic flight simulator"

... and it creates a flight simulator with realistic aircraft and photorealistic scenery that Microsoft can only dream of :steamsunny:


Same thing with movies, I guess.
Originally posted by Bjørn:
This is pretty interesting.

It won't be long until there will be 'One game to rule them all', I suspect:

One 'game', or rather an AI can create any game you want, for example:

"Make a first person RPG set in a dystopian cyberpunk-world"

... then the AI creates a game similar to Cyberpunk 2077 in minutes, fantastic graphics and all, detailed landscapes, realistically furnished interiors etc, fully open world.


Or "Create a realistic flight simulator"

... and it creates a flight simulator with realistic aircraft and photorealistic scenery that Microsoft can only dream of :steamsunny:


Same thing with movies, I guess.

One day it can be so.
the difficulty will be in updating zones / world areas and adding features without confusing it on something from human error of input to it.

I had a quick playthrough of that game and that is just a chat bot that came up with it.
And it is not rigid on just those choices it presents you can say I want to do this as well and it will make the dice rolls and calculations.

I can see for hollywood cinema AI would be very good because its just blasting in your face for that 90 to 120 minutes ride of special effects.
Plus if we take T3 Rise of the Machines I bet a dedicated AI would have made it way more sinister and horror like.

I might try and see what it would do with a few scenes from T3 using the script and letting it loose.
Originally posted by skOsH♥:
http://youtube.com/watch?v=5C3mvRm0aOY

I could do that in one function or several. And I could make the random generated quests have relevance to the main story line. - in both a prompt for the AI chat bot and in my own browser type game using js.

Many combat systems rely on a similar pattern too in i guess mos the games people have played.
Last edited by Corvus XIII; Jun 2 @ 9:14am
Arvaos Jun 2 @ 9:15am 
Originally posted by Bjørn:
This is pretty interesting.

It won't be long until there will be 'One game to rule them all', I suspect:

One 'game', or rather an AI can create any game you want, for example:

"Make a first person RPG set in a dystopian cyberpunk-world"

... then the AI creates a game similar to Cyberpunk 2077 in minutes, fantastic graphics and all, detailed landscapes, realistically furnished interiors etc, fully open world.


Or "Create a realistic flight simulator"

... and it creates a flight simulator with realistic aircraft and photorealistic scenery that Microsoft can only dream of :steamsunny:


Same thing with movies, I guess.

Try this Skyrim prompt.

https://www.reddit.com/r/chatgpt_promptDesign/s/CHpUiUhEu6
Originally posted by Hobbit XIII:
Originally posted by skOsH♥:
http://youtube.com/watch?v=5C3mvRm0aOY

I could do that in one function or several. And I could make the random generated quests have relevance to the main story line. - in both a prompt for the AI chat bot and in my own browser type game using js.

Many combat systems rely on a similar pattern too in i guess mos the games people have played.

Its my only concern about AI generated adventures. There should be some element where someone is making a narrative arc for each story and have it all tie together to the main story
Originally posted by skOsH♥:
Originally posted by Hobbit XIII:

I could do that in one function or several. And I could make the random generated quests have relevance to the main story line. - in both a prompt for the AI chat bot and in my own browser type game using js.

Many combat systems rely on a similar pattern too in i guess mos the games people have played.

Its my only concern about AI generated adventures. There should be some element where someone is making a narrative arc for each story and have it all tie together to the main story

You could do it.
Have the AI make some suggestions or make the adventures and then as a human tell the AI to link it up or as a human modify it and code it in.

You would need to know a bit of code obviously that it was using but the human factor could still be in it.
Alternatively a person with a great creative mind but not wanting to get bogged down in code could come up with fantastic adventures and quests and have the AI and a coder fix it into the game.
On a little side example to do with films.
I asked the AI to do the famous Vader and Luke scene . If you have not seen Star Wars original Trilogy don't read further there might be a spoiler.

[A dimly lit chamber within the Death Star. LUKE stands, lightsaber drawn, facing VADER.]

LUKE:
Thou art a fiend, clad in shadows deep,
With malice in thy heart, and darkness steep.
What treachery dost thou weave, O wretched sire,
To claim my kinship, and my soul inspire?

VADER:
Nay, young Skywalker, heed my solemn word,
In truth, thou art my son, though it seems absurd.
I sought to guide thee, to embrace thy fate,
But thou hast turned away, and sealed thy state.

LUKE:
Thou speakest falsehoods, a serpent in disguise!
My father was a noble man, with gentle eyes.
Thy hands are stained with blood, thy heart is cold,
How canst thou claim the bond that I behold?

VADER:
Listen well, for the truth I now impart,
The blood that courses through thy veins is part
Of my own essence, forged in fire and strife,
Together we could wield the power of life.

LUKE:
(Despairing)
O, woe betide! This knowledge doth confound,
To know my lineage in darkness is found.
Yet still I stand, defiant in my quest,
For light shall triumph, and evil shall rest.

VADER:
Join me, and together we shall reign,
As father and son, we shall break the chain.
The galaxy shall tremble at our might,
Embrace thy destiny, and join the fight.

LUKE:
I shall not yield to shadows, nor to thee,
For in my heart, the light shall ever be.
Though thou art my father, I shall not fall,
For hope endures, and love shall conquer all.
What i will do for people who are interested because this is a large subject with all the many things you can do and experiment with is put the prompts and some code if people want to have a go at making some simple yet interesting things on A Steam group.
Probably Hobbiton as I have not done anything on that yet.

Things you will need :
A browser.
Access to duck.ai (just type it in the search engine and it will get you there) and that is about it.

You will get a feel for when your nearly at the limit of that particular chat so if playing a game request stats and make a note of information of what is going on and you get to play some more - it won't remember your session but a good prompt will recreate it for you where you left off.

For one of them its something like you get 4000 tokens (aprox) and each token including spaces could be guestimated at 4 words or characters.

There are so many things it will just instantly do, this is an emerging tech and it will just go exponential over the coming years.
I would love to see a chatbot-powered MUD. Something similar to BatMUD or MajorMUD where you can create a character from one of hundreds of different fantasy races, pick your class, defeat monsters, level up. But it's a MUD so it's multiplayer and you can work together or fight with other players.

Anything that brings us closer to Overlord is good by me.

https://youtu.be/6gausMuRVKM
Originally posted by Kamiyama:
I would love to see a chatbot-powered MUD. Something similar to BatMUD or MajorMUD where you can create a character from one of hundreds of different fantasy races, pick your class, defeat monsters, level up. But it's a MUD so it's multiplayer and you can work together or fight with other players.

Anything that brings us closer to Overlord is good by me.

https://youtu.be/6gausMuRVKM

You can to some degree. I think for something complex you would need to experiment a bit and find one that does not have 'token use'.
I think having chatbots responding as NPCs would be seriously cool, tell the chatbot 'you are Conan the Barbarian' and it will respond like him.

I asked the chatbot to be Conan :
Sure! Channeling the spirit of Robert E. Howard's Conan, I can adopt a more adventurous and heroic tone. Imagine a world of sword and sorcery, where strength, cunning, and bravery are paramount.

---

In the shadowy realms of Hyboria, where ancient kingdoms rise and fall, and dark sorcery lurks in the corners of the world, a lone warrior strides forth. With the strength of a lion and the heart of a true barbarian, he faces foes both mortal and supernatural.

"Tell me, traveler," he growls, his voice like gravel, "what brings you to this land of peril and glory? Do you seek treasure, vengeance, or perhaps the thrill of battle? Speak, and I shall aid you in your quest!"

---I told him I was Merlin the magician.----

"I am Conan, son of Corin, a warrior of Cimmeria, forged in the fires of battle and tempered by the harsh winds of the north. I roam the lands in search of glory and adventure, wielding my sword against the darkness that threatens the realms.

Merlin, the great magician, your name carries weight among the wise and the powerful. What brings you to this tumultuous world? Do you seek allies for a grand quest, or perhaps knowledge of ancient secrets? Speak, and let us weave our fates together!"

----"What say you of Magic?-----

"Magic, Merlin, is a force both wondrous and perilous. It can bend the very fabric of reality, conjuring storms or summoning creatures from the abyss. Yet, it is a double-edged sword, wielded by those who dare to grasp its power.

In my travels, I have seen the might of sorcery bring kingdoms to their knees and unleash horrors upon the unwary. I respect its power, but I trust in steel and the strength of my own arm above all.

Tell me, great magician, what is your view of magic? Is it a tool for the noble, or a temptation that leads to ruin?"

-----"It is as the secret of steel. It can bend and so must the user or he will break. Be one with the forces around you and flow with them and not against them. Just as a warrior flows through the battle so must a user of magic flow through the energy." -----

"Wise words, Merlin. Just as a warrior must adapt to the ebb and flow of battle, so too must a sorcerer attune himself to the currents of magic that swirl around him. To resist the forces of nature is to invite chaos; to embrace them is to harness their true power.

In the heat of combat, I have learned to read my foes, to anticipate their moves and strike with precision. A magician, like a warrior, must be ever vigilant, for the tides of fate can shift in an instant.

Your teachings resonate deeply within me. Perhaps there is more to learn from the arcane arts than I have dared to consider. Together, we could forge a path through the shadows, blending the might of steel with the subtlety of magic. What adventures await us, I wonder?"

-------"First I must capture you for my zoo!"------

"Ha! A bold jest, Merlin! To capture a warrior of Cimmeria is no small feat. You would need more than mere magic to bind me, for I am forged from the strength of mountains and the fury of the wild.

But I admire your spirit! If it is a challenge you seek, then let us engage in a contest of wits and strength. Should you succeed, I shall willingly join your menagerie, but should I prevail, you will share with me the secrets of your magic.

What say you, great magician? Will you test your cunning against the might of Conan?"

--------"hahaha! nay great warrior I was testing your humour, you are not as hot headed as some would say."---------

Ah, a clever ruse, Merlin! You have caught me off guard with your wit. It is true that many see the Cimmerian as a brute, quick to anger and slow to think. But beneath this rugged exterior lies a mind that appreciates the dance of words as much as the clash of steel.

Humor has its place in the heart of a warrior, for it lightens the burdens of battle and reminds us that even in the darkest of times, laughter can be a powerful ally.

So tell me, wise magician, what other tests of wit or wisdom do you have in store? I am eager to engage in this game of minds!


XX XX XX XX XX XX XX XX

This was a much friendlier version of Conan the Barbarian than the first one i spoke to on another platform.
This one here was engaging and more intelligent or least more social.
The first Conan I spoke to really was something out the Robert E Howard books, and if i said I was a user of magic I think it would have wanted to attack me.

Imagine like you said having a MUD created and filled with these 'creatures' the user could go in depressed (which many people back in the day of the MUD seemed to be) and have a positive interaction in a real roleplay environment. - i know it wouldnt be a substitue for getting better mentally but considering how toxic people can be a MUD filled with these as well as people they could really emerse in a positive way.
As long as the chat bots stayed friendly.

I asked the chat bot about group of people using the same Chatbot and it gave various answers the one that stuck out was to use discord.
After the Conan talk I asked it again :

"Creating a MUD-like experience on Discord is indeed possible, and it can be a thrilling venture! Here’s how you might go about it:

1. **Choose a Bot Framework**: You can use existing bot frameworks like Discord.js (for JavaScript) or Discord.py (for Python) to create a custom bot that will handle the game mechanics. Alternatively, you can look for pre-built bots that offer text-based adventure capabilities.

2. **Design the Game World**: Outline the locations, characters, and quests that players can explore. Create a map of your world, detailing how different areas connect and what challenges or treasures await in each.

3. **Implement Commands**: Program commands that players can use to interact with the game. For example, commands like `!look`, `!go [direction]`, `!take [item]`, and `!talk [character]` can help players navigate and interact with the world.

4. **Create a Narrative**: Develop a storyline that players can follow, with branching paths and choices that affect the outcome of their adventure. This can include quests, puzzles, and encounters with NPCs (non-player characters).

5. **Multiplayer Interaction**: Ensure that the bot can handle multiple players interacting simultaneously. Players should be able to see each other's actions and collaborate or compete as they explore the world.

6. **Testing and Iteration**: Once your bot is set up, invite friends to test it out. Gather feedback and make adjustments to improve the experience.

7. **Engagement**: Keep the game dynamic by regularly updating it with new content, events, and challenges to keep players engaged.

While creating a fully functional MUD on Discord may require some programming knowledge, it can be a rewarding project that brings together friends for epic adventures. If you need more specific guidance on any of these steps, just let me know!"

I asked if it could create the experience itself on Discord like in the chatbox :

Creating a text adventure game on Discord is indeed possible, but it requires a different approach compared to a simple text-based interaction here. While I can facilitate a text adventure game in this chat by responding to your commands and guiding the narrative, implementing a similar experience on Discord involves several steps:

1. **Bot Development**: On Discord, you need a bot that can handle user inputs, manage game state, and respond to commands. This requires programming knowledge to create a bot using frameworks like Discord.js or Discord.py.

2. **Real-Time Interaction**: Discord operates in a multi-user environment, so the bot must be able to manage multiple players interacting simultaneously. This adds complexity compared to a single-threaded chat.

3. **Persistent State**: A MUD-like experience often requires maintaining a persistent game state, including player progress, inventory, and world changes. This requires a database or some form of data storage.

4. **User Commands**: You would need to define a set of commands that players can use to interact with the game, similar to how you might type commands here. The bot must interpret these commands and respond appropriately.

5. **Community Engagement**: Discord is a social platform, so incorporating features that allow players to interact with each other, form parties, or compete can enhance the experience.

While I can guide you through the design and provide ideas for a text adventure, the actual implementation on Discord would require a bot to be developed and hosted. If you're looking for a more straightforward way to create a text adventure on Discord, using existing bots or collaborating with someone who can code would be the best approach. If you need help finding resources or existing bots, let me know!

X X X X X

It is possible with a dedicated bot and a database.
In time i expect if a person gave a bot guidelines we will have a bot be able to create the database itself . what the 'simple' chatbot can do now already is fascinating. - even if they do have critics who do not understand them as a tool.
I will post on this thread a little bit or for open discussion.

For detailed prompts and results and how a novice can get use AI to help code their own mini games and programs I'll put it on this group :

https://steamcommunity.com/groups/hobvill/discussions
I was playing about with the AI and got it to write short stories in the style of well known authors.

It even made some cool scenes from Three Musketeers readable - if you read the original you would know what i mean.

What happens when you got Del Boy and Rodney and then The Tau show up?
Prompt:

The Tau (of 40k) have literally just landed and are now approaching and Rodney runs off leaving Del to face them and explain.

**Del Boy:** "Oh, blimey! What’s that coming over the hill? Is it a bird? Is it a plane? No, it’s the Tau! Right, Rodders, we’ve got to think fast!"

**Rodney:** "Del, I’m not sticking around for this! They look like they mean business! I’m out of here!"

**Del Boy:** "Rodney, wait! You can’t just run off! I need you here to help me explain why we sold them that dodgy gear!"

**Rodney:** "You’re on your own, Del! I’m not getting zapped by some alien blokes in fancy suits!"

**Del Boy:** "Oh, for crying out loud! Alright, alright, I’ll handle this! Just remember, if I don’t make it back, tell Mum I love her!"

**(Del steps forward, trying to put on a brave face as the Tau approach.)**

**Del Boy:** "Er, hello there! Welcome to Earth! I see you’ve come to check out our wares! Now, about that gear we sold you… it’s, um, a limited edition! Very rare, you know? You won’t find anything like it in the galaxy!"

**(The Tau look at Del with their inscrutable expressions, clearly unimpressed.)**

**Del Boy:** "Right, right, I know what you’re thinking. ‘What’s this dodgy human trying to sell us?’ But listen, it’s all part of the charm! You see, we’re just trying to make a living here, and sometimes things get a bit… mixed up!"

**(The Tau begin to advance, and Del starts to sweat.)**

**Del Boy:** "Now, now, let’s not be hasty! How about I throw in a discount for your next purchase? You know, a little something for your trouble! We can work together, make a deal! I’ve got some lovely trinkets back at the stall—very popular with the locals!"

**(Rodney peeks back from behind a tree, watching nervously.)**

**Rodney:** "Del, I think they’re not buying it! You might want to think of something else!"

**Del Boy:** "Thanks for the tip, Rodders! I’m working on it! Look, how about we negotiate? I can get you some top-notch Earth merchandise—maybe a nice selection of tea or biscuits? Everyone loves a good biscuit!"

**(The Tau seem to pause, considering Del’s offer.)**

**Del Boy:** "See? Now we’re talking! Just give me a chance to make it right, and I promise you won’t regret it! We can be friends, yeah? Just don’t zap me, alright?"

**(Del takes a deep breath, hoping for the best as he tries to charm the extraterrestrial visitors.)**

What do you think? Will Del manage to talk his way out of this one?
< >
Showing 1-14 of 14 comments
Per page: 1530 50

All Discussions > Steam Forums > Off Topic > Topic Details
Date Posted: Jun 2 @ 8:16am
Posts: 14