<input type="text" id="playerNameInput" placeholder="Enter your name">
<input type="text" id="playerLastNameInput" placeholder="Enter your last name">
<<button "Continue">>
<<set $PlayerName to $("#playerNameInput").val()>>
<<set $PlayerLastName to $("#playerLastNameInput").val()>>
<<if $PlayerName.trim() == "">>
<<replace "#nameError">>Please enter a valid name.<</replace>>
<<else>>
<<goto "Level0NoAction">>
<</if>>
<</button>>
<div id="nameError"></div>
<<newinv $playerInv>>
<<pickup $playerInv "Basic Flashlight" 1>>
You are not meant to get anywhere meaningful on your first game, nor your second, nor your third, not even your tenth. You will die in the most stupid or unfair ways verty frequently, as this game is DESIGNED to be unfair, to reflect the nature of the Backrooms.
This game is designed to be more difficult at the start, and rapidly become easier later on as you get stronger, and smarter. HOWEVER, the game still wont be fair later on, just a bit more fair with higher chances of not dying in the most frustrating ways.
All of this is intended, and will never change, if you think you cannot handle this, then please leave, you have been warned./* ----- Player Information ----- */
<<set $PlayerName to "">>
<<set $PlayerLastName to "">>
<<set $acclimatization to 40>>
<<set $TenacityPoints to 10>>
<<set $maxTenacityPoints to 10>>
<<set $sanity to 91>>
<<set $maxSanity to 100>>
<<set $fear to 0>>
<<set $maxFear to 100>>
<<set $baseSanityLoss = 3>>
<<set $baseFearIncrease = 2>>
<<set $intelligence to 5>>
<<set $authority to 5>>
<<set $talent to 5>>
<<set $reflexes to 5>>
<<set $agility to 5>>
<<set $strength to 5>>
<<set $hunger to 0>>
<<set $thirst to 0>>
<<set $maxThirst to 10>>
<<set $maxHunger to 10>>
<<set $intelligencePotential to 15>>
<<set $authorityPotential to 15>>
<<set $talentPotential to 15>>
<<set $reflexesPotential to 15>>
<<set $agilityPotential to 15>>
<<set $strengthPotential to 15>>
<<set $alignment to "Neutral">>
<<set $NameChosen to false>>
<<set $Location to "???">>
<<set $Level to "Reality">>
<<set $DaysInBackrooms to 0>>
<<set $HoursInBackrooms to 0>>
<<set $NavCapabilities to false>>
<<set $TimeTelling to false>>
/* ----- Characters ----- */
<<character 'You' 'Assets/Characters/HeadShot/16.jpg'>>
/* ----- Items ----- */
<<item "Basic Flashlight">>
<<description>>\
A basic flashlight that can light up dark spaces.\
<</item>>
<<consumable "Basic Almond Water">>
<<if $thirst is 1>>
<<set $thirst -= 1>>
<<elseif $thirst is 2>>
<<set $thirst -= 2>>
<<elseif $thirst is 3>>
<<set $thirst -= 3>>
<<elseif $thirst is 4>>
<<set $thirst -= 4>>
<<else>>
<<set $thirst -= 5>>
<<update>>
<</if>>
<<description>>\
A rare drink that decreases thirst. There might be special variants with even more special effects... Decreases thirst by 5.\
<</consumable>>
<<consumable "Blue Almond Water">>
<<if $thirst is 1>>
<<set $thirst -= 1>>
<<elseif $thirst is 2>>
<<set $thirst -= 2>>
<<elseif $thirst is 3>>
<<set $thirst -= 3>>
<<elseif $thirst is 4>>
<<set $thirst -= 4>>
<<else>>
<<set $sanity to $maxSanity>>
<<set $sanity -= 10>>
<<update>>
<</if>>
<<description>>\
A rare, seemingly supernatural drink that decreases thirst, and restores nearly all sanity. Decreases thirst by 5, and restores sanity to 90 regardless of the starting value.\
<</consumable>>
<<consumable "Red Almond Water">>
<<if $thirst is 1>>
<<set $thirst -= 1>>
<<elseif $thirst is 2>>
<<set $thirst -= 2>>
<<elseif $thirst is 3>>
<<set $thirst -= 3>>
<<elseif $thirst is 4>>
<<set $thirst -= 4>>
<<else>>
<<set $TenacityPoints += 5>>
<<update>>
<</if>>
<<description>>\
A rare, seemingly supernatural drink contained in a red bottle, that decreases thirst, and speeds up healing to an unnatural degree. Heals 5 hitpoints.\
<</consumable>>
/* ----- LevelChecks ----- */
<<set $firsttimeDeadBodyLevel0 to true>>
<<set $firsttimeIdenticalRoomLevel0 to true>>
<<set $firsttimeEmptyRoomLevel0 to true>>
/* ----- Monsters ----- */
Humanoid:
<<set $humanoidTenacity to 5>>
<<set $humanoidOnGround to false>>
<<set $humanoidGrabbed to false>>
<<set $humanoidAgility to 8>>
<<set $humanoidStrength to 8>>
/* ----- PlayerCombat ----- */
<<set $playerGrabbed to false>>
/* ----- CombatLog ----- */
<<set $firstmove to "">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
/* ----- CombatVariables ----- */
<<set $inCombat to false>>
<<set $PostText to "">>
<<set $playerDamage to 0>>
<<set $defenseBuff to 0>>
<<set $dodgeBuff to 0>>
<<set $enemy to "">>
<<set $playerTurn to false>>
<<set $playerAttack to false>>
<<set $playerDefend to false>>
<<set $playerItem to false>>
<<set $enemyDefend to false>>
<<set $enemyAttack to false>>
<div class="centered-image">
<img src="Assets/Backrooms/Levels/Level0/Level0.png" alt="Hell">
</div>
<<if $sanity gte 80>>
<<narrator>>
You find yourself in a seemingly endless maze of worn mono-yellow wallpaper and an old, moist carpet that squelches slightly underfoot. Scattered electrical outlets line the walls haphazardly, and the inconsistently-placed fluorescent lighting above buzzes incessantly, each flicker and hum grating on your nerves.
<</narrator>><<narrator>>
The fluorescent lights are louder and more obtrusive than any you’ve ever heard before, a constant reminder of the unnatural environment you're trapped in. The air is thick with the scent of mildew and something metallic, making it hard to breathe deeply without coughing.
<</narrator>>
<<narrator>>
The walls seem to close in on you as you wander through the rooms, each one appearing nearly identical to the last. The disorienting layout makes it feel as though you’re walking in circles, even when you try to keep track of your path. Your footsteps echo faintly, but any other sound is swallowed by the oppressive silence, amplifying the isolation you feel.
<</narrator>>
<<narrator>>
You try to shake off the growing sense of dread, but it clings to you like the dampness of the carpet. Every so often, you catch a glimpse of something moving in your peripheral vision, but when you turn to look, there’s nothing there. Just more yellow wallpaper and buzzing lights.
<</narrator>>
<<narrator>>
The lack of any other life or sound besides your own breathing and the incessant buzzing of the lights begins to take its toll on your sanity. You need to find a way out, and soon, before the isolation drives you mad.
<</narrator>>
<<elseif $sanity lte 50>>
<<narrator>>
You find yourself in a seemingly endless maze of worn mono-yellow wallpaper and an old, moist carpet that squelches slightly underfoot. The oppressive atmosphere makes it feel like the walls are closing in on you. Each step echoes faintly, accompanied by the incessant buzzing of the fluorescent lights overhead.
<</narrator>>
<<narrator>>
The air is thick with the scent of mildew and something metallic, making it hard to breathe deeply. Every flicker of the lights sends a jolt of unease through you, a constant reminder of the unnatural environment you're trapped in.
<</narrator>>
<<narrator>>
As you wander through the rooms, each one appearing nearly identical to the last, it becomes harder to shake the feeling of being watched. You catch glimpses of movement in your peripheral vision, but when you turn to look, there’s nothing there.
<</narrator>>
<<narrator>>
The isolation and monotony are wearing on your sanity. You must find a way out soon, before the oppressive silence and the eerie flickering lights drive you to madness.
<</narrator>>
<<elseif $sanity lte 20>>
<<narrator>>
You find yourself in an endless maze of yellowed wallpaper and damp carpet. Each room looks the same, but the oppressive atmosphere and the constant buzzing of the fluorescent lights make it feel like the walls are closing in on you.
<</narrator>>
<<narrator>>
The air is thick with mildew and something metallic, making it hard to breathe deeply. Your footsteps echo faintly, accompanied by the loud, intrusive buzzing of the lights, which seem to flicker more aggressively now.
<</narrator>>
<<say $You>>
I need to get the fuck out of here...
<</say>>
<<narrator>>
The feeling of being watched is growing stronger. You keep seeing things move just out of your sight, and shadows flicker at the edges of your vision. The isolation and eerie atmosphere are taking a serious toll on your sanity.
<</narrator>>
<<narrator>>
You need to escape soon. The longer you stay here, the more your mind feels like it's unraveling.
<</narrator>>
<<else>>
<<narrator>>
You find yourself in a nightmarish maze of yellowed wallpaper and damp carpet. The rooms all look the same, and the walls seem to close in on you with every step. The buzzing of the fluorescent lights is deafening, their flickering almost maddening.
<</narrator>>
<<narrator>>
The air is thick with mildew and something metallic, making it hard to breathe deeply without choking. Your footsteps echo faintly, accompanied by the loud, intrusive buzzing of the lights, which seem to flicker more aggressively now.
<</narrator>>
<<narrator>>
You can barely distinguish reality from hallucination anymore. Shadows move at the corners of your vision, and you hear whispers that stop as soon as you try to listen closely. The oppressive isolation is crushing your sanity, and you feel as though you are on the brink of losing your mind completely.
<</narrator>>
<<narrator>>
You must escape. The longer you stay here, the closer you come to complete madness.
<</narrator>>
<</if>>
<<replace "#action-bar">><<include "NavOptionsLevel0">><</replace>>
<<set $NameChosen to true>><<if $NameChosen is true>>
<<if $inCombat is false>>
<div class="custom-box">
<<button "Player Profile">>
<<script>>
Dialog.setup("Player Profile");
Dialog.wiki(Story.get("PlayerProfile").processText());
Dialog.open();
<</script>><</button>>
<<if $TimeTelling is true>>
Day: $DaysInBackrooms
Level: $Level
Location: $Location
<<else>>
Day: ???
Level: $Level
Location: $Location
<<checkvars>>
<</if>>
</div>
<<else>>
<div class="stat-menu">
<<include "PlayerProfile">>
</div>
<</if>>
<<else>>
<div class="custom-box">
Coding by SirRandom
<br>Art by The Internet
</div>
<</if>>
<<if $HoursInBackrooms > 24>>
<<set $DaysInBackrooms += 1>>
<<set $HoursInBackrooms to 0>>
<</if>>
<<if $thirst < 0>><<set $thirst = 0>><</if>>
<<if $thirst > $maxThirst>><<set $thirst = $maxThirst>><</if>>
<<if $hunger < 0>><<set $hunger = 0>><</if>>
<<if $hunger > $maxHunger>><<set $hunger = $maxHunger>><</if>>
<<if $sanity < 0>><<set $sanity = 0>><</if>>
<<if $sanity > $maxSanity>><<set $sanity = $maxSanity>><</if>>
<<if $fear < 0>><<set $fear = 0>><</if>>
<<if $fear > $maxFear>><<set $fear = $maxFear>><</if>>
<<button"Actions">>
<<script>>
Dialog.setup("Actions");
Dialog.wiki(Story.get("CombatActionsHumanoid").processText());
Dialog.open();
<</script>>
<</button>>
<<button"Inventory">>
<<script>>
Dialog.setup("Inventory");
Dialog.wiki(Story.get("InventoryGeneral").processText());
Dialog.open();
<</script>>
<</button>>
<<button"Companions">>
<<script>>
Dialog.setup("Companions");
Dialog.wiki(Story.get("CompanionsGeneral").processText());
Dialog.open();
<</script>>
<</button>>
<<button"Attack">>
<<script>>
Dialog.setup("Attack");
Dialog.wiki(Story.get("AttackOptionsHumanoid").processText());
Dialog.open();
<</script>>
<</button>>
<<button"Defend">>
<<script>>
Dialog.setup("Defend");
Dialog.wiki(Story.get("DefendOptionsHumanoid").processText());
Dialog.open();
<</script>>
<</button>>
<<button"Item">>
<<script>>
Dialog.setup("Use Item");
Dialog.wiki(Story.get("ItemOptionsHumanoid").processText());
Dialog.open();
<</script>>
<</button>>
<<button"Escape">><<goto "EscapeAttemptHumanoidLevel0">><</button>>
<<inv $playerInv use drop inspect all filter>><<if $NavCapabilities is false>>
<<narrator>>You do not have the means to tell North from South, and East from West.<</narrator>>
<<button "Wander Aimlessly">><<goto "WanderLevel0">><</button>>
<<else>>
<<button "North">><</button>>
<<button "South">><</button>>
<<button "West">><</button>>
<<button "East">><</button>>
<</if>><<narrator>>You - at the moment, cannot do anything of value. Nowhere to go, nothing to do.<</narrator>>
<<if random(1, 6) is 1>>
<<narrator>>You wander aimlessly for quite some time.<</narrator>>
<<button "You find...">><<goto "EmptyRoomLevel0">><</button>>
<<button "You find...">><<goto "IdenticalRoomLevel0">><</button>>
<<button "You find...">><<goto "DeadBodyLevel0">><</button>>
<<button "You find...">><<goto "AlmondWaterLevel0">><</button>>
<<button "You find...">><<goto "ShadowHallucinationLevel0">><</button>>
<<button "You find...">><<goto "HallucinationMonsterLevel0">><</button>><<narrator>>You do not have any companions... must be lonely.<</narrator>>You have been defeated!
<<link "Try Again">>
<<set $HitPoints = $MaxHitPoints>>
<<set $ArmourPoints = 0>>
<<goto "Start">>
<</link>><span style="color: red;">Name:</span> $PlayerName $PlayerLastName
<span style="color: purple;">Moral Alignment:</span> $alignment
<span style="color: gold;"> Acclimatization:</span> $acclimatization
<span style="color: red;">Tenacity:</span> $TenacityPoints/$maxTenacityPoints
<span style="color: green;">Sanity:</span> $sanity/$maxSanity
<span style="color: orange;">Fear:</span> $fear/$maxFear
<span style="color: darkred;">Strength:</span> $strength/$strengthPotential
<span style="color: darkblue;">Intelligence:</span> $intelligence/$intelligencePotential
<span style="color: darkgreen;">Authority:</span> $authority/$authorityPotential
<span style="color: darkgoldenrod;">Talent:</span> $talent/$talentPotential
<span style="color: darkviolet;">Reflexes:</span> $reflexes/$reflexesPotential
<span style="color: lightblue;">Agility:</span> $agility/$agilityPotential
<<if $inCombat is false>>
<<button "Help">>
<<script>>
Dialog.setup("Stat Help");
Dialog.wiki(Story.get("StatHelp").processText());
Dialog.open();
<</script>><</button>>
<</if>>
<span style="color: red;">Tenacity:</span> The amount of punishment you can take before you cannot fight any longer.
<span style="color: gold;"> Acclimatization:</span> For every 10 points of acclimatization, you gain 1 less fear every fear increasing event, and lose 1 less sanity every sanity decreasing event, its even possible to not gain fear or lose sanity once this stat is high enough.
<span style="color: purple;">Moral Alignment:</span> Determines how willing you are to commit morally questionable acts.
<span style="color: green;">Sanity:</span> A representation of your mental health. The lower this is, the more hallucinations occur. Tends to affect Moral Alignment.
<span style="color: orange;">Fear:</span> How much fear you are feeling. Affects actions.
<span style="color: darkred;">Strengh:</span> How hard you hit.
<span style="color: darkblue;">Intelligence:</span> Your ability to figure things out.
<span style="color: darkgreen;">Authority:</span> How likely others are to listen to you.
<span style="color: darkgoldenrod;">Talent:</span> How easily you pick up on new things.
<span style="color: darkviolet;">Reflexes:</span> How good you are at dodging.
<span style="color: lightblue;">Agility:</span> How fast and good at climbing you are.
<<liveblock>>
<<if $NameChosen is true>>
<div class="custom-box"><span style="color: brown;">Hunger:</span> <<if $hunger == 0>>You feel well-fed and energized.
<<elseif $hunger == 1>>You are slightly hungry, but it's not a big deal.
<<elseif $hunger == 2>>You feel a bit peckish. Maybe it's time for a snack.
<<elseif $hunger == 3>>Your stomach starts to growl. You should eat something soon.
<<elseif $hunger == 4>>You are getting quite hungry. It's getting harder to concentrate.
<<elseif $hunger == 5>>Hunger pangs hit you, making it difficult to ignore your empty stomach.
<<elseif $hunger == 6>>You feel weak from hunger. You need to find food soon.
<<elseif $hunger == 7>>Hunger overwhelms you, making every step feel heavy.
<<elseif $hunger == 8>>You are starving. Your vision starts to blur from the lack of nourishment.
<<elseif $hunger == 9>>You are on the brink of collapse. Without food, you won't last much longer.
<</if>></div><div class="custom-box"><span style="color: cyan;">Thirst:</span>
<<if $thirst == 0>>You are well-hydrated and feel refreshed.
<<elseif $thirst == 1>>You are slightly thirsty but otherwise fine.
<<elseif $thirst == 2>>You feel a bit parched. Maybe it's time for a drink.
<<elseif $thirst == 3>>Your mouth feels dry. You should drink something soon.
<<elseif $thirst == 4>> You are getting quite thirsty. It's getting harder to concentrate.
<<elseif $thirst == 5>>Thirst pangs hit you, making it difficult to ignore your dry throat.
<<elseif $thirst == 6>>You feel weak from thirst. You need to find water soon.
<<elseif $thirst == 7>>Thirst overwhelms you, making every step feel heavy.
<<elseif $thirst == 8>>You are dehydrated. Your vision starts to blur from the lack of hydration.
<<elseif $thirst == 9>>You are on the brink of collapse. Without water, you won't last much longer.
<</if>></div><div class="custom-box"><span style="color: orange;">Fear:</span> <<if $fear >= 0 and $fear <= 4>>You feel as if you can take on a god, with complete confidence and no fear.
<<elseif $fear >= 5 and $fear <= 9>>You are almost fearless, feeling capable of handling anything.
<<elseif $fear >= 10 and $fear <= 14>>You feel very little fear, with a clear and focused mind.
<<elseif $fear >= 15 and $fear <= 19>>You are barely afraid, feeling confident in your abilities.
<<elseif $fear >= 20 and $fear <= 24>>You feel only slight fear, with a strong sense of control.
<<elseif $fear >= 25 and $fear <= 29>>You are mildly fearful, but you can handle it.
<<elseif $fear >= 30 and $fear <= 34>>You feel a bit scared, but it does not affect you much.
<<elseif $fear >= 35 and $fear <= 39>>You are a little afraid, but you manage to keep your composure.
<<elseif $fear >= 40 and $fear <= 44>>You feel some fear, but you are able to focus.
<<elseif $fear >= 45 and $fear <= 49>>You are somewhat scared, but you manage to stay calm.
<<elseif $fear >= 50 and $fear <= 54>>You feel moderate fear, but you can still act.
<<elseif $fear >= 55 and $fear <= 59>>You are fairly afraid, with your mind racing with worry.
<<elseif $fear >= 60 and $fear <= 64>>You feel a lot of fear, but you can still function.
<<elseif $fear >= 65 and $fear <= 69>>You are quite scared, but you manage to keep it together.
<<elseif $fear >= 70 and $fear <= 74>>You are significantly afraid, with your heart racing.
<<elseif $fear >= 75 and $fear <= 79>>You are deeply fearful, and it takes all your effort to keep going.
<<elseif $fear >= 80 and $fear <= 84>>You feel very scared, with your mind clouded by terror.
<<elseif $fear >= 85 and $fear <= 89>>You are gripped by fear, finding it hard to move.
<<elseif $fear >= 90 and $fear <= 94>>You are extremely fearful, with your body shaking uncontrollably.
<<elseif $fear >= 95 and $fear <= 99>>You are overwhelmed with fear, struggling to make any decisions.
<<elseif $fear == 100>>You are paralyzed with fear, unable to move or think clearly.
<</if>></div><div class="custom-box"><span style="color: green;">Sanity:</span> <<if $sanity >= 0 and $sanity <= 4>>You are beyond recovering, and need to be put in the highest security mental asylum.
<<elseif $sanity >= 5 and $sanity <= 9>>You are on the brink of losing your mind, barely holding on to reality.
<<elseif $sanity >= 10 and $sanity <= 14>>You are deeply disturbed, with frequent hallucinations and irrational thoughts.
<<elseif $sanity >= 15 and $sanity <= 19>> You are extremely paranoid, seeing threats everywhere.
<<elseif $sanity >= 20 and $sanity <= 24>>You are very unstable, with difficulty distinguishing reality from imagination.
<<elseif $sanity >= 25 and $sanity <= 29>>You are highly agitated, with frequent outbursts and erratic behavior.
<<elseif $sanity >= 30 and $sanity <= 34>>You are struggling with paranoia and anxiety, finding it hard to trust anything or anyone.
<<elseif $sanity >= 35 and $sanity <= 39>>You are experiencing severe anxiety, with constant feelings of dread.
<<elseif $sanity >= 40 and $sanity <= 44>>You are very anxious, with a constant sense of unease and tension.
<<elseif $sanity >= 45 and $sanity <= 49>>You are noticeably disturbed, with frequent bouts of nervousness.
<<elseif $sanity >= 50 and $sanity <= 54>>You are moderately anxious, with occasional moments of panic.
<<elseif $sanity >= 55 and $sanity <= 59>>You are somewhat anxious, but managing to keep it under control.
<<elseif $sanity >= 60 and $sanity <= 64>>You are slightly uneasy, but generally able to function.
<<elseif $sanity >= 65 and $sanity <= 69>>You are a bit anxious, but still able to think clearly.
<<elseif $sanity >= 70 and $sanity <= 74>>You are mostly calm, with only occasional moments of anxiety.
<<elseif $sanity >= 75 and $sanity <= 79>>You are fairly stable, with minor feelings of unease.
<<elseif $sanity >= 80 and $sanity <= 84>> You are quite stable, with a clear mind and good judgment.
<<elseif $sanity >= 85 and $sanity <= 89>>You are very stable, with strong mental resilience.
<<elseif $sanity >= 90 and $sanity <= 94>>You are highly stable, with excellent mental health.
<<elseif $sanity >= 95 and $sanity <= 99>>You are extremely stable, with a strong sense of reality.
<<elseif $sanity == 100>> You are perfectly sane, with complete mental clarity and stability.
<</if>></div>
<</if>>
<</liveblock>><<if $firsttimeHumanEncounterLevel0 is true>>
<<set $acclimatization += 2>>
<<set $firsttimeHumanEncounterLevel0 to false>>
<</if>>
<<set _fearIncrease to Math.max($baseFearIncrease * 1.5 - Math.floor($acclimatization / 10), 0)>>
<<narrator>>As you wander through the dimly lit corridors, you suddenly catch sight of something moving in the distance. Your heart skips a beat as you realize it's a humanoid figure, standing eerily still in the flickering fluorescent light.<</narrator>>
<<narrator>>The figure seems to be watching you, but you can't make out any details. The oppressive silence of Level 0 makes the encounter all the more unsettling.<</narrator>>
<<narrator>>Your mind races, questioning whether it's a hallucination or something far more sinister.<</narrator>>
<<if _fearIncrease is 0>><<You>>I must be seeing things again...<</You>><<else>><<You>>Is that... a person? No, it can't be... what if it's not human?<</You>><</if>>
<<set $HoursInBackrooms += 1>>
<<replace "#action-bar">><<include "HallucinationHumanoidOptions">><</replace>>
<<set _randomChance to random(1, 100)>>
<<if $firsttimeAlmondWaterLevel0 is true>>
<<set $acclimatization += 1>>
<<set $firsttimeAlmondWaterLevel0 to false>>
<</if>>
<<narrator>>As you wander through the monotonous yellow halls, you suddenly spot a small bottle lying on the damp carpet. Your heart skips a beat as you approach it cautiously, recognizing the label – it's a bottle of Almond Water, something you can drink...<</narrator>>
<<narrator>>You pick up the bottle and examine it closely. The liquid inside looks clean and inviting, a stark contrast to the grim surroundings. You unscrew the cap and take a tentative sip. The sweet, nutty flavor fills your mouth, providing a moment of relief and clarity.<</narrator>>
<<You>>This... this is a lifesaver!<</You>>
<<if _randomChance <= 1>>
<<narrator>>You found Red Almond Water! This rare variant shimmers with a deep red hue, almost too beautiful to drink. Red Almond Water has been added to your inventory. Use it wisely.<</narrator>>
<<pickup $playerInv "Red Almond Water" 1>>
<<elseif _randomChance <= 11>>
<<narrator>>You found Blue Almond Water! The vibrant blue color is captivating and fills you with a sense of calm. Blue Almond Water has been added to your inventory. Use it wisely.<</narrator>>
<<pickup $playerInv "Blue Almond Water" 1>>
<<else>>
<<narrator>>You found Almond Water! The familiar liquid brings you a sense of relief. Almond Water has been added to your inventory. Use it wisely.<</narrator>>
<<pickup $playerInv "Basic Almond Water" 1>>
<</if>>
<<narrator>>The walking makes you <span style="color: brown;">hungrier</span> and <span style="color: cyan;">thirstier</span>.<</narrator>>
<<set $thirst += 1>>
<<set $hunger += 1>>
<<set $HoursInBackrooms += 1>>
<<replace "#action-bar">><<include "ContinueButtonLevel0">><</replace>><<if $firsttimeIdenticalRoomLevel0 is true>>
<<set $acclimatization += 1>>
<<set $firsttimeIdenticalRoomLevel0 to false>>
<</if>>
<<set _sanityLoss to Math.max($baseSanityLoss - Math.floor($acclimatization / 10), 0)>>
<<narrator>>You wander through the endless corridors and find yourself in yet another room. The worn mono-yellow wallpaper and old, moist carpet squelch softly under your feet, making it hard to distinguish one room from another. Scattered electrical outlets and inconsistently-placed fluorescent lighting create an unsettling atmosphere.<</narrator>>
<<narrator>>You take a moment to catch your breath, but the metallic scent of mildew and something unidentifiable lingers in the air, making it difficult to breathe deeply without coughing. The oppressive silence is only broken by the incessant buzzing of the lights and the faint echo of your footsteps.<</narrator>>
<<narrator>>Each room looks identical to the last, and the disorienting layout makes you feel like you're walking in circles.<</narrator>>
<<if _sanityLoss is 0>><<You>>I-...I'm starting to get used to this...<</You>><<else>><<You>>I need to get out of here... before I lose my mind completely.<</You>><</if>>
<<narrator>>The constant walking and the lack of any meaningful progress increases your <span style="color: brown;">hunger</span> and <span style="color: cyan;">thirst</span>.<</narrator>>
<<if _sanityLoss is 0>><<narrator>>Your high acclimatization prevents any further decrease in <span style="color: green;">sanity</span>.<</narrator>><<else>><<narrator>>You feel your mind starting to fray as the identical rooms blur together in a never-ending maze. Your <span style="color: green;">sanity</span> has decreased.<</narrator>><<set $sanity -= _sanityLoss>><</if>>
<<set $thirst += 1>>
<<set $hunger += 1>>
<<set $HoursInBackrooms += 1>>
<<replace "#action-bar">><<include "ContinueButtonLevel0">><</replace>>
<<if $firsttimeShadowHallucinationLevel0 is true>>
<<set $acclimatization += 1>>
<<set $firsttimeShadowHallucinationLevel0 to false>>
<</if>>
<<set _fearIncrease to Math.max($baseFearIncrease - Math.floor($acclimatization / 10), 0)>>
<<narrator>>As you wander through the seemingly endless yellow halls, your mind starts to play tricks on you. The buzzing of the fluorescent lights grows louder and more erratic, and the shadows cast by the flickering lights seem to dance on the walls. You feel a chill run down your spine as you catch a glimpse of something moving out of the corner of your eye.<</narrator>>
<<narrator>>You stop and strain your ears, trying to make out any sound beyond the incessant hum. Suddenly, you see it – a dark, shadowy figure darting just out of your line of sight. Your heart races, and a cold sweat breaks out on your forehead. You whip your head around, but there's nothing there.<</narrator>>
<<if _fearIncrease is 0>><<You>>These hallucinations are getting out of hand.<</You>><<else>><<You>>No... no, it's just my imagination... it has to be.<</You>><</if>>
<<narrator>>The constant walking and the lack of any meaningful progress increases your <span style="color: brown;">hunger</span> and <span style="color: cyan;">thirst</span>.<</narrator>>
<<if _fearIncrease is 0>><<narrator>>You know what you saw is just a result of your poor mental health, or you may just not be scared of what that may of been. Either way, you do not gain <span style="color: orange;">fear</span>.<</narrator>><<else>><<narrator>>Despite your attempts to rationalize what you saw, the fear grips you tightly. The shadows seem to grow longer and darker, closing in on you. Every flicker of the lights sends a jolt of terror through your body, making it hard to move, hard to breathe... your <span style="color: orange;">fear</span> has increased.<</narrator>><<set $fear += _fearIncrease>><</if>>
<<set $thirst += 1>>
<<set $hunger += 1>>
<<set $HoursInBackrooms += 1>>
<<replace "#action-bar">><<include "ContinueButtonLevel0">><</replace>>
<<if $firsttimeRedRoomsLevel0 is true>>
<<set $acclimatization += 2>>
<<set $firsttimeRedRoomsLevel0 to false>>
<</if>>
<<set _fearIncrease to Math.max($baseFearIncrease * 2 - Math.floor($acclimatization / 10), 0)>>
<<set _sanityDecrease to Math.max($baseSanityLoss * 2 - Math.floor($acclimatization / 10), 0)>>
<<narrator>>As you wander the seemingly endless yellow halls, you turn a corner and are met with a stark contrast to the familiar sight. The walls and floor ahead are drenched in a deep red hue, casting an ominous glow that immediately sets you on edge. The crimson wallpaper and darkroom-like lighting create an unsettling atmosphere, far more disturbing than anything you’ve encountered in Level 0.<<narrator>>
<<narrator>>The coarse and sticky carpet harbors colonies of mushrooms and black mold in the dark corners, and the smell of copper fills the air. The buzzing of the fluorescent lights overhead grows more erratic and louder, grating on your already frayed nerves.<<narrator>>
<<if _fearIncrease is 0>><<You>>Oh god...<<You>><<else>><<You>>What… what is this place? It feels wrong, I need to get away from here…<<You>><</if>>
<<replace "#action-bar">><<include "RedRoomsChoiceLevel0">><</replace>><<if $firsttimeDeadBodyLevel0 is true>>
<<set $acclimatization += 2>>
<<set $firsttimeDeadBodyLevel0 to false>>
<</if>>
<<set _fearIncrease to Math.max($baseFearIncrease - Math.floor($acclimatization / 10), 0)>>
<<set _sanityLoss to Math.max($baseSanityLoss - Math.floor($acclimatization / 10), 0)>>
<<narrator>>As you wander through the monotonous yellow halls, a foul stench fills the air. You cautiously move forward, your heart pounding, and come across a gruesome sight – a rotting corpse lying on the damp carpet. The body is severely decomposed, with its skin dried and cracked, a clear sign of death by dehydration. The sight is enough to churn your stomach and send shivers down your spine<</narrator>>
<<narrator>>You can't help but imagine the sheer terror and agony this person must have felt before succumbing to the harsh conditions of Level 0. The buzzing fluorescent lights above seem to hum louder, amplifying the eeriness of the scene.<</narrator>>
<<if _fearIncrease is 0>><<You>>Oh.. A dead body? How wonderful...<</You>><<else>><<You>>Oh... I'm fucked!<</You>><</if>>
<<narrator>>The constant walking and the lack of any meaningful progress increases your <span style="color: brown;">hunger</span> and <span style="color: cyan;">thirst</span>.<</narrator>>
<<if _fearIncrease is 0>><<narrator>>Your high acclimatization prevents any further increase in <span style="color: orange;">fear</span>.<</narrator>><<else>><<narrator>>The sight of the corpse leaves a lasting impact on your psyche, reminding you of the grim reality you're facing. The fear of meeting the same fate gnaws at you, making it difficult to think clearly. Your <span style="color: orange;">fear</span> has increased.<</narrator>><<set $fear += _fearIncrease>><</if>>
<<if _sanityLoss is 0>><<narrator>>Your high acclimatization prevents any further decrease in <span style="color: green;">sanity</span>.<</narrator>><<else>><<narrator>> You feel your mind starting to fray as the identical rooms blur together in a never-ending maze. Your <span style="color: green;">sanity</span> has decreased.<</narrator>><<set $sanity -= _sanityLoss>><</if>>
<<set $thirst += 1>>
<<set $hunger += 1>>
<<set $HoursInBackrooms += 1>>
<<replace "#action-bar">><<include "ContinueButtonLevel0">><</replace>>
<<button "Wander">>
<<script>>
Dialog.setup("Actions");
Dialog.wiki(Story.get("WanderOptionsLevel0").processText());
Dialog.open();
<</script>><</button>>
<<button "Actions">>
<<script>>
Dialog.setup("Actions");
Dialog.wiki(Story.get("ActionsOptionsLevel0").processText());
Dialog.open();
<</script>><</button>>
<<button "Companions">>
<<script>>
Dialog.setup("Companions");
Dialog.wiki(Story.get("CompanionsGeneral").processText());
Dialog.open();
<</script>><</button>>
<<button"Inventory">>
<<script>>
Dialog.setup("Inventory");
Dialog.wiki(Story.get("InventoryGeneral").processText());
Dialog.open();
<</script>>
<</button>><<if $firsttimeEmptyRoomLevel0 is true>>
<<set $acclimatization += 1>>
<<set $firsttimeEmptyRoomLevel0 to false>>
<</if>>
<<narrator>>As you wander aimlessly through the endless corridors, you find yourself in yet another empty room. The walls are adorned with the same worn mono-yellow wallpaper, and the old, moist carpet squelches softly under your feet. Scattered electrical outlets line the walls, and the inconsistently-placed fluorescent lighting buzzes overhead, louder and more obtrusive than anything you've heard before.<</narrator>>
<<narrator>>You take a moment to catch your breath, the metallic scent of mildew and something unidentifiable thick in the air. It's hard to breathe deeply without coughing, and the oppressive silence is broken only by the grating hum of the lights and the faint echo of your own footsteps.<</narrator>>
<<narrator>>The disorienting layout of Level 0 makes it feel like you're walking in circles. No matter how carefully you try to keep track of your path, each room looks nearly identical to the last, adding to your growing sense of confusion and frustration. The oppressive silence amplifies the isolation you feel, making every small sound seem louder and more unsettling.<</narrator>>
<<You>>I need to get out of here... before I lose my mind completely.<</You>>
<<narrator>>The walking makes you <span style="color: brown;">hungrier</span> and <span style="color: cyan;">thirstier</span>...<</narrator>>
<<set $thirst += 1>>
<<set $hunger += 1>>
<<set $HoursInBackrooms += 1>>
<<replace "#action-bar">><<include "ContinueButtonLevel0">><</replace>><<narrator>>As you approach, the figure suddenly lunges at you with inhuman speed and strength. You realize too late that it's a monster.<</narrator>>
<<You>>Fuck!<</You>>
<<replace "#action-bar">><<include "HumanoidEncounterContinue">><</replace>>
<<narrator>>As you get closer, the figure begins to fade away, revealing it was nothing more than a figment of your imagination, a hallucination brought on by the stress and isolation.<</narrator>>
<<You>>I need to get out of here!<</You>>
<<replace "#action-bar">><<include "ContinueButtonLevel0">><</replace>>
<<narrator>>You turn and run as fast as you can, not daring to look back. The figure doesn't follow, allowing you to escape unharmed, but the encounter leaves you shaken.<</narrator>>
<<You>>Thank god...<</You>>
<<replace "#action-bar">><<include "ContinueButtonLevel0">><</replace>>
<<narrator>>You turn to run, but the figure starts to chase you, its footsteps echoing ominously behind you. Your heart races as you sprint through the endless corridors, desperately trying to escape.<</narrator>>
<<if $agility lt 7>>
<<narrator>>You are not fast enough, and the being catches up to you, takling you to the ground.<</narrator>>
<<replace "#action-bar">><<include "HumanoidEncounterContinue">><</replace>>
<<else>>
<<narrator>>You are just barely fast enough to lose it, but now you have no clue where you are.<</narrator>>
<<replace "#action-bar">><<include "ContinueButtonLevel0">><</replace>>
<</if>><<button "Approach">>
<<if $sanity < 50>>
<<goto "HumanoidHallucination">>
<<elseif $sanity >= 50>>
<<goto "HumanoidEncounter">>
<</if>><</button>>
<<button "Run Away">>
<<if random(1, 100) lte 10>>
<<goto "HumanoidChase">>
<<elseif random(1, 100) gt 10>>
<<goto "HumanoidEscape">>
<</if>>
<</button>><<button "Continue">><<goto "Level0NoAction">><</button>><<set $humanoidTenacity to 5>>
<<button "Fight!">><<goto "Humanoid">><</button>><div class="custom-box">
Combat Log
<div id="combat-log">
<div class="combat-entry"><<print $firstmove>></div>
<div class="combat-entry"><<print $secondmove>></div>
<div class="combat-entry"><<print $thirdmove>></div>
<div class="combat-entry"><<print $fourthmove>></div>
<div class="combat-entry"><<print $fifthmove>></div>
<div class="combat-entry"><<print $sixthmove>></div>
<div class="combat-entry"><<print $seventhmove>></div>
<div class="combat-entry"><<print $eighthmove>></div>
<div class="combat-entry"><<print $ninthmove>></div>
<div class="combat-entry"><<print $tenthmove>></div>
</div>
</div>
<<replace "#action-bar">><<include "HumanoidCombatOptions">><</replace>>
<<replace "#right-ui-bar">><<include "HumanoidRightSidebar">><</replace>>
<<set $inCombat to true>>
<<set $enemy to "Humanoid">>
<<silently>>
<<if $playerTurn is true>>
<<if $playerAttack is true>>
<<notify>>
<span style="color: #1316d4;">You Attacked: <<print $enemy>></span>
<<if $enemyAttack is true>>
<span style="color: #b00c0c;">You Got Attacked by: <<print $enemy>></span>
<<set $enemyAttack to false>>
<<elseif $enemyDefend is true>>
<span style="color: #b00c0c;"><<print $enemy>> Defended Against You</span>
<<set $enemyDefend to false>>
<</if>>
<</notify>>
<<set $playerAttack to false>>
<<elseif $playerDefend is true>>
<<notify>>
<span style="color: #1316d4;">You Defended Against: <<print $enemy>></span>
<<if $enemyAttack is true>>
<span style="color: #b00c0c;">You Got Attacked by: <<print $enemy>></span>
<<set $enemyAttack to false>>
<<elseif $enemyDefend is true>>
<span style="color: #b00c0c;"><<print $enemy>> Defended Against You</span>
<<set $enemyDefend to false>>
<</if>>
<</notify>>
<<set $playerDefend to false>>
<<elseif $playerItem is true>>
<<notify>>
<span style="color: #1316d4;">You Used an Item Against: <<print $enemy>></span>
<<if $enemyAttack is true>>
<span style="color: #b00c0c;">You Got Attacked by: <<print $enemy>></span>
<<set $enemyAttack to false>>
<<elseif $enemyDefend is true>>
<span style="color: #b00c0c;"><<print $enemy>> Defended Against You</span>
<<set $enemyDefend to false>>
<</if>>
<</notify>>
<<set $playerItem to false>>
<<elseif $playerDodge is true>>
<<notify>>
<span style="color: #1316d4;">You Prepared to Dodge: <<print $enemy>></span>
<<if $enemyAttack is true>>
<span style="color: #b00c0c;">You Got Attacked by: <<print $enemy>></span>
<<set $enemyAttack to false>>
<<elseif $enemyDefend is true>>
<span style="color: #b00c0c;"><<print $enemy>> Defended Against You</span>
<<set $enemyDefend to false>>
<</if>>
<</notify>>
<<set $playerDodge to false>>
<</if>>
<</if>>
<</silently>><<button "Enter">><<goto "RedRoomsNoAction">><</button>>
<<button "Turn Away">><<goto "Level0NoAction">><</button>><<narrator>>Against your better judgement, you had decided to enter the RedRooms, and the moment you did, the way you came disapeared. You have not find any way to escape, nor any water or food.<</narrator>>
<<narrator>>You. Have. Died.<</narrator>>
<<set $sanity to 0>>
<<set $fear to 100>>
<<set $hunger to 10>>
<<set $thirst to 10>>
<<button "Disclaimer">>
<<script>>
Dialog.setup("Disclaimer");
Dialog.wiki(Story.get("Disclaimer").processText());
Dialog.open();
<</script>><</button>>
<<narrator>>Just a disclaimer from me - SirRandom - that the content for wherever this disclaimer is available from is not yet complete. Whether that be the RedRooms, that still needs to be expanded to the same level as Level0 instead of instant death, or whatever else is not yet finished, just know in the future there will be more to do there, so check again in a future update on a save you are willing to risk.<</narrator>><div class="custom-box">
<div class="centered-image">
<img src="Assets/Backrooms/Levels/Level0/Entities/Humanoid/Humanoid2.png" alt="Humanoid">
</div>
</div>
<div class="custom-box">
Species: Humanoid
Type: "Humanoid"
Tenacity: <span style="color: red;">$humanoidTenacity/5</span>
Strength: $humanoidStrength
Agility: $humanoidAgility
Most Similar to: Humans
State: <<if $humanoidGrabbed is true>>Grabbed<</if>>|<<if $humanoidOnGround is true>>On Ground<</if>>
</div>
<<button "Defend">>
<<set $defenseBuff to Math.floor($Strength / 5)>>
<<if $firstmove == "">>
<<set $firstmove to "You prepare to defend yourself.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You prepare to defend yourself.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You prepare to defend yourself.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You prepare to defend yourself.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You prepare to defend yourself.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You prepare to defend yourself.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You prepare to defend yourself.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You prepare to defend yourself.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You prepare to defend yourself.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You prepare to defend yourself.">>
<<else>>
<<set $firstmove to "You prepare to defend yourself.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<goto "HumanoidTurn">>
<<set $playerDefend to true>>
<<set $playerTurn to true>>
<</button>>
<<button "Dodge">>
<!-- Calculate dodge buff -->
<<set $dodgeBuff to Math.floor(($reflexes + $agility - $humanoidAgility) * 5)>>
<!-- Update Combat Log for Dodge -->
<<if $firstmove == "">>
<<set $firstmove to "You prepare to dodge the next attack.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You prepare to dodge the next attack.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You prepare to dodge the next attack.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You prepare to dodge the next attack.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You prepare to dodge the next attack.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You prepare to dodge the next attack.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You prepare to dodge the next attack.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You prepare to dodge the next attack.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You prepare to dodge the next attack.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You prepare to dodge the next attack.">>
<<else>>
<<set $firstmove to "You prepare to dodge the next attack.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<goto "HumanoidTurn">>
<<set $playerDodge to true>>
<<set $playerTurn to true>>
<</button>><<button "Kick Head">>
<<set _missChance to Math.max(0, ($humanoidAgility - $agility) * 10)>>
<<if random(1, 100) <= _missChance>>
<<set _missed to true>>
<<else>>
<<set _missed to false>>
<</if>>
<<if _missed>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<else>>
<<set $firstmove to "You sprinted forward and attempted to kick the Humanoid's head, but it quickly dodged your attack.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<else>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<else>>
<<set $firstmove to "You sprinted forward and delivered a kick straight to the Humanoid's head, making it stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<set $playerDamage to 1 + Math.floor($strength / 5)>>
<<if $defenseBuff > 0>>
<<set $playerDamage -= $defenseBuff>>
<<set $playerDamage to Math.max($playerDamage, 0)>>
<<set $defenseBuff to 0>>
<<set $playerDamage += 1>>
<</if>>
<<set $humanoidTenacity -= $playerDamage>>
<</if>>
<<goto "HumanoidTurn">>
<<set $playerAttack to true>>
<<set $playerTurn to true>>
<</button>>
<<button "Kick Chest">>
<<set _missChance to Math.max(0, ($humanoidAgility - $agility) * 10)>>
<<if random(1, 100) <= _missChance>>
<<set _missed to true>>
<<else>>
<<set _missed to false>>
<</if>>
<<if _missed>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and attempted to kick the Humanoid's chest, but itsidestepped your attack.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidestepped your attack.">>
<<else>>
<<set $firstmove to "You sprinted forward and attempted to kick the Humanoid's chest, but it sidesteped your attack.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<else>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<else>>
<<set $firstmove to "You sprinted forward and delivered a kick to the Humanoid's chest, which caused it to stagger backwards just a bit.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<set $playerDamage to 1 + Math.floor($strength / 5)>>
<<if $defenseBuff > 0>>
<<set $playerDamage -= $defenseBuff>>
<<set $playerDamage to Math.max($playerDamage, 0)>>
<<set $defenseBuff to 0>>
<<set $playerDamage += 1>>
<</if>>
<<set $humanoidTenacity -= $playerDamage>>
<</if>>
<<goto "HumanoidTurn">>
<<set $playerAttack to true>>
<<set $playerTurn to true>>
<</button>>
<<button "Kick Throat">>
<<set _missChance to Math.max(0, ($humanoidAgility - $agility) * 10)>>
<<if random(1, 100) <= _missChance>>
<<set _missed to true>>
<<else>>
<<set _missed to false>>
<</if>>
<<if _missed>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<else>>
<<set $firstmove to "You sprinted forward and attempted to kick the Humanoid's throat, but it swiftly dodged your attack.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<else>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<else>>
<<set $firstmove to "You sprinted forward and delivered a kick straight to the Humanoid's throat, which sent it into a coughing fit... it seems to share a lot of human anatomy.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<set $playerDamage to 1 + Math.floor($strength / 5)>>
<<if $defenseBuff > 0>>
<<set $playerDamage -= $defenseBuff>>
<<set $playerDamage to Math.max($playerDamage, 0)>>
<<set $defenseBuff to 0>>
<<set $playerDamage += 2>>
<</if>>
<<set $humanoidTenacity -= $playerDamage>>
<</if>>
<<goto "HumanoidTurn">>
<<set $playerAttack to true>>
<<set $playerTurn to true>>
<</button>><<button "Punch Head">>
<<set _missChance to Math.max(0, ($humanoidAgility - $agility) * 10)>>
<<if random(1, 100) <= _missChance>>
<<set _missed to true>>
<<else>>
<<set _missed to false>>
<</if>>
<<if _missed>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<else>>
<<set $firstmove to "You sprint forward and attempted to punch the Humanoid's head, but it swiftly dodged your attack.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<else>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<else>>
<<set $firstmove to "You sprinted forward and threw a well-positioned punch straight to the cheek, making the Humanoid stagger in pain, holding its head as if it is ringing. It seems to share a lot of human anatomy.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<set $playerDamage to 1 + Math.floor($strength / 5)>>
<<if $defenseBuff > 0>>
<<set $playerDamage -= $defenseBuff>>
<<set $playerDamage to Math.max($playerDamage, 0)>>
<<set $defenseBuff to 0>>
<<set $playerDamage += 1>>
<</if>>
<<set $humanoidTenacity -= $playerDamage>>
<</if>>
<<goto "HumanoidTurn">>
<<set $playerAttack to true>>
<<set $playerTurn to true>>
<</button>>
<<button "Punch Chest">>
<<set _missChance to Math.max(0, ($humanoidAgility - $agility) * 10)>>
<<if random(1, 100) <= _missChance>>
<<set _missed to true>>
<<else>>
<<set _missed to false>>
<</if>>
<<if _missed>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<else>>
<<set $firstmove to "You sprinted forward and attempted to punch the Humanoid's chest, but it swiftly dodged your attack.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<else>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<else>>
<<set $firstmove to "You sprinted forward and threw a right hook at the Humanoid, your fist connected with its chest sending it staggering backwards just a bit, doing very little damage.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<set $playerDamage to 1 + Math.floor($strength / 5)>>
<<if $defenseBuff > 0>>
<<set $playerDamage -= $defenseBuff>>
<<set $playerDamage to Math.max($playerDamage, 0)>>
<<set $defenseBuff to 0>>
<<set $playerDamage += 0>>
<</if>>
<<set $humanoidTenacity -= $playerDamage>>
<</if>>
<<goto "HumanoidTurn">>
<<set $playerAttack to true>>
<<set $playerTurn to true>>
<</button>>
<<button "Punch Throat">>
<<set _missChance to Math.max(0, ($humanoidAgility - $agility) * 10)>>
<<if random(1, 100) <= _missChance>>
<<set _missed to true>>
<<else>>
<<set _missed to false>>
<</if>>
<<if _missed>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<else>>
<<set $firstmove to "You sprinted forward and attempted to punch the Humanoid's throat, but it swiftly dodged your attack.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<else>>
<<if $firstmove == "">>
<<set $firstmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $secondmove == "">>
<<set $secondmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $thirdmove == "">>
<<set $thirdmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $fourthmove == "">>
<<set $fourthmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $fifthmove == "">>
<<set $fifthmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $sixthmove == "">>
<<set $sixthmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $seventhmove == "">>
<<set $seventhmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $eighthmove == "">>
<<set $eighthmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $ninthmove == "">>
<<set $ninthmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<elseif $tenthmove == "">>
<<set $tenthmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<else>>
<<set $firstmove to "You sprinted forward and threw a well-positioned punch straight to the jugular, which sent the Humanoid into a coughing fit... it seems to share a lot of human anatomy.">>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<set $playerDamage to 1 + Math.floor($strength / 5)>>
<<if $defenseBuff > 0>>
<<set $playerDamage -= $defenseBuff>>
<<set $playerDamage to Math.max($playerDamage, 0)>>
<<set $defenseBuff to 0>>
<<set $playerDamage += 2>>
<</if>>
<<set $humanoidTenacity -= $playerDamage>>
<</if>>
<<goto "HumanoidTurn">>
<<set $playerAttack to true>>
<<set $playerTurn to true>>
<</button>>
<<set _action to random(1, 2)>>
<<if _action == 1>> <!-- Humanoid Attacks -->
<<set _attackType to random(1, 2)>>
<<set _attackTarget to random(1, 3)>>
<!-- Calculate miss chance based on agility difference -->
<<set _missChance to Math.max(0, ($agility - $humanoidAgility) * 10 + $dodgeBuff)>>
<<if random(1, 100) <= _missChance>> <!-- Humanoid Misses -->
<<set _missed to true>>
<<else>> <!-- Humanoid Hits -->
<<set _missed to false>>
<</if>>
<<if _missed>> <!-- Miss Text -->
<<if _attackType == 1>>
<<set _attackText to "The Humanoid punches but misses.">>
<<elseif _attackType == 2>>
<<set _attackText to "The Humanoid kicks but misses.">>
<</if>>
<!-- Update Combat Log for Miss -->
<<if $firstmove == "">>
<<set $firstmove to _attackText>>
<<elseif $secondmove == "">>
<<set $secondmove to _attackText>>
<<elseif $thirdmove == "">>
<<set $thirdmove to _attackText>>
<<elseif $fourthmove == "">>
<<set $fourthmove to _attackText>>
<<elseif $fifthmove == "">>
<<set $fifthmove to _attackText>>
<<elseif $sixthmove == "">>
<<set $sixthmove to _attackText>>
<<elseif $seventhmove == "">>
<<set $seventhmove to _attackText>>
<<elseif $eighthmove == "">>
<<set $eighthmove to _attackText>>
<<elseif $ninthmove == "">>
<<set $ninthmove to _attackText>>
<<elseif $tenthmove == "">>
<<set $tenthmove to _attackText>>
<<else>>
<<set $firstmove to _attackText>>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<<else>> <!-- Hit Text -->
<!-- Choose Attack Type -->
<<if _attackType == 1>>
<<set _attackText to "The Humanoid punches">>
<<elseif _attackType == 2>>
<<set _attackText to "The Humanoid kicks">>
<</if>>
<!-- Choose Attack Target -->
<<if _attackTarget == 1>>
<<set _attackText to _attackText + " your head. Making it ring.">>
<<elseif _attackTarget == 2>>
<<set _attackText to _attackText + " your chest. Causing a stinging sensation.">>
<<elseif _attackTarget == 3>>
<<set _attackText to _attackText + " your legs. Nearly throwing you off balance.">>
<</if>>
<!-- Update Combat Log for Hit -->
<<if $firstmove == "">>
<<set $firstmove to _attackText>>
<<elseif $secondmove == "">>
<<set $secondmove to _attackText>>
<<elseif $thirdmove == "">>
<<set $thirdmove to _attackText>>
<<elseif $fourthmove == "">>
<<set $fourthmove to _attackText>>
<<elseif $fifthmove == "">>
<<set $fifthmove to _attackText>>
<<elseif $sixthmove == "">>
<<set $sixthmove to _attackText>>
<<elseif $seventhmove == "">>
<<set $seventhmove to _attackText>>
<<elseif $eighthmove == "">>
<<set $eighthmove to _attackText>>
<<elseif $ninthmove == "">>
<<set $ninthmove to _attackText>>
<<elseif $tenthmove == "">>
<<set $tenthmove to _attackText>>
<<else>>
<<set $firstmove to _attackText>>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<!-- Apply Damage -->
<<set $damage to 1 + Math.floor($humanoidStrength / 5)>>
<<if $defenseBuff > 0>>
<<set $damage -= $defenseBuff>>
<<set $damage to Math.max($damage, 0)>>
<<set $defenseBuff to 0>>
<</if>>
<<set $TenacityPoints -= $damage>>
<</if>>
<<else>> <!-- Humanoid Defends -->
<<set _defendText to "The Humanoid takes a defensive stance, preparing to lessen any incoming damage.">>
<!-- Update Combat Log -->
<<if $firstmove == "">>
<<set $firstmove to _defendText>>
<<elseif $secondmove == "">>
<<set $secondmove to _defendText>>
<<elseif $thirdmove == "">>
<<set $thirdmove to _defendText>>
<<elseif $fourthmove == "">>
<<set $fourthmove to _defendText>>
<<elseif $fifthmove == "">>
<<set $fifthmove to _defendText>>
<<elseif $sixthmove == "">>
<<set $sixthmove to _defendText>>
<<elseif $seventhmove == "">>
<<set $seventhmove to _defendText>>
<<elseif $eighthmove == "">>
<<set $eighthmove to _defendText>>
<<elseif $ninthmove == "">>
<<set $ninthmove to _defendText>>
<<elseif $tenthmove == "">>
<<set $tenthmove to _defendText>>
<<else>>
<<set $firstmove to _defendText>>
<<set $secondmove to "">>
<<set $thirdmove to "">>
<<set $fourthmove to "">>
<<set $fifthmove to "">>
<<set $sixthmove to "">>
<<set $seventhmove to "">>
<<set $eighthmove to "">>
<<set $ninthmove to "">>
<<set $tenthmove to "">>
<</if>>
<!-- Set Defense Buff -->
<<set $defenseBuff to Math.floor($humanoidStrength / 5)>>
<</if>>
<!-- Set Post Text -->
<<if _action == 1>>
<<if _missed>>
<<set $PostText to _attackText>>
<<set $enemyAttack to false>>
<<set $enemyMiss to true>>
<<else>>
<<set $PostText to _attackText>>
<<set $enemyAttack to true>>
<<set $enemyMiss to false>>
<</if>>
<<else>>
<<set $PostText to _defendText>>
<<set $enemyDefend to true>>
<<set $enemyMiss to false>>
<</if>>
<<set $dodgeBuff to 0>>
<<goto "Humanoid">>
<<button"Punch">><<script>>
Dialog.setup("Punch where?");
Dialog.wiki(Story.get("HumanoidPunch").processText());
Dialog.open();
<</script>><</button>>
<<button"Kick">><<script>>
Dialog.setup("Kick where?");
Dialog.wiki(Story.get("HumanoidKick").processText());
Dialog.open();
<</script>><</button>>