:: StoryTitle
a sandbox

:: StoryAuthor
@modgethanc

:: StoryMenu

[[inventory|inv]]



:: inv [container]
you are carrying:
<<print $inv.join(", ")>>

<<back>>

:: Start
<<set $inv = []>>
hey, you.

let's [[try something|1]]

:: 1 [place]
under the fruit tree, there is a [[pile of objects]].

if you want you can [[pick some fruit|passage()][$inv.push("a piece of fruit")]].

:: pile of objects [container]
a pile of objects:
<<set $item= "[[deck of cards]]">><<if $inv.indexOf($item) == -1>>* <<print $item>><<endif>>\
<<set $item= "[[lost keys]]">><<if $inv.indexOf($item) == -1>>* <<print $item>><<endif>>\
<<set $item= "[[crumpled bill]]">><<if $inv.indexOf($item) == -1>>* <<print $item>><<endif>>\
<<set $item= "[[broken watch]]">><<if $inv.indexOf($item) == -1>>* <<print $item>><<endif>>\

<<back>>

:: deck of cards [thing]
<<set $link = "[["+passage()+"]]">>
''a deck of cards'', dog-eared and held together with a rubber band that's about to snap

<<if previous() is "inv">><<back>><<else>> [[take it|previous()][$inv.push($link)]] or [[leave it|previous()]] <<endif>>

:: lost keys [thing]
<<set $link = "[["+passage()+"]]">>
''a set of lost keys'', worn and shiny

<<if previous() is "inv">><<back>><<else>> [[take it|previous()][$inv.push($link)]] or [[leave it|previous()]] <<endif>>

:: crumpled bill [thing]
<<set $link = "[["+passage()+"]]">>
''some crumpled bills'', that might be enough to get you a cup of coffee

<<if previous() is "inv">><<back>><<else>> [[take it|previous()][$inv.push($link)]] or [[leave it|previous()]] <<endif>>

:: broken watch [thing]
<<set $link = "[["+passage()+"]]">>
''a broken watch'', that doesn't really tell you anything

<<if previous() is "inv">><<back>><<else>> [[take it|previous()][$inv.push($link)]] or [[leave it|previous()]] <<endif>>
