(live: 1s)[(if: $logsparkle is true)[(stop:)|1>[You spot a messenger bag on the ground. Open it?](click: "Open it?")[(hide: ?1)(set: $log3 to $log2)(set: $log2 to $log1)(set: $log1 to "> The bag only contains a glass bottle.")(set: $bagopen1 to true)(go-to: "intro2")]]](append: ?SideBar)[(live: 1s)[(set: $time to $time+1)Timer: $time (set: $glimmers to $glimmers+1)$glimmers ∗ (1/s) (if: $sparkles >= 1)[(set: $firstsparkle to true)$sparkles ✴](else:)[(cond: $firstsparkle is true, "0 ✴", "")] (if: $orbs >= 1)[(set: $firstorb to true)$orbs ⊛](else:)[(cond: $firstorb is true, "0 ⊛", "")]{ (if: $firstsparkle is true and $logsparkle is false)[(set: $logsparkle to true)(set: $log3 to $log2)(set: $log2 to $log1)(set: $log1 to "> You gather a handful of glimmers and compress them into a sparkle. It floats up in front of you, chasing some of the darkness away.")] (if: $firstorb is true and $logorb is false)[(set: $logorb to true)(set: $log3 to $log2)(set: $log2 to $log1)(set: $log1 to "> You kneed some sparkles together until they form a smooth orb. As you move your hand, it follows, illuminating its path.")(set: $worldopen1 to true)] }]]{ (set: $log1 to "> You're in a dark cave. A small stream of glimmers falls from a crack in the rocks.") (set: $log2 to "") (set: $log3 to "") (set: $firstsparkle to false) (set: $firstorb to false) (set: $makesparkle to false) (set: $makeorb to false) (set: $logsparkle to false) (set: $logorb to false) (set: $bagopen1 to false) (set: $emptybottle to true) (set: $makebottleglimmer to false) (set: $makebottlesparkle to false) (set: $makebottleorb to false) (set: $worldopen1 to false) (set: $map to "map") } (live: 1s)[$log1 (text-colour:grey)[$log2] (text-colour:#212529)[$log3]](append: ?SideBar)[<mark><div class="actions">(live: 1s)[(if: $glimmers >= 10)[(link-rerun:"❯ combine 10 ∗ into 1 ✴")[(set: $makesparkle to true)(set: $glimmers to $glimmers-10)(set: $sparkles to $sparkles+1)]](else:)[(cond: $makesparkle is true, "❯ need 10 ∗", "")](if: $sparkles >= 10)[(link-rerun:" ❯ combine 10 ✴ into 1 ⊛")[(set: $makeorb to true)(set: $sparkles to $orbs-10)(set: $orbs to $orbs+1)]](else:)[(cond: $makeorb is true, " ❯ need 10 ✴", "")] (if: $bagopen1 is true and $emptybottle is true)[Fill the bottle with: (if: $glimmers >= 100 and $emptybottle is true)[(link-rerun:"❯ 100 ∗")[(set: $makebottleglimmer to true)(set: $emptybottle to false)(set: $glimmers to $glimmers-100) you filled the bottle with glimmers]](else:)[❯ need 100 ∗] (if: $sparkles >= 10 and $emptybottle is true)[(link-rerun:"❯ 10 ✴")[(set: $makebottlesparkles to true)(set: $emptybottle to false)(set: $sparkles to $sparkles-10) you filled the bottle with glimmers]](else:)[❯ need 10 ✴] (if: $makeorb is false)[](else-if: $orbs >= 1 and $emptybottle is true and $makeorb is true)[(link-rerun:"❯ 1 ⊛")[(set: $makebottleorb to true)(set: $emptybottle to false)(set: $orbs to $orbs-1) you filled the bottle with glimmers]](else:)[❯ need 1 ⊛]](else-if: $bagopen1 is true and $emptybottle is false and $makeorb is true)[Need an empty bottle.]]</div></mark>](live: 1s)[(if: $worldopen1 is true)[The orb shines with enough strength to reveal the entire cavity you're in. There is a single path to follow. Exit cave?(click-replace: "Exit cave?")[(set: $log3 to $log2)(set: $log2 to $log1)(set: $log1 to "> You leave the cave, following a narrow corridor into another rocky clearing.")(goto: "room1")]](else:)[]]you're in room 1 (set: $map to "N W --- E S") [[S->room1]] --- [[E->room1]] [[N->room3]] [[W->room1]] --- [[S->room4]] [[N->room1]] [[N->exit]] --- [[E->artefact]] [[S->room2]] [[N->room2]] --- [[E->ladder]] [[W->room4]] --- yay this is the exit! [[S->room3]] [[W->room3]] --- (append: ?SideBar)[(if: (passage:)'s tags contains "map")[(live: 1s)[<mark><div class="map">$map</div></mark> ]](else:)[ ]]∗ glimmer ✴ sparkle ⊛ orb ⦿ portal □ ⧮ ▣ ⧉