Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use json file to create adventures #10

Open
Ennowulff opened this issue May 2, 2023 · 0 comments
Open

use json file to create adventures #10

Ennowulff opened this issue May 2, 2023 · 0 comments

Comments

@Ennowulff
Copy link
Owner

Ennowulff commented May 2, 2023

I asked ChatGPT to create a json file for the following adventure:

_i have created a text adventure engine where rooms, things and actorss can interact with each other. a room can have things and actors and exits to the north, east, south and west. an actor can hold things and give it to the protagonist. a thing can be a treasure or a tool to open things (e.g. a knife, an axe or a stone) or hide a treasure (e.g. a box or or a chest). a treasure can be something like gold, wisdom, a ring, money, a statue or something similar.
create a json file which describes the following situation or task:

a poor knight needs to find a dragon in a dungeon, fight him and bring the golden ring, the dragon protects to a maiden_

{
  "rooms": [
    {
      "id": 1,
      "name": "Entrance Hall",
      "description": "You are standing in the entrance hall of the dungeon. The air is thick with the smell of damp stone and mildew. The walls are rough-hewn and the floor is covered in dust and debris.",
      "exits": [
        {
          "direction": "north",
          "room_id": 2
        }
      ],
      "things": [],
      "actors": []
    },
    {
      "id": 2,
      "name": "Dragon's Lair",
      "description": "You have entered the dragon's lair. The room is filled with the heat of the dragon's breath, and the walls are scorched black. In the center of the room, the dragon is sleeping on a pile of treasure.",
      "exits": [],
      "things": [
        {
          "id": 1,
          "name": "Golden Ring",
          "description": "A shiny golden ring, set with a large gemstone.",
          "treasure": true,
          "hidden": false
        }
      ],
      "actors": [
        {
          "id": 1,
          "name": "Dragon",
          "description": "A fearsome dragon, with scales as black as coal and eyes that gleam like diamonds. It is fast asleep on a pile of treasure.",
          "holdable_things": [],
          "gives": {
            "thing_id": 1,
            "to_actor_id": 2
          }
        },
        {
          "id": 2,
          "name": "Poor Knight",
          "description": "A ragged and tired-looking knight, armed only with a rusty sword and shield.",
          "holdable_things": [
            {
              "id": 2,
              "name": "Rusty Sword",
              "description": "An old and worn sword, with a rusty blade and a frayed hilt.",
              "treasure": false,
              "hidden": false
            },
            {
              "id": 3,
              "name": "Shield",
              "description": "A battered and dented shield, made of wood and metal.",
              "treasure": false,
              "hidden": false
            }
          ],
          "gives": {
            "thing_id": 1,
            "to_actor_id": 3
          }
        },
        {
          "id": 3,
          "name": "Maiden",
          "description": "A beautiful maiden, with long golden hair and a kind face. She is waiting for you outside the dungeon.",
          "holdable_things": [],
          "gives": {}
        }
      ]
    }
  ]
}

In this example, there are two rooms: the entrance hall and the dragon's lair. The dragon's lair contains the golden ring that the poor knight needs to retrieve. The dragon is sleeping on a pile of treasure and must be fought in order to obtain the ring. The poor knight has a rusty sword and shield to use in the fight. Once the poor knight has the golden ring, they must bring it to the maiden waiting outside the dungeon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant