Skip to content

Instantly share code, notes, and snippets.

@hminnovation
Created December 2, 2024 10:44
Show Gist options
  • Save hminnovation/be6abf2277902a7f295b993f3178726b to your computer and use it in GitHub Desktop.
Save hminnovation/be6abf2277902a7f295b993f3178726b to your computer and use it in GitHub Desktop.
foo
{
"gameTitle": "The Crystal Caverns",
"turns": [
{
"turnNumber": 1,
"location": "Cave Entrance",
"description": "You stand at the mouth of a dark cave. Cool air wafts from its depths, carrying the scent of damp stone. A worn path leads inside, and beside it sits an old wooden chest.",
"availableCommands": ["go north", "examine chest", "check inventory"],
"items": ["wooden chest"],
"validResponses": {
"go north": {
"text": "You cautiously step into the cave, your footsteps echoing softly.",
"nextTurn": 2
},
"examine chest": {
"text": "The chest appears weathered but sturdy. It's unlocked.",
"nextTurn": 1
},
"check inventory": {
"text": "You are carrying: a brass lantern, some matches, and an empty water flask.",
"nextTurn": 1
}
}
},
{
"turnNumber": 2,
"location": "Dimly Lit Passage",
"description": "The passage narrows here, with rough-hewn walls glistening with moisture. Strange crystals embedded in the walls give off a faint blue glow. There's a fork in the path ahead.",
"availableCommands": ["go east", "go west", "examine crystals", "light lantern"],
"items": ["glowing crystals"],
"validResponses": {
"go east": {
"text": "You take the eastern passage, which slopes gently downward.",
"nextTurn": 3
},
"go west": {
"text": "The western passage is blocked by fallen rocks. You'll need to find another way.",
"nextTurn": 2
},
"examine crystals": {
"text": "The crystals pulse with an otherworldly light. They seem to respond to your presence.",
"nextTurn": 2
},
"light lantern": {
"text": "The lantern casts warm light across the walls, making the crystals sparkle brilliantly.",
"nextTurn": 2
}
}
},
{
"turnNumber": 3,
"location": "Crystal Chamber",
"description": "You've entered a vast chamber where massive crystal formations create natural columns from floor to ceiling. In the center stands a peculiar stone pedestal with strange markings.",
"availableCommands": ["examine pedestal", "go south", "touch crystals", "read markings"],
"items": ["stone pedestal", "crystal formations"],
"validResponses": {
"examine pedestal": {
"text": "The pedestal has three indentations arranged in a triangle. Ancient script circles its base.",
"nextTurn": 4
},
"go south": {
"text": "You return to the fork in the passage.",
"nextTurn": 2
},
"touch crystals": {
"text": "A soft hum emanates from the crystals as your hand approaches.",
"nextTurn": 3
},
"read markings": {
"text": "Though the script is unfamiliar, you can make out what seems to be a warning about disturbing ancient seals.",
"nextTurn": 3
}
}
},
{
"turnNumber": 4,
"location": "Underground Stream",
"description": "A swift underground stream cuts through the rock here. The water appears crystal clear, and you can see something glinting at the bottom. A narrow stone bridge crosses the water.",
"availableCommands": ["cross bridge", "fill flask", "examine stream", "reach for glint"],
"items": ["stone bridge", "clear stream", "mysterious glint"],
"validResponses": {
"cross bridge": {
"text": "You carefully make your way across the ancient bridge.",
"nextTurn": 5
},
"fill flask": {
"text": "You fill your flask with the cool, clear water.",
"nextTurn": 4
},
"examine stream": {
"text": "The stream moves swiftly but appears shallow enough to see the bottom clearly.",
"nextTurn": 4
},
"reach for glint": {
"text": "You reach into the cold water and grasp what appears to be an ancient coin.",
"nextTurn": 4
}
}
},
{
"turnNumber": 5,
"location": "Fungal Grotto",
"description": "Luminescent mushrooms carpet the floor and walls of this humid chamber. Their soft green light creates shifting shadows. A sweet, earthy smell fills the air.",
"availableCommands": ["gather mushrooms", "go north", "examine growth", "follow path"],
"items": ["glowing mushrooms", "fungal growths"],
"validResponses": {
"gather mushrooms": {
"text": "You carefully collect some of the glowing mushrooms. They continue to glow faintly in your pack.",
"nextTurn": 5
},
"go north": {
"text": "You proceed deeper into the cave system.",
"nextTurn": 6
},
"examine growth": {
"text": "The mushrooms seem to pulse gently with inner light. Some appear to be forming patterns.",
"nextTurn": 5
},
"follow path": {
"text": "The path seems to loop back to where you started in this chamber.",
"nextTurn": 5
}
}
},
{
"turnNumber": 6,
"location": "Echo Chamber",
"description": "Your footsteps reverberate in this dome-shaped cavern. Multiple tunnels lead off in different directions, and each sound you make returns as a complex harmony of echoes.",
"availableCommands": ["shout", "go east", "listen carefully", "examine walls"],
"items": ["resonant walls"],
"validResponses": {
"shout": {
"text": "Your shout returns as a cascade of musical notes, revealing a hidden passage to the north!",
"nextTurn": 7
},
"go east": {
"text": "This tunnel leads to a dead end.",
"nextTurn": 6
},
"listen carefully": {
"text": "In the silence, you hear a faint rhythmic dripping coming from one of the tunnels.",
"nextTurn": 6
},
"examine walls": {
"text": "The walls are smooth, almost polished, explaining the perfect acoustics.",
"nextTurn": 6
}
}
},
{
"turnNumber": 7,
"location": "Ancient Library",
"description": "Impossibly, you've discovered a vast chamber filled with stone shelves carved directly into the rock. Dusty scrolls and tablets line the walls. A stone desk sits in the center.",
"availableCommands": ["examine scrolls", "sit at desk", "search shelves", "read tablet"],
"items": ["ancient scrolls", "stone desk", "carved tablets"],
"validResponses": {
"examine scrolls": {
"text": "Most scrolls have crumbled to dust, but you find one that reveals the path forward.",
"nextTurn": 8
},
"sit at desk": {
"text": "As you sit, hidden compartments in the desk spring open, but contain only dust.",
"nextTurn": 7
},
"search shelves": {
"text": "Among the debris, you find a metallic bookmark with strange inscriptions.",
"nextTurn": 7
},
"read tablet": {
"text": "The tablet contains a map of the cave system, but it's too worn to be useful.",
"nextTurn": 7
}
}
},
{
"turnNumber": 8,
"location": "Crystal Pool",
"description": "A still pool of water reflects the crystalline ceiling like a mirror. The water glows with an inner light, and strange shapes move in its depths.",
"availableCommands": ["drink water", "throw coin", "examine depths", "wade in"],
"items": ["glowing pool", "mysterious shapes"],
"validResponses": {
"drink water": {
"text": "The water grants you the clarity to see the true path forward.",
"nextTurn": 9
},
"throw coin": {
"text": "The coin sinks into the depths, creating beautiful but meaningless ripples.",
"nextTurn": 8
},
"examine depths": {
"text": "You see what appears to be an underwater passage, but it's too deep to reach.",
"nextTurn": 8
},
"wade in": {
"text": "The water is surprisingly warm, but too deep to proceed safely.",
"nextTurn": 8
}
}
},
{
"turnNumber": 9,
"location": "Guardian's Chamber",
"description": "A massive stone golem sits on a throne, seemingly dormant. Precious gems adorn the walls, and ancient weapons lie scattered about.",
"availableCommands": ["approach golem", "take gem", "examine throne", "grab weapon"],
"items": ["stone golem", "precious gems", "ancient weapons", "stone throne"],
"validResponses": {
"approach golem": {
"text": "The golem recognizes your crystalline blessing and grants you passage.",
"nextTurn": 10
},
"take gem": {
"text": "As you reach for a gem, the golem's eyes flash warningly.",
"nextTurn": 9
},
"examine throne": {
"text": "The throne is covered in complex mechanisms and magical runes, but seems purely decorative.",
"nextTurn": 9
},
"grab weapon": {
"text": "The weapons are too rusted to be of any use.",
"nextTurn": 9
}
}
},
{
"turnNumber": 10,
"location": "Heart of the Mountain",
"description": "The final chamber is a vast cathedral-like space centered around a floating crystal heart pulsing with energy. Ancient machinery surrounds it, still humming with power.",
"availableCommands": ["touch crystal", "examine machinery", "use sword", "read runes"],
"items": ["crystal heart", "ancient machinery", "glowing runes"],
"validResponses": {
"touch crystal": {
"text": "As you touch the crystal heart, its energy flows through you. You have completed your journey!",
"nextTurn": -1
},
"examine machinery": {
"text": "The machines appear to be drawing power from the crystal heart.",
"nextTurn": 10
},
"use sword": {
"text": "You have no sword to use here.",
"nextTurn": 10
},
"read runes": {
"text": "The runes tell of an ancient civilization that powered their cities with crystal energy.",
"nextTurn": 10
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment