,,,<<set $blueBookUnlocked to "false" >>
<<set $yellowBookUnlocked to "false" >>
<<set $keyHandleTaken to "false" >>
<<set $paperDropped to "false" >>
<<set $hasCode to "false" >>
<<set $safeOpened to "false" >>
<<set $keyBodyTaken to "false" >>
<<set $isHealed to "false" >>
<<set $potDug to "false" >>
<<set $keyHeadTaken to "false" >>
<<set $doorUnlocked to "false" >>
<<set $hasDoorKey to "false" >>
<<set $keyPiecesCollected to 0>>
<<set $dir to "north" >>
<<goto [[begin]]>><<set $dir to "north" >> <<include [[passageControl]]>>
You are facing north.
There is a door in front of you.
[[Check door|door]]
<<set $dir to "east" >> <<include [[passageControl]]>>
You are facing east.
There is a bookshelf in front of you.
[[Check bookshelf|bookshelf]]<<set $dir to "south" >> <<include [[passageControl]]>>
You are facing south.
There is a safe on a table in front of you.
A large potted plant sits to the right of the safe.
[[Check safe|safe]]
[[Check plant|plant]]<<set $dir to "west" >> <<include [[passageControl]]>>
You are facing west.
There is a tall cabinet in front of you.
To the left of the cabinet is a workbench.
[[Check workbench|workbench]]
[[Open cabinet|cabinet]][[Go back|lookBack]]
You are looking up.
Above you is a light hanging from the ceiling.
It shines brightly.
[[Take off lightbulb|lightbulb]][[Go back|lookBack]]
You are looking down.
It's just a plain hard-wood floor.
<<if $paperDropped is "true">><<if $hasCode is "false">>There is a small piece of paper on the floor.
[[Take paper|paperTake]]<<endif>><<endif>><<if $dir is "north">>
<<goto [[north]]>>
<<elseif $dir is "south">>
<<goto [[south]]>>
<<elseif $dir is "east">>
<<goto [[east]]>>
<<elseif $dir is "west">>
<<goto [[west]]>>
<<endif>>You wake up on the floor.
You don't remember what happened and it hurts everywhere.
[[Get up|beginUp]]<<if $dir is "north">> [[Turn Left|west]] | [[Turn Right|east]]
<<elseif $dir is "south">> [[Turn Left|east]] | [[Turn Right|west]]
<<elseif $dir is "east">> [[Turn Left|north]] | [[Turn Right|south]]
<<elseif $dir is "west">> [[Turn Left|south]] | [[Turn Right|north]]
<<endif>> [[Look Up|up]] | [[Look Down|down]][[Go back|north]]
You are at the door.
It's <<if $doorUnlocked is "false">>locked.
It requires a key.
<<if $hasDoorKey is "true">>[[Unlock door|unlock]]<<endif>><<else>>unlocked.
[[Exit room|exit]]
<<endif>>
Key body, handle, headYou are in a square room.
You must get out of here.
[[Begin|north]][[Go back|west]]
It's an industrial-grade workbench.
Provided is a wrench, a ruler, some papers, and superglue.
<<if $keyPiecesCollected is 3>><<if $hasDoorKey is "false">>You can put the key pieces together.
[[Combine key pieces|craftKey]]<<else>>You fixed the golden key on this table.<<endif>><<else>>Nothing is of use here at the moment.<<endif>>
[[Go back|west]]
You open the cabinet.
Inside is some tattered clothing<<if $isHealed is "true">> and newspapers.<<else>>, newspapers, and a first aid kit.
[[Use first aid kit|firstAidKit]] <<endif>>
[[Go back|east]]
You checked the bookshelf.
There are many different varieties of books.
[[Read red book|redBook]]
<<if $blueBookUnlocked is "true">> [[Read blue book|blueBook]] <<endif>>
<<if $yellowBookUnlocked is "true">> [[Read yellow book|yellowBook]] <<endif>>
[[Go back|bookshelf]]
You read the red book:
"A guide to amazing reads", by Redmond Ray
"Boy howdy, I love to read! but if you are looking for more, then my brother's books will astound you. His name is Billy Blu. Check 'em out!"
<<if $blueBookUnlocked is "false">> <<set $blueBookUnlocked to "true">>You searched the bookshelf, and found a new book to read. <<endif>>
[[Go back|bookshelf]]
You read the blue book:
"A public service announcement", by Billy Blu
"That infernal Redmond Ray doesn't even know what he is talking about, he doesn't even read real literature! If you want a real book, then check out "Gold is God", I'm sure you'll like it!"
<<if $yellowBookUnlocked is "false">> <<set $yellowBookUnlocked to "true">>You searched the bookshelf, and found a new book to read. <<endif>>
[[Go back|bookshelf]]
You read the yellow book:
"Gold is God", by an anonymous user of the gold tribe
"I love GOLD! The taste of it, the smell of it, the texture; It's shiny and the answer to all of our problems. Speaking of which, I have a gift for you on page two-twenty-three!"
[[Go to page 223|eastKey]]
[[Go back|yellowBook]]
You checked page 223.
Inside was a<<if $keyHandleTaken is "true">>n empty<<endif>> compartment<<if $keyHandleTaken is "false">> containing a key handle<<endif>>.
<<if $keyHandleTaken is "false">>[[Take key handle|keyHandle]]<<endif>>
<<set $keyPiecesCollected to $keyPiecesCollected + 1>><<if $keyPiecesCollected is 1>>It can't do anything by itself.
Maybe there are more. <<endif>><<if $keyPiecesCollected is 2>>You now have two key pieces.
It's still not complete though.<<endif>><<if $keyPiecesCollected is 3>>You found all of them.
It's still not a rebuilt key though.
Perhaps there is a way to mend them together.<<endif>>
You screwed off the lightbulb. <<if $paperDropped is "false">>
As you screwed it off, you heard something else fall out of the socket. <<set $paperDropped to "true">><<endif>>
You can't see.
You must put the lightbulb back in.
[[Put lightbulb back in|up]][[Go back|down]]
You took the slip of paper.
It has a four-digit code on it.
This could come in handy.
<<set $hasCode to "true">>[[Go back|south]]
You check the metal safe.
It's <<if $safeOpened is "false">>locked by a four-digit code.
<<else>>unlocked.<<endif>>
<<if $safeOpened is "false">><<if $hasCode is "true">>[[Unlock with code|safeUnlock]]<<endif>><<else>>
[[Open safe|safeOpen]]<<endif>>
[[Go back|south]]
You check the large potted plant.
It's a fir sapling.
<<if $potDug is "false">> You spot a subtle yellow gleam under the dirt.
[[Dig pot|potDig]]
<<else>> Some dirt was removed.
<<if $keyHeadTaken is "false">>There is a key head under the rubble.
[[Take key head|keyHead]]<<endif>><<endif>>[[Go back|safe]]
You open the safe.
<<if $keyBodyTaken is "false">>There is a key body inside.
[[Take key body|keyBody]] <<else>>It's empty.<<endif>>[[Go back|safe]]
You typed the code into the safe and pressed enter.
The safe make a clicking noise.
The safe is now unlocked.
<<set $safeOpened to "true">>
[[Open safe|safeOpen]][[Go back|eastKey]]
<<set $keyHandleTaken to "true">>
You took the key handle.
<<include [[keyCollecting]]>>[[Go back|safeOpen]]
<<set $keyBodyTaken to "true">>
You took the key body.
<<include [[keyCollecting]]>>[[Go back|plant]]
<<set $keyHeadTaken to "true">>
You took the key head.
<<include [[keyCollecting]]>>[[Go back|cabinet]]
You used the first aid kit.
You feel less weak now.
<<set $isHealed to "true">>
[[Go back|plant]]
You tried digging into the pot with your bare hands.
<<if $isHealed is "false">>It was too difficult.
You are too weak and injured.
<<else>>Despite the injuries healing, you were strong enough to dig into the sapling.
<<set $potDug to "true">>There is a key head under the rubble.
[[Take key head|keyHead]] <<endif>>[[Go back|workbench]]
You put the super glue onto the key pieces.
You also used the wrench to hit them in place.
The key is fixed.
<<set $hasDoorKey to "true">>
[[Go back|door]]
You put the key into the lock, and turn clock-wise.
The door is unlocked.<<set $doorUnlocked to "true">>
[[Exit room|exit]]
You exited the room.
Freedom and rejoice.
You wonder how you got here in the first place...
To be continued..?
Made by Cameron Krebbers