3 ms·
I was asking ChatGPT how I could use LLMs for setting up a text adventure game. Like using libraries to find certain keywords from a sentence. For example, if t
by cyrialize 4y ago
I was asking ChatGPT how I could use LLMs for setting up a text adventure game. Like using libraries to find certain keywords from a sentence. For example, if the user types a "search" keyword or synonyms, then I'll spit out the response to "search".
Then, I realized I could just play the text adventure game with ChatGPT. So I did the following:
- I said I had 100 health points and 100 magic points
- I have two types of attacks. A normal attack does 25pts of damage to health points and has a low chance of missing. A heavy attack does 50 pts of damage to health points and has a medium to high chance of missing. It leaves me open to attacks.
- There are three types of enemies: easy, medium, and hard. An easy enemy has 50 health points and does 15 pts of damage. It has a medium to high chance of missing. Similar stats to medium and hard enemies, with increased health points, increased damage, and lower chances of missing.
Then I said let's play an encounter with an easy enemy. It was great! It said I was in a forest, and it told me that there was a rusty sword near by to pick up. I had to fight a goblin for an easy enemy.
It was very cool. Made me want to do some more world building, feed that into ChatGPT, and then play within that world.