Skip to content

Instantly share code, notes, and snippets.

@trunghq3101
Last active March 4, 2025 09:09
Show Gist options
  • Select an option

  • Save trunghq3101/2774812755050f37ea62d6bf34440bfd to your computer and use it in GitHub Desktop.

Select an option

Save trunghq3101/2774812755050f37ea62d6bf34440bfd to your computer and use it in GitHub Desktop.
meta:
title: The Lost Adventure
description: A magical bedtime story about a curious boy who learns the value of courage and wisdom.
author: Lily
version: 1.1.0
items:
- id: flashlight
name: Shimmering Lantern
description: A tiny lantern that glows with a soft golden light. Helpful in the dark.
- id: berries
name: Star Berries
description: Magical berries that restore energy and calm the mind.
- id: stick
name: Ancient Branch
description: A sturdy branch with carvings on it, as if it holds a secret power.
locations:
- id: home
name: Cozy Cottage
description:
- text: You are in your warm and cozy cottage. The scent of fresh bread fills the air. Your mother gently warns you not to go too deep into the enchanted forest.
actions:
- type: navigate
label: Step into the enchanted forest
effect: location = forest
- id: forest
name: Whispering Woods
description:
- text: The trees whisper secrets as a soft wind rustles through the leaves. Fireflies dance around, and you feel a sense of wonder.
- text: As twilight falls, the once-friendly woods seem deeper, darker, and unfamiliar. You suddenly realize... you're lost.
condition: vars.lost == true
actions:
- type: use
label: Pick up the Ancient Branch
effect: inventory.stick + 1
condition: inventory.stick == 0
message: The branch feels warm in your hands, as if guiding you.
- type: use
label: Gather Star Berries
effect: inventory.berries + 1
condition: inventory.berries == 0
message: The berries twinkle under the moonlight. They smell sweet and comforting.
- type: navigate
label: Follow the glowing path
effect: location = cave
message: You walk deeper into the forest, following a trail of glowing mushrooms.
- id: cave
name: The Moonlit Cave
description:
- text: A hidden cave appears before you, its entrance covered in silver vines. Strange echoes fill the air.
- text: With your shimmering lantern, you see a secret passage leading out.
condition: vars.path_visible == true
actions:
- type: use
label: Light up the Shimmering Lantern
effect: vars.path_visible = true
condition: inventory.flashlight > 0 && vars.path_visible == false
message: The lantern’s glow reveals hidden symbols on the cave walls. A secret passage appears!
- type: navigate
label: Enter the glowing passage
effect: location = home_end
condition: vars.path_visible == true
message: You step into the light and find yourself back home, safe and sound.
- type: navigate
label: Explore deeper into the cave
effect: location = deeper_cave
condition: vars.path_visible == false
message: You venture deeper, hoping to find another way out.
- id: deeper_cave
name: The Echoing Depths
description:
- text: The cave grows colder as you move forward. Shadows flicker against the walls, and you hear whispers carried by the wind.
actions:
- type: navigate
label: Follow the whispers
effect: location = lost
message: You follow the whispers, but they lead you deeper into darkness...
- type: navigate
label: Retrace your steps
effect: location = cave
message: You decide to go back to where you started.
- id: lost
name: The Endless Forest
description:
- text: You find yourself deeper in the forest, where the trees stretch endlessly into the sky. It feels like a dream, yet you are truly lost.
actions:
- type: navigate
label: Close your eyes and wish for home
effect: location = home_end
message: As you close your eyes, a warm light surrounds you. When you open them, you’re home.
- id: home_end
name: Safe and Sound
description:
- text: You wake up in your cozy bed, the scent of warm bread filling the air. Was it all a dream? Or did the forest truly whisper its secrets to you?
- text: You smile, knowing that adventures are best enjoyed with a bit of courage and a heart full of wisdom.
actions:
- type: navigate
label: Drift into another dream
effect: location = home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment