(set: $plant to (dm:
"name", "an artificial bonzai plant",
"weight", 0.2,
"sentiment", 0.2
))
(set: $totalInv to $totalInv + (a: $plant))
(set: $flute to (dm:
"name", "a tin-silver concert flute",
"weight", 0.3,
"sentiment", 0.7
))
(set: $totalInv to $totalInv + (a: $flute))
(set: $binders to (dm:
"name", "old music binders",
"weight", 0.3,
"sentiment", 0.2
))
(set: $totalInv to $totalInv + (a: $binders))
(set: $origami to (dm:
"name", "an origami crane",
"weight", 0.1,
"sentiment", 0.2
))
(set: $totalInv to $totalInv + (a: $origami))
(set: $dogPhoto to (dm:
"name", "a photo of a dog",
"weight", 0.1,
"sentiment", 0.3
))
(set: $totalInv to $totalInv + (a: $dogPhoto))
(set: $hairclips to (dm:
"name", "some old hair clips",
"weight", 0.1,
"sentiment", 0.1
))
(set: $totalInv to $totalInv + (a: $hairclips))
(set: $lamp to (dm:
"name", "a Japanese paper lamp",
"weight", 0.2,
"sentiment", 0.4
))
(set: $totalInv to $totalInv + (a: $lamp))
(set: $wires to (dm:
"name", "a bundle of wires",
"weight", 0.5,
"sentiment", 0.2
))
(set: $totalInv to $totalInv + (a: $wires))
(set: $cat to (dm:
"name", "a cat",
"weight", 0.1,
"sentiment", 0.8
))
(set: $totalInv to $totalInv + (a: $cat))
(set: $clothes to (dm:
"name", "most of your clothes",
"weight", 1.6,
"sentiment", 0.3
))
(set: $totalInv to $totalInv + (a: $clothes))
(set: $watch to (dm:
"name", "a pocket watch",
"weight", 0.2,
"sentiment", 0.1
))
(set: $totalInv to $totalInv + (a: $watch))
(set: $beads to (dm:
"name", "hundreds of beads",
"weight", 0.4,
"sentiment", 0.2
))
(set: $totalInv to $totalInv + (a: $beads))
(set: $flowers to (dm:
"name", "fake flowers",
"weight", 0.1,
"sentiment", 0.5
))
(set: $totalInv to $totalInv + (a: $flowers))
(set: $blankets to (dm:
"name", "fuzzy blankets",
"weight", 0.7,
"sentiment", 0.3
))
(set: $totalInv to $totalInv + (a: $blankets))
(set: $keys to (dm:
"name", "old keys",
"weight", 0.1,
"sentiment", 0.5
))
(set: $totalInv to $totalInv + (a: $plant))
(set: $litterBox to (dm:
"name", "a litter box for a cat",
"weight", 0.4,
"sentiment", 0.1
))
(set: $totalInv to $totalInv + (a: $litterBox))
(set: $food to (dm:
"name", "all of your food",
"weight", 0.5,
"sentiment", 0.8
))
(set: $totalInv to $totalInv + (a: $food)){
(set: $currentBox to 0)
(set: $currentTime to 5)
(set: $inv to (a:))
(set: $totalInv to (a:))
(set: $breaks to 0)
(set: $gameOverFromTime to false)
(set: $gameOverFromStress to false)
(set: $stressIndex to (dm:
0, "free of all emotion",
1, "a little tired",
2, "fatigued by the whole experience",
3, "super-stressed out",
4, "ruined. Absolutely ruined",
5, "like a hot mess",
6, "as if death has nearly taken you",
7, "dead. You have died"
))
(set: $relaxingActivities to (a:
"drink some tea",
"read a book",
"stare at the ceiling",
"call a friend. They cheer you up"
))
(set: $emptyBox to (dm:
"name", "",
"weight", 0.0,
"sentiment", 0.0
))
(set: $inv to $inv + (a: $emptyBox))
(set: $plant to (dm:
"name", "an artificial bonzai plant",
"weight", 0.2,
"sentiment", 0.3
))
(set: $totalInv to $totalInv + (a: $plant))
(set: $flute to (dm:
"name", "a tin-silver concert flute",
"weight", 0.3,
"sentiment", 0.7
))
(set: $totalInv to $totalInv + (a: $flute))
(set: $binders to (dm:
"name", "old music binders",
"weight", 0.3,
"sentiment", 0.2
))
(set: $totalInv to $totalInv + (a: $binders))
(set: $origami to (dm:
"name", "an origami crane",
"weight", 0.1,
"sentiment", 0.2
))
(set: $totalInv to $totalInv + (a: $origami))
(set: $dogPhoto to (dm:
"name", "a photo of a dog",
"weight", 0.1,
"sentiment", 0.3
))
(set: $totalInv to $totalInv + (a: $dogPhoto))
(set: $hairclips to (dm:
"name", "some old hair clips",
"weight", 0.1,
"sentiment", 0.1
))
(set: $totalInv to $totalInv + (a: $hairclips))
(set: $lamp to (dm:
"name", "a Japanese paper lamp",
"weight", 0.2,
"sentiment", 0.4
))
(set: $totalInv to $totalInv + (a: $lamp))
(set: $china to (dm:
"name", "fine porcelain china",
"weight", 0.5,
"sentiment", 0.6
))
(set: $totalInv to $totalInv + (a: $china))
(set: $cat to (dm:
"name", "a cat",
"weight", 0.4,
"sentiment", 0.9
))
(set: $totalInv to $totalInv + (a: $cat))
(set: $clothes to (dm:
"name", "most of your clothes",
"weight", 1.6,
"sentiment", 0.3
))
(set: $totalInv to $totalInv + (a: $clothes))
(set: $watch to (dm:
"name", "a pocket watch",
"weight", 0.2,
"sentiment", 0.1
))
(set: $totalInv to $totalInv + (a: $watch))
(set: $box to (dm:
"name", "a jewelry box",
"weight", 0.4,
"sentiment", 0.6
))
(set: $totalInv to $totalInv + (a: $box))
(set: $flowers to (dm:
"name", "fake flowers",
"weight", 0.1,
"sentiment", 0.7
))
(set: $totalInv to $totalInv + (a: $flowers))
(set: $blankets to (dm:
"name", "fuzzy blankets",
"weight", 0.7,
"sentiment", 0.5
))
(set: $totalInv to $totalInv + (a: $blankets))
(set: $keys to (dm:
"name", "old keys",
"weight", 0.1,
"sentiment", 0.5
))
(set: $totalInv to $totalInv + (a: $plant))
(set: $litterBox to (dm:
"name", "a litter box for a cat",
"weight", 0.4,
"sentiment", 0.1
))
(set: $totalInv to $totalInv + (a: $litterBox))
(set: $food to (dm:
"name", "all of your food",
"weight", 0.8,
"sentiment", 0.3
))
(set: $totalInv to $totalInv + (a: $food))
(set: $dresser to (dm:
"name", "a childhood dresser",
"weight", 1.0,
"sentiment", 0.8
))
(set: $totalInv to $totalInv + (a: $dresser))
}
It's the big day. You need to finish packing by 11:00 PM.
It's $currentTime:00 PM.
What will you pack?
(link: "The plant.")[(set: $inv to $inv + (a: $plant))]
(link: "The flute.")[(set: $inv to $inv + (a: $flute))]
(link: "The binders.")[(set: $inv to $inv + (a: $binders))]
(link: "The origami crane.")[(set: $inv to $inv + (a: $origami))]
[[Check your progress.]]{
(set: $currentTime to $currentTime + 1)
(set: $stress to 0)
(set: $count to 0)
}
(if: $currentTime < 11)[You need to finish packing by 11:00 PM. It's $currentTime:00 PM.]
(else:)[It's $currentTime:00 PM. The truck is leaving.(set: $gameOverFromTime to true)]
You have packed:
{
(for: each _item, ...$inv)[(print: _item's name)
(set: $stress to $stress + _item's sentiment)
(set: $count to $count + 1)]
(set: $stress to (abs: $stress - $breaks) )
}
You are feeling (print: (ceil: $stress) of $stressIndex).
(if: (ceil: $stress) is 7)[
(set: $gameOverFromStress to true)(print: [[You have stressed yourself to death.]]) ]
(else-if: $gameOverFromTime is false)[
{
(if: $currentBox is 0)[ [[Start the next box?->Box 2]] ]
(if: $currentBox is 1)[ [[Start the next box?->Box 3]] ]
(if: $currentBox is 2)[ [[Start the next box?->Box 4]] ]
(if: $currentBox is 3)[ [[Start the next box?->Box 5]] ]
(if: $currentBox is 4)[ There is nothing left to pack. ]
}
[[Take a break.]]
]
(else-if: $gameOverFromTime is true)[
[[You're out of time.]]
]What will you pack?
{
(set: $currentBox to $currentBox + 1)
}
(link: "The photo of a dog.")[(set: $inv to $inv + (a: $dogPhoto))]
(link: "The hairclips.")[(set: $inv to $inv + (a: $hairclips))]
(link: "The lamp.")[(set: $inv to $inv + (a: $lamp))]
(link: "The porcelain dishes.")[(set: $inv to $inv + (a: $china))]
[[Check your progress.]]What will you pack?
{
(set: $currentBox to $currentBox + 1)
}
(link: "The cat.")[(set: $inv to $inv + (a: $cat))]
(link: "The clothes.")[(set: $inv to $inv + (a: $clothes))]
(link: "The watch.")[(set: $inv to $inv + (a: $watch))]
(link: "The jewelry box.")[(set: $inv to $inv + (a: $box))]
[[Check your progress.]]What will you pack?
{
(set: $currentBox to $currentBox + 1)
}
(link: "The flowers.")[(set: $inv to $inv + (a: $flowers))]
(link: "The blankets.")[(set: $inv to $inv + (a: $blankets))]
(link: "The old keys.")[(set: $inv to $inv + (a: $keys))]
(link: "The litter box.")[(set: $inv to $inv + (a: $litterBox))]
[[Check your progress.]]{
(set: $stress to $stress - 1)
(set: $breaks to $breaks + 1)
}
You stop to (print: (random: 1,4) of $relaxingActivities).
[[Check your progress.]] You decided to pack $count things.
You left behind (print: 18 - $count) things. (if: $cat is in $inv)[(print: "I hope the cat will be safe in the truck.")]
You are feeling (print: (ceil: $stress) of $stressIndex), but you survived.
<a href="../index.html"><img src="images/tomoText.png" /></a>What will you pack?
{
(set: $currentBox to $currentBox + 1)
}
(link: "The food.")[(set: $inv to $inv + (a: $food))]
(link: "The dresser.")[(set: $inv to $inv + (a: $dresser))]
[[Check your progress.]]You have died. You can't take your stuff with you where you're going.
Maybe relax more next time.
<a href="../index.html"><img src="images/tomoText.png" /></a>