Health: (str:...$hearta)(set: $status to "Frail")
-----
You awake in pool of something thick, and something dark, with no memory of the life you once lived. You are cold, and you are naked. You emerge from the liquid, like a fetus leaving from its mother's womb, and entering the unknown world ahead of you.
You rise, your bare feet scraping against rough and granular stone. You wobble a bit, your balance unsteady, but the pool keeps you from falling to much. You strain your eyes, but the shadows swallow everything you see. Shivering in your feeble position, you grope the air for something to reach and feel a protruding shape that's hard as stone. You lean against the wall for support.
You wade through the pool, guiding yourself with the wall, for it is all you can touch beside your own flesh and the pool in which you tread. But as you move your hand down the wall, you realize that the stones are each of similar dimension, with two holes sullen holes, and a set of pointed tips at the bottom.
The stones are not stones, but (text-colour:red)[skulls].
And the iron-raw stench that hits the top of your mouth is not from water, but from (text-colour:red)[blood]
-----
[[Where am I?]]Health: (str:...$hearta)
-----
(if:$Switch is false){(set:$Narrowly_Escaped to false)}{(set:$Switch to false)}At first you wonder, did you say those words out loud, or were they thoughts in your head? But then your throat scratches when you swallow, and you can only think of how thirsty you are. You called to the darkness, but the only response you received was the echo of your own voice, bouncing off the walls of what may very well be hundreds of tightly packed skulls.
The pool extends into a river of blood. The walls are just thick enough to allow for both of arms to reach out to both sides. Running your fingers along the bumps, you notice that the walls aren't solely made of skulls; there are other bones as well. Long ones and short ones, inserted into gaps between skulls like glue. There is one bone that sticks out from all the rest, is looser than the others, and seems to fit perfectly in your grasp.
-----
[[Pull out the bone.|A switch?]]
(link-reveal:"''Study the bone.''",(t8n:"dissolve"))[
You notice that the bone is a switch. (set:$Switch to true)]
[[Leave the bone alone.|Push forward]]Health: (str:...$hearta)
-----
(if:$Switch is false)[At first you try to pull the bone out of its pocket, but the bone won't budge. You place your other hand on the bone, and continue tugging, yet no use...
...Until you push the bone down, perhaps to slide it out at a different angle, but then something clicks, and so does your mind. The bone was a switch. Your assessment was confirmed from the aching of old hinges. A trapdoor, somewhere in the gaping darkness, swings open.
Bones fall out, spilling into the river like pelting rain, and they keep falling. An endless supply of skulls and more skulls. In your fleeting moments, you wonder who designed the contraption, but your andrenaline propels you through the river. You plunge your face in (text-colour:red)[blood], tasting the rancid and metallic liquid, and you kick your feet to push forward.
-----
[[Swim]]
]
(if:$Switch is true)[Studying the switch, you trace your hand over the skulls, trying to find what pulling the bone would do. Where is it connected to? It's hars to tell with so little light.
There is only one way to find out.
-----
[[Pull the switch.]]]
[[Leave it alone.|Push forward]](if:$Narrowly_Escaped is true)[(set:$health to 1)]Health: (str:...$hearta)
-----
(if:$Narrowly_Escaped is false)[On second thought, you decide not to risk danger, not if a tunnel collapse was a possibility. You imagine the skulls crashing down, clanking bone against bone, rumbling with the might of a stampede. You would drown, perhaps, or you would be crushed by bones. Neither alternative seems ideal.
You trudge onward, the blood lapping against your naval. You wonder what drinking the blood would taste like, though the smell has a familiar tang, and you wonder whether it would quench your thirst. You scoop up a handful of blood, but the liquid tears from your fingers, dripping back to its abode in the river.](if:$Narrowly_Escaped is true)[When you've safely swam out of the range of the falling skulls, you breath a sigh of relief, sputtering out blood from your nose and mouth. It streams down your face, sticky and thick. For a moment, your mind tricks you into thinking that the blood is yours, and not from... wherever the blood came from. But you are safe. That is all that matters.
The river becomes more shallow as you continue, leveling around to your knees. Your movement is still sluggish, but you can make bigger strides than you did before.]
In time, you come across a crossroads of sorts, being able to make out the rough silhouettes of the walls ahead of you because of a flickering, hanging lamp from above. In front, you find three distinct pathways.
The tunnel to the left is devoid of an outline when you look deeper, its features shrouded in the harrowing darkness you just escaped from, save for the slant of a surface that you know to be (text-colour:blue)[''land''].
The tunnel ahead is dark, but under the dim glow of the hanging lamp, you catch the glint of light dancing over red liquid; the (text-colour:blue)[''river''] stretches onward. The wall of skull and bones continues, despite the gap for the other tunnels.
Finally, to the right is a more well-lit tunnel, illuminated lamps of a similar size and color to the one above your head, in the distance. The tunnel is held up by a repetitive sequence of wooden frame structures echoing down into the depths of darkness, like the ribcage of a great beast. Most peculiar is the seeming lack of bones in the walls. There is only carved rock, drilled out to make room for the wide structures. Somewhere in your head, a ghastly whisper of a memory, you know this tunnel to be a (text-colour:blue)[''mine shaft''].
<hr>
[[Go to the left, to a tunnel of shrouding shadows.|Shadow Tunnel]]
[[Continue down the river ahead.|Reflection]]
[[Go to the right, to a dimly-lit mineshaft.|Mineshaft]](go-to: (either: "Narrow Escape", "Crushed"))<hr>
[[Narrow Escape]]
[[Crushed]]#(align:"=><=")[The Catacombs]
(align:"=><=")[<img alt="Pixelated image of a wall of skulls and bones, with a hole leading to another passageway" src="the_catacombs.png" width="100%" height="100%"/>]
You wake up in a strange place--dark, damp, and freezing cold--with no memory of who you were. Where are you? Who are you? How do you escape? But the only path ahead of you is the path forward, and as you pass the walls of millions of skeletal remains, you have the sneaking suspicion that you aren't alone...
//''Trigger Warning:'' Descriptions of skulls, blood, and minimal fetal imagery.
//
(button:)[[Enter|Rebirth]]{(set: int-type $maxHearts to 3)
(set: int-type $health to 2)
(set: int-type $maxHealth to $maxHearts*2)
}{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]]]
}(set:$Narrowly_Escaped to true)(if:$Narrowly_Escaped is true)[(set:$health to 1)]Health: (str:...$hearta)
-----
One arm flies up into the air and claws across the surface of the blood river, and then the other arm comes up in a rapid motion. Your arms are weak from disuse, but you just scrape past the thunder of skulls, as the bulk of them hit the river with a splash so great it causes a wave. You ride the wave to your advantage, using it to swim faster.
-----
[[Push forward.|Push forward]](set:$health to 0)Health: (str:...$hearta)
-----(if:$Switch is false)[You kick your feet back, but you struggle to swim. You flail your arms uselessly around, splashing on the walls instead of advancing any farther. And you are too late. The bones fall upon you with the force of an avalanche, crushing your small, pathetic frame, shoving you into the depths of the river.
If a taste of blood on your lips was not enough, then surely you will enjoy drinking its toxic fumes as you drown, deeper and deeper until (text-colour:red)[red] is all you'll ever see, until it's all you can (text-colour:red)[//breathe//].](if:$Switch is true)[You grasp at the darkness, hoping to catch the object from the waves of falling skulls. But you are too slow, and your vision impaired. Everything splashes into the river, blood splattering everywhere. You can take the hit of one, maybe two skulls. But hundreds of skull-sized hailstones?
Your body is pummeled and bruised. You cry out for help, but no one answers.](set:$colour to (text-colour:red))
<!-- Set Initial # of Health Points and Current Health -->
{(set: int-type $maxHearts to 3)
(set: int-type $health to 6)
(set: int-type $maxHealth to $maxHearts*2)
}|RenderHealth>[{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
<!-- If Current Health is odd, replace the first empty Health Point container with a Half=Health Point -->
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]
]
]
}
Current Total Health: $health
Maximum Hearts: $maxHearts
Maximum Potential Health: $maxHealth
<!-- Output modified array as a string -->
(str:...$hearta)
Add Hearts | Remove Hearts
Add Health | Remove Health
Full Health
{
(Click: "Add Hearts")[
(if: $maxHearts <8)[
(set: $maxHearts to it+1)(rerun:?RenderHealth)
]
]
(Click: "Remove Hearts")[
(if: $maxHearts >3)[
(set: $maxHearts to it-1)(rerun:?RenderHealth)
]
]
(Click: "Add Health")[
(if: $health < $maxHealth)[
(set: $health to it+1)
(rerun:?RenderHealth)
]
]
(Click: "Remove Health")[
(if: $health is not 0)[
(set: $health to it-1)(rerun:?RenderHealth)
]
]
(Click: "Full Health")[
(set: $health to $maxHealth)(rerun:?RenderHealth)
]
(if: $health is 0)[(show:?gameover)]}
]
|gameover)[$colour + (size:2) [DEATH]
(button:)[[Restart|Title]]]Health: (str:...$hearta)
-----
Pulling down the switch, your heart nearly stops. A trapdoor from somewhere high up opens with a low creak, like the sound of an awful creature. You look up, but of course, only darkness greets you.
Skulls begin to fall like rain. First a drizzle, and then a torrent of skulls crashing into the blood river. You lean against the wall, seeking protection from the falling skulls, but you are still vulnerable.
In the mess, you see the shine of something metallic.
----
[[Swim.|Narrow Escape]]
[[Reach.|Reach]](go-to: (either: "Key", "Crushed"))<hr>
[[Key]]
[[Crushed]](set:$Narrowly_Escaped to true)(replace:?heartbar)[{(set: int-type $maxHearts to 3)
(set: int-type $health to 1)
(set: int-type $maxHealth to $maxHearts*2)
}{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]]]
}Health: (str:...$hearta)]
Out of sheer luck, you catch the object in the midst of the storm of falling skulls. You spare once glance at it before diving headfirst into the blood river to make your escape. But you now know that, in your hands, is a dark gray (text-colour:red)[key]. (set: $inv to $inv + (a: "key"))
You do not escape unscathed, but you do make it out alive.
-----
[[Push forward]] Health: (str:...$hearta)
-----
At first you try to pull the bone out of its pocket, but the bone won't budge. You place your other hand on the bone, and continue tugging, yet no use...
...Until you push the bone down, perhaps to slide it out at a different angle, but then something clicks, and so does your mind. The bone was a switch. Your assessment was confirmed from the aching of old hinges. A trapdoor, somewhere in the gaping darkness, swings open.
Bones fall out, spilling into the river like pelting rain.
-----
[[Swim]](set:$colour to (text-colour:red))
{(set: int-type $maxHearts to 3)
(set: int-type $health to 0)
(set: int-type $maxHealth to $maxHearts*2)
}{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]]]}Health: (str:...$hearta)
-----
You kick your feet back, but you struggle to swim. You flail your arms uselessly around, splashing on the walls instead of advancing any farther. And you are too late. The bones fall upon you with the force of an avalanche, crushing your small, pathetic frame, shoving you into the depths of the river.
If a taste of blood on your lips was not enough, then surely you will enjoy drinking its toxic fumes as you drown, deeper and deeper until (text-colour:red)[red] is all you'll ever see, until it's all you can (text-colour:red)[//breathe//].
(if: $health is 0)[$colour + (size:2) + (align:"=><=")[DEATH.]<hr>(button:)[[Restart|Title]]](set:$colour to (text-colour:red))
<!-- Set Initial # of Health Points and Current Health -->
{(set: int-type $maxHearts to 3)
(set: int-type $health to 6)
(set: int-type $maxHealth to $maxHearts*2)
}|RenderHealth>[{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
<!-- If Current Health is odd, replace the first empty Health Point container with a Half=Health Point -->
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]
]
]
}
Current Total Health: $health
Maximum Hearts: $maxHearts
Maximum Potential Health: $maxHealth
<!-- Output modified array as a string -->
(str:...$hearta)
Add Hearts | Remove Hearts
Add Health | Remove Health
Full Health
{
(Click: "Add Hearts")[
(if: $maxHearts <8)[
(set: $maxHearts to it+1)(rerun:?RenderHealth)
]
]
(Click: "Remove Hearts")[
(if: $maxHearts >3)[
(set: $maxHearts to it-1)(rerun:?RenderHealth)
]
]
(Click: "Add Health")[
(if: $health < $maxHealth)[
(set: $health to it+1)
(rerun:?RenderHealth)
]
]
(Click: "Remove Health")[
(if: $health is not 0)[
(set: $health to it-1)(rerun:?RenderHealth)
]
]
(Click: "Full Health")[
(set: $health to $maxHealth)(rerun:?RenderHealth)
]
(if: $health is 0)[(show:?gameover)]}
]
|gameover)[$colour + (size:2) [DEATH]
(button:)[[Restart|Title]]]Health: (str:...$hearta)<hr>(set:$Narrowly_Escaped to true)
(set:$colour to (text-colour:red))
{(set: int-type $maxHearts to 3)
(set: int-type $health to 1)
(set: int-type $maxHealth to $maxHearts*2)
}{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]]]}Health: (str:...$hearta)
-----
One arm flies up into the air and claws across the surface of the blood river, and then the other arm comes up in a rapid motion. Your arms are weak from disuse, but you just scrape past the thunder of skulls, as the bulk of them hit the river with a splash so great it causes a wave. You ride the wave to your advantage, using it to swim faster.
-----
[[Push forward.|Push forward]](set:$colour to (text-colour:red))
{(set: int-type $maxHearts to 3)
(if:$Narrowly_Escaped is true)[
(set: int-type $health to 1)]
(else-if:$Narrow_Escape is false)[(set: int-type $health to 2)]
(set: int-type $maxHealth to $maxHearts*2)
}{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]]]}Health: (str:...$hearta)<hr>(if:$Narrowly_Escaped is false)[On second thought, you decide not to risk danger, especially not a tunnel collapse. You imagine the skulls crashing down, clanking bone against bone, rumbling with the might of a stampede. You would drown, perhaps, or you would be crushed by bones. Neither alternative seems ideal.
You trudge onward, the blood lapping against your naval. You wonder what drinking the blood would taste like, though the smell has a familiar tang, and you wonder whether it would quench your thirst. You scoop up a handful of blood, but the liquid tears from your fingers, dripping back to its abode in the river.](if:$Narrowly_Escaped is true)[When you've safely swam out of the range of the falling skulls, you breath a sigh of relief, sputtering out blood from your nose and mouth. It streams down your face, sticky and thick. For a moment, your mind tricks you into thinking that the blood is yours, and not from... wherever the blood came from. But you are safe. That is all that matters.
The river becomes more shallow as you continue, leveling around to your knees. Your movement is still sluggish, but you can make bigger strides than you did before.]
In time, you come across a crossroads of sorts, being able to make out the rough silhouettes of the walls ahead of you because of a flickering, hanging lamp from above. In front, you find three distinct pathways.
The tunnel to the left is devoid of an outline when you look deeper, its features shrouded in the harrowing darkness you just escaped from, save for the slant of a surface that you know to be (text-colour:blue)[''land''].
The tunnel ahead is dark, but under the dim glow of the hanging lamp, you catch the glint of light dancing over red liquid; the (text-colour:blue)[''river''] stretches onward. The wall of skull and bones continues, despite the gap for the other tunnels.
Finally, to the right is a more well-lit tunnel, illuminated lamps of a similar size and color to the one above your head, in the distance. The tunnel is held up by a repetitive sequence of wooden frame structures echoing down into the depths of darkness, like the ribcage of a great beast. Most peculiar is the seeming lack of bones in the walls. There is only carved rock, drilled out to make room for the wide structures. Somewhere in your head, a ghastly whisper of a memory, you know this tunnel to be a (text-colour:blue)[''mine shaft''].
<hr>
[[Go to the left, to a tunnel of shrouding shadows.|Shadow Tunnel]]
[[Continue down the river ahead.|Reflection]]
[[Go to the right, to a dimly-lit mineshaft.|Mineshaft]](set:$colour to (text-colour:red))
{(set: int-type $maxHearts to 3)
(set: int-type $health to 2)
(set: int-type $maxHealth to $maxHearts*2)
}{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]]]}Health: (str:...$hearta)
-----
(set: $status to "Frail")You awake in pool of something thick, and something dark, with no memory of the life you once lived. You are cold, and you are naked. You emerge from the liquid, like a fetus leaving from its mother's womb, and entering the unknown world ahead of you.
You rise, your bare feet scraping against rough and granular stone. You wobble a bit, your balance unsteady, but the pool keeps you from falling to much. You strain your eyes, but the shadows swallow everything you see. Shivering in your feeble position, you grope the air for something to reach and feel a protruding shape that's hard as stone. You lean against the wall for support.
You wade through the pool, guiding yourself with the wall, for it is all you can touch beside your own flesh and the pool in which you tread. But as you move your hand down the wall, you realize that the stones are each of similar dimension, with two holes sullen holes, and a set of pointed tips at the bottom.
The stones are not stones, but (text-colour:red)[skulls].
And the iron-raw stench that hits the top of your mouth is not from water, but from (text-colour:red)[blood]
-----
[[Where am I?]]Health: (str:...$hearta)<hr>Health: (str:...$hearta)<hr>Health: (str:...$hearta)
-----
The skulls keep falling. An endless supply of skulls and more skulls. In your fleeting moments, you wonder who designed the contraption, but your andrenaline propels you through the river. You plunge your face in (text-colour:red)[blood], tasting the rancid and metallic liquid, and you kick your feet to push forward.
(go-to: (either: "Narrow Escape", "Crushed"))<hr>
[[Narrow Escape]]
[[Crushed]]#(align:"=><=")[The Catacombs]
(align:"=><=")[<img alt="Pixelated image of a wall of skulls and bones, with a hole leading to another passageway" src="the_catacombs.png" width="100%" height="100%"/>]
You wake up in a strange place--dark, damp, and freezing cold--with no memory of who you were. Where are you? Who are you? How do you escape? But the only path ahead of you is the path forward, and as you pass the walls of millions of skeletal remains, you have the sneaking suspicion that you aren't alone...
//''Trigger Warning:'' Descriptions of skulls, blood, and minimal fetal imagery.
//
(button:)[[Enter|Rebirth]]{(set:$Narrowly_Escaped to false)}
{(set: int-type $maxHearts to 3)
(set: int-type $health to 2)
(set: int-type $maxHealth to $maxHearts*2)
}{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]]]}Health: (str:...$hearta)
-----
At first you wonder, did you say those words out loud, or were they thoughts in your head? But then your throat scratches when you swallow, and you can only think of how thirsty you are. You called to the darkness, but the only response you received was the echo of your own voice, bouncing off the walls of what may very well be hundreds of tightly packed skulls.
The pool extends into a river of blood. The walls are just thick enough to allow for both of arms to reach out to both sides. Running your fingers along the bumps, you notice that the walls aren't solely made of skulls; there are other bones as well. Long ones and short ones, inserted into gaps between skulls like glue. There is one bone that sticks out from all the rest, is looser than the others, and seems to fit perfectly in your grasp.
You place your hand over the shaft, yet an uncerainty sits in your heart. What if something bad happens to you? And with a quick shake of the bone, you worry that taking the bone out might cause the whole wall to collapse.
-----
[[You pull out the bone.|A switch?]]
[[You leave the bone alone.|Push forward]]Health: (str:...$hearta)
-----
(if:$Switch is false)[At first you try to pull the bone out of its pocket, but the bone won't budge. You place your other hand on the bone, and continue tugging, yet no use...
...Until you push the bone down, perhaps to slide it out at a different angle, but then something clicks, and so does your mind. The bone was a switch. Your assessment was confirmed from the aching of old hinges. A trapdoor, somewhere in the gaping darkness, swings open.
Bones fall out, spilling into the river like pelting rain, and they keep falling. An endless supply of skulls and more skulls. In your fleeting moments, you wonder who designed the contraption, but your andrenaline propels you through the river. You plunge your face in (text-colour:red)[blood], tasting the rancid and metallic liquid, and you kick your feet to push forward.
-----
[[Swim]]
](if:$Switch is true)[Studying the switch, you trace your hand over the skulls, trying to find what pulling the bone would do. Where is it connected to? It's hard to tell with so little light.
There is only one way to find out.
-----
[[Pull the switch.]]
[[Leave it alone.|Push forward]]](set:$health to 0)(rerun:?RenderHealth)Health: (str:...$hearta)
-----
(if:$Switch is false)[You kick your feet back, but you struggle to swim. You flail your arms uselessly around, splashing on the walls instead of advancing any farther. And you are too late. The bones fall upon you with the force of an avalanche, crushing your small, pathetic frame, shoving you into the depths of the river.
If a taste of blood on your lips was not enough, then surely you will enjoy drinking its toxic fumes as you drown, deeper and deeper until (text-colour:red)[red] is all you'll ever see, until it's all you can (text-colour:red)[//breathe//].](if:$Switch is true)[You grasp at the darkness, hoping to catch the object from the waves of falling skulls. But you are too slow, and your vision impaired. Everything splashes into the river, blood splattering everywhere. You can take the hit of one, maybe two skulls. But hundreds of skull-sized hailstones?
Your body is pummeled and bruised. You cry out for help, but no one answers.]
(set:$colour to (text-colour:red))
(if: $health is 0)[$colour + (size:2) + (align:"=><=")[DEATH.]<hr>(button:)[[Restart|Title]]](set:$colour to (text-colour:red))
<!-- Set Initial # of Health Points and Current Health -->
{(set: int-type $maxHearts to 3)
(set: int-type $health to 6)
(set: int-type $maxHealth to $maxHearts*2)
}|RenderHealth>[{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
<!-- If Current Health is odd, replace the first empty Health Point container with a Half=Health Point -->
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]
]
]
}]
Current Total Health: $health
Maximum Hearts: $maxHearts
Maximum Potential Health: $maxHealth
<!-- Output modified array as a string -->
(str:...$hearta)
Add Hearts | Remove Hearts
Add Health | Remove Health
Full Health
{
(Click: "Add Hearts")[
(if: $maxHearts <8)[
(set: $maxHearts to it+1)(rerun:?RenderHealth)
]
]
(Click: "Remove Hearts")[
(if: $maxHearts >3)[
(set: $maxHearts to it-1)(rerun:?RenderHealth)
]
]
(Click: "Add Health")[
(if: $health < $maxHealth)[
(set: $health to it+1)
(rerun:?RenderHealth)
]
]
(Click: "Remove Health")[
(if: $health is not 0)[
(set: $health to it-1)(rerun:?RenderHealth)
]
]
(Click: "Full Health")[
(set: $health to $maxHealth)(rerun:?RenderHealth)
]
(if: $health is 0)[(show:?gameover)]}
]
|gameover)[$colour + (size:2) [DEATH]
(button:)[[Restart|Title]]](set:$Narrowly_Escaped to true)(set:$health to 1)(rerun:?RenderHealth)Health: (str:...$hearta)
-----
Out of sheer luck, you catch the object in the midst of the storm of falling skulls. You spare once glance at it before diving headfirst into the blood river to make your escape. But you now know that, in your hands, is a black key(click:"key")[ (item added to inventory)]. (set: $keys to 1)
You do not escape unscathed, but you do make it out alive.
-----
[[Push forward]]Health: (str:...$hearta)(set:$Narrowly_Escaped to true)(if:$Narrowly_Escaped is true)[(set:$health to 1)(rerun:?RenderHealth)]Health: (str:...$hearta)
-----
One arm flies up into the air and claws across the surface of the blood river, and then the other arm comes up in a rapid motion. Your arms are weak from disuse, but you just scrape past the thunder of skulls, as the bulk of them hit the river with a splash so great it causes a wave. You ride the wave to your advantage, using it to swim faster.
-----
[[Push forward.|Push forward]]Health: (str:...$hearta)
-----
Pulling down the switch, your heart nearly stops. A trapdoor from somewhere high up opens with a low creak, like the sound of an awful creature. You look up, but of course, only darkness greets you.
Skulls begin to fall like rain. First a drizzle, and then a torrent of skulls crashing into the blood river. You lean against the wall, seeking protection from the falling skulls, but you are still vulnerable.
In the mess, you see the shine of something metallic.
----
[[Swim.|Narrow Escape]]
[[Reach.|Reach]]Health: (str:...$hearta)
-----
(if:$Narrowly_Escaped is false)[On second thought, you decide not to risk danger, not if a tunnel collapse was a possibility. You imagine the skulls crashing down, clanking bone against bone, rumbling with the might of a stampede. You would drown, perhaps, or you would be crushed by bones. Neither alternative seems ideal.
You trudge onward, the blood lapping against your naval. You wonder what drinking the blood would taste like, though the smell has a familiar tang, and you wonder whether it would quench your thirst. You scoop up a handful of blood, but the liquid tears from your fingers, dripping back to its abode in the river.](if:$Narrowly_Escaped is true)[When you've safely swam out of the range of the falling skulls, you breath a sigh of relief, sputtering out blood from your nose and mouth. It streams down your face, sticky and thick. For a moment, your mind tricks you into thinking that the blood is yours, and not from... wherever the blood came from. But you are safe. That is all that matters.
The river becomes more shallow as you continue, leveling around to your knees. Your movement is still sluggish, but you can make bigger strides than you did before.]
In time, you come across a crossroads of sorts, being able to make out the rough silhouettes of the walls ahead of you because of a flickering, hanging lamp from above. In front, you find three distinct pathways.
The tunnel to the left is devoid of an outline when you look deeper, its features shrouded in the harrowing darkness you just escaped from, save for the slant of a surface that you know to be (text-style:"underline")[''land''].
The tunnel ahead is dark, but under the dim glow of the hanging lamp, you catch the glint of light dancing over red liquid; the (text-style:"underline")[''river''] stretches onward. The wall of skull and bones continues, despite the gap for the other tunnels.
Finally, to the right is a more well-lit tunnel, illuminated lamps of a similar size and color to the one above your head, in the distance. The tunnel is held up by a repetitive sequence of wooden frame structures echoing down into the depths of darkness, like the ribcage of a great beast. Most peculiar is the seeming lack of bones in the walls. There is only carved rock, drilled out to make room for the wide structures. Somewhere in your head, a ghastly whisper of a memory, you know this tunnel to be a (text-style:"underline")[''mine shaft''].
-----
[[Go to the left, to a tunnel of shrouding shadows.|Door]]
[[Continue down the river ahead.|Reflection]]
[[Go to the right, to a dimly-lit mineshaft.|Mineshaft]](go-to: (either: "Key", "Crushed"))<hr>
[[Key]]
[[Crushed]]Health: (str:...$hearta)(set: $status to "Frail")
-----
You awake in pool of something thick, and something dark, with no memory of the life you once lived. You are cold, and you are naked. You emerge from the liquid, like a fetus leaving from its mother's womb, and entering the unknown world ahead of you.
You rise, your bare feet scraping against rough and granular stone. You wobble a bit, your balance unsteady, but the pool keeps you from falling to much. You strain your eyes, but the shadows swallow everything you see. Shivering in your feeble position, you grope the air for something to reach and feel a protruding shape that's hard as stone. You lean against the wall for support.
You wade through the pool, guiding yourself with the wall, for it is all you can touch beside your own flesh and the pool in which you tread. But as you move your hand down the wall, you realize that the stones are each of similar dimension, with two holes sullen holes, and a set of pointed tips at the bottom.
The stones are not stones, but (text-colour:red)[skulls].
And the iron-raw stench that hits the top of your mouth is not from water, but from (text-colour:red)[blood]
-----
[[Where am I?]]Health: (str:...$hearta)Health: (str:...$hearta)
-----
(if:visits is 1)[You stumble on to land for the first time. It feels so strangely solid, compared to moved through thick currents of blood. The stench of the blood is still there, and your hand brushes the hard edges of skulls and bones in the wall, but at least you can move more easily.
]The darkness envelopes you like a blanket, though it offers little warmth from the cold air. You shudder, goosebumps running all over your skin.
(if:visits is 1)[
You walk in the shadows for a while, stumbling your way until your fingers touch a bar of different material. It isn't bone, but rusted, uneven metal, chipped away by time. You reach another hand and find another bar as well. You find a protruding bar, a handle perhaps. You infer that this is a (text-colour:red)[door].]
(if:visits is >1)[You stumble your way in the shadows until you reach the barred door.]
-----
(if:$Unlocked is false)[(link-reveal:"''Open the door.''",(t8n:"dissolve"))[
You tug the handle, but the door won't open. Tracing your finger around the handle, you find a small hole.
[[Break open the door.|Door Broken]]
(if:$keys is >0)[[Unlock the door.|Barred Door]]]]
(else-if:$Unlocked is true)[[Enter.|Barred Door]](go-to: (either: "Narrow Escape", "Crushed"))<hr>
[[Narrow Escape]]
[[Crushed]]#(align:"=><=")[The Catacombs]
(align:"=><=")[<img alt="Pixelated image of a wall of skulls and bones, with a hole leading to another passageway" src="the_catacombs.png" width="100%" height="100%"/>]
You wake up in a strange place--dark, damp, and freezing cold--with no memory of who you were. Where are you? Who are you? How do you escape? But the only path ahead of you is the path forward, and as you pass the walls of millions of skeletal remains, you have the sneaking suspicion that you aren't alone...
//''Trigger Warning:'' Descriptions of skulls, blood, and minimal fetal imagery.
//
(button:)[[Enter|Rebirth]]
(set: $inv to (a:))(set: $keys to 0)(set: $coins to (a:))Health: (str:...$hearta)(set:$Switch to false)
-----
At first you wonder, did you say those words out loud, or were they thoughts in your head? But then your throat scratches when you swallow, and you can only think of how thirsty you are. You called to the darkness, but the only response you received was the echo of your own voice, bouncing off the walls of what may very well be hundreds of tightly packed skulls.
The pool extends into a river of blood. The walls are just thick enough to allow for both of arms to reach out to both sides. Running your fingers along the bumps, you notice that the walls aren't solely made of skulls; there are other bones as well. Long ones and short ones, inserted into gaps between skulls like glue. There is one bone that sticks out from all the rest, is looser than the others, and seems to fit perfectly in your grasp.
-----
[[Pull out the bone.|A switch?]]
(link-reveal:"''Study the bone.''",(t8n:"dissolve"))[
You notice that the bone is a switch. (set:$Switch to true)]
[[Leave the bone alone.|Push forward]]{(set: $tags to (passage:)'s tags)
(if: not ($tags contains "no-header"))[
(display: "yesheader")]
(else:)[(display: "noheader")]}[[Inventory]]
{(set: int-type $maxHearts to 3)
(set: int-type $health to 2)
(set: int-type $maxHealth to $maxHearts*2)
}|RenderHealth>[{
(set: int-type $nth to
(cond: $health % 2 is 0, $health/2, ($health-1)/2))
(set: $hearta to
(repeated: $maxHearts, "∙ "))
(if: $nth < $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 ") + (subarray: $hearta, $nth+1, $hearta's length))
]
(if: $nth is $hearta's length)[
(set: $hearta to (repeated: $nth, "🤍 "))
]
(if: $health % 2 is 1)[
(set: _find to '∙ ', _replace to '♡ ')
(set: $hindex to 0, $found to false)
(for: each _element, ...$hearta)[
(set: $hindex to it + 1)
(if: _element is _find and not $found)[
(set: $found to true)
(set: $hearta's ($hindex) to _replace)
]]]
}]#Inventory
(if: $inv's length > 0)[Your inventory contains a (print: $inv(", ")). .](else:)[You aren't carrying anything.]
(if:$keys is >1)[Keys: $keys<br>](else:)[](link-goto: "Exit.", (history:)'s last) Health: (str:...$hearta)
-----
(set:$Unlocked to true)(set:$keys to it -1)Inserting the (text-colour:blue)[key] into the hole, you hear a soft //click!// You open the barred door, its bottom scraping the stone as it moves. (if: $health is not 0)[(set: $health to it-1)(rerun:?RenderHealth)
Health: (str:...$hearta)
-----
You muster up as much strength as you can, giving yourself a running start, and then rushing into the barred door to ram it open.