{<!-- Hide code within curly brackets -->
(set: $health to 100)
(set: $time to 30)
(set: $room to "room")
(set: $key to false)
(set: $crowbar to false)
(set: $paperclip to false)
(set: $visitSewer to false)
(set: $visitUpper to false)
(set: $visitLower to false)
(set: $visitTunnel to false)
}
Welcome to a very basic dungeon crawler. Have fun escaping the prison.
[[Play->Cell 1]]<div class="hud">
<br>
(print: "Health $health")
(print: "Time $time")
(print: "Position $room")
Inventory:
{(if: $crowbar is true)[Crowbar]
(if: $key is true)[Key]
(if: $paperclip is true)[Paperclip]}
</div>{(set: $time to it - 1)
(set: $room to "Your cell")
(if: $time < 1)[(go-to: "Fail")]
(else:)
[You have only a few minutes to escape while all the guards are on a break. Get to it!
[[Open the Door->Cellblock]]
(display: "HUD")]}{(set: $time to it - 1)
(set: $room to "Cellblock")
(if: $time < 1)[(go-to: "Fail")]
(else:)
[You see two cell doors.[[Cell 1 Door->Cell 1]] which you were in, so
you try the [door to Cell 2]<second|(click: ?second)[(if: $key is false)[ It will not open](else:)[ You use the key and open door to [[Cell 2 Door->Cell 2]] ]]
You also see the [[Door to Security Room->Security Room]] and a [sewer grate]<grate|(click: ?grate)[(if: $crowbar is false)[ You try to force open the grate but it will not open](else:)[ You use the crowbar and pry open the [[sewer grate->Sewer Entrance]] ]]
(display: "HUD")]}{(set: $time to it - 1)
(set: $room to "Cell 2")
(if: $time < 1)[(go-to: "Fail")]
(else:)
[You see a lumpy [mattress]<bed|(click: ?bed)[(if: $crowbar is false)[You find a crowbar under the bed and add it to your inventory](set: $crowbar to true)
(else:)[You find nothing under the bed]]
[[Door to Cellblock->Cellblock]]
(display: "HUD")]}{(set: $time to it - 1)
(set: $room to "Security Room")
(if: $time < 1)[(go-to: "Fail")]
(else:)
[You enter the security office to find a desk with little more than papers and a picture of a guard's ugly wife and kids. The desk has one [drawer.]<drawer|(click: ?drawer)[(go-to: "Drawer")]]
<br>
[Door to Office]<door|(click: ?door)[(if: $paperclip is false)[ You try the door to the office but it will not open]
(else:)[ You twist the paperclip into a lockpick.[[Go into the office->Office]] ]]
<br>
[[Door to Cellblock->Cellblock]]
(display: "HUD")]}{(set: $time to it - 1)
(set: $room to "Office")
(if: $time < 1)[(go-to: "Fail")]
(else:)
[On a rack you see a set of [keys]<keyring|(click: ?keyring)[(if: $key is false)[ You add a key to your inventory](set: $key to true)
(else:)[ You already have a key]]
[[Door to Security Room->Security Room]]
(display: "HUD")]}{(set: $time to it - 1)
(set: $room to "Sewer Entrance")
(set: $enemies to (random: 0,3))
(if: $time < 1)[(go-to: "Fail")] <!-- Time check -->
(else:)[
(if: $visitSewer is false)[(go-to: "Enemy Check Sewer")] <!-- Combat check -->
(else:)[You enter an empty sewer. It doesn't smell nice. [[Cellblock]] [[Upper Cistern]]
(display: "HUD")]]}{(set: $time to it - 1)
(set: $room to "Upper Cistern")
(set: $enemies to (random: 0,3))
(if: $time < 1)[(go-to: "Fail")]
(else:)[
(if: $visitUpper is false)[(go-to: "Enemy Check Upper")]
(else:)[The roar of water fills your ears as you enter a large cistern with pipes leading in all directions and a ladder to another chamber.
[[Sewer Entrance]]
[[Ladder to Lower Cistern->Lower Cistern]]
(display: "HUD")]]}{(set: $time to it - 1)
(set: $room to "Lower Cistern")
(set: $enemies to (random: 0,3))
(if: $time < 1)[(go-to: "Fail")]
(else:)[
(if: $visitLower is false)[(goto: "Enemy Check Lower")]
(else:)[The waterfall from the upper cistern churns the water into a frothy algae riddled soup. It smells better than what you were served in the dungeon. Off to one side you find a small tunnel.
[[Ladder to Upper Cistern->Upper Cistern]]
[[Old Tunnel]]
(display: "HUD")]]}{(set: $time to it - 1)
(set: $room to "Old Tunnel")
(set: $enemies to (random: 0,3))
(if: $time < 1)[(go-to: "Fail")]
(else:)[
(if: $visitTunnel is false)[(goto: "Enemy Check Tunnel")]
(else:)[The tunnel is dusty and full of cobwebs. Clearly it has been forgotten, but for you it spells freedom.
[[Lower Cistern]]
[[Escape to Freedom->Free]]
(display: "HUD")]]}
Congratulations, you've escaped the dungeon!
Thanks for playing.
[[Return to Menu->Start]]You have been caught! Game over!
[[Return to Menu->Start]] In the drawer you find some:
[Pens]<pen|(click: ?pen)[ Most have been chewed on. Gross.]
[Paperclips]<clips|(click: ?clips)[ You pocket a paperclip.(set: $paperclip to true)]
[Tape]<tape|(click: ?tape)[ You don't need any now to hang posters since you're escaping.]
[Sudoku Books]<sudoku|(click: ?sudoku)[ Whoever owns these is not very good at them. Most games are incomplete.]
[[Close drawer->Security Room]] {(if: $enemies < 1)[(go-to: $room)]
(if: $health < 1)[(go-to: "Fail")]
You see (print: $enemies) people in your way. They don't look like nice guys. And you need to escape.
They prove themselves to be quite nasty as they a few punches at your head.(set: $health to it - (random: 0,17)) You take some damage.
[Punch someone.]<punch|(click: ?punch)[(set: $enemies to it - 1)(go-to: "Combat 2")]
[Headbutt the guy in front.]<headbutt|(click: ?headbutt)[(set: $enemies to it - 1)(go-to: "Combat 2")]
[Kick em where it hurts]<kick|(click: ?kick)[(set: $enemies to it - 1)(go-to: "Combat 2")]
(display: "HUD")}{(if: $enemies < 1)[(go-to: $room)]
(if: $health < 1)[(go-to: "Fail")]
You see (print: $enemies) people in your way. They don't look like nice guys. And you need to escape.
They prove themselves to be quite nasty as they a few punches at your head.(set: $health to it - (random: 0,17)) You take some damage.
[Punch someone.]<punch|(click: ?punch)[(set: $enemies to it - 1)(go-to: "Combat 1")]
[Headbutt the guy in front.]<headbutt|(click: ?headbutt)[(set: $enemies to it - 1)(go-to: "Combat 1")]
[Kick em where it hurts]<kick|(click: ?kick)[(set: $enemies to it - 1)(go-to: "Combat 1")]
(display: "HUD")}(if: $enemies > 0)[(set: $visitSewer to true)(go-to: "Combat 1")]
(else:)[You enter an empty sewer. It doesn't smell nice. (set: $visitSewer to true)[[Cellblock]] [[Upper Cistern]]
(display: "HUD")](if: $enemies > 0)[(set: $visitUpper to true)(go-to: "Combat 1")]
(else:)[The roar of water fills your ears as you enter a large cistern with pipes leading in all directions and a ladder to another chamber. (set: $visitUpper to true)
[[Sewer Entrance]]
[[Ladder to Lower Cistern->Lower Cistern]]
(display: "HUD")](if: $enemies > 0)[(set: $visitLower to true)(go-to: "Combat 1")]
(else:)[The waterfall from the upper cistern churns the water into a frothy algae riddled soup. It smells better than what you were served in the dungeon. Off to one side you find a small tunnel. (set: $visitLower to true)
[[Ladder to Upper Cistern->Upper Cistern]]
[[Old Tunnel]]
(display: "HUD")](if: $enemies > 0)[(set: $visitTunnel to true)(go-to: "Combat 1")]
(else:)[The tunnel is dusty and full of cobwebs. Clearly it has been forgotten, but for you it spells freedom. (set: $visitTunnel to true)
[[Lower Cistern]]
[[Escape to Freedom->Free]]
(display: "HUD")]