You wake up on a cold stone floor. There is a torch on the wall above you creating just enough light for you to see.
(link-reveal-goto: "Get up", "1")[(set: $showFooter to true)]
(unless: true)[[1]]Health: |myHealth>[(print: $myHealth)] /25
Equipped Weapon: |myWeapon>[(print: $myWeapon)], + |myWeaponAttack>[(print: $myWeaponAttack)] Atk
Equipped Shield: |myShield>[(print: $myShield)], + |myShieldDefense>[(print: $myShieldDefense)] Def
Inventory: |inventory>[(for: each _i, ...$inventory)[
(link: _i)[(display: _i)]]](set: _hist to (history: where its name is "Wake" or "2" or "5"))
{
(set: $lootNumber to 1)
(set: $lootReturn to "1")
(if: visits is 1)[You get up and look around. You are in the corner with two hallways stretching in front of you an to your right. It is too dark to see much down either hallway. At you feet is the dirty bedroll you were sleeping on and an (link-reveal-goto: "iron sword", "Loot")[(set: $lootedSword to true)].
](else-if: last of _hist is "2")[You are back at your beadroll. (if: $pickedUpSword is false)[There is a (link-reveal-goto: "small sword", "Loot")[(set: $pickedUpSword to true)] next to the bedroll.] Corridors stretch away to your right and behind you.
](else-if: last of _hist is "5")[You are back at your beadroll. (if: $pickedUpSword is false)[There is a (link-reveal-goto: "small sword", "Loot")[(set: $pickedUpSword to true)] next to the bedroll.] Corridors stretch away to your left and behind you.
](else-if: last of _hist is "Wake")[After picking up the sword you down down the dark corridors and try to decide which way to go.]
}
{
(if: visits is 1)[[[Walk forward->5]]
](else-if: last of _hist is "2")[[[Walk right->5]]
](else-if: last of _hist is "5")[[[Walk back->5]]
](else-if: last of _hist is "Wake")[[[Walk forward->5]]]
}
{
(if: visits is 1)[[[Walk right->2]]
](else-if: last of _hist is "2")[[[Walk back->2]]
](else-if: last of _hist is "5")[[[Walk left->2]]
](else-if: last of _hist is "Wake")[[[Walk right->2]]]
}
{(set: _hist to (history:))
(set: _left to "6")
(set: _right to "1")
(unless: true)[[6]]
(unless: true)[[1]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}(set: _hist to (history:))
(if: last of _hist is "1")[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is "8")[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is "3")[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is "1")[[[Keep going forward->8]]
](else-if: last of _hist is "8")[[[Keep going forward->1]]
](else-if: last of _hist is "3")[[[Walk Left->8]]]
}
{
(if: last of _hist is "1")[[[Walk left->3]]
](else-if: last of _hist is "8")[[[Walk right->3]]
](else-if: last of _hist is "3")[[[Walk right->1]]]
}
{
(if: last of _hist is "1")[[[Go back the way you came->1]]
](else-if: last of _hist is "8")[[[Go back the way you came->8]]
](else-if: last of _hist is "3")[[[Go back the way you came->3]]]
}{(set: _hist to (history:))
(set: _left to "2")
(set: _right to "9")
(unless: true)[[2]]
(unless: true)[[9]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "2")
(set: _right to "4")
(unless: true)[[2]]
(unless: true)[[4]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}
{(set: _hist to (history:))
(set: $lootReturn to "4")
(set: $chestNumber to 1)
(set: $lootNumber to 5)}
(if: last of _hist is "3")[You reach a dead end and on the ground is (link-goto: "large wooden chest", "Chest") in front of you.
](else:)[You stand at the end of the corridor with the (link-goto: "large wooden chest", "Chest") in front of you.]
[[Go back the way you came->3]]{(set: _hist to (history:))
(set: _left to "10")
(set: _right to "8")
(unless: true)[[10]]
(unless: true)[[8]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "11")
(set: _right to "7")
(set: _middle to "9")
(unless: true)[[11]]
(unless: true)[[7]]
(unless: true)[[9]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "6")
(set: _right to "13")
(set: _up to "24")
(set: _down to "10")
(unless: true)[[6]]
(unless: true)[[13]]
(unless: true)[[24]]
(unless: true)[[10]]}
(if: last of _hist is _left)[You reach a 4-way junction.
](else-if: last of _hist is _right)[You reach a 4-way junction.
](else-if: last of _hist is _up)[You reach a 4-way junction.
](else-if: last of _hist is _down)[You reach a 4-way junction.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _up)
](else-if: last of _hist is _right)[(link-goto: "Walk left", _down)
](else-if: last of _hist is _up)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _down)[(link-goto: "Walk left", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk right", _down)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _up)
](else-if: last of _hist is _up)[(link-goto: "Walk right", _left)
](else-if: last of _hist is _down)[(link-goto: "Walk right", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Continue forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Continue forward", _left)
](else-if: last of _hist is _up)[(link-goto: "Continue forward", _down)
](else-if: last of _hist is _down)[(link-goto: "Continue forward", _up)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _up)[(link-goto: "Go back the way you came", _up)
](else-if: last of _hist is _down)[(link-goto: "Go back the way you came", _down)]
}(set: _hist to (history:))
(if: last of _hist is "10")[You reach a left turn in the corridor.
](else-if: last of _hist is "12")[You reach a right turn in the corridor.
]
{
(if: last of _hist is "10")[[[Walk left->12]]
](else-if: last of _hist is "12")[[[Walk right->10]]]
}
{
(if: last of _hist is "10")[[[Go back the way you came->10]]
](else-if: last of _hist is "12")[[[Go back the way you came->12]]]
}You reach a dead end.
[[Go back->11]]{(set: _hist to (history:))
(set: _left to "5")
(set: _right to "7")
(set: _middle to "56")
(unless: true)[[5]]
(unless: true)[[7]]
(unless: true)[[56]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "6")
(set: _right to "57")
(unless: true)[[6]]
(unless: true)[[57]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "58")
(set: _right to "56")
(unless: true)[[58]]
(unless: true)[[56]]
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "59")
(set: _right to "57")
(set: _middle to "62")
(unless: true)[[59]]
(unless: true)[[57]]
(unless: true)[[62]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "61")
(set: _right to "59")
(unless: true)[[61]]
(unless: true)[[59]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "58")
(set: _right to "63")
(unless: true)[[58]]
(unless: true)[[63]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "62")
(set: _right to "69")
(set: _middle to "64")
(unless: true)[[62]]
(unless: true)[[69]]
(unless: true)[[64]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}(set: _hist to (history:))
(set: $lootReturn to "61")
(set: $chestNumber to 2)
(set: $lootNumber to 2)
(if: last of _hist is "60")[You reach a dead end and on the ground is (link-goto: "large wooden chest", "Chest") in front of you.
](else:)[You stand at the end of the corridor with the (link-goto: "large wooden chest", "Chest") in front of you.]
[[Go back->60]]{(set: _hist to (history:))
(set: _left to "70")
(set: _right to "63")
(unless: true)[[70]]
(unless: true)[[63]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "65")
(set: _right to "63")
(unless: true)[[65]]
(unless: true)[[63]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "68")
(set: _right to "64")
(set: _middle to "66")
(unless: true)[[68]]
(unless: true)[[64]]
(unless: true)[[66]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "67")
(set: _right to "65")
(unless: true)[[67]]
(unless: true)[[65]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "65")
(set: _right to "67")
(unless: true)[[65]]
(unless: true)[[67]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "66")
(set: _right to "68")
(unless: true)[[66]]
(unless: true)[[68]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "69")
(set: _right to "71")
(unless: true)[[69]]
(unless: true)[[71]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "70")
(set: _right to "72")
(unless: true)[[70]]
(unless: true)[[72]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "73")
(set: _right to "71")
(unless: true)[[73]]
(unless: true)[[71]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "72")
(set: _right to "74")
(set: _middle to "76")
(unless: true)[[72]]
(unless: true)[[74]]
(unless: true)[[76]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "73")
(set: _right to "75")
(unless: true)[[73]]
(unless: true)[[75]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "73")
(set: _right to "77")
(unless: true)[[73]]
(unless: true)[[77]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}You reach a dead end.
[[Go back->74]]{(set: _hist to (history:))
(set: _left to "78")
(set: _right to "76")
(unless: true)[[78]]
(unless: true)[[76]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "79")
(set: _right to "77")
(unless: true)[[79]]
(unless: true)[[77]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "78")
(set: _right to "80")
(unless: true)[[78]]
(unless: true)[[80]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "79")
(set: _right to "81")
(unless: true)[[79]]
(unless: true)[[81]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "55")
(set: _right to "80")
(unless: true)[[55]]
(unless: true)[[80]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "54")
(set: _right to "81")
(unless: true)[[54]]
(unless: true)[[81]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "53")
(set: _right to "55")
(unless: true)[[53]]
(unless: true)[[55]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "50")
(set: _right to "54")
(unless: true)[[50]]
(unless: true)[[54]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "53")
(set: _right to "51")
(set: _middle to "49")
(unless: true)[[53]]
(unless: true)[[51]]
(unless: true)[[49]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "52")
(set: _right to "50")
(unless: true)[[52]]
(unless: true)[[50]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "49")
(set: _right to "84")
(unless: true)[[49]]
(unless: true)[[84]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}You reach a dead end.
[[Go back->51]]{(set: _hist to (history:))
(set: _left to "25")
(set: _right to "27")
(set: _middle to "84")
(unless: true)[[25]]
(unless: true)[[27]]
(unless: true)[[84]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "28")
(set: _right to "32")
(set: _middle to "26")
(unless: true)[[28]]
(unless: true)[[32]]
(unless: true)[[26]]
(set: $enemyNumber to 3)
(set: $fightReturn to "27")
(set: $fightEscape to "26")
}
(if: $enemyAlive's ($enemyNumber) is true)[
You see a (print: $enemyName's ($enemyNumber)) blocking your path.
(link-goto: "Run away", $fightEscape)
(link-goto: "Attack it", "fight")
](else-if: last of _hist is "fight")[
You defeated the (print: $enemyName's ($enemyNumber)) and stand at a T in the path.
(link-goto: "Walk right", _right)
(link-goto: "Walk left", _left)
(link-goto: "Go back the way you came", _middle)
](else:)[
(if: last of _hist is _left)[You stand over the dead (print: $enemyName's ($enemyNumber)) at a fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You stand over the dead (print: $enemyName's ($enemyNumber)) at a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You stand over the dead (print: $enemyName's ($enemyNumber)) at a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}]
{(set: _hist to (history:))
(set: _left to "26")
(set: _right to "24")
(unless: true)[[26]]
(unless: true)[[24]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "7")
(set: _right to "25")
(set: _middle to "83")
(unless: true)[[7]]
(unless: true)[[25]]
(unless: true)[[83]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}You reach a dead end.
[[Go back->24]]{(set: _hist to (history:))
(set: _left to "34")
(set: _right to "27")
(unless: true)[[34]]
(unless: true)[[27]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "29")
(set: _right to "27")
(unless: true)[[29]]
(unless: true)[[27]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}(set: _hist to (history:))
(if: last of _hist is "35")[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is "86")[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is "32")[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is "35")[[[Keep going forward->86]]
](else-if: last of _hist is "86")[[[Keep going forward->35]]
](else-if: last of _hist is "32")[[[Walk Left->86]]]
}
{
(if: last of _hist is "35")[[[Walk left->32]]
](else-if: last of _hist is "86")[[[Walk right->32]]
](else-if: last of _hist is "32")[[[Walk right->35]]]
}
{
(if: last of _hist is "35")[[[Go back the way you came->35]]
](else-if: last of _hist is "86")[[[Go back the way you came->86]]
](else-if: last of _hist is "32")[[[Go back the way you came->32]]]
}(display:"random character")(display:"random character")(display:"random character")(display:"random character")(display:"random character")(font: "Courier")[(live: (random: 1, 5))[(either: "Q","W","E","R","T","Y","U","I","O","P","A","S","D","F","G","H","J","K","L","Z","X","C","V","B","N","M")]]You arrive at the door. You can taste the fresh air through the door.
[[Try the handle->try door]]
[[Go back->86]]{(set: _hist to (history:))
(set: _left to "36")
(set: _right to "34")
(unless: true)[[36]]
(unless: true)[[34]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "37")
(set: _right to "35")
(unless: true)[[37]]
(unless: true)[[35]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "36")
(set: _right to "38")
(set: _middle to "40")
(unless: true)[[36]]
(unless: true)[[38]]
(unless: true)[[40]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "37")
(set: _right to "39")
(unless: true)[[37]]
(unless: true)[[39]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "42")
(set: _right to "41")
(set: _middle to "37")
(unless: true)[[42]]
(unless: true)[[41]]
(unless: true)[[37]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}You reach a dead end.
[[Go back->40]]{(set: _hist to (history:))
(set: _left to "40")
(set: _right to "43")
(unless: true)[[40]]
(unless: true)[[43]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "42")
(set: _right to "44")
(unless: true)[[42]]
(unless: true)[[44]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "45")
(set: _right to "46")
(set: _middle to "43")
(unless: true)[[45]]
(unless: true)[[46]]
(unless: true)[[43]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "14")
(set: _right to "7")
(unless: true)[[14]]
(unless: true)[[7]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "13")
(set: _right to "15")
(unless: true)[[13]]
(unless: true)[[15]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "87")
(set: _right to "14")
(set: _middle to "16")
(unless: true)[[87]]
(unless: true)[[14]]
(unless: true)[[16]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "87")
(set: _right to "18")
(set: _middle to "21")
(unless: true)[[87]]
(unless: true)[[18]]
(unless: true)[[21]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}You reach a dead end.
[[Go back->15]]{(set: _hist to (history:))
(set: _left to "23")
(set: _right to "19")
(set: _middle to "17")
(unless: true)[[23]]
(unless: true)[[19]]
(unless: true)[[17]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}{(set: _hist to (history:))
(set: _left to "22")
(set: _right to "17")
(unless: true)[[22]]
(unless: true)[[17]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}You reach a dead end.
[[Go back->18]]{(set: _hist to (history:))
(set: _left to "18")
(set: _right to "20")
(unless: true)[[18]]
(unless: true)[[20]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: $lootReturn to "45")
(set: $chestNumber to 4)
(set: $lootNumber to 6)}
(if: last of _hist is "44")[You reach a dead end and on the ground is (link-goto: "large wooden chest", "Chest") in front of you.
](else:)[You stand at the end of the corridor with the (link-goto: "large wooden chest", "Chest") in front of you.]
[[Go back->44]]{(set: _hist to (history:))
(set: _left to "44")
(set: _right to "47")
(unless: true)[[44]]
(unless: true)[[47]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}You reach a dead end.
[[Go back->46]](set: _hist to (history:))
(set: $lootReturn to "20")
(set: $chestNumber to 3)
(set: $lootNumber to 3)
(if: last of _hist is "19")[You reach a dead end and on the ground is (link-goto: "large wooden chest", "Chest") in front of you.
](else:)[You stand at the end of the corridor with the (link-goto: "large wooden chest", "Chest") in front of you.]
[[Go back->19]]You reach a dead end.
[[Go back->21]]{(set: _hist to (history:))
(set: _left to "28")
(set: _right to "30")
(unless: true)[[28]]
(unless: true)[[30]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: _left to "29")
(set: _right to "31")
(unless: true)[[29]]
(unless: true)[[31]]}
(if: last of _hist is _left)[You reach a left turn in the corridor.
](else-if: last of _hist is _right)[You reach a right turn in the corridor.
]
{
(if: last of _hist is _left)[(link-goto: "Walk left", _right)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)]
}{(set: _hist to (history:))
(set: $lootReturn to "31")
(set: $chestNumber to 4)
(set: $lootNumber to 5)}
(if: last of _hist is "30")[You reach a dead end and on the ground is (link-goto: "large wooden chest", "Chest") in front of you.
](else:)[You stand at the end of the corridor with the (link-goto: "large wooden chest", "Chest") in front of you.]
[["Go back"->30]]You reach a dead end.
[[Go back->38]]{(set: _hist to (history:))
(set: _left to "48")
(set: _right to "26")
(set: _middle to "85")
(unless: true)[[48]]
(unless: true)[[26]]
(unless: true)[[85]]}
(if: last of _hist is _left)[You reach fork in the path. The corridor continues forward but there is a new corridor to you left.
](else-if: last of _hist is _right)[You reach a fork in the path. The corridor continues forward but there is a new corridor to your right.
](else-if: last of _hist is _middle)[You reach a T in the path. You can go right or left.]
{
(if: last of _hist is _left)[(link-goto: "Keep going forward", _right)
](else-if: last of _hist is _right)[(link-goto: "Keep going forward", _left)
](else-if: last of _hist is _middle)[(link-goto: "Walk left", _right)]
}
{
(if: last of _hist is _left)[(link-goto: "Walk left", _middle)
](else-if: last of _hist is _right)[(link-goto: "Walk right", _middle)
](else-if: last of _hist is _middle)[(link-goto: "Walk right", _left)]
}
{
(if: last of _hist is _left)[(link-goto: "Go back the way you came", _left)
](else-if: last of _hist is _right)[(link-goto: "Go back the way you came", _right)
](else-if: last of _hist is _middle)[(link-goto: "Go back the way you came", _middle)]
}You reach a dead end.
[[Go back->84]](font: "Courier")[
<p style="line-height: .7em">XXXXXXXXXXXXXXXXXXXX X
X X X X X X
X XXXXX X X XXXX X X
X X X XXXXX X X X
X X X X XX XX X X
X X X X XX XXXX XX X X
X X X X X X X X
X X X XX X XXXXXXXXX X
X X X X X X
X X XXX XX X XXXXXXX X
X X X X X X
X XXXXX X XX XXXXX X X
X X X X X X X
X XXXXXXX X XX X X X
X X X X X X X
XXXX XXXX XXXX XX XXXX
X X X X
X XXXXXXX X XXXXXXXX X
X X X X X
X XXX X X XXXX XXX X X
X X X X X X
XXXXXXXXXXXXXXXXXXXXXX
</p>]
(font: "Courier")[
<p style="line-height: .7em">
XXXX XXX XXXX
X X X
XXXXX X XXXXXXXX X
X X
X XXXX XXX X X
X X X X X
X XXXXXXXXX
</p>](font: "Courier")[
<p style="line-height: .7em">
(for: each _i, ...$mapRows)[(print: _i.join(""))
]</p>](set: _i to (a: " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "))
(set: $mapRows to (a: _i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i)){(set: _hpRestored to (min: 5, 10 - $myHealth))
(set: $myHealth to (min: 10, $myHealth + 5))
You restored (print: _hpRestored) hp!
(set: $inventory to it - (a: "small health potion"))
(replace: ?myHealth)[$myHealth]
}(print: $lootDescription's ($lootNumber))
{
(link-goto: "Cool", $lootReturn)
(if: $lootType's ($lootNumber) is "weapon")[
(if: $myWeapon is not "Fist")[(set: $inventory to it + (a: $myWeapon))]
(set: $myWeapon to $lootItem's ($lootNumber))
(set: $myWeaponAttack to $lootStat's ($lootNumber))
](else-if: $lootType's ($lootNumber) is "shield")[
(if: $myShield is not "None")[(set: $inventory to it + (a: $myShield))]
(set: $myShield to $lootItem's ($lootNumber))
(set: $myShieldDefense to $lootStat's ($lootNumber))
](else:)[
(set: $inventory to it + (a: $lootItem's ($lootNumber)))
]
}(if: $chestOpen's ($chestNumber) is false)[(print: $chestClosedDescription's ($chestNumber))
(link: "Open it")[(set: $chestOpen's ($chestNumber) to true)You open the chest and find it contains a (link-reveal-goto: $lootItem's ($chestLoot's ($chestNumber)), "Loot")[(set: $chestLooted's ($chestNumber) to true)].]
](else-if: $chestLooted's ($chestNumber) is false)[(print: $chestOpenDescription's ($chestNumber))(link-reveal-goto: $lootItem's ($chestLoot's ($chestNumber)), "Loot")[(set: $chestLooted's ($chestNumber) to true)] inside.
](else:)[(print: $chestLootedDescription's ($chestNumber))]
(link-goto: "Leave it", $lootReturn)(set: $lootDescription to (a: "A small iron sword. Crude but it will get the job done.",
"A very shiny steel sword. Strange for such a nice weapon to be in a chest in a damp dungeon like this.",
"A simple wooden shield. It doesn't seem very sturdy but you suppse it's better than nothing",
"A heavy bronze shield. It throws off your balance a bit when you pick it up but you know it's plenty sturdy enough to hold up in a fight.",
"A small vial with a label tha reads: hp+5",
"A large bottle with a label that reads: hp+10"))
(set: $lootType to (a: "weapon", "weapon", "shield", "shield", "item", "item"))
(set: $lootItem to (a: "iron sword", "steel sword", "wooden shield", "bronze shield", "small health potion", "large health potion"))
(set: $lootStat to (a: 5, 8, 4, 7, 0, 0))
(set: $chestClosedDescription to (a: "A wooden chest, closed but not locked.",
"A wooden chest, closed but not locked.",
"A wooden chest, closed but not locked.",
"A wooden chest, closed but not locked.",
"A wooden chest, closed but not locked."))
(set: $chestOpenDescription to (a: "An open wooden chest with a ",
"An open wooden chest with a ",
"An open wooden chest with a ",
"An open wooden chest with a ",
"An open wooden chest with a "))
(set: $chestLootedDescription to (a: "An empty wooden chest",
"An empty wooden chest",
"An empty wooden chest",
"An empty wooden chest",
"An empty wooden chest"))
(set: $chestOpen to (a: false, false, false, false, false))
(set: $chestLooted to (a: false, false, false, false, false))
(set: $chestLoot to (a: 5, 2, 3, 6, 4))
(set: $inventory to (a: ))
(set: $inventoryText to (a: )){(set: $lootNumber to 1)
(if: $myWeapon is not "Fist")[(set: $inventory to it + (a: $myWeapon))]
(set: $myWeapon to $lootItem's ($lootNumber))
(set: $myWeaponAttack to $lootStat's ($lootNumber))
(set: $inventory to it - (a: "iron sword"))
(replace: ?myWeapon)[$myWeapon]
(replace: ?myWeaponAttack)[$myWeaponAttack]
(replace: ?inventory)[(for: each _i, ...$inventory)[
(link: _i)[(display: _i)]]]
}{(set: $lootNumber to 2)
(if: $myWeapon is not "Fist")[(set: $inventory to it + (a: $myWeapon))]
(set: $myWeapon to $lootItem's ($lootNumber))
(set: $myWeaponAttack to $lootStat's ($lootNumber))
(set: $inventory to it - (a: "steel sword"))
(replace: ?myWeapon)[$myWeapon]
(replace: ?myWeaponAttack)[$myWeaponAttack]
(replace: ?inventory)[(for: each _i, ...$inventory)[
(link: _i)[(display: _i)]]]
}{(set: $lootNumber to 3)
(if: $myShield is not "None")[(set: $inventory to it + (a: $myShield))]
(set: $myShield to $lootItem's ($lootNumber))
(set: $myShieldDefense to $lootStat's ($lootNumber))
(set: $inventory to it - (a: "wooden shield"))
(replace: ?myShield)[$myShield]
(replace: ?myShieldDefense)[$myShieldDefense]
(replace: ?inventory)[(for: each _i, ...$inventory)[
(link: _i)[(display: _i)]]]
}{(set: $lootNumber to 4)
(if: $myShield is not "None")[(set: $inventory to it + (a: $myShield))]
(set: $myShield to $lootItem's ($lootNumber))
(set: $myShieldDefense to $lootStat's ($lootNumber))
(set: $inventory to it - (a: "bronze shield"))
(replace: ?myShield)[$myShield]
(replace: ?myShieldDefense)[$myShieldDefense]
(replace: ?inventory)[(for: each _i, ...$inventory)[
(link: _i)[(display: _i)]]]
}{(set: _hpRestored to (min: 10, 10 - $myHealth))
(set: $myHealth to (min: 10, $myHealth + 10))
You restored (print: _hpRestored) hp!
(set: $inventory to it - (a: "large health potion"))
(replace: ?myHealth)[$myHealth]
}(set: $enemyNumber to 0)
(set: $fightReturn to 0)
(if: $enemyAlive's ($enemyNumber) is true)[
You see a (print: $enemyName's ($enemyNumber)) blocking your path.
(link-goto: "Run away", last of (history:))
(link-goto: "Attack it", $fight)
](else:)[
its dead
](set: $enemy to (a: ))
(set: $enemyName to (a: "Giant Spider", "Goblin", "Cyclops", "Giant Snake", "Orc"))
(set: $enemyAlive to (a: true, true, true, true, true))
(set: $enemyMaxHealth to (a: 10, 15, 20, 15, 20))
(set: $enemyHealth to $enemyMaxHealth)
(set: $enemyAttack to (a: 3, 4, 3, 5, 2))
(set: $enemyDefense to (a: 2, 1, 2, 0, 3))(set: $showFooter to false)
==|
You:
(display: "Stats")
|options>[Options:
(link-repeat: "Attack")[{(replace: ?yourMove)[(display: "Attack Enemy")]
(if: $enemyHealth's ($enemyNumber) > 0)[
(replace: ?enemyMove)[(display: "Enemy Move")]
(if: $myHealth <= 0)[
(replace: ?options)[]
(replace: ?finish)[You have been defeated. [[Game Over]]]
]
](else:)[
(set: $enemyAlive's ($enemyNumber) to false)
(replace: ?finish)[You defeated the (print: $enemyName's ($enemyNumber)). (link-reveal-goto: "End fight", $fightReturn)[(set: $showFooter to true)]]
(replace: ?options)[]]}]
(link-reveal-goto: "Run away", $fightEscape)[(set: $showFooter to true)]]
|yourMove>[]
|finish>[]
|==
Monster:
(display: "Enemy Stats")
|enemyMove>[]
Health: |enemyHealth>[(print: $enemyHealth's ($enemyNumber))] / |enemyMaxHealth>[(print: $enemyMaxHealth's ($enemyNumber))]
Attack: |enemyAttack>[(print: $enemyAttack's ($enemyNumber))]
Defense: |enemyDefense>[(print: $enemyDefense's ($enemyNumber))]{(set: $damage to (random: 1, $myWeaponAttack))
(set: $damage to it - $enemyDefense's ($enemyNumber))
(set: $damage to (max: 0, $damage))
(set: $enemyHealth's ($enemyNumber) to (max: 0, $enemyHealth's ($enemyNumber) - $damage))
You did (print: $damage) damage!
(replace: ?enemyHealth)[(print: $enemyHealth's ($enemyNumber))]}{(set: $damage to (random: 1, $enemyAttack's ($enemyNumber)))
(set: $damage to it - $myShieldDefense)
(set: $damage to (max: 0, $damage))
(set: $myHealth to (max: 0, $myHealth - $damage))
The (print: $enemyName's ($enemyNumber)) hit you for (print: $damage) damage!
(replace: ?myHealth)[(print: $myHealth)]}(display: "Enemy Attack"){(set: $enemyNumber to 1)
(set: $fightReturn to "59")
(set: $fightEscape to "58")
(set: _up to "60")
(set: _down to "58")
(unless: true)[[58]]
(unless: true)[[60]]}
(if: $enemyAlive's ($enemyNumber) is true)[
You see a (print: $enemyName's ($enemyNumber)) blocking your path.
(link-goto: "Run away", _down)
(link-goto: "Attack it", "fight")
](else-if: last of (history:) is _down)[
You stand over the dead (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _up)
(link-goto: "Go back the way you came", _down)
](else-if: last of (history:) is _up)[
You stand over the dead (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _down)
(link-goto: "Go back the way you came", _up)
](else-if: last of (history:) is "fight")[
You defeated the (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _up)
(link-goto: "Go back the way you came", _down)
]{(set: $enemyNumber to 5)
(set: $fightReturn to "86")
(set: $fightEscape to "34")
(set: _up to "Exit")
(set: _down to "34")
(unless: true)[[Exit]]
(unless: true)[[34]]}
(if: $enemyAlive's ($enemyNumber) is true)[
You see a (print: $enemyName's ($enemyNumber)) blocking your path.
(link-goto: "Run away", _down)
(link-goto: "Attack it", "fight")
](else-if: last of (history:) is _down)[
You stand over the dead (print: $enemyName's ($enemyNumber)). And you look past it to see what looks like sunlight seeping in under an old wooden door.
(link-goto: "Continue on", _up)
(link-goto: "Go back the way you came", _down)
](else-if: last of (history:) is _up)[
You stand over the dead (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _down)
(link-goto: "Go back the way you came", _up)
](else-if: last of (history:) is "fight")[
You defeated the (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _up)
(link-goto: "Go back the way you came", _down)
]{(set: $enemyNumber to 4)
(set: $fightReturn to "87")
(set: $fightEscape to "15")
(set: _left to "15")
(set: _right to "17")
(unless: true)[[15]]
(unless: true)[[17]]}
(if: $enemyAlive's ($enemyNumber) is true)[
You see a (print: $enemyName's ($enemyNumber)) blocking your path.
(link-goto: "Run away", _left)
(link-goto: "Attack it", "fight")
](else-if: last of (history:) is _left)[
You stand over the dead (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _right)
(link-goto: "Go back the way you came", _left)
](else-if: last of (history:) is _right)[
You stand over the dead (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _left)
(link-goto: "Go back the way you came", _right)
](else-if: last of (history:) is "fight")[
You defeated the (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _right)
(link-goto: "Go back the way you came", _left)
]{(set: $enemyNumber to 2)
(set: $fightReturn to "49")
(set: $fightEscape to last of (history: where its name is "48" or "50"))
(set: _left to "48")
(set: _right to "50")
(unless: true)[[48]]
(unless: true)[[50]]}
(if: $enemyAlive's ($enemyNumber) is true)[
You see a (print: $enemyName's ($enemyNumber)) blocking your path.
(link-goto: "Run away", $fightEscape)
(link-goto: "Attack it", "fight")
](else-if: last of (history:) is _left)[
You stand over the dead (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _right)
(link-goto: "Go back the way you came", _left)
](else-if: last of (history:) is _right)[
You stand over the dead (print: $enemyName's ($enemyNumber)).
(link-goto: "Continue on", _left)
(link-goto: "Go back the way you came", _right)
](else-if: last of (history:) is "fight")[
You defeated the (print: $enemyName's ($enemyNumber)).
(if: $fightEscape is "48")[
(link-goto: "Continue on", _right)
(link-goto: "Go back the way you came", _left)
](else:)[
(link-goto: "Continue on", _left)
(link-goto: "Go back the way you came", _right)]
]You died. Game over.Would you like a map?: |map>[NO (link: "YES")[(replace: ?map)[(display: "yes map")]]]
(set: $showMap to false)
(set: $showFooter to false)
[[Start->Wake]]
(display: "Initialize Map")
(display: "Initialize Inventory")
(display: "Initialize Loot")
(display: "Initialize Enemies")
(set: $myHealth to 50)
(set: $myWeapon to "Fist")
(set: $myWeaponAttack to 1)
(set: $myShield to "None")
(set: $myShieldDefense to 0)
(set: $pickedUpSword to false){(link: "NO")[(replace: ?map)[(display: "no map")]] YES
(set: $showMap to true)}{NO (link: "YES")[(replace: ?map)[(display: "yes map")]]
(set: $showMap to false)}
(if: $showFooter)[
==|
(display:"Stats")
|==
(if: $showMap)[(display: "Map")]]It's locked...there must be a key somewhere back in the dungeon...
[[Go back->open door]]
(set: $showFooter to false)You kick the door in frustration and to your surprise the frame splinters and it swings open, the warm sunlight floods in and you're finally free.
[[Leave]]You leave the dungeon and how you'll never see this wretched place again.
The end.