<<nobr>>
The news had been grim for weeks.
<br><br>
At first, it was something happening somewhere else. A crowded hospital. A shaky video outside a train station. A reporter standing behind police tape.
<br><br>
You watched between ordinary things. Getting dressed. Making coffee. Leaving for work.
<br><br>
<img class="scene-img" src="media/intro/news.webp">
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Evening News — Four Weeks Ago</div>
<div class="dialogue-text">
"Health officials are investigating a series of violent incidents linked to an unidentified infection. Residents are advised to avoid contact with anyone displaying severe confusion or unusual aggression."
</div>
</div>
</div>
<br><br>
The presenter turned to another camera. There was a weather forecast afterward.
<br><br>
By the following week, the hospitals were asking people to stay away unless their condition was life-threatening. Schools closed. Deliveries stopped arriving on time.
<br><br>
Someone posted a video of a man lying motionless beneath a sheet outside an emergency department.
<br><br>
Halfway through the recording, he sat up.
<br><br>
The video disappeared. Copies of it did not.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Breaking News — Three Weeks Ago</div>
<div class="dialogue-text">
"A curfew will take effect at eight this evening. Emergency services are experiencing significant delays. Please remain indoors and keep roads clear for authorized vehicles."
</div>
</div>
</div>
<br><br>
People went out anyway.
<br><br>
Some wanted supplies. Some wanted to leave. Others gathered outside government buildings, demanding answers nobody seemed able to give them.
<br><br>
<img class="scene-img" src="media/intro/intro_riot.gif">
<br><br>
You watched a reporter struggle to speak over a crowd. Behind her, police were pushing people away from a barricade.
<br><br>
Someone fell. Several others bent down around them.
<br><br>
The camera jerked toward the pavement.
<br><br>
The studio cut to a map before you could make sense of what you had seen.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Emergency Bulletin — Two Weeks Ago</div>
<div class="dialogue-text">
"The evacuation center at the central station is no longer accepting arrivals. Do not travel to the station. If you are currently sheltering in a secure building, remain there."
</div>
</div>
</div>
<br><br>
The same announcement played for most of the night.
<br><br>
By morning, several channels were showing it. Others showed a frozen image or a message apologizing for technical difficulties.
<br><br>
Outside, car horns sounded for hours. You heard sirens heading toward the main road.
<br><br>
Eventually, you stopped hearing them come back.
<br><br>
Then they showed up on your street.
<br><br>
<img class="scene-img" src="media/intro/zombies.webp">
<br><br>
They moved slowly, stumbling between abandoned cars. One wore a delivery uniform. Another dragged a bare foot at an angle that should have made walking impossible.
<br><br>
A woman opened an upstairs window and called to someone below.
<br><br>
Every head in the street turned toward her.
<br><br>
You stepped away from your own window.
<br><br>
On television, the remaining presenter was reading directly from a printed sheet. There were people talking somewhere off camera. He paused to listen, then started again.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Emergency Broadcast</div>
<div class="dialogue-text">
"Do not approach infected individuals, even if they appear unresponsive. Do not attempt to recover bodies. Lock your doors, move away from windows, and keep noise to a minimum."
</div>
</div>
</div>
<br><br>
He looked past the camera.
<br><br>
For a few seconds, nobody spoke.
<br><br>
Then the broadcast returned to the emergency announcement.
<br><br>
That evening, the lights flickered twice.
<br><br>
<img class="scene-img" src="media/intro/blackout.gif">
<br><br>
The television went dark. The refrigerator stopped humming. Across the street, every lit window disappeared at once.
<br><br>
In the sudden quiet, you heard glass breaking somewhere nearby.
<br><br>
Then a scream.
<br><br>
You stayed still until it stopped.
<br><br>
That was the last night you waited for someone to tell you what to do.
<br><br>
[[Continue|Intro1]]
<</nobr>><<nobr>>
You survived the first month of the outbreak in an old apartment building with a handful of strangers.
<br><br>
Someone had found an unlocked entrance. Someone else had dragged a cabinet across it. By nightfall, it was the safest place any of you knew.
<br><br>
<img class="scene-img" src="media/intro/intro_hideout.jpg">
<br><br>
For a while, you made it work. You took turns watching the street and went out in pairs for supplies. At night, you kept the curtains closed and spoke quietly.
<br><br>
You slept in an apartment whose owners never came back. Their shoes were still beside the door. Nobody touched the photographs.
<br><br>
Two days ago, a horde came through the neighborhood.
<br><br>
You watched from upstairs as the street filled with infected. Then the first bodies pressed against the entrance.
<br><br>
The barricade held long enough for you to grab your backpack. As glass shattered downstairs, someone shouted to get out through the back.
<br><br>
You escaped through a rear window, dropped into a fenced yard, and kept running.
<br><br>
You still don't know how many of the others made it.
<br><br>
<video width="640" height="360" autoplay muted loop playsinline>
<source src="media/intro/after_shelter.mp4" type="video/mp4">
</video>
<br><br>
You've been on the move ever since, carrying only a small backpack and wearing the same clothes you escaped in.
<br><br>
You avoid the main roads and sleep wherever you can hide. Last night, you sheltered behind the counter of a looted shop. Every sound outside woke you.
<br><br>
Now your feet ache and your mouth is dry. You need water, food, and somewhere safe enough to rest.
<br><br>
For now, you keep walking.
<br><br>
[[Continue|Intro2]]
<</nobr>><<nobr>>
<div style="text-align:center; margin-bottom:6px;">
<img src="media/logo/logo.jpg" alt="Behind the Walls"
style="display:block; max-width:170px; height:auto; margin:0 auto;">
<div style="margin-top:4px; font-size:0.8rem; color:#b8aaa1;">
Version 0.1
</div>
</div>
<</nobr>><<nobr>>
<<include "StoryCaption">>
<<if $showSurvivalSidebar and $health > 0>>
<<link "Inventory">>
<<showInventoryPanel "Inventory">>
<</link>>
<<link "Survival Journal">>
<<showJournalPanel "Survival Journal">>
<</link>>
<<if setup.isInsideCompound()>>
<<link "Compound Management">>
<<run Dialog.setup("Compound Management", "inventory-dialog journal-dialog")>>
<<run Dialog.wiki(Story.get("Compound Management").text)>>
<<run Dialog.open()>>
<</link>>
<</if>>
<<checkSafeSidebarLocation>>
<<if _safeSidebarLocation>>
<<link "Credits">>
<<set $previousPassage to passage()>>
<<goto "Credits">>
<</link>>
<</if>>
<</if>>
<a class="btw-support"
href="https://www.patreon.com/cw/UnknownJabba"
target="_blank"
rel="noopener noreferrer">Support</a>
<</nobr>><<include "StatusBar">><div style="background:#1a1a1a; padding:12px; border:1px solid #600; margin-bottom:20px; border-radius:4px;">
<strong>Day <<print $day>></strong>
Health: <span style="color:#ff6666;"><<print $health>>/100</span>
Hunger: <span style="color:#ffaa44;"><<print $hunger>>/100</span>
Infection: <span style="color:#88ff88;"><<print $infection>>%</span>
</div><<set $day to 1>>
<<set $population to 0>>
<<set $hour to 8>>
<<set $minute to 0>>
<<set $showSurvivalSidebar to false>>
<<set $playerName to "">>
<<set $strength to 1>>
<<set $endurance to 1>>
<<set $intelligence to 1>>
<<set $studiedToday to false>>
<<set $officeBookIntGains to 0>>
<<set $generatorInspected to false>>
<<set $food to 5>>
<<set $materials to 0>>
<<set $electricity to 100>>
<<set $fuel to 5>>
<<set $health to 100>>
<<set $hunger to 60>>
<<set $thirst to 60>>
<<set $energy to 80>>
<<set $infection to 0>>
<<set $bleeding to false>>
<<set $inventory to []>>
<<set $equippedWeapon to "None">>
<<set $weaponDamage to 0>>
<<set $targetEnemyIndex to -1>>
<<set $enemies to []>>
<<set $enemyName to "None">>
<<set $enemyHealth to 0>>
<<set $enemyMaxHealth to 0>>
<<set $enemyDamage to 0>>
<<set $combatWinPassage to "Nearby Neighborhood">>
<<set $combatLosePassage to "GameOver">>
<<set $combatEscapePassage to "Nearby Neighborhood">>
<<set $survivorInfoGains to 0>>
<<set $foundLake to false>>
<<set $foundForest to false>>
<<set $survivorsSpared to 0>>
<<set $survivorsKilled to 0>>
<<set $carTrappedSurvivorFound to false>>
<<set $carTrappedSurvivorHelped to false>>
<<set $carTrappedHatchetTaken to false>>
<<set $miaCumLocation to "">>
<<set $taraCumLocation to "">>
/* ===============================
MIA VARIABLES
=============================== */
<<set $metMia to false>>
<<set $miaDesire to 0>>
<<set $miaAskedPast to false>>
<<set $miaFirstHug to false>>
<<set $miaFirstKiss to false>>
<<set $miaFirstSex to false>>
<<set $miaRomanceStarted to false>>
<<set $miaAngryToday to false>>
<<set $helpedMia to false>>
<<set $miaStayed to false>>
<<set $miaDead to false>>
<<set $miaLeft to false>>
<<set $miaTrust to 0>>
<<set $miaLocation to "">>
<<set $miaSceneArousal to 0>>
<<set $playerSceneArousal to 0>>
<<set $miaIntimateGif to "media/characters/mia/scenes/intimate/start_01.gif">>
<<set $miaIntimateText to "Mia looks at you, waiting to see what you do next.">>
<<set $miaClimaxedThisScene to false>>
<<set $miaClimaxCount to 0>>
<<set $playerCameThisScene to false>>
/* ===============================
TARA VARIABLES
=============================== */
<<set $metTara to false>>
<<set $helpedTara to false>>
<<set $taraStayed to false>>
<<set $taraDead to false>>
<<set $taraLeft to false>>
<<set $taraTrust to 0>>
<<set $taraDesire to 0>>
<<set $taraSuspicion to 30>>
<<set $taraLocation to "">>
<<set $taraAskedPast to false>>
<<set $taraFirstHug to false>>
<<set $taraFirstKiss to false>>
<<set $taraRomanceStarted to false>>
<<set $taraFirstIntimate to false>>
<<set $taraAngryToday to false>>
/* Day 10 Tara event */
<<set $taraEventStarted to false>>
<<set $taraEventCompleted to false>>
<<set $taraRunWithMia to false>>
<<set $taraRaidersAlerted to false>>
<<set $taraTruthRevealed to false>>
<<set $taraRoomContext to "">>
<<set $taraRoomExit to "">>
<<set $taraAskedRaiders to false>>
<<set $taraAskedGate to false>>
<<set $taraFirstPrivateTalk to false>>
<<set $taraAskedMarcus to false>>
/* ===============================
TARA PRIVATE SCENE VARIABLES
=============================== */
<<set $taraSceneArousal to 0>>
<<set $playerTaraSceneArousal to 0>>
<<set $taraIntimateGif to "media/characters/tara/scenes/intimate/start_01.gif">>
<<set $taraIntimateText to "Tara watches you quietly, waiting to see if you are going to hesitate.">>
<<set $taraClimaxedThisScene to false>>
<<set $taraClimaxCount to 0>>
<<set $playerCameWithTara to false>>
/* ===============================
RAIDER / BANDIT VARIABLES
=============================== */
<<set $raidersDiscovered to false>>
<<set $raiderGroupName to "The Ash Dogs">>
<<set $raiderLeaderName to "Marcus">>
<<set $raidersKilled to 0>>
<<set $raiderScoutDefeated to false>>
/* ===============================
NEARBY NEIGHBORHOOD
=============================== */
<<set $foundNeighborhood to false>>
<<set $neighborhoodDiscoveredDay to 0>>
/* One-time neighborhood events */
<<set $neighborhoodRedDoorDone to false>>
<<set $neighborhoodLockedGarageDone to false>>
<<set $neighborhoodBathroomZombieDone to false>>
<<set $neighborhoodFamilyPantryDone to false>>
<<set $neighborhoodOldWorkshopDone to false>>
<<set $neighborhoodWatchingWindowDone to false>>
/* Future neighborhood state */
<<set $raiderThreatEnded to false>>
<<set $neighborhoodCommunityStarted to false>>
/* ===============================
THIRD BEDROOM
=============================== */
<<set $thirdBedroomCleared to false>>
<<set $thirdBedroomBedRepaired to false>>
<<set $spareBedroomReady to false>>
/* ===============================
COMPOUND MANAGEMENT
=============================== */
<<set $compoundSecurity to 50>>
<<set $frontGateReinforced to false>>
<<set $garageDoorSecured to false>>
<<set $workbenchBuilt to false>>
<<set $storageShelvesBuilt to false>>
<<set $workbenchAction to "">><<nobr>>
<div style="text-align: center; margin-top: 80px;">
<img src="media/Logo/Front_Page.jpg" style="max-width: 60%; border: 3px solid #600;">
<h1 style="color: #ff3333;">Behind the Walls</h1>
<p style="font-size: 1.25em; color: #ddd; line-height: 1.6;">
You survived the first month of the outbreak.<br>
Now you're alone in a rich man's compound on the edge of the city.<br>
<br>
Scavenge. Build. Survive.<br>
The dead are everywhere. Resources are running out.<br>
Every decision matters.
</p>
<p style="font-size: 1.1em; color: #aaa; margin-top: 30px;">
This is my very first game.<br>
Thank you for playing and supporting me.
</p>
</div>
<br><br><br>
<div style="text-align: center;">
[[✅ I am 18 or older - Enter|CharacterCreation]]
<br><br>
<<link "❌ Exit Game">>
Close the browser tab to exit.
<</link>>
</div>
<</nobr>>Today, you stumbled upon a wealthy neighborhood on the outskirts of the city. One property immediately stood out — a massive modern mansion that looked like it belonged to someone very rich. High cement brick walls, almost two meters tall, surrounded an enormous yard. Inside the walls you could see a spacious lawn perfect for growing food, and several outbuildings including a big shed and what looked like a guest house. The solid metal gate was still closed and intact.
<img src="media/intro/compound_found.jpg">
You slipped through a side entrance just as a group of shambling corpses appeared further down the street. You quickly barred the heavy gate behind you and hoped the walls would hold.
<img src="media/intro/closing_gate.gif">
Now you’re finally inside this quiet, fortified compound. The previous owners are long gone — or worse. The house is luxurious but empty. You have very few supplies left after your long journey, but at least you have shelter and fresh water from the pool for now.
You walk up to the front door. You look tired. Time to face reality.
[[Enter the house|Entryway]]<<nobr>>
<<silently>>
<<set $showSurvivalSidebar to true>>
<</silently>>
<img class="location-img" src="media/locations/base/1stfloor_hallway.jpg">
You stand in the grand entryway of the abandoned mansion. Sunlight filters through dusty windows. The house feels strangely quiet.
<br><br>
Where do you want to go?
<br><br>
<div class="room-link-list">
<div class="room-link-row">
[[Living Room]]
<<miaMarker "Living Room">>
<<taraMarker "Living Room">>
</div>
<div class="room-link-row">
[[Kitchen]]
<<miaMarker "Kitchen">>
<<taraMarker "Kitchen">>
</div>
<div class="room-link-row">
[[Backyard]]
<<miaMarker "Backyard">>
<<taraMarker "Backyard">>
</div>
<div class="room-link-row">
[[Bathroom]]
</div>
<div class="room-link-row">
[[Storage Room]]
</div>
<div class="room-link-row">
[[Garage]]
<<miaMarker "Garage">>
<<taraMarker "Garage">>
</div>
<div class="room-link-row">
[[Go down to the basement|Basement]]
</div>
</div>
<br><br>
<<if visited("Second Floor") is 0>>
A wide staircase rises toward the dark second floor. You have not been up there yet.
<br><br>
<</if>>
<div class="room-link-row">
[[Go upstairs|Second Floor]]
<<miaSecondFloorMarker>>
<<taraSecondFloorMarker>>
</div>
<br><br>
<<if $day < 2>>
<span class="locked-option">Go Outside</span>
<span class="locked-note">You are too exhausted to leave the house today. First, you need to understand where you are.</span>
<<elseif $hour >= 20 or $hour < 6>>
<span class="locked-option">Go Outside</span>
<span class="locked-note">It’s too late to head outside. Moving through the streets after dark is too dangerous. You should wait until morning</span>
<<else>>
[[Go Outside|Outside]]
<</if>>
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/livingroom.jpg">
<<if not $searched_living_room>>
The living room is large and luxurious, though clearly abandoned. Expensive furniture is covered in white sheets. A large fireplace dominates one wall.
<<else>>
The living room is quiet. The furniture sits empty, and the fireplace sits cold and dark.
<</if>>
<<miaPresence "Living Room" "She sits near the window, watching the street through a gap in the curtains." "Talk Mia Living Room">>
<<taraPresence "Living Room" "Tara sits near the window, quiet and distant, one hand resting close to her knife.">>
<br><br>
<<if not $searched_living_room>>
[[Search the room|Living Room Search]]
<br>
<</if>>
[[Back to the Entryway|Entryway]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/kitchen.jpg">
<br><br>
<<if not $searched_kitchen>>
The kitchen is huge and modern. Expensive appliances line the counters.
It looks like it was barely used before everything went to hell.
It seems the fridge is running on a backup power.
<<else>>
Expensive appliances line the counters. The working fridge hums quietly.
<</if>>
<<miaPresence "Kitchen" "Mia stands near the counter, quietly looking over what little food and water remains." "Talk Mia Kitchen">>
<<taraPresence "Kitchen" "Tara stands near the counter, checking the remaining supplies with a suspicious frown.">>
<br><br>
Available Food: <b><<print setup.totalFood()>></b>
<br><br>
Food in Kitchen: <b><<print $food>></b><br>
Cans in Backpack: <b><<print setup.cannedFoodCount()>></b>
<br><br>
<<if setup.cannedFoodCount() > 0>>
<<link "Store all cans">>
<<silently>>
<<set _cansToStore to setup.cannedFoodCount()>>
<<if _cansToStore > 0>>
<<set $food += _cansToStore>>
<<for _foodIndex = $inventory.length - 1; _foodIndex >= 0; _foodIndex-->>
<<if $inventory[_foodIndex].name is "Canned Food">>
<<run $inventory.splice(_foodIndex, 1)>>
<</if>>
<</for>>
<</if>>
<</silently>>
<<goto "Kitchen">>
<</link>>
<<else>>
<span class="locked-option">Store all cans</span>
<span class="locked-note">You have no cans in your backpack.</span>
<</if>>
<br><br>
<<if $food > 0>>
<<link "Take 1 can">>
<<silently>>
<<if $food > 0>>
<<set $food -= 1>>
<<addToInventory "Canned Food" "media/icons/canfood.jpg" 1>>
<</if>>
<</silently>>
<<goto "Kitchen">>
<</link>>
<span class="locked-note">
Move 1 Food into your backpack for trading or helping survivors.
</span>
<<else>>
<span class="locked-option">Take 1 can</span>
<span class="locked-note">There is no food stored in the kitchen.</span>
<</if>>
<br><br>
<<if setup.totalFood() <= 0>>
There is no food available.
<<elseif $hunger >= 100>>
<span class="locked-option">Eat</span>
<span class="locked-note">You are already full.</span>
<<else>>
[[Eat|EatFood]]
<span class="locked-note">
Uses 1 Food and restores up to 40 Fullness.
Stored food is used first, followed by inventory cans.
</span>
<</if>>
<br><br>
<<if not $searched_kitchen>>
[[Search the kitchen|Kitchen Search]]
<br>
<</if>>
[[Back to the Entryway|Entryway]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/bedroom.jpg">
<br><br>
This seems to be the master bedroom. A large king-sized bed sits in the middle of the room. The sheets are still somewhat clean. There are several wardrobes and a big window overlooking the backyard.
<br><br>
<<if not $searched_bedroom>>
[[Search the bedroom|Master Bedroom Search]]
<br><br>
<</if>>
<<if $day > 1 or $generatorInspected>>
[[Sleep|Sleep]]
<br><br>
<<if $energy >= 100>>
<span class="locked-option">Take a nap</span>
<span class="locked-note">
You are already fully rested.
</span>
<<else>>
[[Take a nap|Take Nap]]
<span class="locked-note">
Restores up to 20 Energy. Takes 1 hour.
You can nap more than once per day.
Reaching 02:00 turns your rest into a full night's sleep.
</span>
<</if>>
<<else>>
<span class="locked-option">Sleep / Take a nap</span>
<span class="locked-note">
You are too restless to sleep. Before settling in for the night,
you should inspect the generator and find out if the house
can still provide power.
</span>
<</if>>
<br><br>
[[Back to the Second Floor|Second Floor]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/shed.webp">
<br><br>
<<if not $searched_shed>>
A sturdy wooden shed sits at the edge of the property. It looks like it was used for storage and maintenance. Tools and supplies might still be inside.
<br><br>
[[Search the shed|Shed Search]]
<<else>>
The shed is quiet. There are a few useful tools hanging on the shelves. This place is suitable for crafting.
<br><br>
<<if $workbenchBuilt>>
A rough but sturdy workbench now stands against one wall. Tools, scraps, and salvaged parts are arranged across it.
<br><br>
<span class="stat-change">Workbench Built</span>
<br><br>
[[Use the Workbench|Workbench]]
<<else>>
There is enough space here to build a proper workbench.
<br><br>
<<set _woodCount to 0>>
<<set _scrapCount to 0>>
<<for _item range $inventory>>
<<if _item.name is "Wood">>
<<set _woodCount += _item.quantity>>
<</if>>
<<if _item.name is "Scrap Metal">>
<<set _scrapCount += _item.quantity>>
<</if>>
<</for>>
Requirements:<br>
Wood: <<print _woodCount>> / 4<br>
Scrap Metal: <<print _scrapCount>> / 3<br>
Energy: <<print $energy>> / 20
<br><br>
<<if _woodCount >= 4 and _scrapCount >= 3 and $energy >= 20>>
[[Build Workbench|Build Workbench]]
<<else>>
<span class="locked-option">Build Workbench</span>
<span class="locked-note">Requires Wood x4, Scrap Metal x3, and 20 Energy.</span>
<</if>>
<</if>>
<</if>>
<br><br>
[[Back to the Backyard|Backyard]]
<</nobr>><<nobr>>
<<if not $mowed_backyard>>
<img class="location-img" src="media/locations/base/backyard_overgrown.jpg">
<br><br>
The backyard is heavily overgrown. Tall grass and weeds have completely taken over. A sturdy wooden shed stands at the far end of the property. You notice an old lawnmower sitting nearby.
<<else>>
<img class="location-img" src="media/locations/base/backyard_mowed.jpg">
<br><br>
The backyard has been mowed. The grass is short and neat now. The shed stands at the far end of the property.
<</if>>
<<miaPresence "Backyard" "Mia stands near the wall, listening to the sounds beyond the compound." "Talk Mia Backyard">>
<<taraPresence "Backyard" "Tara walks along the inside of the compound wall, checking sightlines and possible entry points.">>
<br><br>
<<if not $mowed_backyard and $fuel >= 1>>
[[Mow the lawn|Mow Lawn]]
<br><br>
<</if>>
<<if $mowed_backyard>>
<<if $lastStrengthTrainingDay is $day>>
<span class="locked-option">Train Strength — completed today</span>
<<elseif $energy < 20>>
<span class="locked-option">Train Strength — too tired</span>
<<else>>
[[Train Strength]]
<</if>>
<br>
<<if $lastEnduranceTrainingDay is $day>>
<span class="locked-option">Train Endurance — completed today</span>
<<elseif $energy < 20>>
<span class="locked-option">Train Endurance — too tired</span>
<<else>>
[[Train Endurance]]
<</if>>
<br>
<span class="locked-note">Each session costs 20 Energy and takes 1 hour. You can train each attribute once per day.</span>
<br><br>
<</if>>
[[Go to the Shed|Backyard Shed]]
<br>
[[Back to the Entryway|Entryway]]
<</nobr>><<nobr>>
<<set $searched_living_room to true>>
<<set $foundKnife to 1>>
<<addToInventory "Knife" "media/icons/knife.jpg">>
<div>You search the living room...</div>
<div style="margin-top: 10px;">You found:</div>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/knife.jpg">
<div><strong>Knife</strong></div>
</div>
</div>
<div style="margin-top: 10px;">You put the Knife in your inventory.</div>
<<set $foundKnife to 0>>
<br>
[[Back|Living Room]]
<</nobr>><<nobr>>
<<set $searched_kitchen to true>>
You search the kitchen...
<<set $foundFood to random(1, 3)>>
<<set $foundWater to 2>>
<<set $food += $foundFood>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" $foundWater>>
You found:
<div class="loot-grid">
<<if $foundFood gt 0>>
<div class="loot-item">
<img src="media/icons/canfood.jpg">
<div><strong>+<<print $foundFood>> Food</strong></div>
</div>
<</if>>
<<if $foundWater gt 0>>
<div class="loot-item">
<img src="media/icons/water_bottle.jpg">
<div><strong>+<<print $foundWater>> Water Bottles</strong></div>
</div>
<</if>>
</div>
<<if $foundFood gt 0>>
+<<print $foundFood>> Food added to your resources.<br>
<</if>>
<<if $foundWater gt 0>>
You put the Water Bottles in your inventory.
<</if>>
<<set $foundFood to 0>>
<<set $foundWater to 0>>
<br>
[[Back|Kitchen]]
<</nobr>><<nobr>>
<<silently>>
<<set $searched_shed to true>>
<<set $foundMaterials to random(2, 5)>>
<<set $foundBat to 1>>
<<addToInventory "Wood" "media/icons/wood.jpg" $foundMaterials>>
<<addToInventory "Baseball Bat" "media/icons/baseball_bat.jpg">>
<</silently>>
You search the shed...
<br><br>
You found:
<div class="loot-grid">
<<if $foundMaterials gt 0>>
<div class="loot-item">
<img src="media/icons/wood.jpg">
<div><strong>+<<print $foundMaterials>> Wood</strong></div>
</div>
<</if>>
<<if $foundBat gt 0>>
<div class="loot-item">
<img src="media/icons/baseball_bat.jpg">
<div><strong>Baseball Bat</strong></div>
</div>
<</if>>
</div>
<<if $foundMaterials gt 0>>
+<<print $foundMaterials>> Wood added to your inventory.<br>
<</if>>
<<if $foundBat gt 0>>
You put the Baseball Bat in your inventory.
<</if>>
<<silently>>
<<set $foundMaterials to 0>>
<<set $foundBat to 0>>
<</silently>>
<br><br>
[[Back|Backyard Shed]]
<</nobr>><<nobr>>
<<set $searched_bedroom to true>>
You search the bedroom...
<<set $foundPistol to 1>>
<<addToInventory "Pistol" "media/icons/pistol.jpg">>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/pistol.jpg">
<div><strong>Pistol</strong></div>
</div>
</div>
You put the Pistol in your inventory.
<<set $foundPistol to 0>>
<br>
[[Back|Master Bedroom]]
<</nobr>><<nobr>>
<<silently>>
<<if $gateCondition is undefined>>
<<set $gateCondition to 100>>
<</if>>
<<if $compoundSecurity is undefined>>
<<set $compoundSecurity to 50>>
<</if>>
<<set _gateBefore to $gateCondition>>
<<set _gateWear to ($frontGateReinforced ? 2 : 5)>>
<<set $gateCondition to Math.max(0, $gateCondition - _gateWear)>>
<<set _gateLost to _gateBefore - $gateCondition>>
<</silently>>
<<if $gateCondition <= 0>>
<<silently>>
<<set $compoundOverrun to true>>
<<set $health to 0>>
<<set $population to 0>>
<<if $miaStayed>>
<<set $miaDead to true>>
<</if>>
<<if $taraStayed>>
<<set $taraDead to true>>
<</if>>
<</silently>>
<<goto "GameOver">>
<<else>>
You go to sleep for the night.
<<silently>>
<<set _foodBefore to setup.totalFood()>>
<<set _fuelBefore to $fuel>>
<<set _electricityBefore to $electricity>>
<<set _healthBefore to $health>>
<<set _energyBefore to $energy>>
<<set _hungerBefore to $hunger>>
<<set _thirstBefore to $thirst>>
<<set _securityNightText to "">>
<<set _securityEnergyPenalty to 0>>
<<set _securityHealthPenalty to 0>>
<<set _securityRoll to random(1,100)>>
<<if $compoundSecurity >= 80>>
<<set _securityNightText to "The compound is secure tonight. The reinforced weak points hold firm, and nothing breaches the walls before morning.">>
<<elseif $compoundSecurity >= 50>>
<<if _securityRoll <= 50>>
<<set _securityNightText to "Sometime during the night, you hear movement beyond the compound walls. It lingers for a while, then fades into the distance. The compound holds.">>
<<else>>
<<set _securityNightText to "The night is uneasy, but nothing reaches the compound. The walls hold until morning.">>
<</if>>
<<elseif $compoundSecurity >= 25>>
<<set _securityEnergyPenalty to 10>>
<<if _securityRoll <= 50>>
<<set _securityNightText to "Something hits the outer gate during the night. The sound wakes you immediately. You lie still, listening, until the noise finally stops. You get some sleep, but not enough.">>
<<else>>
<<set _securityNightText to "Scraping sounds move along the compound wall during the night. Nothing gets inside, but you wake up more than once, tense and exhausted.">>
<</if>>
<<else>>
<<set _securityEnergyPenalty to 20>>
<<set _securityHealthPenalty to 5>>
<<if _securityRoll <= 50>>
<<set _securityNightText to "The compound does not feel safe tonight. Every sound feels close. Something pounds against the gate in the dark, and you barely sleep before morning.">>
<<else>>
<<set _securityNightText to "You spend most of the night half-awake, listening to movement outside the walls. By morning, your body aches from the tension.">>
<</if>>
<</if>>
<<set _dreamRoll to random(1,100)>>
<</silently>>
<div class="night-event-box">
<h3>During the Night</h3>
<<if _dreamRoll <= 60>>
<img class="scene-img" src="media/Events/Dreams/dream3.gif" alt="Stars above the sleeping compound">
<<if _securityEnergyPenalty > 0>>
Whenever sleep finally takes you, there are no nightmares waiting.
<br><br>
Between the disturbances, you find brief stretches of peaceful darkness.
<<else>>
Sleep comes gently. For a while, the walls, the empty streets, and everything beyond them slip from your thoughts.
<br><br>
No faces follow you into the darkness. No voices call you back.
<br><br>
Just sleep.
<</if>>
<<elseif _dreamRoll <= 80>>
You dream that something is tapping against your bedroom window.
<br><br>
At first, you pretend not to hear it. Then the tapping becomes scratching.
<img class="scene-img" src="media/Events/Dreams/dream1.gif" alt="Hands clawing at a window in a nightmare">
Pale hands press against the glass. Fingers claw at the frame, searching for a way inside.
<br><br>
You try to move, but your body refuses to listen.
<br><br>
A crack spreads across the window.
<br><br>
You wake with a sharp breath. The room is still. Nothing touches the glass.
<br><br>
Only then do you remember that your bedroom is on the second floor.
<<else>>
In your dream, you are standing in the middle of an unfamiliar street.
<br><br>
The houses are dark. Every door is closed.
<br><br>
Then you hear the footsteps.
<img class="scene-img" src="media/Events/Dreams/dream2.gif" alt="Zombies approaching in a nightmare">
They emerge from between the abandoned cars. Their heads turn toward you.
<br><br>
You try to run, but your legs feel heavy.
<br><br>
More of them appear ahead.
<br><br>
You reach for your weapon, but your hand closes around nothing.
<br><br>
You wake with a sharp breath, your fingers gripping the bedsheets.
<br><br>
The bedroom slowly comes into focus. You are home.
<</if>>
<br><br>
<<print _securityNightText>>
</div>
<<silently>>
<<if $hour >= 8>>
<<set $day += 1>>
<</if>>
<<set $hour to 8>>
<<set $minute to 0>>
<<set $studiedToday to false>>
<<set $took_shower_today to false>>
<!-- The compound eats stored food first, then inventory cans. -->
<<if $population > 0>>
<<run setup.consumeFood($population)>>
<</if>>
<!-- Overnight electricity and fuel. -->
<<if $solarRepaired>>
<<set $electricity to Math.min(100, $electricity + 10)>>
<<elseif $generatorInspected and $generatorCondition >= 40 and $fuel > 0>>
<<set $fuel -= 1>>
<<if $generatorCondition >= 100>>
<<set $electricity to Math.min(100, $electricity + 5)>>
<<elseif $generatorCondition >= 80>>
<<set $electricity to Math.min(100, $electricity + 4)>>
<<elseif $generatorCondition >= 60>>
<<set $electricity to Math.min(100, $electricity + 3)>>
<<else>>
<<set $electricity to Math.min(100, $electricity + 2)>>
<</if>>
<<else>>
<<set $electricity to Math.max(0, $electricity - 10)>>
<</if>>
<!-- Only stored food can spoil. -->
<<set _foodSpoiled to 0>>
<<if $electricity <= 0 and $food > 0>>
<<set $food -= 1>>
<<set _foodSpoiled to 1>>
<</if>>
<<set $hunger to Math.max(0, $hunger - 20)>>
<<set $thirst to Math.max(0, $thirst - 25)>>
<<set _energyGain to 100>>
<<set _healthGain to 10>>
<<set _healthPenalty to 0>>
<<if $hunger <= 0>>
<<set _energyGain -= 25>>
<<set _healthGain to 0>>
<<set _healthPenalty += 10>>
<<elseif $hunger <= 25>>
<<set _energyGain -= 15>>
<<set _healthGain -= 5>>
<</if>>
<<if $thirst <= 0>>
<<set _energyGain -= 30>>
<<set _healthGain to 0>>
<<set _healthPenalty += 20>>
<<elseif $thirst <= 25>>
<<set _energyGain -= 20>>
<<set _healthGain -= 5>>
<</if>>
<<set _energyGain to Math.max(0, _energyGain)>>
<<set _healthGain to Math.max(0, _healthGain)>>
<<set $energy to Math.min(100, $energy + _energyGain)>>
<<set $health to Math.min(100, $health + _healthGain)>>
<<if _healthPenalty > 0>>
<<set $health to Math.max(0, $health - _healthPenalty)>>
<</if>>
<<if _securityEnergyPenalty > 0>>
<<set $energy to Math.max(0, $energy - _securityEnergyPenalty)>>
<</if>>
<<if _securityHealthPenalty > 0>>
<<set $health to Math.max(0, $health - _securityHealthPenalty)>>
<</if>>
<</silently>>
<<if $health <= 0>>
<<goto "GameOver">>
<<else>>
<<silently>>
<<set _foodSpent to _foodBefore - setup.totalFood()>>
<<set _fuelSpent to _fuelBefore - $fuel>>
<<set _electricityChange to $electricity - _electricityBefore>>
<<set _healthRecovered to $health - _healthBefore>>
<<set _energyRecovered to $energy - _energyBefore>>
<<set _hungerChange to $hunger - _hungerBefore>>
<<set _thirstChange to $thirst - _thirstBefore>>
<</silently>>
<img class="scene-img" src="media/Events/wake_up.gif" alt="Waking up in the morning">
<div class="morning-report-box">
<h3>Morning Report</h3>
You wake up at 8:00 AM.
<div class="morning-report-list">
<<if $day is 2>>
<p class="new-day-message">
The house is quiet in the morning light. You have searched enough to know what you have and what you are missing.
<br><br>
Today, it might be a good idea to explore what's outside.
</p>
<</if>>
<<if $hunger <= 0>>
<p class="warning-text">
You are starving. Your health suffered during the night.
</p>
<<elseif $hunger <= 25>>
<p class="warning-text">
You are very hungry. Your sleep was less effective.
</p>
<</if>>
<<if $thirst <= 0>>
<p class="warning-text">
You are dehydrated. Your health suffered badly during the night.
</p>
<<elseif $thirst <= 25>>
<p class="warning-text">
You are very thirsty. Your sleep was restless and ineffective.
</p>
<</if>>
<<if _securityEnergyPenalty > 0>>
<p class="warning-text">
The compound did not feel safe during the night. Your sleep was affected.
</p>
<</if>>
<div class="morning-report-row">
<span class="morning-report-icon">🛡️</span>
<span>Compound Security:</span>
<strong><<print $compoundSecurity>> / 100</strong>
</div>
<div class="morning-report-row">
<span class="morning-report-icon">🚧</span>
<span>Front Gate Condition:</span>
<strong><<print $gateCondition>> / 100 (−<<print _gateLost>>)</strong>
</div>
<<if $gateCondition <= _gateWear>>
<p class="warning-text">
The gate won’t survive another night. Open Compound Management and repair it before you sleep.
</p>
<<elseif $gateCondition <= 25>>
<p class="warning-text">
The front gate is badly damaged. You can repair it from Compound Management.
</p>
<</if>>
<<if _securityEnergyPenalty > 0>>
<div class="morning-report-row">
<span class="morning-report-icon">🔋</span>
<span>Restless night penalty:</span>
<strong>-<<print _securityEnergyPenalty>> Energy</strong>
</div>
<</if>>
<<if _securityHealthPenalty > 0>>
<div class="morning-report-row">
<span class="morning-report-icon">❤️</span>
<span>Exhaustion penalty:</span>
<strong>-<<print _securityHealthPenalty>> Health</strong>
</div>
<</if>>
<div class="morning-report-row">
<span class="morning-report-icon">🍞</span>
<span>Food spent:</span>
<strong><<print _foodSpent>></strong>
</div>
<div class="morning-report-row">
<span class="morning-report-icon">🍗</span>
<span>Hunger changed:</span>
<strong><<print _hungerChange>></strong>
</div>
<div class="morning-report-row">
<span class="morning-report-icon">💧</span>
<span>Thirst changed:</span>
<strong><<print _thirstChange>></strong>
</div>
<div class="morning-report-row">
<span class="morning-report-icon">🛢️</span>
<span>Fuel spent:</span>
<strong><<print _fuelSpent>></strong>
</div>
<<if _electricityChange > 0>>
<div class="morning-report-row">
<span class="morning-report-icon">⚡</span>
<span>Electricity gained:</span>
<strong>+<<print _electricityChange>></strong>
</div>
<<elseif _electricityChange < 0>>
<div class="morning-report-row">
<span class="morning-report-icon">⚡</span>
<span>Electricity lost:</span>
<strong><<print _electricityChange>></strong>
</div>
<<else>>
<div class="morning-report-row">
<span class="morning-report-icon">⚡</span>
<span>Electricity:</span>
<strong>unchanged</strong>
</div>
<</if>>
<<if _energyRecovered > 0>>
<div class="morning-report-row">
<span class="morning-report-icon">🔋</span>
<span>Energy recovered:</span>
<strong>+<<print _energyRecovered>></strong>
</div>
<<elseif _energyRecovered < 0>>
<div class="morning-report-row">
<span class="morning-report-icon">🔋</span>
<span>Energy lost:</span>
<strong><<print _energyRecovered>></strong>
</div>
<<else>>
<div class="morning-report-row">
<span class="morning-report-icon">🔋</span>
<span>Energy:</span>
<strong>not recovered</strong>
</div>
<</if>>
<<if _healthRecovered > 0>>
<div class="morning-report-row">
<span class="morning-report-icon">❤️</span>
<span>Health recovered:</span>
<strong>+<<print _healthRecovered>></strong>
</div>
<<elseif _healthRecovered < 0>>
<div class="morning-report-row">
<span class="morning-report-icon">❤️</span>
<span>Health lost:</span>
<strong><<print _healthRecovered>></strong>
</div>
<<else>>
<div class="morning-report-row">
<span class="morning-report-icon">❤️</span>
<span>Health:</span>
<strong>not recovered</strong>
</div>
<</if>>
</div>
<<if _foodSpoiled > 0>>
<p class="warning-text">
With no electricity, some stored food spoiled during the night.
</p>
<</if>>
<<if setup.totalFood() <= 0>>
<p class="warning-text">
You have no food remaining in storage or in your inventory.
</p>
<</if>>
<<if $fuel <= 0>>
<p class="warning-text">
You are out of fuel.
</p>
<</if>>
</div>
[[Wake up|Wake Up]]
<</if>>
<</if>>
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/bathroom.jpg">
<<if not $searched_bathroom>>
A spacious modern bathroom. There's a large bathtub and a separate shower. The mirror is cracked but still usable.
<br><br>
[[Search the bathroom|Bathroom Search]]
<<else>>
The spacious bathroom is now quiet and undisturbed. There's a large bathtub and a separate shower. The mirror is cracked but still usable.
You have already taken anything useful.
<</if>>
<br><br>
<<if not $took_shower_today>>
[[Take a shower|Take Shower]]
<<else>>
You have already taken a shower today.
<</if>>
<br><br>
[[Back to the Entryway|Entryway]]
<</nobr>>
<<nobr>>
<<if $searched_bathroom>>
You have already searched this bathroom.
<<else>>
<<set $searched_bathroom to true>>
<<addToInventory "Medkit" "media/icons/medicalkit.jpg">>
You search the bathroom cabinets.
Behind several empty bottles and expired toiletries, you find an unopened Medkit.
<br><br>
You found:
<div class="loot-grid"><div class="loot-item"><img src="media/icons/medicalkit.jpg"><div><strong>+1 Medkit</strong></div></div></div>
<</if>>
<br><br>
[[Back to the Bathroom|Bathroom]]
<</nobr>><<nobr>>
You take a long, hot shower. It feels incredibly refreshing after everything that's happening.
<img src="media/actions/shower.gif">
<<set $took_shower_today to true>>
<<advanceMinutes 10>>
<<set $energy = Math.min(100, $energy + 30)>>
You feel much more energetic afterward.
<br><br>
[[Back to the Bathroom|Bathroom]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/2ndfloor_hallway.jpg">
You step onto the second floor. The air feels noticeably different up here — quieter, heavier, and more private than the ground floor below.
<br><br>
A long hallway stretches ahead, lined with several closed doors on both sides. The thick carpet beneath your feet is coated in a fine layer of dust, muffling your footsteps. At the far end of the corridor, a large window lets in light, casting long shadows across the faded wallpaper and expensive-looking furniture.
<br><br>
<div class="room-link-list">
<div class="room-link-row">
[[Master Bedroom]]
<<miaMarker "Master Bedroom">>
<<taraMarker "Master Bedroom">>
</div>
<div class="room-link-row">
[[Guest Bedroom 1|Guest Bedroom1]]
<<miaMarker "Guest Bedroom1">>
<<taraMarker "Guest Bedroom1">>
</div>
<div class="room-link-row">
[[Guest Bedroom 2|Guest Bedroom2]]
<<miaMarker "Guest Bedroom2">>
<<taraMarker "Guest Bedroom2">>
</div>
<div class="room-link-row">
[[Guest Bedroom 3|Guest Bedroom3]]
</div>
<div class="room-link-row">
[[Small Office]]
<<miaMarker "Small Office">>
<<taraMarker "Small Office">>
</div>
<div class="room-link-row">
[[Second Floor Bathroom]]
<<miaMarker "Second Floor Bathroom">>
<<taraMarker "Second Floor Bathroom">>
</div>
</div>
<br><br>
Near the middle of the hallway, a sturdy metal ladder is bolted to the wall, leading up to a hatch in the ceiling.
<br><br>
[[Climb to the Roof|Roof]]
<br><br>
A staircase behind you leads back down to the entryway.
<br><br>
<div class="room-link-list">
<div class="room-link-row">
[[Go Downstairs|Entryway]]
<<miaMarker "miaFirstFloorMarker">>
<<taraFirstFloorMarker>>
</div>
</div>
<</nobr>><<nobr>>
<<if $showSurvivalSidebar>>
<div class="sidebar-panel">
<p class="sidebar-time">
<span class="sidebar-day-label">DAY</span><br>
<span class="sidebar-day-number"><<print $day>></span><br>
<span class="sidebar-hour">
<<print $hour>>:<<= String($minute).padStart(2, "0")>>
</span>
</p>
<div class="sidebar-wait">
<<checkSafeSidebarLocation>>
<<if _safeSidebarLocation and $health > 0>>
<<link "Wait 1 Hour">>
<<set _returnPassage to passage()>>
<<set $hour += 1>>
<<if $hour >= 24>>
<<set $hour -= 24>>
<<set $day += 1>>
<</if>>
<<if $hour >= 2 and $hour < 8>>
<<goto "Sleep">>
<<else>>
<<goto _returnPassage>>
<</if>>
<</link>>
<</if>>
<<if $hour >= 22 or $hour < 2>>
<p class="sidebar-tired">
You're feeling very tired...
</p>
<</if>>
</div>
<p class="sidebar-section-title sidebar-title-stats">STATS</p>
<div class="sidebar-row">
<span class="sidebar-icon">⚡</span>
<span class="sidebar-label">Energy:</span>
<span class="sidebar-value"><<print $energy>></span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">❤️</span>
<span class="sidebar-label">Health:</span>
<span class="sidebar-value"><<print $health>></span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">💧</span>
<span class="sidebar-label">Hydration:</span>
<span class="sidebar-value"><<print $thirst>> / 100</span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">🍴</span>
<span class="sidebar-label">Fullness:</span>
<span class="sidebar-value"><<print $hunger>> / 100</span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">☠️</span>
<span class="sidebar-label">Infection:</span>
<span class="sidebar-value"><<print $infection>>%</span>
</div>
<<if $bleeding>>
<div class="sidebar-row">
<span class="sidebar-icon">🩸</span>
<span class="sidebar-label">Bleeding:</span>
<span class="sidebar-value" style="color:#ff4444;">YES</span>
</div>
<</if>>
<hr class="sidebar-divider">
<p class="sidebar-section-title sidebar-title-attributes">
ATTRIBUTES
</p>
<div class="sidebar-row">
<span class="sidebar-icon">💪</span>
<span class="sidebar-label">Strength:</span>
<span class="sidebar-value"><<print $strength>></span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">🏃</span>
<span class="sidebar-label">Endurance:</span>
<span class="sidebar-value"><<print $endurance>></span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">🧠</span>
<span class="sidebar-label">Intelligence:</span>
<span class="sidebar-value"><<print $intelligence>></span>
</div>
<hr class="sidebar-divider">
<p class="sidebar-section-title sidebar-title-equipment">
EQUIPMENT
</p>
<div class="sidebar-row">
<span class="sidebar-icon">🗡️</span>
<span class="sidebar-label">Weapon:</span>
<span class="sidebar-value"><<print $equippedWeapon>></span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">⚔️</span>
<span class="sidebar-label">Damage:</span>
<span class="sidebar-value">+<<print $weaponDamage>></span>
</div>
<hr class="sidebar-divider">
<p class="sidebar-section-title sidebar-title-resources">
RESOURCES
</p>
<div class="sidebar-row">
<span class="sidebar-icon">🍞</span>
<span class="sidebar-label">Food:</span>
<span class="sidebar-value"><<print setup.totalFood()>></span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">🧱</span>
<span class="sidebar-label">Materials:</span>
<span class="sidebar-value"><<print $materials>></span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">🛢️</span>
<span class="sidebar-label">Fuel:</span>
<span class="sidebar-value"><<print $fuel>></span>
</div>
<div class="sidebar-row">
<span class="sidebar-icon">⚡</span>
<span class="sidebar-label">Electricity:</span>
<span class="sidebar-value"><<print $electricity>></span>
</div>
</div>
<</if>>
<</nobr>><<link "Wait 1 Hour">>
<<set $hour += 1>>
<<if $hour >= 24>>
<<set $hour -= 24>>
<<set $day += 1>>
<</if>>
<<goto State.passage>>
<</link>><<nobr>>
<<if setup.totalFood() <= 0>>
There is no food available.
<<elseif $hunger >= 100>>
You are already full.
<<else>>
<<silently>>
<<set _usedStoredFood to $food > 0>>
<<set _fullnessRestored to Math.min(40, 100 - $hunger)>>
<<run setup.consumeFood(1)>>
<<set $hunger += _fullnessRestored>>
<</silently>>
<<if _usedStoredFood>>
You prepare a meal using food from the kitchen storage.
<<else>>
You open a can from your supplies and sit down in the kitchen to eat.
<</if>>
<br><br>
<span class="stat-change-negative">Food -1</span><br>
<span class="stat-change">
Fullness +<<print _fullnessRestored>>
</span>
<</if>>
<br><br>
[[Back to the Kitchen|Kitchen]]
<</nobr>><<widget "addToInventory">><<silently>>
<<set _name to _args[0]>>
<<set _icon to _args[1]>>
<<set _amount to _args[2] || 1>>
<<set _found to false>>
<<for _item range $inventory>>
<<if _item.name is _name>>
<<set _item.quantity = (_item.quantity || 1) + _amount>>
<<set _found to true>>
<<break>>
<</if>>
<</for>>
<<if not _found>>
<<run $inventory.push({
name: _name,
icon: _icon,
quantity: _amount
})>>
<</if>>
<</silently>><</widget>>
<<widget "removeFromInventory">><<silently>>
<<set _removeName to _args[0]>>
<<set _removeAmount to _args[1] || 1>>
<<for _i = 0; _i < $inventory.length; _i++>>
<<if $inventory[_i].name is _removeName>>
<<set $inventory[_i].quantity -= _removeAmount>>
<<if $inventory[_i].quantity <= 0>>
<<run $inventory.splice(_i, 1)>>
<</if>>
<<break>>
<</if>>
<</for>>
<</silently>><</widget>>
<<widget "advanceMinutes">><<silently>>
<<set $minute += $args[0]>>
<<if $minute >= 60>>
<<set _extraHours to Math.floor($minute / 60)>>
<<set $minute = $minute % 60>>
<<set $hour += _extraHours>>
<</if>>
<<if $hour >= 24>>
<<set _extraDays to Math.floor($hour / 24)>>
<<set $hour = $hour % 24>>
<<set $day += _extraDays>>
<</if>>
<</silently>><</widget>><<nobr>>
<<set _item to $inventory[$itemIndex]>>
<<set _consumeItem to false>>
<<if not _item>>
Something went wrong. No item was selected.
<<elseif _item.name is "Medkit">>
<<if $health >= 100>>
Your Health is already full.
<<else>>
<<set $health = Math.min(100, $health + 50)>>
<<set _consumeItem to true>>
You used the Medkit and restored up to 50 Health.
<</if>>
<<elseif _item.name is "Water Bottle">>
<<if $thirst >= 100>>
Your Hydration is already full.
<<else>>
<<set $thirst = Math.min(100, $thirst + 50)>>
<<set _consumeItem to true>>
You drank the Water Bottle and restored up to 50 Hydration.
<</if>>
<<elseif _item.name is "Canned Food">>
You need to go to the kitchen to eat food.
<<elseif _item.name is "Energy Bar">>
<<if $energy >= 100>>
Your Energy is already full.
<<else>>
<<set $energy = Math.min(100, $energy + 50)>>
<<set _consumeItem to true>>
You ate the Energy Bar and restored up to 50 Energy.
<</if>>
<<elseif _item.name is "Bandage">>
<<if $bleeding>>
<<set $bleeding to false>>
<<set _consumeItem to true>>
You wrap the wound tightly and stop the bleeding.
<<else>>
You are not bleeding, so you do not use the Bandage.
<</if>>
<<else>>
You can't use that item right now.
<</if>>
<<if _consumeItem>>
<<set _item.quantity = (_item.quantity || 1) - 1>>
<<if _item.quantity <= 0>>
<<run $inventory.splice($itemIndex, 1)>>
<</if>>
<<run UI.update()>>
<</if>>
<br><br>
<<link "Back to Inventory">>
<<showInventoryPanel "Inventory">>
<</link>>
<</nobr>><<nobr>>
<<silently>>
<<if $playerName is "">>
<<set $playerName to "Survivor">>
<</if>>
<<set _backgroundImage to "">>
<<set _backgroundDescription to "">>
<<if $playerBackground is "Construction Worker">>
<<set _backgroundImage to "media/characters/player/construction_worker.jpg">>
<<set _backgroundDescription to "Your days started early, hauling materials and working through the noise of a construction site. You helped build things that were meant to last. Now the streets are quiet, but your hands still know how to work—and your strength might keep you alive.">>
<<elseif $playerBackground is "Courier">>
<<set _backgroundImage to "media/characters/player/courier.webp">>
<<set _backgroundDescription to "Your days were measured in deliveries, steep staircases, and miles of city streets. Rain or heat, you kept moving. There are no deliveries left to make, but knowing how to push through exhaustion could mean the difference between escaping and being caught.">>
<<elseif $playerBackground is "IT Technician">>
<<set _backgroundImage to "media/characters/player/it_technician.webp">>
<<set _backgroundDescription to "You spent your days tracing faults, repairing equipment, and solving problems other people had given up on. The calls for help have stopped. Your patience and technical knowledge remain, and there is plenty in this broken world that needs fixing.">>
<</if>>
<</silently>>
<div class="background-summary">
<h2>Welcome, <<print $playerName>>.</h2>
<div class="background-summary-card">
<<if _backgroundImage>>
<img class="background-summary-image"
@src="_backgroundImage"
@alt="$playerBackground">
<</if>>
<div class="background-summary-text">
<span class="background-summary-label">Before the outbreak</span>
<h3><<print $playerBackground>></h3>
<p><<print _backgroundDescription>></p>
<p class="background-summary-closing">
That was your life before. Now you need to survive.
</p>
</div>
</div>
<h3>Starting Attributes</h3>
<div class="background-summary-stats">
<div>
<span>Strength</span>
<strong><<print $strength>></strong>
</div>
<div>
<span>Endurance</span>
<strong><<print $endurance>></strong>
</div>
<div>
<span>Intelligence</span>
<strong><<print $intelligence>></strong>
</div>
</div>
<div class="background-summary-continue">
<<link "Continue">>
<<goto "NewsIntro">>
<</link>>
</div>
</div>
<</nobr>><<nobr>>
<div class="background-creation">
<h2>But before everything fell apart...</h2>
<div class="background-name">
<label for="textbox-playername">What is your name?</label>
<br><br>
<<textbox "$playerName" "" autofocus>>
</div>
<h3>What did you do before the outbreak?</h3>
<div class="background-grid">
<div class="background-card">
<img src="media/characters/player/construction_worker.jpg"
alt="Construction worker">
<div class="background-card-content">
<h4>Construction Worker</h4>
<p>Long days carrying heavy materials and working with your hands made you strong. When the world fell apart, that strength stayed with you.</p>
<div class="background-bonus">Strength +3</div>
<<link "Choose Construction Worker">>
<<set $strength += 3>>
<<set $playerBackground to "Construction Worker">>
<<goto "BackgroundChosen">>
<</link>>
</div>
</div>
<div class="background-card">
<img src="media/characters/player/courier.webp"
alt="Courier">
<div class="background-card-content">
<h4>Courier</h4>
<p>You spent your days cycling across the city, climbing stairs, and making deliveries in every kind of weather. You learned to keep moving even when exhausted.</p>
<div class="background-bonus">Endurance +3</div>
<<link "Choose Courier">>
<<set $endurance += 3>>
<<set $playerBackground to "Courier">>
<<goto "BackgroundChosen">>
<</link>>
</div>
</div>
<div class="background-card">
<img src="media/characters/player/it_technician.webp"
alt="IT technician">
<div class="background-card-content">
<h4>IT Technician</h4>
<p>Troubleshooting faulty equipment was your everyday work. You learned to stay patient, think carefully, and find solutions with whatever you had available.</p>
<div class="background-bonus">Intelligence +3</div>
<<link "Choose IT Technician">>
<<set $intelligence += 3>>
<<set $playerBackground to "IT Technician">>
<<goto "BackgroundChosen">>
<</link>>
</div>
</div>
</div>
</div>
<</nobr>><<nobr>>
<img src="media/actions/mowlawn.gif">
You spend some time mowing the overgrown lawn. It takes a while, but the backyard finally looks much better.
<<set $mowed_backyard to true>>
<<set $fuel -= 1>>
The lawn is now mowed.
<br>
[[Back|Backyard]]
<</nobr>><<nobr>>
<<if $lastStrengthTrainingDay is $day>>
You have already trained Strength today. Your body needs time to recover.
<<elseif $energy < 20>>
You're too exhausted to train.
<<else>>
<<set $lastStrengthTrainingDay to $day>>
<<set $strength += 1>>
<<set $energy -= 20>>
<<advanceMinutes 60>>
<img src="media/actions/train_strength.gif">
You spend an hour on strength training in the backyard.
<br><br>
Your muscles ache by the time you finish, but the effort is paying off.
<br><br>
<span class="stat-change">Strength +1</span><br>
<span class="stat-change-negative">Energy -20</span><br>
<span class="stat-change">Time +1 hour</span>
<</if>>
<br><br>
[[Back|Backyard]]
<</nobr>><<nobr>>
<<if $lastEnduranceTrainingDay is $day>>
You have already trained Endurance today. Your body needs time to recover.
<<elseif $energy < 20>>
You're too exhausted to train.
<<else>>
<<set $lastEnduranceTrainingDay to $day>>
<<set $endurance += 1>>
<<set $energy -= 20>>
<<advanceMinutes 60>>
<img src="media/actions/train_endurance.gif">
You spend an hour on endurance training in the backyard.
<br><br>
You push through the fatigue, keeping yourself moving until the session is complete.
<br><br>
<span class="stat-change">Endurance +1</span><br>
<span class="stat-change-negative">Energy -20</span><br>
<span class="stat-change">Time +1 hour</span>
<</if>>
<br><br>
[[Back|Backyard]]
<</nobr>><<nobr>>
<<if $day < 2>>
You step toward the front door, but stop before opening it.
<br><br>
The street outside is silent, but not empty. You are tired, hungry, and still unsure what this house can offer.
<br><br>
Going outside now would be a mistake.
<br><br>
[[Return to the Entryway|Entryway]]
<<else>>
<div class="outside-map">
<p>
You step beyond the safety of the compound walls.<br>
The streets are silent, but danger could be hiding anywhere.
</p>
<div class="outside-grid">
<div class="outside-card">
<img src="media/locations/outside/explore.jpg">
[[Explore|Explore Outside]]
</div>
<<if $foundNeighborhood>>
<div class="outside-card">
<img src="media/locations/outside/neighborhood.jpg">
[[Nearby Neighborhood|Nearby Neighborhood]]
</div>
<</if>>
<<if $foundLake>>
<div class="outside-card">
<img src="media/locations/outside/lake.jpg">
[[Lake|Lake]]
</div>
<</if>>
<<if $foundForest>>
<div class="outside-card">
<img src="media/locations/outside/forest.jpg">
[[Forest|Forest]]
</div>
<</if>>
<div class="outside-card">
<img src="media/locations/outside/compound.jpg">
[[Return to Compound|Entryway]]
</div>
</div>
</div>
<</if>>
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/outside/neighborhood.jpg">
<br><br>
The nearby neighborhood begins roughly two hundred meters from the compound.
<br><br>
Small houses line both sides of the cracked street. Some have broken windows. Others look almost untouched, their curtains still drawn as if the people inside simply stepped away for a moment.
<br><br>
Fences sag. Gardens have turned wild. Cars sit abandoned in driveways and along the curb.
<br><br>
This place could still hold supplies.
<br><br>
It could also hold trouble.
<br><br>
<<if $day >= 10 and $raidersDiscovered and not $raiderThreatEnded>>
<span class="warning-text">
Something feels different here now.
</span>
<br><br>
Some of the doors that were closed before are open. Fresh boot prints mark the dust near the road, and one wooden fence has a symbol scratched into it.
<br><br>
<<if $taraStayed and not $taraDead>>
Tara notices it before you say anything.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Raiders mark places they plan to come back to."
</div>
</div>
</div>
<br>
That does not make the neighborhood feel safer.
<<else>>
You do not know exactly what the symbol means.
<br><br>
But it was made recently.
<br><br>
And that means someone else is using this neighborhood too.
<</if>>
<br><br>
<</if>>
<h3>Search the Neighborhood</h3>
[[Search the neighborhood|Neighborhood Search]]
<br><br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
<<if $energy < 20>>
You are too tired to explore.
<br><br>
[[Return Outside|Outside]]
<<elseif not $foundNeighborhood>>
<<set $energy -= 20>>
<<advanceMinutes 60>>
<<goto "Discover Nearby Neighborhood">>
<<else>>
<<set $energy -= 20>>
<<advanceMinutes 120>>
<<set _event to random(1,11)>>
<<if _event is 1>>
<img class="scene-img" src="media/locations/outside/abandoned_gas_station.jpg">
You follow an empty road lined with abandoned vehicles.
<br><br>
After walking for some time, you notice a faded gas-station sign ahead. You may have passed this place before—or perhaps it is another station left behind when the city collapsed.
<br><br>
<<link "Investigate the gas station">>
<<set $gasPumpsSearchedThisVisit to false>>
<<set $gasStoreSearchedThisVisit to false>>
<<set $gasStationLootPending to false>>
<<goto "Abandoned Gas Station">>
<</link>>
<<elseif _event is 2>>
<img class="scene-img" src="media/locations/outside/crashed_truck.jpg">
You follow a road partially blocked by abandoned vehicles.
<br><br>
Near an intersection, a delivery truck lies on its side. Its windshield is shattered, and several cardboard boxes are scattered across the road.
<br><br>
The rear cargo door appears to be partially open.
<br><br>
<<link "Investigate the crashed truck">>
<<set $truckSearchedThisVisit to false>>
<<goto "Crashed Delivery Truck">>
<</link>>
<<elseif _event is 3>>
<<set $survivorType to random(1,3)>>
You notice movement beside an abandoned car.
<br><br>
A lone survivor is searching through the vehicle. He spots you almost immediately and steps back, keeping one hand close to his weapon.
<br><br>
[[Approach the survivor|Lone Survivor]]
<<elseif _event is 4>>
<img class="scene-img" src="media/locations/outside/crashed_policecar.jpg">
You move through a street filled with abandoned cars.
<br><br>
Near the corner, a police car has crashed into a light pole. The front of the vehicle is badly damaged, and the windshield is cracked from side to side.
<br><br>
The driver-side door hangs open, but the trunk is still shut.
<br><br>
<<link "Investigate the crashed police car">>
<<set $policeCarSearchedThisVisit to false>>
<<goto "Crashed Police Car">>
<</link>>
<<elseif _event is 5>>
<img class="scene-img" src="media/locations/outside/abandoned_pharmacy.jpg">
You pass through a narrow street filled with broken storefronts.
<br><br>
Most of the shops have been stripped bare, but one faded green cross still hangs above a cracked glass door.
<br><br>
An abandoned pharmacy.
<br><br>
<<link "Investigate the pharmacy">>
<<set $pharmacySearchedThisVisit to false>>
<<set $pharmacyLootPending to false>>
<<goto "Abandoned Pharmacy">>
<</link>>
<<elseif _event is 6>>
<<if not $foundLake>>
<<set $foundLake to true>>
<img class="scene-img" src="media/locations/outside/lake_discover.jpg">
You leave the main road and follow a narrow path between two overgrown fences.
<br><br>
After several minutes, the smell of stagnant water reaches you. The path opens into a small lake surrounded by tall grass, broken benches, and trees bending over the dark surface.
<br><br>
The water does not look clean, but the area may still be useful.
<br><br>
Something catches your eye near one of the benches. A discarded fishing rod lies half-hidden in the reeds, its line still threaded through the guides.
<span class="stat-change">New location discovered: Lake</span>
<br><br>
[[Go to the Lake|Lake]]
<br>
[[Return Outside|Outside]]
<<else>>
You wander near the lake again, but find nothing new on the way.
<br><br>
[[Continue exploring|Explore Outside]]
<br>
[[Return Outside|Outside]]
<</if>>
<<elseif _event is 7>>
<<if not $foundForest>>
<<set $foundForest to true>>
<img class="scene-img" src="media/locations/outside/forest_discover.jpg">
You follow an overgrown road away from the neighborhood. The houses become fewer, the silence deeper.
<br><br>
Eventually, the broken pavement disappears beneath weeds and fallen leaves. Ahead, a small forest stretches beyond the edge of the city.
<br><br>
It looks dangerous, but it may contain wood, plants, and other useful materials.
<br><br>
<span class="stat-change">New location discovered: Forest</span>
<br><br>
[[Go to the Forest|Forest]]
<br>
[[Return Outside|Outside]]
<<else>>
You pass near the forest again, but find nothing new on the way.
<br><br>
[[Continue exploring|Explore Outside]]
<br>
[[Return Outside|Outside]]
<</if>>
<<elseif _event is 8>>
You search the surrounding streets but find nothing useful.
<br><br>
[[Continue exploring|Explore Outside]]
<br>
[[Return Outside|Outside]]
<<elseif _event is 9>>
<<if not $carTrappedSurvivorFound>>
<<set $carTrappedSurvivorFound to true>>
<img class="scene-img" src="media/events/trapped_survivor.jpg">
You hear someone shouting from somewhere down the street.
<br><br>
At first, the voice is weak, almost drowned out by the wind moving between the abandoned cars.
<br><br>
Then it comes again.
<br><br>
"Help! Please! Somebody!"
<br><br>
You follow the sound to a side street where a car has crashed sideways into a concrete barrier.
<br><br>
A man is trapped beneath it. One of his legs is pinned under the twisted frame.
<br><br>
[[Approach him|Car Trapped Survivor]]
<<else>>
You pass the same side street again, but the wrecked car sits silent now.
<br><br>
[[Continue exploring|Explore Outside]]
<br>
[[Return Outside|Outside]]
<</if>>
<<elseif _event is 10 or _event is 11>>
<<if _event is 10>>
A car door creaks as you squeeze past it. A zombie in the driver's seat pitches out onto the pavement and catches hold of your boot.
<<else>>
A zombie shuffles out from behind a stalled bus. You back up a step and hear teeth snap behind your shoulder. A second one has come around the other side.
<</if>>
<br><br>
<<capture _event>>
<<link "Face the threat" "Combat">>
<<set $enemyCount to (_event is 10 ? 1 : 2)>>
<<set $enemies to []>>
<<for _i = 0; _i < $enemyCount; _i++>>
<<run $enemies.push({
name: "Zombie",
health: 20,
maxHealth: 20,
damage: 8
})>>
<</for>>
<<set $enemyName to "Zombie">>
<<set $targetEnemyIndex to -1>>
<<set $combatWinPassage to "Outside">>
<<set $combatEscapePassage to "Outside">>
<<set $combatLosePassage to "GameOver">>
<</link>>
<</capture>>
<</if>>
<br><br>
Energy: <b>-20</b>
<br>
Time passed: <b>2 hours</b>
<</if>>
<</nobr>><<nobr>>
<<if $energy < 20>>
You're too tired to search the neighborhood right now.
<br><br>
[[Back to Neighborhood|Nearby Neighborhood]]
<<else>>
<<set $energy -= 20>>
<<advanceMinutes 60>>
<<set $searched_neighborhood to true>>
<<set _specialEvents to []>>
<<if not $neighborhoodRedDoorDone>>
<<set _specialEvents.push("redDoor")>>
<</if>>
<<if not $neighborhoodLockedGarageDone>>
<<set _specialEvents.push("lockedGarage")>>
<</if>>
<<if not $neighborhoodBathroomZombieDone>>
<<set _specialEvents.push("bathroomZombie")>>
<</if>>
<<if not $neighborhoodFamilyPantryDone>>
<<set _specialEvents.push("familyPantry")>>
<</if>>
<<if not $neighborhoodOldWorkshopDone>>
<<set _specialEvents.push("oldWorkshop")>>
<</if>>
<<if $day >= 10 and $raidersDiscovered and not $raiderThreatEnded and not $neighborhoodWatchingWindowDone>>
<<set _specialEvents.push("watchingWindow")>>
<</if>>
<<set _useSpecialEvent to false>>
<<if _specialEvents.length > 0 and random(1,100) <= 60>>
<<set _useSpecialEvent to true>>
<<set _event to _specialEvents[random(0, _specialEvents.length - 1)]>>
<<else>>
<<set _event to random(1,10)>>
<</if>>
You search the nearby neighborhood...
<br><br>
<<if _useSpecialEvent>>
<<if _event is "redDoor">>
<<set $neighborhoodRedDoorDone to true>>
<img class="scene-img" src="media/locations/neighborhood/red_door.jpg">
You follow the cracked sidewalk until one house catches your attention.
<br><br>
Its front door is painted a deep red, faded by weather but still brighter than anything else on the street.
<br><br>
The windows are intact.
<br><br>
The door is closed.
<br><br>
That almost makes it feel worse.
<br><br>
Inside, the house is strangely neat. Coats still hang by the entrance. A pair of shoes waits beside the door.
<br><br>
Whoever lived here either left in a hurry...
<br><br>
Or never made it out.
<br><br>
In the kitchen, you find a small stash hidden behind a loose cabinet panel.
<br><br>
<<set $food += 2>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" 1>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/canfood.jpg">
<div><strong>+2 Food</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/water_bottle.jpg">
<div><strong>+1 Water Bottle</strong></div>
</div>
</div>
<<elseif _event is "lockedGarage">>
<<set $neighborhoodLockedGarageDone to true>>
<img class="scene-img" src="media/locations/neighborhood/locked_garage.jpg">
You find a garage at the end of a short driveway.
<br><br>
The door is dented, but still shut. Someone tried to force it open before and failed.
<br><br>
You search around the side and find a smaller service door.
<br><br>
It takes effort, but eventually the old lock gives way.
<br><br>
Inside, the air smells of dust, oil, and rust.
<br><br>
Most of the shelves are empty, but you still find useful scraps near an old toolbox.
<br><br>
<<addToInventory "Scrap Metal" "media/icons/scrap_metal.jpg" 2>>
<<addToInventory "Wood" "media/icons/wood.jpg" 2>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/scrap_metal.jpg">
<div><strong>+2 Scrap Metal</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/wood.jpg">
<div><strong>+2 Wood</strong></div>
</div>
</div>
<<elseif _event is "bathroomZombie">>
<<set $neighborhoodBathroomZombieDone to true>>
<img class="scene-img" src="media/locations/neighborhood/bathroom_zombie.jpg">
You enter a quiet house with broken curtains and a hallway covered in dust.
<br><br>
Everything seems empty.
<br><br>
Then something bumps against a closed bathroom door.
<br><br>
Once.
<br><br>
Then again.
<br><br>
A low, wet groan follows.
<br><br>
Someone locked a zombie inside.
<br><br>
You decide not to open the door, but the medicine cabinet outside the bathroom still has a few useful supplies.
<br><br>
<<addToInventory "Bandage" "media/icons/bandage.jpg" 1>>
<<addToInventory "Cloth" "media/icons/cloth.jpg" 1>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+1 Bandage</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>+1 Cloth</strong></div>
</div>
</div>
<<elseif _event is "familyPantry">>
<<set $neighborhoodFamilyPantryDone to true>>
<img class="scene-img" src="media/locations/neighborhood/family_pantry.jpg">
One house looks almost completely stripped.
<br><br>
The kitchen cabinets are open. The drawers are empty. Even the fridge has been cleaned out.
<br><br>
But something about one shelf feels wrong.
<br><br>
You pull it aside and find a narrow pantry hidden behind it.
<br><br>
Cans. Bottles. A few sealed packages.
<br><br>
Someone hid these carefully.
<br><br>
Someone expected to come back.
<br><br>
<<set $food += 3>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" 2>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/canfood.jpg">
<div><strong>+3 Food</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/water_bottle.jpg">
<div><strong>+2 Water Bottles</strong></div>
</div>
</div>
<<elseif _event is "oldWorkshop">>
<<set $neighborhoodOldWorkshopDone to true>>
<img class="scene-img" src="media/locations/neighborhood/old_workshop.jpg">
Behind one of the houses, you find a small backyard workshop.
<br><br>
The door hangs crooked on its hinges, and the workbench inside is covered in dust.
<br><br>
Whoever owned this place knew how to fix things.
<br><br>
Most of the useful tools are gone, but not everything.
<br><br>
Under the bench, you find a small pile of parts wrapped in an old cloth.
<br><br>
<<addToInventory "Scrap Metal" "media/icons/scrap_metal.jpg" 3>>
<<addToInventory "Cloth" "media/icons/cloth.jpg" 1>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/scrap_metal.jpg">
<div><strong>+3 Scrap Metal</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>+1 Cloth</strong></div>
</div>
</div>
<<elseif _event is "watchingWindow">>
<<set $neighborhoodWatchingWindowDone to true>>
<img class="scene-img" src="media/locations/neighborhood/watching_window.jpg">
The neighborhood feels different today.
<br><br>
You notice it slowly.
<br><br>
A curtain moving where there is no wind.
<br><br>
A door left open that was closed before.
<br><br>
Fresh boot prints in the dust near the street.
<br><br>
Then you see it.
<br><br>
A symbol scratched into the wooden frame of a front door.
<br><br>
<<if $taraStayed and not $taraDead>>
Tara goes still when she sees it.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Ash Dogs mark houses after they search them."
</div>
</div>
</div>
<br>
She looks toward the upper windows.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Means they plan to come back."
</div>
</div>
</div>
<<else>>
You do not know what the symbol means.
<br><br>
But it was made recently.
<br><br>
And that means someone else is using this neighborhood too.
<</if>>
<br><br>
<span class="warning-text">Raider activity discovered in the neighborhood.</span>
<</if>>
<<else>>
<<if _event is 1>>
<<set _waterFound to random(1, 3)>>
<<set _energyBarsFound to random(1, 2)>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" _waterFound>>
<<addToInventory "Energy Bar" "media/icons/energy_bar.jpg" _energyBarsFound>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/water_bottle.jpg">
<div><strong>+<<print _waterFound>> Water Bottle(s)</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/energy_bar.jpg">
<div><strong>+<<print _energyBarsFound>> Energy Bar(s)</strong></div>
</div>
</div>
<<elseif _event is 2>>
<<set _bandagesFound to random(1, 3)>>
<<set _clothFound to random(1, 4)>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" _bandagesFound>>
<<addToInventory "Cloth" "media/icons/cloth.jpg" _clothFound>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+<<print _bandagesFound>> Bandage(s)</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>+<<print _clothFound>> Cloth</strong></div>
</div>
</div>
<<elseif _event is 3>>
<<set _scrapFound to random(2, 6)>>
<<set _clothFound to random(1, 3)>>
<<addToInventory "Scrap Metal" "media/icons/scrap_metal.jpg" _scrapFound>>
<<addToInventory "Cloth" "media/icons/cloth.jpg" _clothFound>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/scrap_metal.jpg">
<div><strong>+<<print _scrapFound>> Scrap Metal</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>+<<print _clothFound>> Cloth</strong></div>
</div>
</div>
<<elseif _event is 4>>
<<set _ammoFound to random(3, 12)>>
<<set _bandagesFound to random(1, 2)>>
<<addToInventory "9mm Ammo" "media/icons/9mm_ammo.jpg" _ammoFound>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" _bandagesFound>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/9mm_ammo.jpg">
<div><strong>+<<print _ammoFound>> 9mm Ammo</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+<<print _bandagesFound>> Bandage(s)</strong></div>
</div>
</div>
<<elseif _event is 5>>
<<set _waterFound to random(1, 2)>>
<<set _scrapFound to random(1, 4)>>
<<set _clothFound to random(1, 3)>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" _waterFound>>
<<addToInventory "Scrap Metal" "media/icons/scrap_metal.jpg" _scrapFound>>
<<addToInventory "Cloth" "media/icons/cloth.jpg" _clothFound>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/water_bottle.jpg">
<div><strong>+<<print _waterFound>> Water Bottle(s)</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/scrap_metal.jpg">
<div><strong>+<<print _scrapFound>> Scrap Metal</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>+<<print _clothFound>> Cloth</strong></div>
</div>
</div>
<<elseif _event is 6>>
<<set $enemyName to "Zombie">>
<<set $enemyCount to 1>>
A zombie shambles out from behind a wrecked car.
<br><br>
<span class="stat-change-negative">Energy -20</span><br>
<span class="stat-change">Time +1 hour</span>
<br><br>
[[Face the zombie|Zombie Encounter]]
<<elseif _event is 7>>
<<set $enemyName to "Zombies">>
<<set $enemyCount to 2>>
Two zombies stumble out of an abandoned house.
<br><br>
<span class="stat-change-negative">Energy -20</span><br>
<span class="stat-change">Time +1 hour</span>
<br><br>
[[Face the zombies|Zombie Encounter]]
<<elseif _event is 8>>
<<set _fuelFound to random(1, 3)>>
<<set $fuel += _fuelFound>>
You search an abandoned garage and find a partly filled fuel can.
<br><br>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/fuel.jpg">
<div><strong>+<<print _fuelFound>> Fuel</strong></div>
</div>
</div>
<<else>>
You search several ruined homes, but most of the useful supplies are gone.
<</if>>
<<if _event lte 5>>
<<set _macheteRoll to random(1, 100)>>
<<if _macheteRoll lte 5>>
<<addToInventory "Machete" "media/icons/machete.jpg">>
<br>
You also discover something rare hidden nearby:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/machete.jpg">
<div><strong>Machete</strong></div>
</div>
</div>
<</if>>
<</if>>
<</if>>
<<if _event isnot 6 and _event isnot 7>>
<br><br>
<span class="stat-change-negative">Energy -20</span><br>
<span class="stat-change">Time +1 hour</span>
<br><br>
[[Search Again|Neighborhood Search]]
<br><br>
[[Back to Neighborhood|Nearby Neighborhood]]
<</if>>
<</if>>
<</nobr>><<nobr>>
<h2 style="text-align:center; margin:10px 0; color:#ddd;">
Your Inventory
</h2>
<<if $inventory.length is 0>>
<p style="text-align:center; color:#888;">
Your inventory is empty.
</p>
<<else>>
<div class="inventory-grid">
<<for _i, _item range $inventory>>
<div class="item-card">
<<if _item.name is "Water Bottle">>
<img src="media/icons/water_bottle.jpg">
<<elseif _item.name is "Knife">>
<img src="media/icons/knife.jpg">
<<elseif _item.name is "Medkit">>
<img src="media/icons/medicalkit.jpg">
<<elseif _item.name is "Baseball Bat">>
<img src="media/icons/baseball_bat.jpg">
<<elseif _item.name is "Wood">>
<img src="media/icons/wood.jpg">
<<elseif _item.name is "Pistol">>
<img src="media/icons/pistol.jpg">
<<elseif _item.name is "Machete">>
<img src="media/icons/machete.jpg">
<<elseif _item.name is "Hatchet">>
<img src="media/icons/hatchet.jpg">
<<elseif _item.name is "Bandage">>
<img src="media/icons/bandage.jpg">
<<elseif _item.name is "Energy Bar">>
<img src="media/icons/energy_bar.jpg">
<<elseif _item.name is "Canned Food">>
<img src="media/icons/canfood.jpg">
<<elseif _item.name is "9mm Ammo">>
<img src="media/icons/9mm_ammo.jpg">
<<elseif _item.name is "Scrap Metal">>
<img src="media/icons/scrap_metal.jpg">
<<elseif _item.name is "Cloth">>
<img src="media/icons/cloth.jpg">
<<else>>
<img @src="_item.icon">
<</if>>
<span class="item-name"><<print _item.name>></span>
<span class="quantity">×<<print _item.quantity || 1>></span>
<<if _item.name is "Medkit"
or _item.name is "Water Bottle"
or _item.name is "Bandage"
or _item.name is "Energy Bar">>
<span class="item-action">
<<capture _i>>
<<link "Use">>
<<set $itemIndex to _i>>
<<showInventoryPanel "UseItem">>
<</link>>
<</capture>>
</span>
<</if>>
<<if _item.name is "Knife"
or _item.name is "Baseball Bat"
or _item.name is "Hatchet"
or _item.name is "Machete"
or _item.name is "Pistol">>
<span class="item-action">
<<if $equippedWeapon is _item.name>>
<<link "Unequip">>
<<set $equippedWeapon to "None">>
<<set $weaponDamage to 0>>
<<run UI.update()>>
<<showInventoryPanel "Inventory">>
<</link>>
<<else>>
<<capture _i>>
<<link "Equip">>
<<set $itemIndex to _i>>
<<showInventoryPanel "EquipWeapon">>
<</link>>
<</capture>>
<</if>>
</span>
<</if>>
</div>
<</for>>
</div>
<</if>>
<div style="text-align:center; margin-top:15px;">
<<link "Back">>
<<run Dialog.close()>>
<</link>>
</div>
<</nobr>><<nobr>>
<<set _item to $inventory[$itemIndex]>>
<<if not _item>>
Something went wrong. No weapon was selected.
<<elseif _item.name is "Knife">>
<<set $equippedWeapon to "Knife">>
<<set $weaponDamage to 3>>
You equipped the Knife.
<<elseif _item.name is "Baseball Bat">>
<<set $equippedWeapon to "Baseball Bat">>
<<set $weaponDamage to 5>>
You equipped the Baseball Bat.
<<elseif _item.name is "Hatchet">>
<<set $equippedWeapon to "Hatchet">>
<<set $weaponDamage to 7>>
You equipped the Hatchet.
<<elseif _item.name is "Machete">>
<<set $equippedWeapon to "Machete">>
<<set $weaponDamage to 9>>
You equipped the Machete.
<<elseif _item.name is "Pistol">>
<<set $equippedWeapon to "Pistol">>
<<set $weaponDamage to 12>>
You equipped the Pistol.
<<else>>
You cannot equip that.
<</if>>
<<run UI.update()>>
<br><br>
Current weapon: <<= $equippedWeapon>><br>
Weapon damage: +<<= $weaponDamage>>
<br><br>
<<link "Back to Inventory">>
<<showInventoryPanel "Inventory">>
<</link>>
<</nobr>><<nobr>>
<<if not $enemyCount or $enemyCount lt 1>>
<<set $enemyCount to 1>>
<</if>>
<<set $enemies to []>>
<<for _i = 0; _i < $enemyCount; _i++>>
<<run $enemies.push({
name: "Zombie",
health: 20,
maxHealth: 20,
damage: 8
})>>
<</for>>
<<set $enemyName to "Zombie">>
<<set $combatWinPassage to "Nearby Neighborhood">>
<<set $combatLosePassage to "GameOver">>
<<set $combatEscapePassage to "Nearby Neighborhood">>
<<if $enemyCount is 1>>
A zombie blocks your path.
<<else>>
Two zombies block your path.
<</if>>
<br><br>
[[Fight|Combat]]
<br>
[[Run|Run From Zombie]]
<</nobr>><<nobr>>
<<if not $combatEscapePassage>>
<<set $combatEscapePassage to "Nearby Neighborhood">>
<</if>>
<<set _enemySingular to "enemy">>
<<if $enemies.length gt 0 and $enemies[0].name>>
<<set _enemySingular to $enemies[0].name.toLowerCase()>>
<</if>>
<<set _enemyPlural to _enemySingular + "s">>
<<set _livingEnemies to 0>>
<<for _enemy range $enemies>>
<<if _enemy.health gt 0>>
<<set _livingEnemies += 1>>
<</if>>
<</for>>
<<set _escapeChance to Math.min(80, 30 + ($endurance * 5))>>
<<set _extraEnemies to Math.max(0, _livingEnemies - 1)>>
<<set _escapeChance to Math.max(15, _escapeChance - (_extraEnemies * 10))>>
<<set _runRoll to random(1,100)>>
<<if _runRoll <= _escapeChance>>
You manage to escape.
<br><br>
<<link "Continue">>
<<goto $combatEscapePassage>>
<</link>>
<<else>>
<<if _livingEnemies gt 1>>
You try to run, but the <<= _enemyPlural>> surround you.
<<else>>
You try to run, but the <<= _enemySingular>> catches you.
<</if>>
<<set _damageTaken to 0>>
<<for _enemy range $enemies>>
<<if _enemy.health gt 0>>
<<if _enemy.name is "Survivor">>
<<set _damageTaken += random(6, _enemy.damage)>>
<<else>>
<<set _damageTaken += random(3, _enemy.damage)>>
<</if>>
<</if>>
<</for>>
<<set $health = Math.max(0, $health - _damageTaken)>>
<br><br>
You lose <b><<= _damageTaken>> Health</b>.
<br><br>
<<if $health <= 0>>
[[Game Over|GameOver]]
<<else>>
[[Keep Fighting|Combat]]
<br>
[[Try Running Again|Run From Zombie]]
<</if>>
<</if>>
<</nobr>><<nobr>>
<<set _livingEnemies to 0>>
<<set _enemySingular to "enemy">>
<<set _ammoCount to 0>>
<<if $enemies.length gt 0 and $enemies[0].name>>
<<set _enemySingular to $enemies[0].name.toLowerCase()>>
<</if>>
<<set _enemyPlural to _enemySingular + "s">>
<<for _enemy range $enemies>>
<<if _enemy.health gt 0>>
<<set _livingEnemies += 1>>
<</if>>
<</for>>
<<for _ammoItem range $inventory>>
<<if _ammoItem.name is "9mm Ammo" and _ammoItem.quantity gt 0>>
<<set _ammoCount += _ammoItem.quantity>>
<</if>>
<</for>>
<<set _escapeChance to Math.min(80, 30 + ($endurance * 5))>>
<<set _extraEnemies to Math.max(0, _livingEnemies - 1)>>
<<set _escapeChance to Math.max(15, _escapeChance - (_extraEnemies * 10))>>
<div class="combat-container">
<div class="enemy-row">
<<for _i, _enemy range $enemies>>
<<if _enemy.health gt 0>>
<a class="enemy-card-link" href="javascript:void(0)"
onclick="SugarCube.State.variables.targetEnemyIndex = Array.prototype.indexOf.call(this.parentNode.children, this); SugarCube.Engine.play('Attack Enemy'); return false;">
<div class="enemy-card enemy-card-clickable">
<<if _enemy.image>>
<img class="combat-enemy-img" @src="_enemy.image">
<<else>>
<img class="combat-enemy-img" src="media/enemies/zombie.jpg">
<</if>>
<h3>
<<= _enemy.name>>
<<if $enemies.length gt 1>>
<<= _i + 1>>
<</if>>
</h3>
<div class="health-bar">
<div class="health-fill"
@style="'width: ' + Math.max(0, Math.min(100, (_enemy.health / _enemy.maxHealth) * 100)) + '%;'">
</div>
</div>
<<= _enemy.health>> / <<= _enemy.maxHealth>>
</div>
</a>
<<else>>
<div class="enemy-card enemy-dead">
<<if _enemy.image>>
<img class="combat-enemy-img" @src="_enemy.image">
<<else>>
<img class="combat-enemy-img" src="media/enemies/zombie.jpg">
<</if>>
<h3>
<<= _enemy.name>>
<<if $enemies.length gt 1>>
<<= _i + 1>>
<</if>>
</h3>
<div class="health-bar">
<div class="health-fill" style="width: 0%;"></div>
</div>
<<if _enemy.canSpare>>
<span class="enemy-dead-text">DEFEATED</span>
<<else>>
<span class="enemy-dead-text">DEAD</span>
<</if>>
</div>
<</if>>
<</for>>
</div>
</div>
<<if _livingEnemies is 1>>
You are facing a <<= _enemySingular>>.
<<else>>
You are facing <<= _livingEnemies>> <<= _enemyPlural>>.
<</if>>
<br><br>
Health: <b><<= $health>></b><br>
Weapon: <b><<= $equippedWeapon>></b><br>
Damage Bonus: <b>+<<= $weaponDamage>></b><br>
9mm Ammo: <b><<= _ammoCount>></b>
<<if $equippedWeapon is "Pistol" and _ammoCount <= 0>>
<br>
<span class="warning-text">
No ammunition. Open Inventory to equip another weapon, or try to escape.
</span>
<</if>>
<br><br>
<span style="color:#bbbbbb; font-size:13px;">
Click an enemy card to attack.
</span>
<br><br>
<<set _runLabel to "Try to Run (" + _escapeChance + "% chance)">>
<<link _runLabel "Run From Zombie">>
<</link>>
<span class="locked-note">
A failed escape allows every living enemy to attack.
</span>
<</nobr>><<nobr>>
<h1>Game Over</h1>
<<if $compoundOverrun>>
<img class="scene-img" src="media/events/overrun.gif">
The front gate gives way in the dark. You hear metal scrape across the driveway, then the sound of feet in the hall downstairs.
<br><br>
By morning, the gate hangs open. No one inside the compound survives.
<<else>>
You died in the apocalypse.
<</if>>
<br><br>
<img class="location-img" src="media/events/game_over.jpg">
<br><br>
<<link "Restart">>
<<run Engine.restart()>>
<</link>>
<</nobr>><<nobr>>
<<if not $combatWinPassage>>
<<set $combatWinPassage to "Nearby Neighborhood">>
<</if>>
<<if not $combatLosePassage>>
<<set $combatLosePassage to "GameOver">>
<</if>>
<<if $targetEnemyIndex is undefined>>
<<set $targetEnemyIndex to -1>>
<</if>>
<<set _canContinue to true>>
<<set _enemySingular to "enemy">>
<<if $enemies.length gt 0 and $enemies[0].name>>
<<set _enemySingular to $enemies[0].name.toLowerCase()>>
<</if>>
<<set _enemyPlural to _enemySingular + "s">>
<!-- Bleeding damage -->
<<if $bleeding>>
<<set $health = Math.max(0, $health - 2)>>
You lose <b>2 Health</b> from bleeding.
<br><br>
<<if $health <= 0>>
<<set _canContinue to false>>
You collapse from blood loss.
<br><br>
<<link "Game Over">>
<<goto $combatLosePassage>>
<</link>>
<</if>>
<</if>>
<<if _canContinue>>
<!-- Select the target -->
<<set _targetIndex to -1>>
<<if $targetEnemyIndex >= 0
and $targetEnemyIndex < $enemies.length
and $enemies[$targetEnemyIndex].health gt 0>>
<<set _targetIndex to $targetEnemyIndex>>
<<else>>
<<for _i, _enemy range $enemies>>
<<if _enemy.health gt 0>>
<<set _targetIndex to _i>>
<<break>>
<</if>>
<</for>>
<</if>>
<<set $targetEnemyIndex to -1>>
<<if _targetIndex is -1>>
There are no enemies left to fight.
<br><br>
<<link "Continue">>
<<goto $combatWinPassage>>
<</link>>
<<else>>
<!-- Check ammunition -->
<<set _canAttack to true>>
<<set _usedAmmo to false>>
<<set _ammoRemaining to 0>>
<<if $equippedWeapon is "Pistol">>
<<set _ammoIndex to -1>>
<<for _i = 0; _i < $inventory.length; _i++>>
<<if $inventory[_i].name is "9mm Ammo">>
<<set _ammoIndex to _i>>
<<break>>
<</if>>
<</for>>
<<if _ammoIndex is -1
or $inventory[_ammoIndex].quantity lte 0>>
<<set _canAttack to false>>
<<else>>
<<set $inventory[_ammoIndex].quantity -= 1>>
<<set _ammoRemaining to $inventory[_ammoIndex].quantity>>
<<set _usedAmmo to true>>
<<if $inventory[_ammoIndex].quantity lte 0>>
<<run $inventory.splice(_ammoIndex, 1)>>
<<set _ammoRemaining to 0>>
<</if>>
<</if>>
<</if>>
<<if not _canAttack>>
Your pistol clicks.
You have no 9mm ammunition left.
<br><br>
[[Choose Another Action|Combat]]
<br>
[[Try to Run|Run From Zombie]]
<<else>>
<!-- Calculate damage -->
<<if $equippedWeapon is "Pistol">>
<<set _playerDamage to random(1,6) + $weaponDamage>>
<<else>>
<<set _playerDamage to random(1,6) + $strength + $weaponDamage>>
<</if>>
<<set _targetName to $enemies[_targetIndex].name>>
<<if $enemies.length gt 1>>
<<set _targetName to _targetName + " " + (_targetIndex + 1)>>
<</if>>
<<if _usedAmmo>>
You fire your pistol at <<= _targetName>>.
<br>
Ammunition remaining: <b><<= _ammoRemaining>></b>
<<elseif $equippedWeapon is "None">>
You attack <<= _targetName>> with your bare hands.
<<else>>
You attack <<= _targetName>> with your <<= $equippedWeapon>>.
<</if>>
<br><br>
You deal <b><<= _playerDamage>></b> damage.
<<set $enemies[_targetIndex].health =
Math.max(0, $enemies[_targetIndex].health - _playerDamage)>>
<!-- Enemy defeated -->
<<if $enemies[_targetIndex].health lte 0>>
<br><br>
<<if $enemies[_targetIndex].canSpare>>
<b><<= _targetName>> is defeated.</b>
<<else>>
<b><<= _targetName>> is dead.</b>
<<if $enemies[_targetIndex].name is "Zombie">>
<br><br>
<img class="scene-img" src="media/actions/zombie_defeated.gif">
<</if>>
<</if>>
<</if>>
<!-- Count surviving enemies -->
<<set _livingEnemies to 0>>
<<for _enemy range $enemies>>
<<if _enemy.health gt 0>>
<<set _livingEnemies += 1>>
<</if>>
<</for>>
<<if _livingEnemies is 0>>
<!-- Victory -->
<br><br>
<<if $enemies.length is 1 and $enemies[0].canSpare>>
The <<= _enemySingular>> can no longer fight.
<<elseif $enemies.length gt 1>>
All the <<= _enemyPlural>> are dead.
<<else>>
The <<= _enemySingular>> is dead.
<</if>>
<br><br>
<<link "Continue">>
<<goto $combatWinPassage>>
<</link>>
<<else>>
<!-- Surviving enemies counterattack -->
<<set _damageTaken to 0>>
<<for _enemy range $enemies>>
<<if _enemy.health gt 0>>
<<if _enemy.name is "Survivor">>
<<set _damageTaken += random(6, _enemy.damage)>>
<<else>>
<<set _damageTaken += random(3, _enemy.damage)>>
<</if>>
<</if>>
<</for>>
<br><br>
<<if _livingEnemies is 1>>
The remaining <<= _enemySingular>> attacks back.
<<else>>
The <<= _enemyPlural>> attack together.
<</if>>
<<set $health = Math.max(0, $health - _damageTaken)>>
<br><br>
You take <b><<= _damageTaken>></b> damage.
<!-- Bleeding chance -->
<<if not $bleeding and random(1,100) lte 20>>
<<set $bleeding to true>>
<br><br>
<span style="color:#ff4444; font-weight:bold;">
The attack opened a bleeding wound!
</span>
<</if>>
<br><br>
Health: <b><<= $health>></b><br>
Enemies Remaining: <b><<= _livingEnemies>></b>
<<if $health <= 0>>
<br><br>
You collapse.
<br><br>
<<link "Game Over">>
<<goto $combatLosePassage>>
<</link>>
<<else>>
<br><br>
[[Continue Fighting|Combat]]
<br>
[[Try to Run|Run From Zombie]]
<</if>>
<</if>>
<</if>>
<</if>>
<</if>>
<</nobr>><<nobr>>
<<silently>>
<<if typeof $storageRoomCleaned === "undefined">>
<<set $storageRoomCleaned to false>>
<</if>>
<<set _storageConsumables to [
"Water Bottle",
"Medkit",
"Bandage",
"Energy Bar",
"9mm Ammo"
]>>
<<set _storageCrafting to [
"Wood",
"Scrap Metal",
"Cloth"
]>>
<<set _storageIcons to {
"Water Bottle": "media/icons/water_bottle.jpg",
"Medkit": "media/icons/medicalkit.jpg",
"Bandage": "media/icons/bandage.jpg",
"Energy Bar": "media/icons/energy_bar.jpg",
"9mm Ammo": "media/icons/9mm_ammo.jpg",
"Wood": "media/icons/wood.jpg",
"Scrap Metal": "media/icons/scrap_metal.jpg",
"Cloth": "media/icons/cloth.jpg"
}>>
<<set _storageCounts to {}>>
<<for _storageItem range $inventory>>
<<set _storageCounts[_storageItem.name] to
(_storageCounts[_storageItem.name] || 0)
+ _storageItem.quantity>>
<</for>>
<<set _storageFood to setup.totalFood()>>
<<set _hasStorageConsumables to _storageFood > 0>>
<<set _hasStorageCrafting to $materials > 0 or $fuel > 0>>
<<for _storageName range _storageConsumables>>
<<if _storageCounts[_storageName] > 0>>
<<set _hasStorageConsumables to true>>
<</if>>
<</for>>
<<for _storageName range _storageCrafting>>
<<if _storageCounts[_storageName] > 0>>
<<set _hasStorageCrafting to true>>
<</if>>
<</for>>
<</silently>>
<div class="storage-room">
<h2>Storage Room</h2>
<<if $storageRoomCleaned>>
<img class="scene-img"
src="media/locations/base/Storage_room_cleaned.jpg"
alt="The cleaned and organized storage room">
<p>
The floor is clear and the shelves are neatly arranged.
Supplies are sorted into boxes, making it easy to see
what you have left.
</p>
<<else>>
<img class="scene-img"
src="media/locations/base/storage_room.jpg"
alt="The cluttered storage room">
<<if not $searched_storage>>
<p>
Tall metal shelves run along both walls. Boxes,
plastic bins, and old suitcases are stacked high,
some knocked over. Dust covers the floor, and clothes,
blankets, and tools lie scattered across it.
</p>
<<else>>
<p>
The storage room remains cluttered. Shelves are packed
with opened boxes and containers, while old suitcases
and plastic bins block the corners.
</p>
<</if>>
<div class="storage-cleanup">
<strong>Clean and organize the room</strong>
<p>Requires: 10 Energy · Time: 1 hour</p>
<<if $energy >= 10>>
<<link "Clean the storage room">>
<<set $energy -= 10>>
<<advanceMinutes 60>>
<<set $storageRoomCleaned to true>>
<<goto "Storage Room">>
<</link>>
<<else>>
<span class="locked-link">Clean the storage room</span>
<br>
<span class="locked-note">
You need at least 10 energy.
</span>
<</if>>
</div>
<</if>>
<h3>Consumables and Supplies</h3>
<<if _hasStorageConsumables>>
<p class="storage-note">
Your available supplies.
Food can only be eaten in the Kitchen.
</p>
<div class="storage-supplies">
<<if _storageFood > 0>>
<div class="storage-supply">
<img src="media/icons/canfood.jpg" alt="Food">
<span>Food</span>
<strong>×<<print _storageFood>></strong>
</div>
<</if>>
<<for _storageName range _storageConsumables>>
<<if _storageCounts[_storageName] > 0>>
<div class="storage-supply">
<img @src="_storageIcons[_storageName]"
@alt="_storageName">
<span><<print _storageName>></span>
<strong>×<<print _storageCounts[_storageName]>></strong>
</div>
<</if>>
<</for>>
</div>
<<else>>
<p class="storage-note">
You have no consumable supplies left.
</p>
<</if>>
<h3>Crafting and Repair Supplies</h3>
<<if _hasStorageCrafting>>
<div class="storage-supplies">
<<for _storageName range _storageCrafting>>
<<if _storageCounts[_storageName] > 0>>
<div class="storage-supply">
<img @src="_storageIcons[_storageName]"
@alt="_storageName">
<span><<print _storageName>></span>
<strong>×<<print _storageCounts[_storageName]>></strong>
</div>
<</if>>
<</for>>
<<if $materials > 0>>
<div class="storage-supply">
<img src="media/icons/materials.jpg" alt="Materials">
<span>Materials</span>
<small>General repair supplies</small>
<strong>×<<print $materials>></strong>
</div>
<</if>>
<<if $fuel > 0>>
<div class="storage-supply">
<img src="media/icons/fuel.jpg" alt="Fuel">
<span>Fuel</span>
<small>Generator reserves</small>
<strong>×<<print $fuel>></strong>
</div>
<</if>>
</div>
<<else>>
<p class="storage-note">
You have no crafting supplies or fuel left.
</p>
<</if>>
<br><br>
[[Back to the Entryway|Entryway]]
</div>
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/Guest_bedroom_1.jpg">
<<if not $searched_guest1>>
This appears to be a guest bedroom. It's smaller than the master bedroom but still well-furnished. A queen-sized bed sits against the wall, covered with a thin layer of dust. There's a small desk in the corner and a wardrobe on the opposite side. The room feels unused, almost sterile.
<br><br>
[[Search the room|Search Guest Bedroom1]]
<<else>>
The guest bedroom is quiet and untouched. A dusty queen-sized bed sits against the wall, with a small desk and wardrobe nearby. Nothing useful remains.
<</if>>
<<if $day is 3>>
<<miaPresence "Guest Bedroom1" "Mia is resting on the bed. She looks exhausted, still trying to process what happened today." "Talk Mia Guest Bedroom1">>
<<elseif $day is 4>>
<<miaPresence "Guest Bedroom1" "Mia is sitting on the bed, quiet and withdrawn. She still looks shaken from yesterday." "Talk Mia Guest Bedroom1">>
<<else>>
<<miaPresence "Guest Bedroom1" "Mia is in her room, sitting quietly on the edge of the bed." "Talk Mia Guest Bedroom1">>
<</if>>
<br><br>
[[Back to the Second Floor|Second Floor]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/Guest_bedroom_2.jpg">
<<if not $searched_guest2>>
Another guest room. This one feels slightly more lived-in than the first. The bed is neatly made, and there's a small bookshelf against the wall with a few novels and a photo frame lying face down. A pair of slippers rests near the bed, as if someone left in a hurry.
<br><br>
[[Search the room|Search Guest Bedroom2]]
<<else>>
This guest bedroom has a slightly more personal touch than the other. A bookshelf stands against the wall, and a pair of slippers still sits beside the bed. You have already taken anything useful.
<</if>>
<<if $taraStayed and not $taraDead and $taraLocation is "Guest Bedroom2">>
<br><br>
<<taraPresence "Guest Bedroom2" "Tara sits on the edge of the bed, cleaning her knife with slow, careful movements.">>
<</if>>
<br><br>
[[Back to the Second Floor|Second Floor]]
<</nobr>><<nobr>>
<<if $miaStayed and not $miaDead and $miaLocation is "Second Floor Bathroom">>
<img class="location-img" src="media/locations/base/bathroom_door.jpg">
You stop outside the second-floor bathroom.
<br><br>
The door is closed, and you can hear water running from the walk-in shower inside.
<br><br>
Mia is in there.
<br><br>
[[Knock on the door|Mia Bathroom Knock]]
<br>
<<if $miaTrust >= 60>>
[[Ask to join her|Mia Shower Together]]
<br>
<</if>>
[[Peek through the door|Mia Bathroom Peek]]
<br>
[[Leave|Second Floor]]
<<elseif $taraStayed and not $taraDead and $taraLocation is "Second Floor Bathroom">>
<img class="location-img" src="media/locations/base/bathroom_door.jpg">
You stop outside the second-floor bathroom.
<br><br>
The door is closed.
<br><br>
Water runs inside, steady and quiet.
<br><br>
Tara is in there.
<br><br>
Unlike Mia, Tara did not forget to lock the door.
<br><br>
[[Knock on the door|Tara Bathroom Knock]]
<br>
[[Try to peek through the gap|Tara Bathroom Peek]]
<br>
[[Leave|Second Floor]]
<<else>>
<img class="location-img" src="media/locations/base/Bathroom_2ndFloor.jpg">
<<if not $searched_upstairs_bathroom>>
You step into a smaller bathroom on the second floor. It feels more private than the one downstairs. The sink is made of dark marble, and a large mirror covers most of the wall above it. There's a spacious walk-in shower with frosted glass doors.
<br><br>
Everything is covered in a fine layer of dust, and the air smells faintly of old soap and mildew.
<br><br>
[[Search the second-floor bathroom|Second Floor Bathroom Search]]
<<else>>
This bathroom is relatively clean compared to the rest of the compound. The dark marble sink and large mirror are still in good condition, and the walk-in shower stands empty and unused.
<br><br>
You have already taken anything useful.
<</if>>
<br><br>
<<if not $took_shower_today>>
[[Take a shower|Take Second Floor Bathroom Shower]]
<<else>>
You have already taken a shower today.
<</if>>
<br><br>
[[Back to the Second Floor|Second Floor]]
<</if>>
<</nobr>><<nobr>>
<<if $searched_upstairs_bathroom>>
You have already searched this bathroom.
<<else>>
<<set $searched_upstairs_bathroom to true>>
<<set _bandagesFound to 2>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" _bandagesFound>>
You search the bathroom cabinets and drawers.
Most of the toiletries are unusable, but behind a stack of old towels, you find two sealed bandages.
<br><br>
You found:
<div class="loot-grid"><div class="loot-item"><img src="media/icons/bandage.jpg"><div><strong>+2 Bandages</strong></div></div></div>
<</if>>
<br><br>
[[Back to the Bathroom|Second Floor Bathroom]]
<</nobr>><<nobr>>
You take a long, hot shower. It feels incredibly refreshing after everything that's happening.
<img src="media/actions/shower.gif">
<<set $took_shower_today to true>>
<<advanceMinutes 10>>
<<set $energy = Math.min(100, $energy + 30)>>
You feel much more energetic afterward.
<br><br>
[[Back to the Bathroom|Second Floor Bathroom]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/base/Office.jpg">
A small office sits at the end of the hallway. A wooden desk stands beneath the window, surrounded by shelves filled with dusty books.
<br><br>
Among them, you notice an old book titled:
<br><br>
<b>Practical Electricity and Mechanical Repairs</b>
<br><br>
The book contains information about electrical wiring, portable generators, batteries, and basic solar-power systems.
<br><br>
<<if $officeBookIntGains >= 10>>
You have studied this book thoroughly and learned everything it can teach you.
<br><br>
Further improvement will require practical experience or more advanced reading material.
<<elseif $studiedToday>>
You have already read enough for today.
<<elseif $energy < 10>>
You are too tired to concentrate on the book.
<<else>>
[[Read the Book|Read Office Book]]
<</if>>
<br><br>
[[Back to the Second Floor|Second Floor]]
<</nobr>><<nobr>>
<<if $officeBookIntGains >= 10>>
You have already learned everything contained in this book.
<<elseif $studiedToday>>
You have already studied today. Your mind needs time to absorb what you have learned.
<<elseif $energy < 10>>
You are too exhausted to concentrate on the technical material.
<<else>>
<<set $studiedToday to true>>
<<set $energy -= 10>>
<<set $intelligence += 1>>
<<set $officeBookIntGains += 1>>
<<set $hour += 1>>
<<if $hour >= 24>>
<<set $hour -= 24>>
<<set $day += 1>>
<</if>>
<img src="media/actions/reading.webp">
You sit at the desk and spend an hour studying the repair manual.
The diagrams teach you more about generators, electrical wiring, batteries, and solar-power systems.
<br><br>
Energy: <b>-10</b><br>
<span style="color:#f472b6; font-weight:bold;">
Intelligence increased by 1.
</span>
<br><br>
Knowledge gained from this book:
<b><<print $officeBookIntGains>> / 10</b>
<</if>>
<br><br>
[[Back to the Office|Small Office]]
<</nobr>><<nobr>>
<<set $searched_guest1 to true>>
<<set _clothFound to random(2, 4)>>
<<set _bandagesFound to random(1, 2)>>
<<addToInventory "Cloth" "media/icons/cloth.jpg" _clothFound>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" _bandagesFound>>
You open the wardrobe and search through the neatly folded bedding. Most of it is old, but some of the fabric can still be reused.
Inside the desk drawer, you also find a few clean bandages.
<br><br>
You found:
<div class="loot-grid"><div class="loot-item"><img src="media/icons/cloth.jpg"><div><strong>+<<print _clothFound>> Cloth</strong></div></div><div class="loot-item"><img src="media/icons/bandage.jpg"><div><strong>+<<print _bandagesFound>> Bandage(s)</strong></div></div></div>
<br><br>
[[Continue|Guest Bedroom1]]
<</nobr>><<nobr>>
<<set $searched_guest2 to true>>
<<set _waterFound to 1>>
<<set _energyBarsFound to random(1, 2)>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" _waterFound>>
<<addToInventory "Energy Bar" "media/icons/energy_bar.jpg" _energyBarsFound>>
You search the bedside cabinet and find a sealed bottle of water and several energy bars.
You turn over the photo frame. It shows a smiling family standing in front of the mansion before everything fell apart.
<br><br>
You found:
<div class="loot-grid"><div class="loot-item"><img src="media/icons/water_bottle.jpg"><div><strong>+1 Water Bottle</strong></div></div><div class="loot-item"><img src="media/icons/energy_bar.jpg"><div><strong>+<<print _energyBarsFound>> Energy Bar(s)</strong></div></div></div>
<br><br>
[[Continue|Guest Bedroom2]]
<</nobr>><<nobr>>
<img src="media/locations/base/roof.jpg" style="max-width:600px; border-radius:6px;">
<br><br>
<<if not $solarInspected>>
You climb through the roof hatch and step onto the mansion's roof.
<br><br>
Several large solar panels cover the southern side. Most of the panels appear intact, but the system is completely silent. Loose cables move gently in the wind, and one section of the mounting frame has partially collapsed.
<br><br>
[[Inspect the solar-power system|Inspect Solar Panels]]
<<else>>
The solar panels remain inactive.
<br><br>
The damage is more complicated than it first appeared. Several cables need replacing, the mounting frame requires reinforcement, and the charge controller appears to be burned out.
<br><br>
You do not currently have the knowledge, tools, or replacement components necessary to restore the system.
<br><br>
<span style="color:#ffcc66; font-weight:bold;">
Repairing the solar panels will require advanced electrical knowledge.
</span>
<</if>>
<br><br>
A hatch behind you leads back down into the house.
<br><br>
[[Return to the Second Floor|Second Floor]]
<</nobr>><<nobr>>
<<set $solarInspected to true>>
<<set $hour += 1>>
<<if $hour >= 24>>
<<set $hour -= 24>>
<<set $day += 1>>
<</if>>
You spend an hour inspecting the solar-power system.
<br><br>
The panels themselves are mostly usable, but the surrounding equipment is badly damaged. Several cables have been torn loose, part of the mounting frame has collapsed, and the charge controller has burned out.
<br><br>
The book in the office helps you recognize some of the components, but the system is far beyond your current ability to repair safely.
<br><br>
A complete repair would require:
<br><br>
🧠 Advanced electrical knowledge
<br>
🔌 A replacement charge controller
<br>
🔧 Proper electrical tools
<br>
🧱 A large supply of repair materials
<br>
🔋 Possibly replacement batteries
<br><br>
For now, the solar panels remain unusable.
<br><br>
[[Continue|Roof]]
<</nobr>><<nobr>>
<<if $solarRepaired>>
The solar panels have already been repaired.
<<elseif $intelligence < 3>>
You do not understand the electrical system well enough to repair it safely.
<<elseif $materials < 10>>
You do not have enough materials.
<<elseif $energy < 20>>
You are too exhausted to complete the repairs.
<<else>>
<<set $materials -= 10>>
<<set $energy -= 20>>
<<set $solarRepaired to true>>
<<set $electricity = Math.min(100, $electricity + 25)>>
<<set $hour += 2>>
<<if $hour >= 24>>
<<set $hour -= 24>>
<<set $day += 1>>
<</if>>
You spend several exhausting hours replacing damaged wiring, securing the loose panels, and repairing the charge controller.
<br><br>
For a moment, nothing happens.
<br><br>
Then the controller lights up.
<br><br>
A quiet electrical hum passes through the system as power begins flowing back into the mansion.
<br><br>
🧱 Materials: <b>-10</b>
<br>
⚡ Energy: <b>-20</b>
<br>
⚡ Electricity: <b>+25</b>
<br><br>
<span style="color:#4ade80; font-weight:bold;">
The solar panels are now operational.
</span>
<</if>>
<br><br>
[[Return to the Solar Panels|Roof]]
<</nobr>><<nobr>>
<<if not $garageCleanProgress>>
<<set $garageCleanProgress to 0>>
<</if>>
<<if $garageCleanProgress >= 3>>
<img class="location-img" src="media/locations/base/garage_cleaned.jpg">
<<else>>
<img class="location-img" src="media/locations/base/garage.jpg">
<</if>>
<<if $garageCleanProgress is 0>>
The mansion's garage is spacious but badly cluttered. Boxes, old tools, empty containers, and pieces of automotive equipment cover most of the floor.
There is barely enough room to move around comfortably.
<<elseif $garageCleanProgress is 1>>
You have cleared part of the garage, but piles of boxes and old equipment still block much of the floor.
<<elseif $garageCleanProgress is 2>>
The garage is beginning to look usable. Most of the rubbish has been removed, though one final section still needs attention.
<<else>>
The garage has been completely cleaned and organized. The floor is clear, the tools are arranged neatly, and there is plenty of room to work.
<</if>>
<<miaPresence "Garage" "Mia stands near the generator, arms crossed, staring at the machine like she does not fully trust it." "Talk Mia Garage">>
<<taraPresence "Garage" "Tara studies the generator and the garage door, quietly looking for weak points.">>
<br><br>
<<if $garageCleanProgress < 3>>
<<if $energy >= 20>>
[[Clean the garage|Clean Garage]]
<<else>>
You are too tired to continue cleaning the garage.
<</if>>
<br><br>
<</if>>
<<if not $generatorInspected>>
In the corner, beneath a dusty plastic cover, sits a portable gasoline generator.
<br><br>
[[Inspect the generator|Inspect Generator]]
<<else>>
The generator stands near the partially opened garage door, allowing its exhaust fumes to escape.
<br><br>
Generator Condition: <b><<print $generatorCondition>>%</b><br>
Fuel Available: <b><<print $fuel>></b>
<br><br>
<<if $generatorCondition >= 100>>
<span style="color:#4ade80; font-weight:bold;">
The generator is fully repaired and operating at maximum efficiency.
</span>
<<else>>
<span style="color:#ffcc66; font-weight:bold;">
The generator is operational, but its damaged condition limits its output.
</span>
<br><br>
Each repair requires:
🧠 Intelligence: <b>5</b><br>
🧱 Materials: <b>5</b><br>
⚡ Energy: <b>10</b><br>
🕒 Time: <b>1 hour</b>
<br><br>
Your Intelligence: <b><<print $intelligence>></b><br>
Your Materials: <b><<print $materials>></b><br>
Your Energy: <b><<print $energy>></b>
<br><br>
<<if $intelligence >= 5 and $materials >= 5 and $energy >= 10>>
[[Continue repairing the generator|Repair Generator]]
<<else>>
You do not currently have everything required to continue the repairs.
<</if>>
<</if>>
<</if>>
<br><br>
[[Back to the Entryway|Entryway]]
<</nobr>><<nobr>>
<<set $generatorInspected to true>>
<<set $generatorCondition to 40>>
<<set $hour += 1>>
<<if $hour >= 24>>
<<set $hour -= 24>>
<<set $day += 1>>
<</if>>
You remove the dusty cover and carefully inspect the generator.
The machine is in poor condition, but it is not beyond repair. Several wires are damaged, the fuel line is clogged, and the ignition system needs attention.
<br><br>
Generator Condition: <b>40%</b>
<br><br>
Each repair attempt will require:
🧠 5 Intelligence<br>
🧱 5 Materials<br>
⚡ 10 Energy<br>
🕒 1 Hour
<br><br>
[[Continue|Garage]]
<</nobr>><<nobr>>
<<if $generatorRepaired>>
The generator has already been fully repaired.
<<elseif $intelligence < 5>>
You do not understand the generator well enough to continue safely.
<<elseif $materials < 5>>
You do not have enough materials.
<<elseif $energy < 10>>
You are too exhausted to continue working.
<<else>>
<<set $materials -= 5>>
<<set $energy -= 10>>
<<set $generatorCondition = Math.min(100, $generatorCondition + 20)>>
<<set $hour += 1>>
<<if $hour >= 24>>
<<set $hour -= 24>>
<<set $day += 1>>
<</if>>
You spend an hour replacing damaged components, cleaning the fuel system, and repairing the wiring.
<br><br>
🧱 Materials: <b>-5</b><br>
⚡ Energy: <b>-10</b><br>
Generator Condition: <b><<print $generatorCondition>>%</b>
<<if $generatorCondition >= 100>>
<<set $generatorRepaired to true>>
<br><br>
You reconnect the final wire and pull the starter cord.
The engine coughs, sputters, and finally roars to life.
<br><br>
<span style="color:#4ade80; font-weight:bold;">
The generator is now fully operational.
</span>
<<else>>
<br><br>
The generator is in better condition, but it still requires more work.
<</if>>
<</if>>
<br><br>
[[Return to the Garage|Garage]]
<</nobr>><<nobr>>
<<if not $garageCleanProgress>>
<<set $garageCleanProgress to 0>>
<</if>>
<<if $garageCleanProgress >= 3>>
The garage is already completely clean.
<<elseif $energy < 20>>
You are too tired to continue cleaning the garage.
<<else>>
<<set $energy -= 20>>
<<set $garageCleanProgress += 1>>
<<set $hour += 1>>
<<if $hour >= 24>>
<<set $hour -= 24>>
<<set $day += 1>>
<</if>>
<<if $garageCleanProgress is 1>>
You spend an hour moving boxes, throwing away rubbish, and clearing a path through the garage.
There is still plenty of work left to do.
<<elseif $garageCleanProgress is 2>>
You continue sorting through the clutter and organizing the usable tools.
The garage is almost clean.
<<else>>
You remove the final piles of rubbish, sweep the floor, and arrange the remaining tools along the walls.
The garage is now completely clean and ready to be used properly.
<</if>>
<br><br>
Energy: <b>-20</b><br>
Cleaning Progress: <b><<print $garageCleanProgress>> / 3</b>
<</if>>
<br><br>
[[Return to the Garage|Garage]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/outside/abandoned_gas_station.jpg">
You approach the abandoned gas station carefully.
Several damaged pumps stand beneath the rusting canopy. The convenience store has shattered windows, but some of the shelves are still standing.
<br><br>
<<if not $gasPumpsSearchedThisVisit>>
[[Search for fuel|Search Gas Pumps]]
<<else>>
You have already searched the pumps and nearby vehicles.
<</if>>
<br><br>
<<if not $gasStoreSearchedThisVisit>>
[[Search the convenience store|Search Gas Station Store]]
<<else>>
You have already searched the convenience store.
<</if>>
<br><br>
[[Leave the gas station|Outside]]
<</nobr>><<nobr>>
<<if $gasPumpsSearchedThisVisit>>
You have already searched the pumps and nearby vehicles.
<<else>>
<<set $gasPumpsSearchedThisVisit to true>>
<<set _fuelFound to random(1, 3)>>
<<set $fuel += _fuelFound>>
You inspect the damaged pumps and the abandoned vehicles scattered around the forecourt.
Most of the tanks are empty, but you manage to siphon a small amount of usable fuel.
<br><br>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/fuel.jpg">
<div><strong>+<<print _fuelFound>> Fuel</strong></div>
</div>
</div>
<</if>>
<br><br>
[[Return to the Gas Station|Abandoned Gas Station]]
<</nobr>><<nobr>>
<img class="scene-img" src="media/locations/outside/gas_station_store.jpg">
<<if $gasStoreSearchedThisVisit>>
You have already searched the convenience store.
<br><br>
[[Return to the Gas Station|Abandoned Gas Station]]
<<else>>
<<set $gasStoreSearchedThisVisit to true>>
<<set $gasStationWaterFound to random(1, 3)>>
<<set $gasStationFoodFound to random(1, 2)>>
<<set $gasStationLootPending to true>>
<<set _zombieRoll to random(1, 100)>>
You step carefully through the shattered entrance of the convenience store.
Most of the shelves are empty, but you notice several unopened supplies beneath a collapsed display.
<br><br>
<<if _zombieRoll <= 50>>
Before you can reach them, something moves behind the counter.
A zombie rises from the darkness and stumbles into the aisle, blocking your path to the supplies.
<<set $enemyCount to 1>>
<<set $enemyName to "Zombie">>
<<set $enemies to []>>
<<run $enemies.push({
name: "Zombie",
health: 20,
maxHealth: 20,
damage: 8
})>>
<<set $combatWinPassage to "Gas Station Store Loot">>
<<set $combatEscapePassage to "Gas Station Zombie Escape">>
<<set $combatLosePassage to "GameOver">>
<br><br>
[[Fight the zombie|Combat]]
<br>
[[Retreat from the store|Run From Zombie]]
<<else>>
The store appears deserted.
You cautiously approach the fallen display and begin gathering the remaining supplies.
<br><br>
[[Take the supplies|Gas Station Store Loot]]
<</if>>
<</if>>
<</nobr>><<nobr>>
<<if $gasStationLootPending>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" $gasStationWaterFound>>
<<addToInventory "Canned Food" "media/icons/canfood.jpg" $gasStationFoodFound>>
<<set $gasStationLootPending to false>>
You collect the supplies from beneath the collapsed display.
<br><br>
You found:
<div class="loot-grid"><div class="loot-item"><img src="media/icons/water_bottle.jpg"><div><strong>+<<print $gasStationWaterFound>> Water Bottle(s)</strong></div></div><div class="loot-item"><img src="media/icons/canfood.jpg"><div><strong>+<<print $gasStationFoodFound>> Canned Food</strong></div></div></div>
<<else>>
There are no supplies left to collect.
<</if>>
<br><br>
[[Return to the Gas Station|Abandoned Gas Station]]
<</nobr>><<set $gasStationLootPending to false>>
You retreat from the convenience store, leaving the supplies behind.
The zombie remains somewhere inside.
<br><br>
[[Return to the Gas Station|Abandoned Gas Station]]<<nobr>>
<img src="media/locations/outside/crashed_truck.jpg" style="max-width:600px; border-radius:6px;">
The delivery truck rests on its side across the road.
Its cab has been crushed against a streetlight, and the company logo painted along the side has almost completely faded.
Several torn cardboard boxes lie scattered nearby. The rear cargo doors have been forced apart slightly.
<br><br>
<<if not $truckSearchedThisVisit>>
[[Search the cargo area|Search Delivery Truck]]
<<else>>
You have already searched the truck.
<</if>>
<br><br>
[[Leave the crashed truck|Outside]]
<</nobr>><<nobr>>
<<if $truckSearchedThisVisit>>
You have already searched the truck.
<<else>>
<<set $truckSearchedThisVisit to true>>
<<set _cargoType to random(1,5)>>
You grip the damaged cargo door and pull.
The metal groans loudly, but after several attempts, it finally opens enough for you to climb inside.
<br><br>
<<if _cargoType is 1 or _cargoType is 2>>
<<set _waterFound to random(1,3)>>
<<set _foodFound to random(1,3)>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" _waterFound>>
<<addToInventory "Canned Food" "media/icons/canfood.jpg" _foodFound>>
Most of the cargo has been destroyed, but several boxes of groceries survived the crash.
<br><br>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/water_bottle.jpg">
<div><strong>+<<print _waterFound>> Water Bottle(s)</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/canfood.jpg">
<div><strong>+<<print _foodFound>> Canned Food</strong></div>
</div>
</div>
<<elseif _cargoType is 3>>
<<set _materialsFound to random(6,12)>>
<<set $materials += _materialsFound>>
The truck appears to have been carrying construction supplies.
Most of them are damaged, but you find several useful pieces.
<br><br>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/materials.jpg">
<div><strong>+<<print _materialsFound>> Materials</strong></div>
</div>
</div>
<<elseif _cargoType is 4>>
<<set _bandagesFound to random(1,2)>>
<<set _medkitFound to 0>>
<<if random(1,100) <= 30>>
<<set _medkitFound to 1>>
<</if>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" _bandagesFound>>
<<if _medkitFound gt 0>>
<<addToInventory "Medkit" "media/icons/medicalkit.jpg" 1>>
<</if>>
Several damaged boxes contain medical supplies.
<br><br>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+<<print _bandagesFound>> Bandage(s)</strong></div>
</div>
<<if _medkitFound gt 0>>
<div class="loot-item">
<img src="media/icons/medicalkit.jpg">
<div><strong>+1 Medkit</strong></div>
</div>
<</if>>
</div>
<<else>>
The cargo area is nearly empty.
You search through several torn boxes, but anything valuable was taken long ago.
<</if>>
<</if>>
<br><br>
[[Return to the truck|Crashed Delivery Truck]]
<</nobr>><<nobr>>
<<if not $survivorType>>
<<set $survivorType to random(1,3)>>
<</if>>
<<set _hasFood to false>>
<<set _hasWater to false>>
<<for _item range $inventory>>
<<if _item.name is "Canned Food" and _item.quantity gt 0>>
<<set _hasFood to true>>
<</if>>
<<if _item.name is "Water Bottle" and _item.quantity gt 0>>
<<set _hasWater to true>>
<</if>>
<</for>>
<<if $survivorType is 1>>
<img class="location-img" src="media/events/survivor_1.jpg">
A tired-looking man stands beside the abandoned car. A worn backpack
hangs from one shoulder, and he grips a crowbar tightly.
<<elseif $survivorType is 2>>
<img class="location-img" src="media/events/survivor_2.jpg">
The survivor is an older man wearing a stained winter coat.
He watches you carefully, one hand resting beside the pistol
holster at his waist.
<<else>>
<img class="location-img" src="media/events/survivor_3.jpg">
A thin man stands beside an overloaded shopping cart.
He looks exhausted, but his eyes remain alert as you approach.
<</if>>
<br><br>
“Stay back,” he warns. “I don't want trouble.”
He looks hungry and dehydrated. He may be willing to exchange
something useful for supplies.
<br><br>
<<if _hasFood>>
<<link "Offer 1 Canned Food">>
<<set _canTradeFood to false>>
<<for _tradeItem range $inventory>>
<<if _tradeItem.name is "Canned Food"
and _tradeItem.quantity gt 0>>
<<set _canTradeFood to true>>
<<break>>
<</if>>
<</for>>
<<if _canTradeFood>>
<<removeFromInventory "Canned Food" 1>>
<<set $survivorGift to "food">>
<<goto "Survivor Trade Result">>
<<else>>
<<replace "#survivor-trade-message">>
<span class="warning-text">
You no longer have any Canned Food to offer.
</span>
<</replace>>
<</if>>
<</link>>
<<else>>
<span class="locked-option">
Offer 1 Canned Food — none available
</span>
<</if>>
<br><br>
<<if _hasWater>>
<<link "Offer 1 Water Bottle">>
<<set _canTradeWater to false>>
<<for _tradeItem range $inventory>>
<<if _tradeItem.name is "Water Bottle"
and _tradeItem.quantity gt 0>>
<<set _canTradeWater to true>>
<<break>>
<</if>>
<</for>>
<<if _canTradeWater>>
<<removeFromInventory "Water Bottle" 1>>
<<set $survivorGift to "water">>
<<goto "Survivor Trade Result">>
<<else>>
<<replace "#survivor-trade-message">>
<span class="warning-text">
You no longer have a Water Bottle to offer.
</span>
<</replace>>
<</if>>
<</link>>
<<else>>
<span class="locked-option">
Offer 1 Water Bottle — none available
</span>
<</if>>
<div id="survivor-trade-message"></div>
<br><br>
[[Attack the survivor|Attack Lone Survivor]]
<br><br>
[[Leave him alone|Outside]]
<</nobr>><<nobr>>
You move toward the survivor and reach for your weapon.
He reacts immediately, stepping away from the car and drawing his own weapon.
“You should have kept walking.”
<<set $enemies to [{
name: "Survivor",
health: 50,
maxHealth: 50,
damage: 10,
image: "media/enemies/survivor.jpg",
canSpare: true
}]>>
<<set $combatWinPassage to "Defeated Lone Survivor">>
<<set $combatEscapePassage to "Survivor Attack Escape">>
<<set $combatLosePassage to "GameOver">>
<br><br>
[[Fight|Combat]]
<</nobr>><<nobr>>
<<if not $survivorInfoGains>>
<<set $survivorInfoGains to 0>>
<</if>>
<<set _rewardRoll to random(1,100)>>
<<if $survivorGift is "food">>
The survivor cautiously accepts the canned food and places it inside his backpack.
<<else>>
The survivor takes the bottle and drinks several large mouthfuls before placing the rest inside his backpack.
<</if>>
<br><br>
<<if _rewardRoll <= 30 and $survivorInfoGains < 5>>
<<set _informationRoll to random(1,3)>>
<<set $intelligence += 1>>
<<set $survivorInfoGains += 1>>
<<if _informationRoll is 1>>
In return, he explains how emergency supply buildings were marked during the evacuation and which entrances were usually left unlocked.
<<elseif _informationRoll is 2>>
He shows you how to recognise whether an abandoned vehicle still contains fuel without wasting time forcing open its tank.
<<else>>
He explains a safer way to enter abandoned buildings while remaining out of sight of anything waiting inside.
<</if>>
<br><br>
You gained:
<br>
<b>+1 Intelligence</b>
<br><br>
Survival information learned from strangers:
<b><<= $survivorInfoGains>> / 5</b>
<<elseif _rewardRoll <= 55>>
<<set _materialsFound to random(3,6)>>
<<set $materials += _materialsFound>>
He removes several useful parts from his backpack and hands them to you.
<br><br>
You received:
<br>
<b>+<<= _materialsFound>> Materials</b>
<<elseif _rewardRoll <= 75>>
<<set _ammoFound to random(2,5)>>
<<addToInventory "9mm Ammo" "media/icons/9mm_ammo.jpg" _ammoFound>>
He reaches into a pocket and gives you several loose pistol rounds.
<br><br>
You received:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/9mm_ammo.jpg">
<div><strong>+<<= _ammoFound>> 9mm Ammo</strong></div>
</div>
</div>
<<elseif _rewardRoll <= 95>>
<<set _bandagesFound to random(1,2)>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" _bandagesFound>>
He gives you a small bundle of clean bandages.
<br><br>
You received:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+<<= _bandagesFound>> Bandage(s)</strong></div>
</div>
</div>
<<else>>
<<addToInventory "Medkit" "media/icons/medicalkit.jpg" 1>>
He hesitates before pulling a sealed Medkit from the bottom of his backpack.
<br><br>
You received:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/medicalkit.jpg">
<div><strong>+1 Medkit</strong></div>
</div>
</div>
<</if>>
<br><br>
The survivor thanks you, then quickly disappears between the abandoned buildings.
<br><br>
[[Continue|Outside]]
<</nobr>><<nobr>>
<<silently>>
<<if not $survivorsKilled>>
<<set $survivorsKilled to 0>>
<</if>>
<<set $survivorsKilled += 1>>
<<set _basicLootRoll to random(1,2)>>
<<set _materialsFound to random(2,5)>>
<<set _extraLootRoll to random(1,100)>>
<<set $materials += _materialsFound>>
<<if _basicLootRoll is 1>>
<<set _foodFound to 1>>
<<addToInventory "Canned Food" "media/icons/canfood.jpg" 1>>
<<else>>
<<set _waterFound to 1>>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" 1>>
<</if>>
<<if _extraLootRoll <= 45>>
<<set _ammoFound to random(1,4)>>
<<addToInventory "9mm Ammo" "media/icons/9mm_ammo.jpg" _ammoFound>>
<<elseif _extraLootRoll <= 75>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" 1>>
<<elseif _extraLootRoll <= 80>>
<<addToInventory "Medkit" "media/icons/medicalkit.jpg" 1>>
<</if>>
<</silently>>
<img src="media/actions/player_kill.gif" style="max-width:600px; border-radius:6px;">
You finish the wounded survivor and search his backpack and pockets.
<br><br>
You found:
<div class="loot-grid">
<<if _basicLootRoll is 1>>
<div class="loot-item">
<img src="media/icons/canfood.jpg">
<div><strong>+1 Canned Food</strong></div>
</div>
<<else>>
<div class="loot-item">
<img src="media/icons/water_bottle.jpg">
<div><strong>+1 Water Bottle</strong></div>
</div>
<</if>>
<<if _extraLootRoll <= 45>>
<div class="loot-item">
<img src="media/icons/9mm_ammo.jpg">
<div><strong>+<<print _ammoFound>> 9mm Ammo</strong></div>
</div>
<<elseif _extraLootRoll <= 75>>
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+1 Bandage</strong></div>
</div>
<<elseif _extraLootRoll <= 80>>
<div class="loot-item">
<img src="media/icons/medicalkit.jpg">
<div><strong>+1 Medkit</strong></div>
</div>
<</if>>
<div class="loot-item">
<img src="media/icons/materials.jpg">
<div><strong>+<<print _materialsFound>> Materials</strong></div>
</div>
</div>
<br><br>
You leave the body behind and continue on your way.
<br><br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
You manage to break away from the fight and disappear between the abandoned buildings.
The survivor shouts after you, but he does not follow.
You leave without taking anything.
<br><br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
The survivor falls heavily against the abandoned car.
His weapon slips from his hand and lands several feet away. He tries to rise, but his injuries leave him unable to continue fighting.
He looks up at you, breathing heavily.
“Just take what you want,” he says. “You won.”
<br><br>
[[Spare the survivor|Spare Lone Survivor]]
<br>
[[Kill him and take his supplies|Loot Lone Survivor]]
<</nobr>><<nobr>>
<img src="media/Events/man_escape.gif" style="max-width:600px; border-radius:6px;">
<<if not $survivorsSpared>>
<<set $survivorsSpared to 0>>
<</if>>
<<set $survivorsSpared += 1>>
You step away and leave his weapon lying on the road.
The survivor watches you cautiously, apparently surprised by your decision.
“Maybe you aren't completely lost yet,” he mutters.
You leave before he has enough strength to follow.
<br><br>
The survivor was spared.
<br><br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
<img src="media/locations/outside/crashed_policecar.jpg" style="max-width:600px; border-radius:6px;">
The crashed police car sits half on the road and half on the sidewalk.
The front bumper is crushed against a light pole. Dried blood stains the driver seat, and the radio inside the dashboard gives off only dead static.
The trunk looks damaged, but it may still contain something useful.
<br><br>
<<if not $policeCarSearchedThisVisit>>
[[Search the police car|Search Police Car]]
<<else>>
You have already searched the police car.
<</if>>
<br><br>
[[Leave the police car|Outside]]
<</nobr>><<nobr>>
<<if $policeCarSearchedThisVisit>>
You have already searched the police car.
<<else>>
<<set $policeCarSearchedThisVisit to true>>
<<set _lootRoll to random(1,100)>>
You search the front seats first.
Most of the useful equipment has already been taken, but you keep looking. After checking the glove compartment, the floor, and the damaged trunk, you finally see what survived the crash.
<br><br>
<<if _lootRoll <= 50>>
<<set _ammoFound to random(2,5)>>
<<addToInventory "9mm Ammo" "media/icons/9mm_ammo.jpg" _ammoFound>>
You find several loose pistol rounds inside a cracked plastic ammunition box.
<br><br>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/9mm_ammo.jpg">
<div><strong>+<<print _ammoFound>> 9mm Ammo</strong></div>
</div>
</div>
<<elseif _lootRoll <= 75>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" 1>>
You find a small first-aid pouch wedged beneath the passenger seat.
Most of it is empty, but one clean bandage remains sealed inside.
<br><br>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+1 Bandage</strong></div>
</div>
</div>
<<else>>
You search every compartment, but the car has already been stripped.
Whoever found it before you took anything valuable.
<</if>>
<</if>>
<br><br>
[[Return to the police car|Crashed Police Car]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/outside/abandoned_pharmacy.jpg">
The pharmacy is small and dark.
Several shelves have been knocked over, and broken medicine bottles cover the floor. A torn poster about emergency prescriptions hangs crookedly near the counter.
The back of the store is difficult to see from the entrance.
<br><br>
<<if not $pharmacySearchedThisVisit>>
[[Search the pharmacy|Search Pharmacy]]
<<else>>
You have already searched the pharmacy.
<</if>>
<br><br>
[[Leave the pharmacy|Outside]]
<</nobr>><<nobr>>
<<if $pharmacySearchedThisVisit>>
You have already searched the pharmacy.
<br><br>
[[Return to the pharmacy|Abandoned Pharmacy]]
<<else>>
<<set $pharmacySearchedThisVisit to true>>
<<set $pharmacyBandagesFound to 0>>
<<set $pharmacyMedkitFound to 0>>
<<set $pharmacyLootPending to false>>
<<set _lootRoll to random(1,100)>>
<<if _lootRoll <= 60>>
<<set $pharmacyBandagesFound to random(1,3)>>
<<set $pharmacyLootPending to true>>
<<elseif _lootRoll <= 85>>
<<set $pharmacyBandagesFound to random(1,2)>>
<<set $pharmacyMedkitFound to 1>>
<<set $pharmacyLootPending to true>>
<<elseif _lootRoll <= 95>>
<<set $pharmacyMedkitFound to 1>>
<<set $pharmacyLootPending to true>>
<</if>>
<img class="location-img" src="media/locations/outside/abandoned_pharmacy_inside.jpg">
You step carefully over the broken glass and begin searching the pharmacy shelves.
Most of the medicine is gone, expired, or scattered across the floor.
<br><br>
<<if not $pharmacyLootPending>>
After several minutes of searching, you find nothing useful.
Someone has already taken anything worth carrying.
<br><br>
[[Return to the pharmacy|Abandoned Pharmacy]]
<<else>>
You notice several useful medical supplies behind the fallen counter.
<<set _zombieRoll to random(1,100)>>
<br><br>
<<if _zombieRoll <= 40>>
Before you can reach the supplies, you hear a low groan from the back room.
A zombie shambles out from behind the counter, blocking your path.
<<set $enemyCount to 1>>
<<set $enemyName to "Zombie">>
<<set $enemies to []>>
<<run $enemies.push({
name: "Zombie",
health: 20,
maxHealth: 20,
damage: 8
})>>
<<set $combatWinPassage to "Pharmacy Loot">>
<<set $combatEscapePassage to "Pharmacy Zombie Escape">>
<<set $combatLosePassage to "GameOver">>
<br><br>
[[Fight the zombie|Combat]]
<br>
[[Retreat from the pharmacy|Run From Zombie]]
<<else>>
The pharmacy appears quiet.
You move behind the counter and collect the supplies.
<br><br>
[[Take the medical supplies|Pharmacy Loot]]
<</if>>
<</if>>
<</if>>
<</nobr>><<nobr>>
<<if $pharmacyLootPending>>
<<set $pharmacyLootPending to false>>
You collect the medical supplies from behind the counter.
<br><br>
You found:
<div class="loot-grid">
<<if $pharmacyBandagesFound gt 0>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" $pharmacyBandagesFound>>
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+<<print $pharmacyBandagesFound>> Bandage(s)</strong></div>
</div>
<</if>>
<<if $pharmacyMedkitFound gt 0>>
<<addToInventory "Medkit" "media/icons/medicalkit.jpg" $pharmacyMedkitFound>>
<div class="loot-item">
<img src="media/icons/medicalkit.jpg">
<div><strong>+<<print $pharmacyMedkitFound>> Medkit</strong></div>
</div>
<</if>>
</div>
<<else>>
There are no medical supplies left to collect.
<</if>>
<br><br>
[[Return to the pharmacy|Abandoned Pharmacy]]
<</nobr>><<nobr>>
<<set $pharmacyLootPending to false>>
You retreat from the pharmacy and leave the medical supplies behind.
The zombie remains somewhere inside the dark store.
<br><br>
[[Return to the pharmacy|Abandoned Pharmacy]]
<</nobr>><<nobr>>
<div class="credits-box">
<h2>This is a work of fiction.</h2>
<p>
All characters, names, stories, dialogue, and events in this game are fictional.
They do not represent the real lives, personalities, relationships, or opinions of any real people.
</p>
<p>
All characters involved in adult content are fictional adults aged 18 or older.
</p>
<p>
Some visual materials used in this game may feature real adult performers.
These materials remain the property of their respective copyright holders.
This game does not claim ownership of third-party images, animations, GIFs, or videos.
</p>
<p>
Any visual material used during development is intended as placeholder or reference material unless otherwise licensed or replaced.
</p>
<br>
<h2>Featured Visual References</h2>
<p>
The following names may be used only to identify visual references or source material.
The in-game characters are fictional and separate from the real performers.
</p>
<p>
Mia - Lena Paul<br>
Tara - Angela White<br>
Character 3 - [Actress / visual reference name]
</p>
<br>
<h2>Special Thanks</h2>
<p>
Special thanks to everyone who supports the development of this project.
</p>
<br>
<<link "Back">><<goto $previousPassage>><</link>>
</div>
<</nobr>><<nobr>>
<h2>Survival Journal</h2>
<div class="journal-box">
<h3>Current Objective</h3>
<<if $day is 1>>
<p><strong>Search the house.</strong></p>
<p>You need to understand what this place can offer before risking the streets outside.</p>
<ul>
<li>Explore the main rooms.</li>
<li>Look for food and water.</li>
<li>Check if the house has useful equipment.</li>
<li>Sleep through the first night.</li>
</ul>
<<elseif $day is 2>>
<p><strong>Go outside for the first time.</strong></p>
<p>The house will not keep you alive forever. You need more supplies.</p>
<ul>
<li>Explore the area around the compound.</li>
<li>Search the nearby neighborhood.</li>
<li>Return before you run out of energy.</li>
</ul>
<<else>>
<p><strong>Survive behind the walls.</strong></p>
<p>Keep supplies stocked, manage your condition, and prepare for whatever comes next.</p>
<ul>
<li>Search for supplies.</li>
<li>Maintain food, water, fuel, and electricity.</li>
<li>Avoid unnecessary fights.</li>
<li>Rest when your energy is low.</li>
</ul>
<</if>>
</div>
<div class="journal-box">
<h3>Survival Notes</h3>
<ul>
<<if $day >= 2>>
<li>The outside is now accessible.</li>
<</if>>
<<if $generatorInspected>>
<li>You inspected the generator.</li>
<<else>>
<li>The generator should be inspected.</li>
<</if>>
<<if setup.totalFood() <= 2>>
<li class="journal-warning">Food supplies are dangerously low.</li>
<</if>>
<<if $fuel <= 0>>
<li class="journal-warning">You are out of fuel.</li>
<</if>>
<<if $electricity < 30>>
<li class="journal-warning">Electricity is low.</li>
<</if>>
</ul>
</div>
<div class="journal-box">
<h3>Records</h3>
<<link "Characters">>
<<showJournalPanel "Journal Characters">>
<</link>>
</div>
<div class="journal-box">
<h3>Extras</h3>
<<link "Cheats">>
<<showJournalPanel "Journal Cheats">>
<</link>>
</div>
<<link "Close">>
<<run Dialog.close()>>
<</link>>
<</nobr>><<nobr>>
<<if $day is 3 and not $metMia>>
<<goto "Mia Arrival">>
<<elseif $day >= 8 and not $taraEventStarted and not $taraEventCompleted>>
<<goto "Tara Supply Run Start">>
<<else>>
<<goto "Master Bedroom">>
<</if>>
<</nobr>><<nobr>>
<<set $metMia to true>>
You are about to leave the bedroom when the morning silence breaks.
<br><br>
A gunshot cracks somewhere outside the compound.
<br><br>
Then another.
<br><br>
For a moment, everything is still. Then you hear the infected — distant at first, then louder. Their groans roll through the street like a warning.
<br><br>
Someone is out there.
<br><br>
[[Rush to the gate|Mia At Gate]]
<br>
[[Stay inside and listen|Mia Ignore Gunshots]]
<</nobr>><<nobr>>
You rush downstairs and move toward the gate.
<br><br>
Through the bars, you see a woman sprinting toward the compound. Her jacket is torn, her face is dirty, and one hand grips an empty pistol.
<br><br>
<img class="scene-img" src="media/characters/mia/First_encounter.png">
<br><br>
Behind her, a group of infected follows down the road. Too many to fight. Too close to ignore.
<br><br>
She sees you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Woman</div>
<div class="dialogue-text">
"Hey! Open the gate! Please! They're right behind me!"
</div>
</div>
</div>
<br>
The infected are getting closer.
<br><br>
[[Open the gate and help her|Help Mia]]
<br>
[[Wait and watch|Watch Mia]]
<</nobr>><<nobr>>
You stay inside and listen.
<br><br>
Another gunshot echoes outside.
<br><br>
Then shouting.
<br><br>
Then the infected.
<br><br>
You wait until the noise fades, but it takes a long time.
<br><br>
By the time you check the gate, the street is empty except for blood on the road.
<br><br>
<<set $miaDead to true>>
<<set $survivorsKilled += 1>>
[[Continue|Entryway]]
<</nobr>><<nobr>>
<<set $helpedMia to true>>
<<set $survivorsSpared += 1>>
You unlock the gate and pull it open just wide enough for her to slip through.
<br><br>
She stumbles inside, nearly falling against you. One of the infected reaches the gate before you can close it.
<img class="scene-img" src="media/actions/rescue_mia.gif">
<br><br>
You shove your weight into the metal and slam it shut.
<br><br>
A hand pushes through the bars. Rotten fingers claw at your sleeve.
<br><br>
The woman grabs a loose metal rod from the ground and drives it into the infected's face. You kick the gate hard, forcing the body back into the others.
<br><br>
The lock snaps into place.
<br><br>
<img class="scene-img" src="media/events/gate_close.gif">
The infected crash against the gate again and again, but the metal holds.
<br><br>
[[Retreat inside|Mia Inside]]
<</nobr>><<nobr>>
You hesitate.
<br><br>
The woman keeps running, but the infected are closing the distance. She looks back over her shoulder and almost trips.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Woman</div>
<div class="dialogue-text">
"Please! Open the gate!"
</div>
</div>
</div>
<br>
One of the infected reaches for her. She shoves it away and keeps moving, but she is slowing down.
<br><br>
You still have a few seconds.
<br><br>
[[Open the gate|Help Mia]]
<br>
[[Keep watching|Mia Dies]]
<</nobr>><<nobr>>
You retreat into the house and lock the door behind you.
<br><br>
The woman leans against the wall, breathing hard. Her empty pistol hangs loosely in her hand.
<img class="scene-img" src="media/characters/Mia/Mia_saved.jpg">
<br><br>
For several seconds, neither of you speaks.
<br><br>
Outside, the infected are still hitting the gate.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Woman</div>
<div class="dialogue-text">
"Thank you. I thought I was dead."
</div>
</div>
</div>
<br>
She wipes dirt and sweat from her face.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Woman</div>
<div class="dialogue-text">
"My name is Mia. I saw this place yesterday. I didn't know if anyone was still alive inside."
</div>
</div>
</div>
<br>
She looks past you, toward the rooms of the mansion.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Are you alone here?"
</div>
</div>
</div>
<br>
[[“Yeah. It’s just me.”|Mia Alone Honest]]
<br>
[[“Why do you care?”|Mia Alone Suspicious]]
<br>
[[“For now.”|Mia Alone Vague]]
<</nobr>><<nobr>>
You keep watching.
<br><br>
For one moment, it looks like she might still make it.
<br><br>
Then one of the infected catches her arm.
<br><br>
She screams, twists free, and falls hard against the road. The others close in before she can stand.
<img class="scene-img" src="media/characters/mia/First_encounter_death.png">
<br><br>
You step away from the gate before it is over.
<img class="scene-img" src="media/enemies/zombies_devour.gif">
<br><br>
<<set $miaDead to true>>
<<set $survivorsKilled += 1>>
[[Continue|Entryway]]
<</nobr>><<nobr>>
<<changeMiaTrust 3>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"Yeah. It's just me."
</div>
</div>
</div>
<br>
Mia nods slowly.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Then you're lucky. Groups are not always safer."
</div>
</div>
</div>
<br>
<span class="stat-change">Mia Trust +3</span>
<br><br>
[[Continue|Mia Stay Choice]]
<</nobr>><<nobr>>
<<changeMiaTrust -2>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"Why do you care?"
</div>
</div>
</div>
<br>
Mia looks at you carefully.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Because people act different when they think no one is watching."
</div>
</div>
</div>
<br>
She glances toward the gate.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I needed to know what kind of place I just ran into."
</div>
</div>
</div>
<br>
<span class="stat-change-negative">Mia Trust -2</span>
<br><br>
[[Continue|Mia Stay Choice]]
<</nobr>><<nobr>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"For now."
</div>
</div>
</div>
<br>
Mia watches you for a moment, trying to decide whether that answer means anything.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Fair enough."
</div>
</div>
</div>
<br>
[[Continue|Mia Stay Choice]]
<</nobr>><<nobr>>
Mia lowers herself onto a chair, still breathing unevenly.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I ran out of food yesterday. I can't stay out there anymore."
</div>
</div>
</div>
<br>
She looks at you, trying not to sound desperate.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Can I stay? Even just for a while?"
</div>
</div>
</div>
<br>
[[Let her stay|Accept Mia]]
<br>
[[Ask what she can do|Ask Mia Skills]]
<br>
[[Tell her she cannot stay|Reject Mia After Rescue]]
<</nobr>><<nobr>>
<<if not $miaStayed>>
<<set $miaStayed to true>>
<<set $population += 1>>
<</if>>
<<changeMiaTrust 5>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"You can stay. For now."
</div>
</div>
</div>
<br>
Mia closes her eyes for a moment, visibly relieved.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Thank you. I mean it."
</div>
</div>
</div>
<br>
She looks around the compound again. The walls, the locked gate, the quiet rooms.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I'll pull my weight."
</div>
</div>
</div>
<br>
<span style="color:#ffcc66; font-weight:bold;">
Mia has joined the compound.
</span>
<br><br>
<span class="stat-change">Mia Trust +5</span><br>
<span class="stat-change">Population +1</span>
<br><br>
[[Continue|Entryway]]
<</nobr>><<nobr>>
<<changeMiaTrust 1>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"What can you do?"
</div>
</div>
</div>
<br>
Mia exhales, almost laughing, but there is no humor in it.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I can move quietly. I can carry supplies. I can keep watch. I know how to use a gun when I actually have bullets."
</div>
</div>
</div>
<br>
She looks toward the gate again.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I won't be dead weight."
</div>
</div>
</div>
<br>
<span class="stat-change">Mia Trust +1</span>
<br><br>
[[Let her stay|Accept Mia]]
<br>
[[Tell her she cannot stay|Reject Mia After Rescue]]
<</nobr>><<nobr>>
<<set $miaLeft to true>>
<<changeMiaTrust -10>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"You can't stay here."
</div>
</div>
</div>
<br>
Mia stares at you.
<br><br>
For a moment, she looks too tired to understand what you said.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You opened the gate just to send me back out?"
</div>
</div>
</div>
<br>
You say nothing.
<br><br>
She looks toward the street, then back at the house.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Fine."
</div>
</div>
</div>
<br>
She leaves before noon.
<br><br>
You do not know how far she gets.
<br><br>
<span class="stat-change-negative">Mia Trust -10</span>
<br><br>
[[Continue|Entryway]]
<</nobr>><<widget "updateMiaLocation">><<silently>>
<<if $miaStayed and not $miaDead>>
<<if $day is 3>>
<<if $hour >= 8 and $hour < 10>>
<<set $miaLocation to "Living Room">>
<<elseif $hour >= 10 and $hour < 18>>
<<set $miaLocation to "Guest Bedroom1">>
<<elseif $hour >= 18 and $hour < 20>>
<<set $miaLocation to "Kitchen">>
<<else>>
<<set $miaLocation to "Guest Bedroom1">>
<</if>>
<<else>>
<<if $hour >= 8 and $hour < 9>>
<<set $miaLocation to "Kitchen">>
<<elseif $hour is 9 and $minute < 30>>
<<set $miaLocation to "Second Floor Bathroom">>
<<elseif $hour >= 9 and $hour < 12>>
<<set $miaLocation to "Backyard">>
<<elseif $hour >= 12 and $hour < 15>>
<<set $miaLocation to "Living Room">>
<<elseif $hour >= 15 and $hour < 18>>
<<set $miaLocation to "Garage">>
<<elseif $hour >= 18 and $hour < 20>>
<<set $miaLocation to "Kitchen">>
<<elseif $hour >= 20 and $hour < 22>>
<<set $miaLocation to "Living Room">>
<<else>>
<<set $miaLocation to "Guest Bedroom1">>
<</if>>
<</if>>
<<else>>
<<set $miaLocation to "">>
<</if>>
<</silently>><</widget>>
<<widget "miaMarker">><<nobr>><<if $miaStayed and not $miaDead and $miaLocation is $args[0]>><img class="mia-room-marker" src="media/characters/mia/icon.jpg" alt=""><</if>><</nobr>><</widget>>
<<widget "miaFirstFloorMarker">><<nobr>><<if $miaStayed and not $miaDead and ($miaLocation is "Living Room" or $miaLocation is "Kitchen" or $miaLocation is "Backyard" or $miaLocation is "Garage" or $miaLocation is "Bathroom" or $miaLocation is "Storage Room" or $miaLocation is "Entryway")>><img class="mia-room-marker" src="media/characters/mia/icon.jpg" alt=""><</if>><</nobr>><</widget>>
<<widget "miaSecondFloorMarker">><<nobr>><<if $miaStayed and not $miaDead and ($miaLocation is "Guest Bedroom1" or $miaLocation is "Guest Bedroom2" or $miaLocation is "Master Bedroom" or $miaLocation is "Second Floor Bathroom" or $miaLocation is "Small Office")>><img class="mia-room-marker" src="media/characters/mia/icon.jpg" alt=""><</if>><</nobr>><</widget>>
<<widget "miaPresence">><<nobr>><<if $miaStayed and not $miaDead and $miaLocation is $args[0]>><br><br><span class="mia-inline-presence"><<link "Mia is here">><<goto $args[2]>><</link>> — <<print $args[1]>></span><</if>><</nobr>><</widget>>
<<widget "changeMiaTrust">><<silently>>
<<set $miaTrust = Math.min(100, Math.max(0, $miaTrust + $args[0]))>>
<</silently>><</widget>>
<<widget "changeMiaDesire">><<silently>>
<<set $miaDesire = Math.min(100, Math.max(0, $miaDesire + $args[0]))>>
<</silently>><</widget>>
<<widget "miaActionEnergyCost">><<silently>>
<<set $energy = Math.max(0, $energy - 5)>>
<</silently>><</widget>>
<<widget "changeMiaSceneArousal">><<silently>>
<<set $miaSceneArousal = Math.min(100, Math.max(0, $miaSceneArousal + $args[0]))>>
<</silently>><</widget>>
<<widget "changePlayerSceneArousal">><<silently>>
<<set $playerSceneArousal = Math.min(100, Math.max(0, $playerSceneArousal + $args[0]))>>
<</silently>><</widget>><<silently>><<updateMiaLocation>><<updateTaraLocation>><</silently>><<nobr>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $day is 3>>
"I keep expecting to hear them outside the gate again."
<<elseif $day is 4>>
"I watched the street for too long today. Every shadow started looking like movement."
<<else>>
<<if $hour >= 6 and $hour < 12>>
"The street looks different in the morning. Less dead, somehow."
<<elseif $hour >= 12 and $hour < 18>>
"I keep watching for survivors. I don't know if that's hopeful or stupid."
<<else>>
"Once it gets dark, every sound outside feels closer."
<</if>>
<</if>>
</div>
</div>
</div>
<br>
<<link "Talk with her">>
<<set $miaRoomContext to "Living Room">>
<<set $miaRoomExit to "Living Room">>
<<goto "Mia Interaction Menu">>
<</link>>
<br>
[[Leave her alone|Living Room]]
<</nobr>><<nobr>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $day is 3>>
"I just need a little time to get my head straight. Today feels like a blur."
<<elseif $day is 4>>
"I slept, but it didn't really feel like sleep. Yesterday still feels like a blur."
<<else>>
<<if $hour >= 22 or $hour < 6>>
"I should probably try to sleep soon. Nights feel longer than they used to."
<<elseif $hour >= 6 and $hour < 12>>
"Morning again. I guess that still means something."
<<elseif $hour >= 12 and $hour < 18>>
"It's quiet up here. Almost too quiet."
<<else>>
"I keep listening for sounds outside. I don't think that habit is going away anytime soon."
<</if>>
<</if>>
</div>
</div>
</div>
<br>
<<link "Talk with her">>
<<set $miaRoomContext to "Guest Bedroom1">>
<<set $miaRoomExit to "Guest Bedroom1">>
<<goto "Mia Interaction Menu">>
<</link>>
<br>
[[Leave her to rest|Guest Bedroom1]]
<</nobr>><<nobr>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $day is 3>>
"I don't think I can eat much yet. My stomach still feels twisted."
<<elseif $day is 4>>
"I keep checking the cabinets like more food is going to magically appear."
<<else>>
<<if $hour >= 6 and $hour < 12>>
"Morning makes the kitchen feel almost normal. Almost."
<<elseif $hour >= 12 and $hour < 18>>
"We should keep track of everything we use. Food, water... all of it."
<<else>>
"Dinner used to be the quiet part of the day. Now quiet just feels dangerous."
<</if>>
<</if>>
</div>
</div>
</div>
<br>
<<link "Talk with her">>
<<set $miaRoomContext to "Kitchen">>
<<set $miaRoomExit to "Kitchen">>
<<goto "Mia Interaction Menu">>
<</link>>
<br>
[[Leave her alone|Kitchen]]
<</nobr>><<nobr>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $day is 3>>
"Being outside again feels wrong. Even behind the wall."
<<elseif $day is 4>>
"I know the wall is supposed to make this place safer, but I keep looking for gaps."
<<else>>
<<if $hour >= 6 and $hour < 12>>
"The air feels better out here in the morning. Still tense, but better."
<<elseif $hour >= 12 and $hour < 18>>
"I keep thinking about how quiet the world sounds now. Like everything is holding its breath."
<<else>>
"I don't like being out here this late. The dark makes the wall feel smaller."
<</if>>
<</if>>
</div>
</div>
</div>
<br>
<<link "Talk with her">>
<<set $miaRoomContext to "Backyard">>
<<set $miaRoomExit to "Backyard">>
<<goto "Mia Interaction Menu">>
<</link>>
<br>
[[Leave her alone|Backyard]]
<</nobr>><<nobr>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $day is 3>>
"This thing is loud. I don't know if that makes me feel safer or more exposed."
<<elseif $day is 4>>
"I kept hearing the generator last night. At first I thought it was something outside."
<<else>>
<<if $hour >= 6 and $hour < 12>>
"I guess this machine is part of why the house still feels alive."
<<elseif $hour >= 12 and $hour < 18>>
"If the generator dies, things get harder fast, don't they?"
<<else>>
"At night, every sound in here feels twice as loud."
<</if>>
<</if>>
</div>
</div>
</div>
<br>
<<link "Talk with her">>
<<set $miaRoomContext to "Garage">>
<<set $miaRoomExit to "Garage">>
<<goto "Mia Interaction Menu">>
<</link>>
<br>
[[Leave her alone|Garage]]
<</nobr>><<nobr>>
You knock lightly on the door.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $day is 3>>
"I'm fine. I just... I needed to wash the blood and dust off."
<<elseif $day is 4>>
"Just give me a minute, okay? I still feel like yesterday is stuck to my skin."
<<else>>
"I'll be out soon. Thanks."
<</if>>
</div>
</div>
</div>
<br>
You step back from the door, giving her space.
<br><br>
[[Back|Second Floor Bathroom]]
<</nobr>><<nobr>>
<<set _peekResult to random(1,2)>>
<<if _peekResult is 1>>
You lean closer to the bathroom door, moving as quietly as you can.
<br><br>
The door has not closed properly. Through the narrow gap, you catch a brief glimpse of Mia getting ready to shower.
<br><br>
<img class="scene-img" src="media/characters/mia/bathroom/peek1.gif">
<br><br>
She does not seem to notice you.
<br><br>
[[Keep watching|Mia Bathroom Watch]]
<br>
[[Step back quietly|Second Floor]]
<<else>>
You lean closer to the bathroom door.
<br><br>
The floor creaks beneath your foot.
<br><br>
The water keeps running for a moment, then Mia's voice cuts through from inside.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Is someone out there?"
</div>
</div>
</div>
<br>
You step back, but not fast enough.
<br><br>
<img class="scene-img" src="media/characters/mia/bathroom/caught.jpg">
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"What the hell do you think you're doing? Get out!"
</div>
</div>
</div>
<br>
<<changeMiaTrust -10>>
<span class="stat-change-negative">Mia Trust -10</span>
<br><br>
[[Back|Second Floor]]
<</if>>
<</nobr>><<nobr>>
<<set _watchResult to random(1,2)>>
<<if _watchResult is 1>>
You stay near the door a little longer.
<br><br>
The narrow gap gives you a clearer look for a few seconds.
<img class="scene-img" src="media/characters/mia/bathroom/peek2.webp">
<br><br>
Mia does not notice you.
<img class="scene-img" src="media/characters/mia/bathroom/peek3.gif">
<br><br>
After a moment, you step back into the hallway.
<br><br>
[[Back|Second Floor]]
<<else>>
You stay near the door too long.
<br><br>
The floor creaks again.
<br><br>
This time, the water stops.
<img class="scene-img" src="media/characters/mia/bathroom/caught.jpg">
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Seriously?"
</div>
</div>
</div>
<br>
Her voice is colder now.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I thought I could trust you."
</div>
</div>
</div>
<br>
<<changeMiaTrust -15>>
<span class="stat-change-negative">Mia Trust -15</span>
<br><br>
[[Back|Second Floor]]
<</if>>
<</nobr>><<nobr>>
<h2>Characters</h2>
<<if $metMia>>
<<set _miaTrustWidth to $miaTrust + "%">>
<<set _miaDesireWidth to $miaDesire + "%">>
<div class="character-card">
<img class="journal-character-avatar" src="media/characters/mia/avatar.jpg">
<div class="character-info">
<div class="character-name">Mia</div>
<<if $miaDead>>
<div class="character-status">Status: Dead</div>
<<elseif $miaLeft>>
<div class="character-status">Status: Left the compound</div>
<<elseif $miaStayed>>
<div class="character-status">Status: Staying at the compound</div>
<div class="character-status">Location: <<print $miaLocation>></div>
<<else>>
<div class="character-status">Status: Unknown</div>
<</if>>
<br>
<div class="character-stat-label">Trust: <<print $miaTrust>> / 100</div>
<div class="character-stat-bar">
<div class="character-stat-fill trust" @style="'width:' + _miaTrustWidth + ';'"></div>
</div>
<br>
<div class="character-stat-label">Desire: <<print $miaDesire>> / 100</div>
<div class="character-stat-bar">
<div class="character-stat-fill desire" @style="'width:' + _miaDesireWidth + ';'"></div>
</div>
</div>
</div>
<</if>>
<<if $metTara>>
<<set _taraTrustWidth to $taraTrust + "%">>
<<set _taraDesireWidth to $taraDesire + "%">>
<<set _taraSuspicionWidth to $taraSuspicion + "%">>
<div class="character-card">
<img class="journal-character-avatar" src="media/characters/tara/avatar.jpg">
<div class="character-info">
<div class="character-name">Tara</div>
<<if $taraDead>>
<div class="character-status">Status: Dead</div>
<<elseif $taraLeft>>
<div class="character-status">Status: Left the compound</div>
<<elseif $taraStayed>>
<div class="character-status">Status: Staying at the compound</div>
<div class="character-status">Location: <<print $taraLocation>></div>
<<else>>
<div class="character-status">Status: Unknown</div>
<</if>>
<br>
<div class="character-stat-label">Trust: <<print $taraTrust>> / 100</div>
<div class="character-stat-bar">
<div class="character-stat-fill trust" @style="'width:' + _taraTrustWidth + ';'"></div>
</div>
<br>
<div class="character-stat-label">Desire: <<print $taraDesire>> / 100</div>
<div class="character-stat-bar">
<div class="character-stat-fill desire" @style="'width:' + _taraDesireWidth + ';'"></div>
</div>
<br>
<div class="character-stat-label">Suspicion: <<print $taraSuspicion>> / 100</div>
<div class="character-stat-bar">
<div class="character-stat-fill suspicion" @style="'width:' + _taraSuspicionWidth + ';'"></div>
</div>
</div>
</div>
<</if>>
<<if not $metMia and not $metTara>>
<p>You have not met any other survivors yet.</p>
<</if>>
<br>
<<link "Back to Journal">>
<<showJournalPanel "Survival Journal">>
<</link>>
<</nobr>><<nobr>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $miaRoomContext is "Guest Bedroom1">>
"What is it?"
<<elseif $miaRoomContext is "Living Room">>
"Did you see something outside?"
<<elseif $miaRoomContext is "Kitchen">>
"Need something?"
<<elseif $miaRoomContext is "Backyard">>
"It's quiet out here. Too quiet."
<<elseif $miaRoomContext is "Garage">>
"That generator is louder than I expected."
<<else>>
"Yeah?"
<</if>>
</div>
</div>
</div>
<br><br>
Trust: <<print $miaTrust>> / 100<br>
Desire: <<print $miaDesire>> / 100
<br><br>
What do you want to do?
<br><br>
[[Talk normally|Mia Action Talk]]
<br>
[[Comfort her|Mia Action Comfort]]
<br>
<<if $miaTrust >= 10>>
[[Ask about her past|Mia Action Past]]
<<else>>
<span class="locked-option">Ask about her past</span>
<span class="locked-note">Mia does not trust you enough to talk about that yet.</span>
<</if>>
<br>
<<if $miaTrust >= 15>>
[[Flirt with her|Mia Action Flirt]]
<<else>>
<span class="locked-option">Flirt with her</span>
<span class="locked-note">Mia does not trust you enough yet.</span>
<</if>>
<br>
<<if $miaTrust >= 25>>
[[Hug her|Mia Action Hug]]
<<else>>
<span class="locked-option">Hug her</span>
<span class="locked-note">Mia does not trust you enough for that yet.</span>
<</if>>
<br>
<<if $miaTrust >= 35 and $miaDesire >= 20>>
[[Kiss her|Mia Action Kiss]]
<<else>>
<span class="locked-option">Kiss her</span>
<span class="locked-note">You are not close enough for that yet.</span>
<</if>>
<br>
<<if $miaTrust >= 60 and $miaDesire >= 50>>
[[Invite her somewhere private|Mia Action Invite Private]]
<<else>>
<span class="locked-option">Invite her somewhere private</span>
<span class="locked-note">Mia is not ready for that yet.</span>
<</if>>
<br>
<<link "Leave">>
<<goto $miaRoomExit>>
<</link>>
<</nobr>><<nobr>>
<<if $energy < 5>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You look exhausted. We can talk later."
</div>
</div>
</div>
<br>
You are too tired to talk right now.
<br><br>
[[Back|Mia Interaction Menu]]
<<else>>
<<set $energy -= 5>>
<<advanceMinutes 10>>
<<changeMiaTrust 3>>
You spend a little time talking with Mia.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $miaRoomContext is "Guest Bedroom1">>
"Talking helps. I don't know why, but it does."
<<elseif $miaRoomContext is "Living Room">>
"Sometimes I watch the street and wonder how many people are still out there."
<<elseif $miaRoomContext is "Kitchen">>
"Keeping track of supplies makes things feel a little less hopeless."
<<elseif $miaRoomContext is "Backyard">>
"This place could be something. Not safe exactly, but safer."
<<elseif $miaRoomContext is "Garage">>
"If there's something useful I can learn, tell me. I don't want to just stand around."
<<else>>
"Thanks for listening."
<</if>>
</div>
</div>
</div>
<br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +3</span>
<br><br>
[[Back|Mia Interaction Menu]]
<</if>>
<</nobr>><<nobr>>
<<if $energy < 5>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You should rest. You look worse than I feel."
</div>
</div>
</div>
<br>
You are too tired right now.
<br><br>
[[Back|Mia Interaction Menu]]
<<else>>
<<set $energy -= 5>>
<<advanceMinutes 10>>
<<changeMiaTrust 4>>
You stay close and speak to her calmly, giving her a moment to breathe.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $day <= 4>>
"I keep thinking I should still be running. Like if I stop, everything catches up."
<<else>>
"I don't say it much, but... this helps. Having someone here."
<</if>>
</div>
</div>
</div>
<br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +4</span>
<br><br>
[[Back|Mia Interaction Menu]]
<</if>>
<</nobr>><<nobr>>
<<if $miaTrust < 15>>
Mia does not trust you enough for that.
<br><br>
[[Back|Mia Interaction Menu]]
<<elseif $energy < 5>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You can barely stand. Maybe flirt when you're not about to collapse."
</div>
</div>
</div>
<br>
You are too tired right now.
<br><br>
[[Back|Mia Interaction Menu]]
<<else>>
<<set $energy -= 5>>
<<advanceMinutes 10>>
<<changeMiaTrust 1>>
<<changeMiaDesire 4>>
You let the conversation turn lighter, testing the edge between comfort and something more personal.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
<<if $miaDesire < 15>>
"Careful. I might start thinking you're trying to charm me."
<<elseif $miaDesire < 40>>
"You always talk like that, or am I getting special treatment?"
<<else>>
"You know exactly what you're doing, don't you?"
<</if>>
</div>
</div>
</div>
<br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +1</span><br>
<span class="stat-change">Mia Desire +4</span>
<br><br>
[[Back|Mia Interaction Menu]]
<</if>>
<</nobr>><<nobr>>
<<if $miaTrust < 10>>
Mia does not trust you enough to talk about that yet.
<br><br>
[[Back|Mia Interaction Menu]]
<<elseif $energy < 5>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Not now. You look like you can barely keep your eyes open."
</div>
</div>
</div>
<br>
You are too tired to have a serious conversation right now.
<br><br>
[[Back|Mia Interaction Menu]]
<<else>>
<<set $energy -= 5>>
<<advanceMinutes 20>>
<<if not $miaAskedPast>>
<<set $miaAskedPast to true>>
<<changeMiaTrust 4>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"Before you found this place... were you alone?"
</div>
</div>
</div>
<br>
Mia is quiet for a while.
<br><br>
At first, you think she might not answer.
<br><br>
<img class="scene-img" src="media/characters/mia/talk_past.gif">
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"No. Not at first."
</div>
</div>
</div>
<br>
She looks away, her eyes settling on some distant point in the room.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"There were six of us. We were hiding in an apartment building a few streets from here. It wasn't perfect, but for a while... it worked."
</div>
</div>
</div>
<br>
Her voice tightens, but she keeps going.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Before all this, I worked at a pharmacy. Nothing impressive. Stocking shelves, dealing with angry customers, pretending I had my life figured out."
</div>
</div>
</div>
<br>
She gives a small, humorless smile.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"After everything fell apart, that place became useful. Medicine, bandages, bottled water in the back room. People started following me because I knew where things were."
</div>
</div>
</div>
<br>
Mia lowers her eyes.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Then one of them got bitten and didn't tell us."
</div>
</div>
</div>
<br>
The room feels colder for a moment.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"By morning, the group was gone. Not all dead, maybe. Some ran. Some didn't get the chance. I stopped looking back after the screaming started."
</div>
</div>
</div>
<br>
She finally looks at you again.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"That's why I asked if you were alone. Groups can save you. They can also get you killed."
</div>
</div>
</div>
<br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +4</span>
<<else>>
<<changeMiaTrust 1>>
You ask Mia a little more about the people she was with before she reached the compound.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I still remember their voices sometimes. That's the worst part. Not their faces. Their voices."
</div>
</div>
</div>
<br>
She goes quiet, but she does not shut you out.
<br><br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +1</span>
<</if>>
<br><br>
[[Back|Mia Interaction Menu]]
<</if>>
<</nobr>><<nobr>>
<<if $miaTrust < 25>>
Mia does not trust you enough for that yet.
<br><br>
[[Back|Mia Interaction Menu]]
<<elseif $energy < 5>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You look exhausted. Maybe save that for when you're not about to fall over."
</div>
</div>
</div>
<br>
You are too tired right now.
<br><br>
[[Back|Mia Interaction Menu]]
<<else>>
<<set $energy -= 5>>
<<if not $miaFirstHug>>
<<set $miaFirstHug to true>>
<<advanceMinutes 10>>
<<changeMiaTrust 5>>
<<changeMiaDesire 3>>
You step closer, giving Mia enough time to pull away if she wants to.
<br><br>
She does not.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I forgot what this felt like."
</div>
</div>
</div>
<br>
She leans into you for a moment longer than expected.
<br><br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +5</span><br>
<span class="stat-change">Mia Desire +3</span>
<<else>>
<<changeMiaTrust 2>>
<<changeMiaDesire 2>>
You pull Mia into a quiet hug.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You're getting better at knowing when I need that."
</div>
</div>
</div>
<br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +2</span><br>
<span class="stat-change">Mia Desire +2</span>
<</if>>
<br><br>
[[Back|Mia Interaction Menu]]
<</if>>
<</nobr>><<nobr>>
<<if $miaTrust < 35 or $miaDesire < 20>>
Mia is not ready for that yet.
<br><br>
[[Back|Mia Interaction Menu]]
<<elseif $energy < 5>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You look like you need sleep more than romance."
</div>
</div>
</div>
<br>
You are too tired right now.
<br><br>
[[Back|Mia Interaction Menu]]
<<else>>
<<silently>>
<<set $energy -= 5>>
<<advanceMinutes 10>>
<</silently>>
<<if not $miaFirstKiss>>
<<silently>>
<<set $miaFirstKiss to true>>
<<changeMiaTrust 4>>
<<changeMiaDesire 8>>
<</silently>>
You move closer slowly, watching her face for any sign that you should stop.
<br><br>
Mia does not step away.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I was wondering how long it would take you."
</div>
</div>
</div>
<br>
You kiss her.
<br><br>
<img class="scene-img" src="media/Actions/kiss.webp">
<br><br>
For a few seconds, the world outside the walls feels very far away.
<br><br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +4</span><br>
<span class="stat-change">Mia Desire +8</span>
<<else>>
<<silently>>
<<changeMiaTrust 1>>
<<changeMiaDesire 5>>
<</silently>>
You kiss Mia again.
<br><br>
<img class="scene-img" src="media/Actions/kiss.webp">
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Careful. I might start expecting that."
</div>
</div>
</div>
<br>
<span class="stat-change">Energy -5</span><br>
<span class="stat-change">Mia Trust +1</span><br>
<span class="stat-change">Mia Desire +5</span>
<</if>>
<br><br>
[[Back|Mia Interaction Menu]]
<</if>>
<</nobr>><<nobr>>
<<if $miaTrust < 60 or $miaDesire < 50>>
Mia is not ready for that yet.
<br><br>
[[Back|Mia Interaction Menu]]
<<elseif $energy < 10>>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Not when you look like you're about to collapse."
</div>
</div>
</div>
<br>
You are too tired right now.
<br><br>
[[Back|Mia Interaction Menu]]
<<else>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"Do you want to go somewhere more private?"
</div>
</div>
</div>
<br>
Mia studies you for a moment.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Yeah. I do."
</div>
</div>
</div>
<br>
[[Go with Mia|Mia Private Scene Start]]
<br>
[[Not now|Mia Interaction Menu]]
<</if>>
<</nobr>><<nobr>>
<<set _firstPrivateScene to not $miaFirstIntimate>>
<<set $energy = Math.max(0, $energy - 10)>>
<<advanceMinutes 30>>
<<set $miaSceneArousal to 0>>
<<set $playerSceneArousal to 0>>
<<set $miaClimaxedThisScene to false>>
<<set $miaClimaxCount to 0>>
<<set $playerCameThisScene to false>>
<<set $miaIntimateGif to either(
"media/characters/mia/provocative.gif"
)>>
<<set $miaIntimateText to "Mia looks at you, waiting to see what you do next.">>
<<if _firstPrivateScene>>
<<set $miaFirstIntimate to true>>
<<changeMiaTrust 6>>
<<changeMiaDesire 10>>
<<else>>
<<changeMiaTrust 2>>
<<changeMiaDesire 5>>
<</if>>
You and Mia leave the noise of the house behind, finding a quiet room where the rest of the world feels distant for a while.
<br><br>
<span class="stat-change">Energy -10</span><br>
<<if _firstPrivateScene>>
<span class="stat-change">Mia Trust +6</span><br>
<span class="stat-change">Mia Desire +10</span>
<<else>>
<span class="stat-change">Mia Trust +2</span><br>
<span class="stat-change">Mia Desire +5</span>
<</if>>
<br><br>
[[Continue|Mia Intimate Scene]]
<</nobr>><<nobr>>
<<silently>>
<<set $miaSceneProgress to Math.max(
$miaSceneProgress || 0,
Math.min($miaSceneArousal, $playerSceneArousal)
)>>
<<set _playerArousalWidth to $playerSceneArousal + "%">>
<<set _miaArousalWidth to $miaSceneArousal + "%">>
<<set _analNeeds to []>>
<<if $miaTrust < 80>>
<<run _analNeeds.push("Trust: " + $miaTrust + "/80")>>
<</if>>
<<if $miaDesire < 80>>
<<run _analNeeds.push("Desire: " + $miaDesire + "/80")>>
<</if>>
<<if $miaSceneProgress < 55>>
<<run _analNeeds.push("Both arousal bars must reach 55 together. Best so far: " + $miaSceneProgress + "/55.")>>
<</if>>
<</silently>>
<<if $miaSceneArousal >= 100>>
<<goto "Mia Intimate Her Climax">>
<<else>>
<div class="intimate-scene-wrapper">
<div class="intimate-media-box">
<img class="intimate-img" @src="$miaIntimateGif">
</div>
<br>
<div class="intimate-bars">
<div class="arousal-row">
<div class="arousal-name">Your arousal</div>
<div class="arousal-bar horizontal">
<div class="arousal-fill player" @style="'width:' + _playerArousalWidth + ';'"></div>
</div>
<div class="arousal-value"><<print $playerSceneArousal>>%</div>
</div>
<div class="arousal-row">
<div class="arousal-name">Mia's arousal</div>
<div class="arousal-bar horizontal">
<div class="arousal-fill her" @style="'width:' + _miaArousalWidth + ';'"></div>
</div>
<div class="arousal-value"><<print $miaSceneArousal>>%</div>
</div>
</div>
<br>
<div class="intimate-text">
<<print $miaIntimateText>>
</div>
<br>
<<if $energy < 5>>
You are too tired to continue.
<<else>>
<div class="intimate-actions">
<<link "Kiss">>
<<silently>>
<<set $energy -= 5>>
<<changeMiaSceneArousal 10>>
<<changePlayerSceneArousal 10>>
<<advanceMinutes 5>>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/kiss/kiss1.gif",
"media/characters/mia/scenes/kiss/kiss2.gif",
"media/characters/mia/scenes/kiss/kiss3.gif",
"media/characters/mia/scenes/kiss/kiss4.gif",
"media/characters/mia/scenes/kiss/kiss5.gif"
)>>
<<set $miaIntimateText to "Mia stays close after the kiss, her breathing a little less steady than before.">>
<</silently>>
<<goto "Mia Intimate Scene">>
<</link>>
<<if $miaSceneArousal >= 15>>
<<link "Tease">>
<<silently>>
<<set $energy -= 5>>
<<changeMiaSceneArousal 14>>
<<changePlayerSceneArousal 5>>
<<advanceMinutes 5>>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/Tease/tease1.gif",
"media/characters/mia/scenes/Tease/tease2.gif"
)>>
<<set $miaIntimateText to "Mia lets the moment deepen, watching you with a quiet, hungry look.">>
<</silently>>
<<goto "Mia Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Tease</span>
<</if>>
<<if $miaSceneArousal >= 35>>
<<link "Lick pussy">>
<<silently>>
<<set $energy -= 5>>
<<changeMiaSceneArousal 15>>
<<advanceMinutes 5>>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/Lick/lickpussy1.webp",
"media/characters/mia/scenes/Lick/lickpussy2.webp",
"media/characters/mia/scenes/Lick/lickpussy3.webp"
)>>
<<set $miaIntimateText to "Mia grips the sheets, her control slowly slipping.">>
<</silently>>
<<goto "Mia Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Lick pussy</span>
<</if>>
<<if $miaSceneArousal >= 20 and $playerSceneArousal >= 25>>
<<link "Handjob">>
<<silently>>
<<set $energy -= 5>>
<<changeMiaSceneArousal 2>>
<<changePlayerSceneArousal 15>>
<<advanceMinutes 5>>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/Handjob/handjob1.gif",
"media/characters/mia/scenes/Handjob/handjob2.webp"
)>>
<<set $miaIntimateText to "Mia keeps her eyes on you, watching every reaction.">>
<</silently>>
<<goto "Mia Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Handjob</span>
<</if>>
<<if $miaSceneArousal >= 40 and $playerSceneArousal >= 50>>
<<link "Blowjob">>
<<silently>>
<<set $energy -= 5>>
<<changeMiaSceneArousal 3>>
<<changePlayerSceneArousal 20>>
<<advanceMinutes 5>>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/Blowjob/blowjob1.webp",
"media/characters/mia/scenes/Blowjob/blowjob2.webp",
"media/characters/mia/scenes/Blowjob/blowjob3.gif",
"media/characters/mia/scenes/Blowjob/blowjob4.gif",
"media/characters/mia/scenes/Blowjob/blowjob5.webp"
)>>
<<set $miaIntimateText to "Mia looks up at you, the room quiet except for both of you breathing.">>
<</silently>>
<<goto "Mia Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Blowjob</span>
<</if>>
<<if $miaSceneProgress >= 40>>
<<link "Sex">>
<<silently>>
<<set $energy -= 5>>
<<changeMiaSceneArousal 12>>
<<changePlayerSceneArousal 25>>
<<advanceMinutes 5>>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/Sex/fuck1.webp",
"media/characters/mia/scenes/Sex/fuck2.webp",
"media/characters/mia/scenes/Sex/fuck3.webp",
"media/characters/mia/scenes/Sex/fuck4.webp",
"media/characters/mia/scenes/Sex/fuck5.gif",
"media/characters/mia/scenes/Sex/fuck6.webp",
"media/characters/mia/scenes/Sex/fuck7.webp"
)>>
<<set $miaIntimateText to "The room feels far away from the world outside the walls.">>
<</silently>>
<<goto "Mia Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Sex</span>
<</if>>
<<if _analNeeds.length is 0>>
<<link "Anal">>
<<silently>>
<<set $energy -= 5>>
<<changeMiaSceneArousal 12>>
<<changePlayerSceneArousal 20>>
<<advanceMinutes 5>>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/Anal/anal1.webp",
"media/characters/mia/scenes/Anal/anal2.webp",
"media/characters/mia/scenes/Anal/anal3.webp",
"media/characters/mia/scenes/Anal/anal4.webp"
)>>
<<set $miaIntimateText to "Mia only lets this happen because she trusts you completely.">>
<</silently>>
<<goto "Mia Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked intimate-hint"
tabindex="0"
role="button"
aria-disabled="true"
aria-label="Anal"
aria-describedby="mia-anal-requirements">
Anal
<span class="intimate-tooltip" id="mia-anal-requirements" role="tooltip">
<<print _analNeeds.join(" · ")>>
</span>
</span>
<</if>>
<<if $playerSceneArousal >= 100 and not $playerCameThisScene>>
[[Cum|Mia Intimate Player Cum Choice]]
<<else>>
<span class="intimate-locked">Cum</span>
<</if>>
</div>
<</if>>
<br><br>
<div class="intimate-end">
[[End Scene|Mia Intimate End]]
</div>
</div>
<</if>>
<</nobr>><<nobr>>
<<silently>>
<<set $playerCameThisScene to true>>
<<set $playerSceneArousal to 0>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 5>>
<<changeMiaDesire 2>>
<<if $miaCumLocation is "inside">>
<<changeMiaTrust 1>>
<</if>>
<</silently>>
<div class="intimate-scene-wrapper">
<div class="intimate-media-box">
<img class="intimate-img" @src="$miaIntimateGif">
</div>
<br>
<div class="intimate-text">
<<print $miaIntimateText>>
</div>
<br>
<span class="stat-change">Mia Desire +2</span><br>
<<if $miaCumLocation is "inside">>
<span class="stat-change">Mia Trust +1</span><br>
<</if>>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +5 minutes</span>
<br><br>
<<if $energy >= 5>>
<<link "Continue">>
<<set $playerCameThisScene to false>>
<<goto "Mia Intimate Scene">>
<</link>>
<br><br>
<<else>>
You are too tired to continue.
<br><br>
<</if>>
[[End Scene|Mia Intimate End]]
</div>
<</nobr>><<nobr>>
The moment slowly passes, leaving the room quiet again.
<br><br>
Mia stays close for a little while longer before either of you says anything.
<br><br>
[[Return|Mia Interaction Menu]]
<</nobr>><<nobr>>
<<set $miaClimaxCount += 1>>
<<set $miaSceneArousal to 45>>
<<changeMiaDesire 2>>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/cum/miacum1.gif",
"media/characters/mia/scenes/cum/miacum2.webp"
)>>
<div class="intimate-scene-wrapper">
<div class="intimate-media-box">
<img class="intimate-img" @src="$miaIntimateGif">
</div>
<br>
<div class="intimate-text">
<<if $miaClimaxCount is 1>>
Mia loses herself for a moment, clinging to you as the tension finally breaks.
<<elseif $miaClimaxCount is 2>>
Mia trembles again, more sensitive now, her breathing uneven as she tries to steady herself.
<<else>>
Mia gives in completely, overwhelmed by the moment and unable to hold back.
<</if>>
</div>
<br>
<span class="stat-change">Mia Desire +2</span>
<br><br>
[[Continue|Mia Intimate Scene]]
</div>
<</nobr>><<nobr>>
<<silently>>
<<set _hasFishingRod to $inventory.some(item => item.name === "Fishing Rod" && item.quantity > 0)>>
<</silently>>
<img class="location-img" src="media/locations/outside/lake.jpg">
<br><br>
The lake sits beyond the ruined streets, quiet and dark beneath the open sky. Tall grass grows along the shore, and old benches rot near the waterline.
<br><br>
The place feels calmer than the city, but the open space leaves you exposed.
<br><br>
<<if not _hasFishingRod>>
Beside one of the benches, a fishing rod lies in the reeds. The cork handle is stained with mud, but the reel still turns.
<br><br>
<div class="inventory-grid">
<div class="item-card">
<img src="media/icons/fishing_rod.jpg" alt="Fishing rod">
<span class="item-name">Fishing Rod</span>
<span class="quantity">×1</span>
<span class="item-action">
<<link "Take Fishing Rod" "Lake">>
<<addToInventory "Fishing Rod" "media/icons/fishing_rod.jpg" 1>>
<</link>>
</span>
</div>
</div>
<br>
<span class="locked-option">Try Fishing</span>
<span class="locked-note">You need a fishing rod.</span>
<<else>>
[[Try Fishing|Lake Fishing]]
<</if>>
<br>
[[Check the Shoreline|Lake Shoreline]]
<br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/outside/forest.jpg">
<br><br>
The forest begins where the ruined streets end. Trees crowd together, their branches blocking much of the light. The air smells of damp earth, leaves, and rot.
<br><br>
There may be useful materials here, but the trees also make it hard to see what is moving nearby.
<br><br>
<<set _hasHatchet to false>>
<<for _item range $inventory>>
<<if _item.name is "Hatchet">>
<<set _hasHatchet to true>>
<</if>>
<</for>>
<<if _hasHatchet>>
[[Chop Wood|Forest Gather Wood]]
<<else>>
[[Gather Fallen Wood|Forest Gather Wood]]
<</if>>
<br>
[[Forage for Plants|Forest Forage]]
<br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
<<if $energy < 15>>
You are too tired to gather wood right now.
<br><br>
[[Back to Forest|Forest]]
<<else>>
<<set _hasHatchet to false>>
<<for _item range $inventory>>
<<if _item.name is "Hatchet">>
<<set _hasHatchet to true>>
<</if>>
<</for>>
<<set $energy -= 15>>
<<advanceMinutes 60>>
<<set _forestDanger to random(1,6)>>
<<if _hasHatchet>>
<<set _woodFound to random(5,8)>>
You grip the hatchet and move deeper between the trees, searching for dry branches and smaller trunks that can be cut down without too much noise.
<br><br>
The work is tiring, but the hatchet makes a clear difference. Instead of only collecting what has already fallen, you can cut usable wood directly.
<br><br>
After nearly an hour, you gather a solid bundle of wood.
<br><br>
<<addToInventory "Wood" "media/icons/wood.jpg" _woodFound>>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/wood.jpg">
<div><strong>Wood</strong></div>
<div>+<<print _woodFound>></div>
</div>
</div>
<span class="stat-change">Wood +<<print _woodFound>></span><br>
<span class="stat-change-negative">Energy -15</span><br>
<span class="stat-change">Time +1 hour</span>
<<else>>
<<set _woodFound to random(2,4)>>
You move between the trees, searching for fallen branches, broken boards, and anything dry enough to be useful.
<br><br>
Without a proper tool, you can only take what the forest gives you.
<br><br>
After nearly an hour of work, you gather a small bundle of usable wood.
<br><br>
<<addToInventory "Wood" "media/icons/wood.jpg" _woodFound>>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/wood.jpg">
<div><strong>Wood</strong></div>
<div>+<<print _woodFound>></div>
</div>
</div>
<span class="stat-change">Wood +<<print _woodFound>></span><br>
<span class="stat-change-negative">Energy -15</span><br>
<span class="stat-change">Time +1 hour</span>
<</if>>
<<if _forestDanger is 1>>
<br><br>
A branch snaps somewhere deeper in the forest.
<br><br>
You freeze, listening.
<br><br>
For a moment, you think you hear slow movement between the trees — but whatever it is, it does not come closer.
<br><br>
<span class="warning-text">The forest does not feel safe.</span>
<</if>>
<br><br>
[[Back to Forest|Forest]]
<br>
[[Return Outside|Outside]]
<</if>>
<</nobr>><<nobr>>
<<if $energy < 10>>
You are too tired to forage right now.
<br><br>
[[Back to Forest|Forest]]
<<else>>
<<set $energy -= 10>>
<<advanceMinutes 60>>
<<set _forageResult to random(1,5)>>
You search through the undergrowth, checking bushes, roots, and patches of wild plants.
<br><br>
<<if _forageResult is 1>>
Most of what you find looks unsafe or rotten, but eventually you discover a few useful wild herbs.
<br><br>
<<addToInventory "Herbs" "🌿" 1>>
<span class="stat-change">Herbs +1</span>
<<elseif _forageResult is 2>>
You find a patch of edible-looking berries and carefully collect what you can.
<br><br>
<<set $food += 1>>
<span class="stat-change">Food +1</span>
<<elseif _forageResult is 3>>
You find strips of old cloth caught on a broken fence hidden between the trees.
<br><br>
<<addToInventory "Cloth" "media/icons/cloth.jpg" 2>>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>Cloth</strong></div>
<div>+2</div>
</div>
</div>
<span class="stat-change">Cloth +2</span>
<<elseif _forageResult is 4>>
You find a torn emergency pouch near the base of a tree. Most of it is ruined, but one bandage is still sealed.
<br><br>
<<addToInventory "Bandage" "media/icons/bandage.jpg" 1>>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>Bandage</strong></div>
<div>+1</div>
</div>
</div>
<span class="stat-change">Bandage +1</span>
<<else>>
You spend an hour searching, but everything useful has either rotted away or already been taken.
<br><br>
You find nothing.
<</if>>
<br><br>
<span class="stat-change">Energy -10</span><br>
<span class="stat-change">Time +1 hour</span>
<br><br>
[[Back to Forest|Forest]]
<br>
[[Return Outside|Outside]]
<</if>>
<</nobr>><<nobr>>
<<silently>>
<<set _hasFishingRod to $inventory.some(item => item.name === "Fishing Rod" && item.quantity > 0)>>
<</silently>>
<<if not _hasFishingRod>>
You need a fishing rod before you can fish here.
<br><br>
[[Back to Lake|Lake]]
<<elseif $energy < 15>>
You are too tired to fish right now.
<br><br>
[[Back to Lake|Lake]]
<<else>>
<<silently>>
<<set $energy -= 15>>
<<advanceMinutes 60>>
<<set _fishResult to random(1,5)>>
<</silently>>
You find a quiet spot near the water and try your luck.
<img src="media/actions/fishing.gif">
<br><br>
For nearly an hour, you wait beside the lake, listening to the wind move through the grass.
<br><br>
<<if _fishResult is 1>>
After a long wait, you manage to catch a small fish.
<br><br>
<<set $food += 1>>
<span class="stat-change">Food +1</span>
<<elseif _fishResult is 2>>
The lake is more generous than expected. You manage to catch enough fish to make the effort worthwhile.
<br><br>
<<set $food += 2>>
<span class="stat-change">Food +2</span>
<<elseif _fishResult is 3>>
Something tugs at your line, but it slips away before you can pull it in.
<br><br>
You catch nothing.
<<elseif _fishResult is 4>>
The water remains still. Too still.
<br><br>
After an hour, you give up and collect your things.
<br><br>
You catch nothing.
<<else>>
As you wait near the shore, something moves in the tall grass behind you.
<br><br>
You turn quickly, but see nothing except the reeds swaying in the wind.
<br><br>
You decide not to stay longer than necessary.
<br><br>
<span class="warning-text">The lake does not feel as peaceful as it first seemed.</span>
<</if>>
<br><br>
<span class="stat-change">Energy -15</span><br>
<span class="stat-change">Time +1 hour</span>
<br><br>
[[Back to Lake|Lake]]
<br>
[[Return Outside|Outside]]
<</if>>
<</nobr>><<nobr>>
<<if $energy < 10>>
You are too tired to check the shoreline right now.
<br><br>
[[Back to Lake|Lake]]
<<else>>
<<set $energy -= 10>>
<<advanceMinutes 30>>
<<set _shoreResult to random(1,5)>>
You walk along the edge of the lake, searching through weeds, mud, and debris washed up near the shore.
<br><br>
<<if _shoreResult is 1>>
You find a strip of usable cloth tangled around an old branch.
<br><br>
<<addToInventory "Cloth" "media/icons/cloth.jpg" 1>>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>Cloth</strong></div>
<div>+1</div>
</div>
</div>
<span class="stat-change">Cloth +1</span>
<<elseif _shoreResult is 2>>
Near a broken bench, you find a piece of scrap metal that might still be useful.
<br><br>
<<addToInventory "Scrap Metal" "media/icons/scrap_metal.jpg" 1>>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/scrap_metal.jpg">
<div><strong>Scrap Metal</strong></div>
<div>+1</div>
</div>
</div>
<span class="stat-change">Scrap Metal +1</span>
<<elseif _shoreResult is 3>>
You find an old emergency pouch half-buried in the mud. Most of it is ruined, but one bandage is still sealed.
<br><br>
<<addToInventory "Bandage" "media/icons/bandage.jpg" 1>>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>Bandage</strong></div>
<div>+1</div>
</div>
</div>
<span class="stat-change">Bandage +1</span>
<<elseif _shoreResult is 4>>
You find several empty bottles and rusted cans, but nothing worth carrying back.
<br><br>
You find nothing useful.
<<else>>
The mud near the shore is covered in strange tracks.
<br><br>
Some look human. Others do not.
<br><br>
You decide not to follow them.
<br><br>
<span class="warning-text">Something has been moving around the lake recently.</span>
<</if>>
<br><br>
<span class="stat-change">Energy -10</span><br>
<span class="stat-change">Time +30 minutes</span>
<br><br>
[[Back to Lake|Lake]]
<br>
[[Return Outside|Outside]]
<</if>>
<</nobr>><<nobr>>
The man sees you and reaches out with a shaking hand.
<br><br>
His face is pale, covered in sweat and dust. His leg is pinned beneath the collapsed side of the car, crushed under metal and broken glass.
<br><br>
There is blood on the road. Too much of it.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Trapped Survivor</div>
<div class="dialogue-text">
"Please... please, help me. I can't feel my leg. I don't want to die here."
</div>
</div>
</div>
<br>
The car is too heavy to lift by hand. You could try to help him, but the damage looks bad.
<br><br>
[[Try to save him|Car Trapped Help]]
<br>
[[Leave him|Car Trapped Leave]]
<</nobr>><<nobr>>
<<set $carTrappedSurvivorHelped to true>>
<<advanceMinutes 30>>
You kneel beside the wreck and grab the man's arms.
<br><br>
"Push when I pull," you tell him.
<br><br>
He nods quickly, his breathing sharp and uneven.
<br><br>
You brace your feet against the cracked road and pull with everything you have.
<br><br>
The man screams.
<br><br>
His body shifts, but his trapped leg does not move.
<br><br>
You try again.
<br><br>
Harder.
<br><br>
The car groans slightly, metal scraping against broken pavement, but it does not lift enough.
<br><br>
Not even close.
<br><br>
You step back, exhausted, your hands shaking.
<br><br>
The man stares at you, panic spreading across his face.
<br><br>
Beside him, half-hidden under broken glass, you notice a small hatchet.
<br><br>
There may be one last way to get him free.
<br><br>
But he sees where you are looking.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Trapped Survivor</div>
<div class="dialogue-text">
"No... no, don't. Please don't. Just pull me out. There has to be another way."
</div>
</div>
</div>
<br>
There is no other way.
<br><br>
Or maybe there never was.
<br><br>
<span class="stat-change">Time +30 minutes</span>
<br><br>
[[Use the hatchet|Car Trapped Hatchet]]
<br>
[[Leave him|Car Trapped Leave]]
<</nobr>><<nobr>>
<<advanceMinutes 10>>
You take one step back.
<br><br>
The man sees it in your face before you say anything.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Trapped Survivor</div>
<div class="dialogue-text">
"No... no, don't leave me. Please. Please!"
</div>
</div>
</div>
<br>
You turn away from the wrecked car.
<br><br>
His voice follows you down the street.
<br><br>
For a while, he keeps calling.
<br><br>
Then the shouting becomes weaker.
<br><br>
Then it stops.
<br><br>
<span class="stat-change">Time +10 minutes</span>
<br><br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
<<advanceMinutes 30>>
You reach for the hatchet.
<br><br>
The man's eyes widen.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Trapped Survivor</div>
<div class="dialogue-text">
"No! Stop! Don't touch me with that thing!"
</div>
</div>
</div>
<br>
His voice breaks into panic as he tries to drag himself away, but the car keeps him pinned in place.
<br><br>
You tell him to hold still.
<br><br>
You tell him it is the only chance.
<br><br>
You are not sure if you are saying it for him or for yourself.
<br><br>
He begs you not to do it.
<br><br>
You raise the hatchet anyway.
<br><br>
The first strike does not free him.
<br><br>
Neither does the second.
<br><br>
His screams echo through the empty street, loud enough that you are certain anything nearby must have heard.
<br><br>
You keep going because stopping now would make everything worse.
<img class="scene-img" src="media/events/trapped_survivor_hack.gif">
<br><br>
But the wound is too severe. The blood loss is too much. His strength fades faster than you can work.
<br><br>
Eventually, his screams become weak gasps.
<br><br>
Then silence.
<br><br>
You lower the hatchet.
<br><br>
The man is still pinned beneath the car.
<br><br>
And now he is dead.
<img class="scene-img" src="media/events/trapped_survivor_dead.gif">
<br><br>
For a while, you just stand there, staring at what you tried to do.
<br><br>
The hatchet lies on the road beside him, dark and heavy.
<br><br>
You could leave it there.
<br><br>
Or you could take it.
<br><br>
<span class="stat-change">Time +30 minutes</span>
<br><br>
[[Take the Hatchet|Car Trapped Take Hatchet]]
<br>
[[Leave it beside him|Car Trapped Leave Hatchet]]
<</nobr>><<nobr>>
<<if not $carTrappedHatchetTaken>>
<<set $carTrappedHatchetTaken to true>>
<<addToInventory "Hatchet" "media/icons/hatchet.jpg" 1>>
<</if>>
You pick up the hatchet.
<br><br>
It feels wrong to take it.
<br><br>
But the dead have no use for tools, and the living cannot afford to waste them.
<br><br>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/hatchet.jpg">
<div><strong>Hatchet</strong></div>
<div>+1</div>
</div>
</div>
<span class="stat-change">Hatchet +1</span>
<br><br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
You leave the hatchet beside him.
<br><br>
Maybe because it feels like his.
<br><br>
Maybe because you do not want to carry the memory of what you just did.
<br><br>
Either way, you step away from the wreck and do not look back.
<br><br>
[[Return Outside|Outside]]
<</nobr>><<widget "changeTaraTrust">><<silently>>
<<set $taraTrust = Math.min(100, Math.max(0, $taraTrust + $args[0]))>>
<</silently>><</widget>>
<<widget "changeTaraDesire">><<silently>>
<<set $taraDesire = Math.min(100, Math.max(0, $taraDesire + $args[0]))>>
<</silently>><</widget>>
<<widget "changeTaraSuspicion">><<silently>>
<<set $taraSuspicion = Math.min(100, Math.max(0, $taraSuspicion + $args[0]))>>
<</silently>><</widget>>
<<widget "updateTaraLocation">><<silently>>
<<if $taraStayed and not $taraDead>>
<<if $hour >= 8 and $hour < 9>>
<<set $taraLocation to "Backyard">>
<<elseif $hour >= 9 and $hour < 10>>
<<set $taraLocation to "Garage">>
<<elseif $hour >= 10 and $hour < 12>>
<<set $taraLocation to "Kitchen">>
<<elseif $hour >= 12 and $hour < 15>>
<<set $taraLocation to "Garage">>
<<elseif $hour >= 15 and $hour < 17>>
<<set $taraLocation to "Guest Bedroom2">>
<<elseif $hour >= 17 and $hour < 19>>
<<set $taraLocation to "Backyard">>
<<elseif $hour >= 19 and $hour < 21>>
<<set $taraLocation to "Living Room">>
<<elseif $hour >= 21 and $hour < 22>>
<<set $taraLocation to "Garage">>
<<elseif $hour is 22 and $minute < 30>>
<<set $taraLocation to "Second Floor Bathroom">>
<<else>>
<<set $taraLocation to "Guest Bedroom2">>
<</if>>
<<else>>
<<set $taraLocation to "">>
<</if>>
<</silently>><</widget>>
<<widget "taraMarker">><<nobr>><<if $taraStayed and not $taraDead and $taraLocation is $args[0]>><img class="mia-room-marker" src="media/characters/tara/icon.jpg" alt=""><</if>><</nobr>><</widget>>
<<widget "taraSecondFloorMarker">><<nobr>><<if $taraStayed and not $taraDead and ($taraLocation is "Guest Bedroom1" or $taraLocation is "Guest Bedroom2" or $taraLocation is "Master Bedroom" or $taraLocation is "Second Floor Bathroom" or $taraLocation is "Small Office")>><img class="mia-room-marker" src="media/characters/tara/icon.jpg" alt=""><</if>><</nobr>><</widget>>
<<widget "taraFirstFloorMarker">><<nobr>><<if $taraStayed and not $taraDead and ($taraLocation is "Living Room" or $taraLocation is "Kitchen" or $taraLocation is "Backyard" or $taraLocation is "Garage" or $taraLocation is "Bathroom" or $taraLocation is "Storage Room" or $taraLocation is "Entryway")>><img class="mia-room-marker" src="media/characters/tara/icon.jpg" alt=""><</if>><</nobr>><</widget>>
<<widget "taraPresence">><<nobr>><<if $taraStayed and not $taraDead and $taraLocation is $args[0]>><br><br><span class="mia-inline-presence"><<link "Tara is here">><<set $taraRoomContext to $args[0]>><<set $taraRoomExit to $args[0]>><<goto "Tara Interaction Menu">><</link>> — <<print $args[1]>></span><</if>><</nobr>><</widget>>
<<widget "changeTaraSceneArousal">><<silently>>
<<set $taraSceneArousal = Math.min(100, Math.max(0, $taraSceneArousal + $args[0]))>>
<</silently>><</widget>>
<<widget "changePlayerTaraSceneArousal">><<silently>>
<<set $playerTaraSceneArousal = Math.min(100, Math.max(0, $playerTaraSceneArousal + $args[0]))>>
<</silently>><</widget>><<nobr>>
<<set $taraEventStarted to true>>
The morning feels heavier than usual.
<br><br>
The compound is still standing, but the supplies are not growing. Every meal, every bottle of water, every hour of generator power reminds you of the same problem.
<br><br>
Sooner or later, staying behind the walls will not be enough.
<br><br>
<<if $miaStayed and not $miaDead>>
You find Mia near the front door, checking the street through a gap in the curtains.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"We need more supplies. Not just food. Medicine, tools, anything useful."
</div>
</div>
</div>
<br>
She looks at you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"There's an apartment block a few streets away. I saw it before I found this place. It looked mostly untouched."
</div>
</div>
</div>
<br>
You can tell from her face that she already knows this is dangerous.
<br><br>
[[Take Mia with you|Tara Supply Run With Mia]]
<br>
[[Tell Mia to stay here|Tara Supply Run Alone]]
<<else>>
The house is quiet.
<br><br>
Too quiet.
<br><br>
You check the remaining supplies and feel the decision settle before you fully admit it to yourself.
<br><br>
There is an apartment block a few streets away. Bigger than the houses nearby. Riskier too.
<br><br>
But if anything useful is left in this neighborhood, there is a good chance it is there.
<br><br>
[[Go on the supply run|Tara Supply Run Alone]]
<</if>>
<</nobr>><<nobr>>
<<set $taraRunWithMia to true>>
You and Mia leave the compound together.
<img class="scene-img" src="media/events/Day10_run.jpg">
<br><br>
The streets are quiet, but not peaceful. Every broken window and abandoned car feels like it is hiding something.
<br><br>
Mia walks close beside you, her eyes moving from doorway to doorway.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"I don't like how quiet it is."
</div>
</div>
</div>
<br>
Ahead, the apartment block rises over the street. Its front doors hang open.
<br><br>
Dark windows stare down at you from above.
<br><br>
[[Enter the apartment block|Tara Apartment Entrance]]
<</nobr>><<nobr>>
<<set $taraRunWithMia to false>>
You leave the compound alone.
<br><br>
The gate closes behind you with a heavy sound.
<br><br>
For a moment, you stand in the street and listen.
<br><br>
Nothing.
<br><br>
That almost makes it worse.
<br><br>
The apartment block is a few streets away, half-hidden behind abandoned cars and overgrown weeds. Its front doors hang open, and the upper windows are dark.
<br><br>
If there are supplies left inside, you are not the only one who might want them.
<br><br>
[[Enter the apartment block|Tara Apartment Entrance]]
<</nobr>><<nobr>>
<img class="location-img" src="media/locations/outside/tara_apartmentbuilding.jpg">
<br><br>
The apartment block smells of dust, rot, and old rainwater.
<br><br>
The front doors hang open. Someone forced them apart long ago, bending the metal frame just enough for people to slip through.
<br><br>
Inside, the lobby is dark. Mail covers the floor. A broken vending machine leans against one wall, its glass shattered and empty.
<br><br>
<<if $taraRunWithMia>>
Mia steps in behind you, quieter than usual.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Someone has been here recently."
</div>
</div>
</div>
<br>
She points toward the dust on the floor.
<br><br>
Footprints.
<<else>>
You step inside alone, keeping close to the wall.
<br><br>
The dust on the floor is disturbed.
<br><br>
Footprints.
<</if>>
<br><br>
They lead toward the stairwell.
<br><br>
[[Follow the footprints|Tara Apartment Stairs]]
<br>
[[Search the lobby first|Tara Apartment Lobby Search]]
<</nobr>><<nobr>>
<br><br>
The stairwell is narrow and dark.
<br><br>
Old blood stains the wall near the first landing. It has dried almost black.
<br><br>
The footprints continue upward.
<br><br>
Second floor.
<br>
Third floor.
<br><br>
On the third-floor landing, you stop.
<br><br>
A door at the end of the hallway is not fully closed.
<br><br>
Apartment 304.
<br><br>
<<if $taraRunWithMia>>
Mia leans closer and lowers her voice.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Someone's inside."
</div>
</div>
</div>
<<else>>
You hear something inside.
<br><br>
Not a zombie.
<br><br>
Breathing.
<</if>>
<br><br>
[[Approach Apartment 304|Tara Room 304]]
<</nobr>><<nobr>>
You search the lobby carefully.
<br><br>
Most of it has already been stripped bare. The vending machine is empty, the front desk drawers are open, and the mailboxes have been forced apart.
<br><br>
Behind the desk, you find a small roll of cloth tucked beneath a pile of old papers.
<br><br>
<<addToInventory "Cloth" "media/icons/cloth.jpg" 1>>
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>Cloth</strong></div>
<div>+1</div>
</div>
</div>
<span class="stat-change">Cloth +1</span>
<br><br>
The footprints still lead toward the stairwell.
<br><br>
[[Follow the footprints|Tara Apartment Stairs]]
<</nobr>><<nobr>>
You push the door open slowly.
<br><br>
The apartment beyond is dark. Furniture has been dragged against the windows, and empty cans are stacked neatly near the wall.
<br><br>
Someone has been living here.
<br><br>
You take one step inside.
<br><br>
A voice cuts through the dark.
<img class="scene-img" src="media/characters/Tara/First_encounter.jpg">
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Unknown Woman</div>
<div class="dialogue-text">
"Stop."
</div>
</div>
</div>
<br>
You freeze.
<br><br>
A woman steps out from behind the kitchen wall, knife in hand.
<br><br>
Her eyes move from your hands to your face, then to the door behind you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Unknown Woman</div>
<div class="dialogue-text">
"One more step and this goes badly for both of us."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
Mia raises her hands slowly.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"We're not here to hurt you."
</div>
</div>
</div>
<br>
The woman gives a dry, humorless smile.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Unknown Woman</div>
<div class="dialogue-text">
"That's what people say when they want you to lower the knife."
</div>
</div>
</div>
<<else>>
You keep your hands where she can see them.
<br><br>
<div class="dialogue-box player">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"I'm not here to hurt you."
</div>
</div>
</div>
<br>
The woman gives a dry, humorless smile.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Unknown Woman</div>
<div class="dialogue-text">
"That's what people say when they want you to lower the knife."
</div>
</div>
</div>
<</if>>
<br><br>
Before anyone can say anything else, a noise rises from below.
<br><br>
Voices.
<br><br>
Several of them.
<br><br>
The woman’s face changes.
<br><br>
Not fear exactly.
<br><br>
Recognition.
<br><br>
[[Listen|Tara Raiders Arrive]]
<</nobr>><<nobr>>
Heavy footsteps echo from the stairwell below.
<img class="scene-img" src="media/Events/Raiders.gif">
<br><br>
A man's voice cuts through the building.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Raider</div>
<div class="dialogue-text">
"Tara! We know you're up there!"
</div>
</div>
</div>
<br>
The woman closes her eyes for half a second.
<br><br>
That is enough.
<br><br>
<<set $metTara to true>>
<<set $taraTruthRevealed to true>>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"You know them?"
</div>
</div>
</div>
<br>
She looks at you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"...Not anymore."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
<img class="scene-img" src="media/Characters/Tara/tara_raiders_arrive_with_mia.jpg">
<<else>>
<img class="scene-img" src="media/Characters/Tara/tara_raiders_arrive_without_mia.jpg">
<</if>>
<<if $taraRunWithMia>>
Mia turns toward her, eyes hardening.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You were with them."
</div>
</div>
</div>
<br>
Tara does not deny it.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"And now I'm not."
</div>
</div>
</div>
<br>
Mia looks disgusted.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"That doesn't erase what you did."
</div>
</div>
</div>
<br>
Tara's grip tightens around the knife.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"No. It doesn't."
</div>
</div>
</div>
<<else>>
You keep your weapon ready.
<br><br>
The footsteps below are getting closer.
<br><br>
Tara glances toward the hallway.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"You can point that thing at me, or you can help me get out of here. Pick fast."
</div>
</div>
</div>
<</if>>
<br><br>
The raiders are coming up the stairs.
<br><br>
[[Trust Tara for now|Tara Escape Plan]]
<br>
[[Demand answers first|Tara Demand Answers]]
<br>
[[Leave her behind|Tara Leave Behind]]
<</nobr>><<nobr>>
<<changeTaraTrust 5>>
<<changeTaraSuspicion -10>>
Tara lowers her knife slightly, but not enough to look harmless.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"There's a service hallway behind the kitchen. Fire escape at the end."
</div>
</div>
</div>
<br>
She glances toward the door.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"If we move now, we might get out before they reach this floor."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
Mia keeps her eyes on Tara.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"And we're just supposed to trust you?"
</div>
</div>
</div>
<br>
Tara looks at her.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"No. You're supposed to survive."
</div>
</div>
</div>
<<else>>
You hear the raiders moving through the second floor below.
<br><br>
Tara looks at you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"You can hate me later. Move."
</div>
</div>
</div>
<</if>>
<br><br>
<span class="stat-change">Tara Trust +5</span><br>
<span class="stat-change">Tara Suspicion -10</span>
<br><br>
[[Follow Tara|Tara Hallway Escape]]
<</nobr>><<nobr>>
<<changeTaraSuspicion 5>>
You keep your weapon ready.
<br><br>
<div class="dialogue-box player">
<img class="dialogue-portrait" src="media/characters/player/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"Not until you tell me what this is."
</div>
</div>
</div>
<br>
Tara's jaw tightens.
<br><br>
The footsteps below are closer now.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"They were my group."
</div>
</div>
</div>
<br>
A pause.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Not anymore."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
Mia takes a step forward.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"What did they do?"
</div>
</div>
</div>
<br>
Tara looks away.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"What groups like that always do when they stop being hungry and start enjoying it."
</div>
</div>
</div>
<<else>>
You do not lower your weapon.
<br><br>
Tara does not lower her knife.
<br><br>
For a moment, neither of you moves.
<</if>>
<br><br>
A voice shouts from the hallway below.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Raider</div>
<div class="dialogue-text">
"Third floor! Check every room!"
</div>
</div>
</div>
<br>
Tara turns toward the kitchen.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Answers later. Unless you want them standing over your corpse."
</div>
</div>
</div>
<br>
<span class="stat-change-negative">Tara Suspicion +5</span>
<br><br>
[[Follow Tara|Tara Hallway Escape]]
<br>
[[Leave her behind|Tara Leave Behind]]
<</nobr>><<nobr>>
<<set $taraLeft to true>>
<<set $taraEventCompleted to true>>
<<changeTaraSuspicion 20>>
<img class="scene-img" src="media/characters/tara/leave_behind.jpg">
You step back toward the door.
<br><br>
Tara watches you understand the choice before you say it.
<br><br>
Her expression barely changes.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Yeah. Figures."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
Mia looks at you, shocked.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"We're leaving her?"
</div>
</div>
</div>
<br>
You do not answer.
<br><br>
Tara gives Mia a short, bitter look.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Don't waste your guilt on me."
</div>
</div>
</div>
<<else>>
You move toward the hallway.
<br><br>
Behind you, Tara shifts her grip on the knife.
<</if>>
<br><br>
You slip out before the raiders reach the third floor.
<br><br>
Behind you, voices fill Apartment 304.
<br><br>
Then shouting.
<br><br>
Then you are already on the stairs, moving as quietly as you can.
<br><br>
You do not look back.
<br><br>
<span class="stat-change-negative">Tara Suspicion +20</span>
<br><br>
[[Return to the compound|Entryway]]
<</nobr>><<nobr>>
<<set $helpedTara to true>>
Tara leads you through the apartment, past the kitchen and into a narrow service hallway.
<br><br>
The air smells stale and damp.
<br><br>
Somewhere behind you, a door slams open.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Raider</div>
<div class="dialogue-text">
"She's here!"
</div>
</div>
</div>
<br>
Tara curses under her breath.
<br><br>
You reach the end of the hallway just as a raider appears behind you.
<br><br>
He is thin, dirty, and holding a rusted pipe in both hands.
<br><br>
His eyes move from you to Tara.
<br><br>
<div class="dialogue-box npc">
<div class="dialogue-content">
<div class="dialogue-name">Raider Scout</div>
<div class="dialogue-text">
"Marcus wants you alive."
</div>
</div>
</div>
<br>
Tara smiles without warmth.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Marcus is going to be disappointed."
</div>
</div>
</div>
<br>
[[Fight the raider|Tara Raider Fight Setup]]
<</nobr>><<nobr>>
<<set $raidersDiscovered to true>>
<<setRaiderEnemy "Scout">>
<<set $enemies to [{
name: $enemyName,
health: $enemyHealth,
maxHealth: $enemyMaxHealth,
damage: $enemyDamage,
image: "media/enemies/bandit.jpg"
}]>>
<<set $enemyCount to 1>>
<<set $targetEnemyIndex to -1>>
<<set $combatWinPassage to "Tara Raider Defeated">>
<<set $combatLosePassage to "GameOver">>
<<set $combatEscapePassage to "Tara Raider Escape">>
<<goto "Combat">>
<</nobr>><<nobr>>
<<set $raidersKilled += 1>>
<<set $raiderScoutDefeated to true>>
The raider collapses against the wall and slides to the floor.
<<if $taraRunWithMia>>
<img class="scene-img" src="media/Characters/Tara/raider_dead_with_Mia.jpg">
<<else>>
<img class="scene-img" src="media/Characters/Tara/raider_dead_without_Mia.jpg">
<</if>>
<br><br>
For a moment, no one speaks.
<br><br>
Tara steps over him without looking down.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"More will come."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
Mia looks pale, but she keeps moving.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Then we don't stop."
</div>
</div>
</div>
<<else>>
You hear more voices below.
<br><br>
Too many to fight.
<</if>>
<br><br>
Tara forces open the fire escape door.
<br><br>
Cold air rushes in.
<br><br>
The metal stairs outside groan under your weight as you climb down toward the alley.
<br><br>
Behind you, the raiders reach the third floor too late.
<br><br>
By the time they find the open fire escape, you are already gone.
<br><br>
<span class="stat-change">Raiders killed: +1</span>
<br><br>
[[Keep moving|Tara Return To Compound]]
<</nobr>><<nobr>>
<<if $taraRunWithMia>>
<img class="scene-img" src="media/characters/tara/Tara_apartment_escape.jpg">
<<else>>
<img class="scene-img" src="media/characters/tara/Tara_apartment_escape_without_mia.jpg">
<</if>>
You do not take the main roads back.
<br><br>
Tara leads you through alleys, behind collapsed fences, and across the back of an old parking lot.
<br><br>
She knows how people hunt.
<br><br>
That makes it hard not to wonder how many times she has done it herself.
<br><br>
Eventually, the compound walls come into view.
<br><br>
Tara stops before you get too close.
<br><br>
Her eyes move over the gate, the wall, the roofline.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Nice walls."
</div>
</div>
</div>
<br>
A pause.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Gate's weak though."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
Mia gives her a sharp look.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"You always look for weaknesses first?"
</div>
</div>
</div>
<br>
Tara looks at the gate again.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Only when I want to stay alive."
</div>
</div>
</div>
<<else>>
You follow her gaze toward the gate.
<br><br>
She is not wrong.
<</if>>
<br><br>
Tara looks back at you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"I can help you keep this place standing."
</div>
</div>
</div>
<br>
[[Let Tara stay|Accept Tara]]
<br>
[[Send her away|Reject Tara]]
<</nobr>><<nobr>>
<<if not $taraStayed>>
<<set $taraStayed to true>>
<<set $population += 1>>
<</if>>
<<set $taraEventCompleted to true>>
<<set $taraLeft to false>>
<<changeTaraTrust 8>>
<<changeTaraSuspicion -15>>
You open the gate.
<br><br>
Tara steps inside slowly.
<br><br>
She does not look relieved.
<img class="scene-img" src="media/characters/tara/Tara_accepted.jpg">
<br><br>
Not exactly.
<br><br>
She looks like someone entering a room and counting every possible exit.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"I don't need much. A room. A lock. A reason not to regret this."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
Mia folds her arms.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"And we're supposed to sleep with her in the house?"
</div>
</div>
</div>
<br>
Tara looks at Mia.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Relax. If I wanted to rob you, you wouldn't see me coming."
</div>
</div>
</div>
<br>
Mia does not look reassured.
<</if>>
<br><br>
You tell Tara she can use the second guest bedroom for now.
<br><br>
She nods once.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Then I'll start with the gate tomorrow."
</div>
</div>
</div>
<br>
<span class="stat-change">Tara joined the compound.</span><br>
<span class="stat-change">Population +1</span><br>
<span class="stat-change">Tara Trust +8</span><br>
<span class="stat-change">Tara Suspicion -15</span>
<br><br>
[[Continue|Entryway]]
<</nobr>><<nobr>>
<<set $taraLeft to true>>
<<set $taraEventCompleted to true>>
<<changeTaraTrust -10>>
<<changeTaraSuspicion 20>>
You do not open the gate.
<br><br>
Tara watches you from the other side.
<br><br>
For a moment, she says nothing.
<br><br>
Then she gives a small nod, like she expected this from the start.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Smart."
</div>
</div>
</div>
<br>
She steps back from the gate.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Not kind. But smart."
</div>
</div>
</div>
<br>
<<if $taraRunWithMia>>
Mia looks uncomfortable, but she does not argue this time.
<br><br>
Maybe she still does not trust Tara.
<br><br>
Maybe part of her wanted you to make a different choice anyway.
<</if>>
<br><br>
Tara disappears down the street without looking back.
<br><br>
<span class="stat-change-negative">Tara left.</span><br>
<span class="stat-change-negative">Tara Trust -10</span><br>
<span class="stat-change-negative">Tara Suspicion +20</span>
<br><br>
[[Continue|Entryway]]
<</nobr>><<widget "setRaiderEnemy">><<silently>>
<<set _type to $args[0]>>
<<set $enemyHealth to 65>>
<<set $enemyMaxHealth to 65>>
<<if _type is "Scout">>
<<set $enemyName to "Raider Scout">>
<<set $enemyDamage to 9>>
<<elseif _type is "Thug">>
<<set $enemyName to "Raider Thug">>
<<set $enemyDamage to 13>>
<<elseif _type is "Gunman">>
<<set $enemyName to "Raider Gunman">>
<<set $enemyDamage to 18>>
<<elseif _type is "Leader">>
<<set $enemyName to "Raider Leader">>
<<set $enemyDamage to 16>>
<<else>>
<<set $enemyName to "Raider">>
<<set $enemyDamage to 10>>
<</if>>
<</silently>><</widget>><<nobr>>
<<if $taraRoomContext is "Guest Bedroom2">>
Tara looks up from the edge of the bed.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Need something, or are you just checking if I stole the furniture?"
</div>
</div>
</div>
<<elseif $taraRoomContext is "Kitchen">>
Tara leans against the counter, arms crossed.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"You keep your supplies in one place. Convenient. Also stupid."
</div>
</div>
</div>
<<elseif $taraRoomContext is "Garage">>
Tara glances toward the garage door.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"This door needs work. Anyone patient enough could get through it."
</div>
</div>
</div>
<<elseif $taraRoomContext is "Backyard">>
Tara looks along the compound wall.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Walls make people feel safe. That's usually when they stop paying attention."
</div>
</div>
</div>
<<elseif $taraRoomContext is "Living Room">>
Tara sits near the window, watching the street.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Quiet out there. I don't trust quiet."
</div>
</div>
</div>
<<else>>
Tara watches you quietly.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"What?"
</div>
</div>
</div>
<</if>>
<br><br>
Trust: <<print $taraTrust>> / 100<br>
Desire: <<print $taraDesire>> / 100<br>
Suspicion: <<print $taraSuspicion>> / 100
<br><br>
[[Talk|Tara Action Talk]]
<br>
<<if not $taraAskedRaiders>>
[[Ask about the raiders|Tara Action Raiders]]
<<else>>
[[Ask about her old group|Tara Action Raiders Repeat]]
<</if>>
<br>
<<if not $taraAskedGate>>
[[Ask about the gate|Tara Action Gate]]
<<else>>
[[Talk about the compound defenses|Tara Action Gate Repeat]]
<</if>>
<br>
<<if $taraTrust >= 15>>
[[Ask how she survived alone|Tara Action Survived]]
<<else>>
<span class="locked-option">Ask how she survived alone</span>
<span class="locked-note">Tara does not trust you enough yet.</span>
<</if>>
<br>
<<if $taraTrust >= 20 and $taraSuspicion <= 60>>
[[Flirt with Tara|Tara Action Flirt]]
<<else>>
<span class="locked-option">Flirt with Tara</span>
<span class="locked-note">Tara is not comfortable enough yet.</span>
<</if>>
<br>
<<if $taraTrust >= 35 and $taraSuspicion <= 45>>
[[Hug Tara|Tara Action Hug]]
<<else>>
<span class="locked-option">Hug Tara</span>
<span class="locked-note">Tara is not ready to lower her guard.</span>
<</if>>
<br>
<<if $taraTrust >= 50 and $taraDesire >= 25 and $taraSuspicion <= 35>>
[[Kiss Tara|Tara Action Kiss]]
<<else>>
<span class="locked-option">Kiss Tara</span>
<span class="locked-note">Tara is not ready for that.</span>
<</if>>
<br>
<<if $taraRomanceStarted and $taraTrust >= 65 and $taraDesire >= 45 and $taraSuspicion <= 25>>
[[Invite Tara somewhere private|Tara Action Invite Private]]
<<else>>
<span class="locked-option">Invite Tara somewhere private</span>
<span class="locked-note">Tara is not ready to trust you that much yet.</span>
<</if>>
<br>
<<if $taraRoomContext is "Guest Bedroom2" and $taraTrust >= 20 and not $taraFirstPrivateTalk>>
[[Sit with Tara for a while|Tara Action First Private Talk]]
<<elseif $taraRoomContext is "Guest Bedroom2" and $taraTrust >= 25 and not $taraAskedMarcus>>
[[Ask about Marcus|Tara Action Marcus]]
<<elseif $taraRoomContext is "Guest Bedroom2" and $taraTrust < 20>>
<span class="locked-option">Sit with Tara for a while</span>
<span class="locked-note">Tara does not trust you enough yet.</span>
<</if>>
<br><br>
<<link "Leave">>
<<goto $taraRoomExit>>
<</link>>
<</nobr>><<nobr>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 10>>
<<set _talk to random(1,4)>>
<<if _talk is 1>>
You ask Tara how she is settling in.
<br><br>
She looks around the room.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Still waiting for the catch."
</div>
</div>
</div>
<br>
<<changeTaraTrust 1>>
<span class="stat-change">Tara Trust +1</span>
<<elseif _talk is 2>>
You ask if she needs anything.
<br><br>
Tara gives you a flat look.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"A locked door, a full magazine, and eight hours where nobody says my name."
</div>
</div>
</div>
<br>
<<changeTaraTrust 1>>
<span class="stat-change">Tara Trust +1</span>
<<elseif _talk is 3>>
For a while, Tara says nothing.
<br><br>
Then she glances toward you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"You ask questions like someone who still thinks answers help."
</div>
</div>
</div>
<br>
<<changeTaraTrust 1>>
<span class="stat-change">Tara Trust +1</span>
<<else>>
You try to make conversation.
<br><br>
Tara listens for a while, then gives a small, dry smile.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"You always talk this much, or am I special?"
</div>
</div>
</div>
<br>
<<changeTaraTrust 1>>
<<changeTaraDesire 1>>
<span class="stat-change">Tara Trust +1</span><br>
<span class="stat-change">Tara Desire +1</span>
<</if>>
<br><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +10 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $taraAskedRaiders to true>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 20>>
You ask Tara about the raiders.
<br><br>
For a moment, her expression shuts down completely.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"They weren't always like that."
</div>
</div>
</div>
<br>
She looks away.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"At first, we only took from empty houses. Empty stores. Places nobody could use anymore."
</div>
</div>
</div>
<br>
A bitter smile touches her mouth and disappears.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Then Marcus started deciding which houses counted as empty."
</div>
</div>
</div>
<br>
You do not interrupt her.
<br><br>
Tara rubs her thumb against the edge of her knife sheath.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"I stayed too long. That's the truth."
</div>
</div>
</div>
<br>
<<changeTaraTrust 4>>
<<changeTaraSuspicion -5>>
<span class="stat-change">Tara Trust +4</span><br>
<span class="stat-change">Tara Suspicion -5</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +20 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 10>>
You ask Tara more about her old group.
<br><br>
She exhales quietly.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Marcus doesn't rush. That's what makes him dangerous."
</div>
</div>
</div>
<br>
She looks toward the nearest window.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"He'll watch first. Count people. Count exits. Wait until you think nothing is coming."
</div>
</div>
</div>
<br>
<<changeTaraTrust 1>>
<span class="stat-change">Tara Trust +1</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +10 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $taraAskedGate to true>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 15>>
You ask Tara what she meant about the gate.
<br><br>
She gives you a look like she has been waiting for the question.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Hinges are exposed. Lock's old. Frame has gaps."
</div>
</div>
</div>
<br>
She points toward the front of the compound.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Zombies push until something breaks. People look for the part already broken."
</div>
</div>
</div>
<br>
That is not comforting.
<br><br>
Tara shrugs.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Give me wood, scrap, and time. I can make it less stupid."
</div>
</div>
</div>
<br>
<<changeTaraTrust 2>>
<<changeTaraSuspicion -3>>
<span class="stat-change">Tara Trust +2</span><br>
<span class="stat-change">Tara Suspicion -3</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +15 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 10>>
You talk with Tara about the compound defenses.
<br><br>
She does not soften the answer.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Walls help. Habits matter more."
</div>
</div>
</div>
<br>
She glances toward you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Same routine every day, same path, same weak lock? That's how people get inside."
</div>
</div>
</div>
<br>
<<changeTaraTrust 1>>
<span class="stat-change">Tara Trust +1</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +10 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 20>>
You ask Tara how she survived before the raiders.
<br><br>
<img class="scene-img" src="media/characters/tara/talk_past.gif">
<br><br>
She is quiet for a long moment.
<br><br>
Then she answers.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Badly."
</div>
</div>
</div>
<br>
You wait.
<br><br>
Eventually, she continues.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"I learned which doors to open, which ones to leave closed, and when hunger was lying to me."
</div>
</div>
</div>
<br>
Her voice lowers slightly.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Then I learned people were worse than locked doors."
</div>
</div>
</div>
<br>
<<changeTaraTrust 3>>
<<changeTaraSuspicion -4>>
<span class="stat-change">Tara Trust +3</span><br>
<span class="stat-change">Tara Suspicion -4</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +20 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
You knock lightly on the door.
<br><br>
For a moment, only the water answers.
<br><br>
Then Tara's voice comes through the door.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Unless the house is on fire, this can wait."
</div>
</div>
</div>
<br>
You step back from the door.
<br><br>
She clearly values privacy.
<br><br>
[[Back|Second Floor Bathroom]]
<</nobr>><<nobr>>
<<set _peekResult to random(1,3)>>
You move closer to the door.
<br><br>
The gap is narrow, barely enough to see through.
<br><br>
<<if _peekResult is 1>>
Steam clings to the bathroom mirror.
<br><br>
Through the gap, you catch only a blurred glimpse of movement behind the shower glass.
<br><br>
Tara is careful. Even in here, she keeps herself hidden from the door.
<br><br>
You step back before you push your luck.
<br><br>
[[Back|Second Floor Bathroom]]
<<elseif _peekResult is 2>>
For a second, you see her through the steam.
<br><br>
Not clearly.
<br><br>
Just enough to know she is standing beneath the water, one hand braced against the tile, her head lowered like she is trying to wash more than dirt from her skin.
<br><br>
Then she turns her head slightly.
<br><br>
You step back quickly.
<br><br>
[[Back|Second Floor Bathroom]]
<<else>>
The floor creaks under your foot.
<br><br>
The water stops.
<br><br>
For one long second, the house goes silent.
<br><br>
Then Tara speaks from inside the bathroom.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Move away from the door."
</div>
</div>
</div>
<br>
Her voice is calm.
<br><br>
That makes it worse.
<br><br>
You step back.
<br><br>
The door opens only a few inches. Tara stands behind it, wrapped in a towel, eyes cold enough to make the hallway feel smaller.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Do that again, and trust will be the least of your problems."
</div>
</div>
</div>
<br>
<<changeTaraTrust -10>>
<<changeTaraSuspicion 20>>
<span class="stat-change-negative">Tara Trust -10</span><br>
<span class="stat-change-negative">Tara Suspicion +20</span>
<br><br>
[[Back|Second Floor Bathroom]]
<</if>>
<</nobr>><<nobr>>
<<set $taraFirstPrivateTalk to true>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 20>>
You find Tara sitting on the edge of the bed.
<br><br>
Her knife lies beside her, close enough to reach without looking.
<br><br>
For once, she does not tell you to leave.
<br><br>
You sit nearby, leaving enough space between you.
<br><br>
For a while, neither of you says anything.
<br><br>
Eventually, Tara speaks.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"This room is too clean."
</div>
</div>
</div>
<br>
You glance around.
<br><br>
<div class="dialogue-box player">
<div class="dialogue-content">
<div class="dialogue-name">You</div>
<div class="dialogue-text">
"That's a complaint?"
</div>
</div>
</div>
<br>
Tara gives a quiet, dry laugh.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"No. Just not used to sleeping somewhere that doesn't smell like mold, blood, or someone else's fear."
</div>
</div>
</div>
<br>
The silence after that feels heavier.
<br><br>
She looks down at her hands.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Don't get the wrong idea. I'm not grateful yet."
</div>
</div>
</div>
<br>
A pause.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"But I noticed you didn't push."
</div>
</div>
</div>
<br>
That seems to be as close to thanks as Tara is willing to get.
<br><br>
<<changeTaraTrust 5>>
<<changeTaraSuspicion -5>>
<span class="stat-change">Tara Trust +5</span><br>
<span class="stat-change">Tara Suspicion -5</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +20 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $taraAskedMarcus to true>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 20>>
You ask Tara about Marcus.
<br><br>
The name changes the room.
<br><br>
Not loudly.
<br><br>
Just enough.
<br><br>
Tara's eyes sharpen, and for a moment you see the woman from Apartment 304 again.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Marcus likes people scared."
</div>
</div>
</div>
<br>
She leans back against the wall.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Not because he's angry. Not because he loses control. That's what makes him worse."
</div>
</div>
</div>
<br>
Her voice stays calm.
<br><br>
Too calm.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"He studies people. Finds the thing they need most. Food. Medicine. Safety. A missing kid. A dead wife. Doesn't matter."
</div>
</div>
</div>
<br>
She looks toward the door.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Then he uses it like a leash."
</div>
</div>
</div>
<br>
You ask if Marcus will come here.
<br><br>
Tara does not answer right away.
<br><br>
That is answer enough.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"If he knows I came here, yes."
</div>
</div>
</div>
<br>
A pause.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"And if he doesn't know yet, he will."
</div>
</div>
</div>
<br>
<<changeTaraTrust 4>>
<<changeTaraSuspicion -3>>
<span class="stat-change">Tara Trust +4</span><br>
<span class="stat-change">Tara Suspicion -3</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +20 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 10>>
<<set _flirt to random(1,4)>>
<<if _flirt is 1>>
You let your eyes stay on Tara a little longer than usual.
<br><br>
She notices immediately.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Careful. Looking at people like that used to start fights."
</div>
</div>
</div>
<br>
You ask if it still does.
<br><br>
Tara gives a small, dangerous smile.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Depends how good you are at losing."
</div>
</div>
</div>
<<elseif _flirt is 2>>
You tell Tara she could try smiling once in a while.
<br><br>
She stares at you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"I smiled yesterday."
</div>
</div>
</div>
<br>
You say you missed it.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"That's on you."
</div>
</div>
</div>
<<elseif _flirt is 3>>
You make a quiet comment about her always keeping a knife nearby.
<br><br>
Tara raises an eyebrow.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Jealous?"
</div>
</div>
</div>
<br>
You tell her the knife gets more attention than you do.
<br><br>
For once, Tara almost laughs.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"The knife has earned it."
</div>
</div>
</div>
<<else>>
You say she is not as unreadable as she thinks.
<br><br>
Tara’s expression sharpens.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"That supposed to be charming?"
</div>
</div>
</div>
<br>
You say it was supposed to be honest.
<br><br>
She looks away first.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Dangerous habit."
</div>
</div>
</div>
<</if>>
<br><br>
<<changeTaraTrust 1>>
<<changeTaraDesire 4>>
<<changeTaraSuspicion -1>>
<span class="stat-change">Tara Trust +1</span><br>
<span class="stat-change">Tara Desire +4</span><br>
<span class="stat-change">Tara Suspicion -1</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +10 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 10>>
<<if not $taraFirstHug>>
<<set $taraFirstHug to true>>
You notice Tara standing quieter than usual.
<br><br>
Her shoulders are tense, her eyes fixed somewhere far beyond the room.
<br><br>
You ask if she is okay.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Don't ask questions you don't want answered."
</div>
</div>
</div>
<br>
Instead of pushing, you step closer and offer her a quiet moment.
<br><br>
Tara sees what you are doing.
<br><br>
For a second, you think she will tell you to back off.
<br><br>
She does not.
<br><br>
The hug is stiff at first. Tara barely moves.
<br><br>
Then, slowly, one hand closes against your back.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Don't make this a thing."
</div>
</div>
</div>
<br>
But she does not pull away immediately.
<br><br>
<<changeTaraTrust 5>>
<<changeTaraDesire 3>>
<<changeTaraSuspicion -5>>
<span class="stat-change">Tara Trust +5</span><br>
<span class="stat-change">Tara Desire +3</span><br>
<span class="stat-change">Tara Suspicion -5</span>
<<else>>
You offer Tara a quiet moment again.
<br><br>
She looks at you for a long second.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"You are getting dangerously comfortable."
</div>
</div>
</div>
<br>
Still, she lets you close the distance.
<br><br>
This time, she relaxes a little faster.
<br><br>
<<changeTaraTrust 2>>
<<changeTaraDesire 2>>
<<changeTaraSuspicion -2>>
<span class="stat-change">Tara Trust +2</span><br>
<span class="stat-change">Tara Desire +2</span><br>
<span class="stat-change">Tara Suspicion -2</span>
<</if>>
<br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +10 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<silently>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 10>>
<</silently>>
<<if not $taraFirstKiss>>
<<silently>>
<<set $taraFirstKiss to true>>
<<set $taraRomanceStarted to true>>
<</silently>>
The silence between you and Tara changes.
<br><br>
It is not comfortable.
<br><br>
Not exactly.
<br><br>
But it is honest.
<br><br>
Tara notices you looking at her.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"If you're about to do something stupid, at least commit to it."
</div>
</div>
</div>
<br>
You step closer.
<br><br>
This time, Tara does not reach for her knife.
<br><br>
She watches you until the last moment.
<br><br>
The kiss is brief, tense, and careful.
<br><br>
<img class="scene-img" src="media/Actions/kiss.webp">
<br><br>
When you pull back, Tara looks more annoyed by her own reaction than by yours.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"That was a terrible idea."
</div>
</div>
</div>
<br>
You ask if she wants you to apologize.
<br><br>
Her eyes stay on yours.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"No."
</div>
</div>
</div>
<br>
<<silently>>
<<changeTaraTrust 6>>
<<changeTaraDesire 8>>
<<changeTaraSuspicion -6>>
<</silently>>
<span class="stat-change">Tara Trust +6</span><br>
<span class="stat-change">Tara Desire +8</span><br>
<span class="stat-change">Tara Suspicion -6</span>
<<else>>
You move closer, giving Tara enough time to stop you.
<br><br>
She does not.
<br><br>
The kiss is slower this time.
<br><br>
<img class="scene-img" src="media/Actions/kiss.webp">
<br><br>
Tara catches your shirt for half a second before letting go.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"You keep doing that, and I might start thinking you mean it."
</div>
</div>
</div>
<br>
<<silently>>
<<changeTaraTrust 2>>
<<changeTaraDesire 5>>
<<changeTaraSuspicion -2>>
<</silently>>
<span class="stat-change">Tara Trust +2</span><br>
<span class="stat-change">Tara Desire +5</span><br>
<span class="stat-change">Tara Suspicion -2</span>
<</if>>
<br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +10 minutes</span>
<br><br>
[[Back|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<if not $taraRomanceStarted>>
Tara watches you carefully.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Don't push your luck."
</div>
</div>
</div>
<br><br>
[[Back|Tara Interaction Menu]]
<<elseif $taraTrust < 65 or $taraDesire < 45 or $taraSuspicion > 25>>
You suggest finding somewhere private.
<br><br>
Tara studies your face for a long moment.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Not yet."
</div>
</div>
</div>
<br>
She looks away.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"And don't make me say it twice."
</div>
</div>
</div>
<br><br>
[[Back|Tara Interaction Menu]]
<<elseif $energy < 10>>
You are too tired for that right now.
<br><br>
[[Back|Tara Interaction Menu]]
<<else>>
You ask Tara if she wants to get away from the noise of the house for a while.
<br><br>
She does not answer immediately.
<br><br>
Her eyes move to the door.
<br><br>
Then back to you.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"You sure about that?"
</div>
</div>
</div>
<br>
You tell her yes.
<br><br>
Tara stands slowly.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Then lock the door."
</div>
</div>
</div>
<br><br>
[[Continue|Tara Private Scene Start]]
<</if>>
<</nobr>><<nobr>>
<<set _firstPrivateScene to not $taraFirstIntimate>>
<<set $energy = Math.max(0, $energy - 10)>>
<<advanceMinutes 30>>
<<set $taraSceneArousal to 0>>
<<set $playerTaraSceneArousal to 0>>
<<set $taraClimaxedThisScene to false>>
<<set $taraClimaxCount to 0>>
<<set $playerCameWithTara to false>>
<<set $taraIntimateGif to either(
"media/characters/tara/provocative.gif"
)>>
<<set $taraIntimateText to "Tara watches you quietly, waiting to see if you are going to hesitate.">>
<<if _firstPrivateScene>>
<<set $taraFirstIntimate to true>>
<<changeTaraTrust 6>>
<<changeTaraDesire 10>>
<<changeTaraSuspicion -8>>
<<else>>
<<changeTaraTrust 2>>
<<changeTaraDesire 5>>
<<changeTaraSuspicion -3>>
<</if>>
You and Tara step away from the rest of the house.
<br><br>
She closes the door behind her and checks the lock without thinking.
<br><br>
Then she notices you watching.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Old habit."
</div>
</div>
</div>
<br>
For once, there is no knife in her hand.
<br><br>
No argument waiting behind her eyes.
<br><br>
Just Tara, standing close enough that the silence between you feels deliberate.
<br><br>
<span class="stat-change-negative">Energy -10</span><br>
<span class="stat-change">Time +30 minutes</span><br>
<<if _firstPrivateScene>>
<span class="stat-change">Tara Trust +6</span><br>
<span class="stat-change">Tara Desire +10</span><br>
<span class="stat-change">Tara Suspicion -8</span>
<<else>>
<span class="stat-change">Tara Trust +2</span><br>
<span class="stat-change">Tara Desire +5</span><br>
<span class="stat-change">Tara Suspicion -3</span>
<</if>>
<br><br>
[[Continue|Tara Intimate Scene]]
<</nobr>><<nobr>>
<<silently>>
<<set $taraSceneProgress to Math.max(
$taraSceneProgress || 0,
Math.min($taraSceneArousal, $playerTaraSceneArousal)
)>>
<<set _playerArousalWidth to $playerTaraSceneArousal + "%">>
<<set _taraArousalWidth to $taraSceneArousal + "%">>
<<set _analNeeds to []>>
<<if $taraTrust < 80>>
<<run _analNeeds.push("Trust: " + $taraTrust + "/80")>>
<</if>>
<<if $taraDesire < 80>>
<<run _analNeeds.push("Desire: " + $taraDesire + "/80")>>
<</if>>
<<if $taraSuspicion > 20>>
<<run _analNeeds.push("Lower Suspicion to 20 or less. Currently: " + $taraSuspicion + ".")>>
<</if>>
<<if $taraSceneProgress < 55>>
<<run _analNeeds.push("Both arousal bars must reach 55 together. Best so far: " + $taraSceneProgress + "/55.")>>
<</if>>
<</silently>>
<<if $taraSceneArousal >= 100>>
<<goto "Tara Intimate Her Climax">>
<<else>>
<div class="intimate-scene-wrapper">
<div class="intimate-media-box">
<<if $taraIntimateGif and $taraIntimateGif.toLowerCase().endsWith(".mp4")>>
<video class="intimate-img" @src="$taraIntimateGif" autoplay muted loop playsinline></video>
<<else>>
<img class="intimate-img" @src="$taraIntimateGif">
<</if>>
</div>
<br>
<div class="intimate-bars">
<div class="arousal-row">
<div class="arousal-name">You</div>
<div class="arousal-bar horizontal">
<div class="arousal-fill player" @style="'width:' + _playerArousalWidth + ';'"></div>
</div>
<div class="arousal-value"><<print $playerTaraSceneArousal>></div>
</div>
<div class="arousal-row">
<div class="arousal-name">Tara</div>
<div class="arousal-bar horizontal">
<div class="arousal-fill her" @style="'width:' + _taraArousalWidth + ';'"></div>
</div>
<div class="arousal-value"><<print $taraSceneArousal>></div>
</div>
</div>
<br>
<div class="intimate-text">
<<print $taraIntimateText>>
</div>
<br><br>
<<if $energy < 5>>
You are too tired to continue.
<br><br>
<<else>>
<div class="intimate-actions">
<<link "Kiss">>
<<silently>>
<<set $energy -= 5>>
<<advanceMinutes 5>>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Kiss/kiss1.gif",
"media/characters/tara/scenes/Kiss/kiss2.gif",
"media/characters/tara/scenes/Kiss/kiss3.gif",
"media/characters/tara/scenes/Kiss/kiss4.gif",
"media/characters/tara/scenes/Kiss/kiss5.gif"
)>>
<<set $taraIntimateText to either(
"Tara lets the kiss happen slowly, like she is still deciding whether trusting you is brave or stupid.",
"Her hand catches your shirt for a moment before she lets go again.",
"Tara kisses you back with careful restraint, but she does not pull away.",
"For once, Tara does not hide behind sarcasm. Not completely."
)>>
<<changeTaraSceneArousal 10>>
<<changePlayerTaraSceneArousal 10>>
<</silently>>
<<goto "Tara Intimate Scene">>
<</link>>
<<if $taraSceneArousal >= 15>>
<<link "Tease">>
<<silently>>
<<set $energy -= 5>>
<<advanceMinutes 5>>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Tease/tease1.webp",
"media/characters/tara/scenes/Tease/tease2.webp",
"media/characters/tara/scenes/Tease/tease3.webp",
"media/characters/tara/scenes/Tease/tease4.webp",
"media/characters/tara/scenes/Tease/tease5.webp",
"media/characters/tara/scenes/Tease/tease6.webp"
)>>
<<set $taraIntimateText to either(
"Tara watches your face closely, but the tension in her shoulders slowly eases.",
"She exhales through her nose, trying to look more controlled than she feels.",
"Tara gives you a warning look, but there is very little warning left in it.",
"Her fingers tighten briefly against you before she forces herself to relax."
)>>
<<changeTaraSceneArousal 14>>
<<changePlayerTaraSceneArousal 5>>
<</silently>>
<<goto "Tara Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Tease</span>
<</if>>
<<if $taraSceneArousal >= 35>>
<<link "Lick pussy">>
<<silently>>
<<set $energy -= 5>>
<<advanceMinutes 5>>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Lick/lickpussy1.webp",
"media/characters/tara/scenes/Lick/lickpussy2.webp",
"media/characters/tara/scenes/Lick/lickpussy3.gif",
"media/characters/tara/scenes/Lick/lickpussy4.webp",
"media/characters/tara/scenes/Lick/lickpussy5.webp",
"media/characters/tara/scenes/Lick/lickpussy6.webp"
)>>
<<set $taraIntimateText to either(
"Tara tries to stay quiet, but her control starts to slip.",
"Her hand moves to your shoulder, not pushing you away.",
"For once, Tara lets herself stop watching the door.",
"She breathes unevenly, caught between control and surrender."
)>>
<<changeTaraSceneArousal 15>>
<</silently>>
<<goto "Tara Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Lick pussy</span>
<</if>>
<<if $taraSceneArousal >= 20 and $playerTaraSceneArousal >= 25>>
<<link "Handjob">>
<<silently>>
<<set $energy -= 5>>
<<advanceMinutes 5>>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Handjob/handjob1.webp",
"media/characters/tara/scenes/Handjob/handjob2.webp",
"media/characters/tara/scenes/Handjob/handjob3.gif",
"media/characters/tara/scenes/Handjob/handjob4.gif",
"media/characters/tara/scenes/Handjob/handjob5.webp",
"media/characters/tara/scenes/Handjob/handjob6.webp"
)>>
<<set $taraIntimateText to either(
"Tara watches your reaction with a faint, dangerous little smile.",
"She moves with deliberate confidence, clearly enjoying the effect she has on you.",
"Her guard does not vanish, but now it feels more like control than fear.",
"Tara leans closer, her voice low enough to feel intentional."
)>>
<<changeTaraSceneArousal 2>>
<<changePlayerTaraSceneArousal 25>>
<</silently>>
<<goto "Tara Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Handjob</span>
<</if>>
<<if $taraSceneArousal >= 40 and $playerTaraSceneArousal >= 50>>
<<link "Blowjob">>
<<silently>>
<<set $energy -= 5>>
<<advanceMinutes 5>>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Blowjob/blowjob1.webp",
"media/characters/tara/scenes/Blowjob/blowjob2.webp",
"media/characters/tara/scenes/Blowjob/blowjob3.webp",
"media/characters/tara/scenes/Blowjob/blowjob4.webp",
"media/characters/tara/scenes/Blowjob/blowjob5.gif",
"media/characters/tara/scenes/Blowjob/blowjob6.webp",
"media/characters/tara/scenes/Blowjob/blowjob7.webp",
"media/characters/tara/scenes/Blowjob/blowjob8.webp"
)>>
<<set $taraIntimateText to either(
"Tara keeps her eyes on you, clearly aware of every reaction she draws out.",
"She takes control of the moment with quiet confidence.",
"The usual sarcasm is gone now, replaced by something much more focused.",
"Tara pauses just long enough to let you feel how much control she has."
)>>
<<changeTaraSceneArousal 3>>
<<changePlayerTaraSceneArousal 35>>
<</silently>>
<<goto "Tara Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Blowjob</span>
<</if>>
<<if $taraSceneProgress >= 40>>
<<link "Sex">>
<<silently>>
<<set $energy -= 5>>
<<advanceMinutes 5>>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Sex/fuck1.webp",
"media/characters/tara/scenes/Sex/fuck2.webp",
"media/characters/tara/scenes/Sex/fuck3.webp",
"media/characters/tara/scenes/Sex/fuck4.webp",
"media/characters/tara/scenes/Sex/fuck5.webp",
"media/characters/tara/scenes/Sex/fuck6.webp",
"media/characters/tara/scenes/Sex/fuck7.webp"
)>>
<<set $taraIntimateText to either(
"Tara pulls you closer, no longer pretending this is only your idea.",
"The distance between you disappears, and for once Tara does not look for an exit.",
"Her guard does not vanish completely, but it lowers enough for you to feel the difference.",
"Tara breathes against you, quiet and unsteady, as the room feels smaller around both of you.",
"For once, she lets herself want something without turning it into a fight."
)>>
<<changeTaraSceneArousal 12>>
<<changePlayerTaraSceneArousal 25>>
<</silently>>
<<goto "Tara Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked">Sex</span>
<</if>>
<<if _analNeeds.length is 0>>
<<link "Anal">>
<<silently>>
<<set $energy -= 5>>
<<advanceMinutes 5>>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Anal/anal1.webp",
"media/characters/tara/scenes/Anal/anal2.webp",
"media/characters/tara/scenes/Anal/anal3.webp",
"media/characters/tara/scenes/Anal/anal4.webp",
"media/characters/tara/scenes/Anal/anal5.webp",
"media/characters/tara/scenes/Anal/anal6.webp",
"media/characters/tara/scenes/Anal/anal7.webp",
"media/characters/tara/scenes/Anal/anal8.webp",
"media/characters/tara/scenes/Anal/anal9.webp"
)>>
<<set $taraIntimateText to either(
"Tara holds your gaze, making sure this is still her choice too.",
"She breathes slowly, trusting you more than she would ever admit out loud.",
"The moment is careful, intense, and built on more trust than Tara usually gives anyone.",
"Tara's fingers tighten against you, but she does not pull away."
)>>
<<changeTaraSceneArousal 12>>
<<changePlayerTaraSceneArousal 25>>
<</silently>>
<<goto "Tara Intimate Scene">>
<</link>>
<<else>>
<span class="intimate-locked intimate-hint"
tabindex="0"
role="button"
aria-disabled="true"
aria-label="Anal"
aria-describedby="tara-anal-requirements">
Anal
<span class="intimate-tooltip" id="tara-anal-requirements" role="tooltip">
<<print _analNeeds.join(" · ")>>
</span>
</span>
<</if>>
<<if $playerTaraSceneArousal >= 100 and not $playerCameWithTara>>
[[Cum|Tara Intimate Player Cum Choice]]
<<else>>
<span class="intimate-locked">Cum</span>
<</if>>
</div>
<</if>>
<div class="intimate-end">
[[End Scene|Tara Intimate End]]
</div>
</div>
<</if>>
<</nobr>><<nobr>>
<<silently>>
<<set $playerCameWithTara to true>>
<<set $playerTaraSceneArousal to 0>>
<<set $energy = Math.max(0, $energy - 5)>>
<<advanceMinutes 5>>
<<changeTaraDesire 2>>
<<changeTaraSuspicion -1>>
<<if $taraCumLocation is "inside">>
<<changeTaraTrust 1>>
<<changeTaraSuspicion -1>>
<</if>>
<</silently>>
<div class="intimate-scene-wrapper">
<div class="intimate-media-box">
<img class="intimate-img" @src="$taraIntimateGif">
</div>
<br>
<div class="intimate-text">
<<print $taraIntimateText>>
</div>
<br>
<span class="stat-change">Tara Desire +2</span><br>
<span class="stat-change">Tara Suspicion -1</span><br>
<<if $taraCumLocation is "inside">>
<span class="stat-change">Tara Trust +1</span><br>
<span class="stat-change">Tara Suspicion -1</span><br>
<</if>>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +5 minutes</span>
<br><br>
<<if $energy >= 5>>
<<link "Continue">>
<<set $playerCameWithTara to false>>
<<goto "Tara Intimate Scene">>
<</link>>
<br><br>
<<else>>
You are too tired to continue.
<br><br>
<</if>>
[[End Scene|Tara Intimate End]]
</div>
<</nobr>><<nobr>>
The moment slowly fades.
<br><br>
Tara stays close for a little while, quieter than usual.
<br><br>
Then she steps back and fixes her expression into something almost familiar.
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/tara/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Tara</div>
<div class="dialogue-text">
"Don't look so pleased with yourself."
</div>
</div>
</div>
<br>
But there is no real bite in her voice.
<br><br>
[[Return|Tara Interaction Menu]]
<</nobr>><<nobr>>
<<set $taraClimaxCount += 1>>
<<set $taraSceneArousal to 45>>
<<changeTaraDesire 2>>
<<changeTaraSuspicion -1>>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/cum/taracum.webp"
)>>
<div class="intimate-scene-wrapper">
<div class="intimate-media-box">
<img class="intimate-img" @src="$taraIntimateGif">
</div>
<br>
<div class="intimate-text">
<<if $taraClimaxCount is 1>>
Tara loses control for a moment, gripping you tightly as her guard finally breaks.
<<elseif $taraClimaxCount is 2>>
Tara trembles again, breathing hard, looking almost angry at how much she needed this.
<<else>>
Tara gives in completely, overwhelmed despite every wall she tries to keep standing.
<</if>>
</div>
<br>
<span class="stat-change">Tara Desire +2</span><br>
<span class="stat-change">Tara Suspicion -1</span>
<br><br>
[[Continue|Tara Intimate Scene]]
</div>
<</nobr>><<nobr>>
<div class="intimate-scene-wrapper">
<div class="intimate-media-box">
<img class="intimate-img" @src="$miaIntimateGif">
</div>
<br>
<div class="intimate-text">
Mia looks up at you, breathing heavily, waiting for what comes next.
</div>
<br><br>
<div class="intimate-actions">
<<link "In her mouth">>
<<set $miaCumLocation to "mouth">>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/cum/cummouth.webp"
)>>
<<set $miaIntimateText to "Mia stays close as you finish in her mouth, her breathing uneven afterward.">>
<<goto "Mia Intimate Player Cum">>
<</link>>
<<link "On her face">>
<<set $miaCumLocation to "face">>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/cum/cumface.webp"
)>>
<<set $miaIntimateText to "You finish on Mia's face. She stays close, flushed and quiet, still catching her breath.">>
<<goto "Mia Intimate Player Cum">>
<</link>>
<<link "Inside">>
<<set $miaCumLocation to "inside">>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/cum/cumpussy.webp"
)>>
<<set $miaIntimateText to "You finish inside Mia. She holds onto you for a moment longer, trembling softly.">>
<<goto "Mia Intimate Player Cum">>
<</link>>
<<link "Ass">>
<<set $miaCumLocation to "ass">>
<<set $miaIntimateGif to either(
"media/characters/mia/scenes/cum/cumass.webp"
)>>
<<set $miaIntimateText to "You finish inside Mia's ass. She is trembling softly.">>
<<goto "Mia Intimate Player Cum">>
<</link>>
</div>
<div class="intimate-end">
[[Back|Mia Intimate Scene]]
</div>
</div>
<</nobr>><<nobr>>
<div class="intimate-scene-wrapper">
<div class="intimate-media-box">
<img class="intimate-img" @src="$taraIntimateGif">
</div>
<br>
<div class="intimate-text">
Tara watches you closely, breathing hard, her usual confidence cracked but not gone.
</div>
<br><br>
<div class="intimate-actions">
<<link "In her mouth">>
<<set $taraCumLocation to "mouth">>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Cum/cummouth1.webp",
"media/characters/tara/scenes/Cum/cummouth2.webp"
)>>
<<set $taraIntimateText to "Tara stays close as you finish in her mouth, watching you with a look that is softer than she probably intended.">>
<<goto "Tara Intimate Player Cum">>
<</link>>
<<link "On her face">>
<<set $taraCumLocation to "face">>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Cum/cumface1.webp",
"media/characters/tara/scenes/Cum/cumface2.webp",
"media/characters/tara/scenes/Cum/cumface3.webp",
"media/characters/tara/scenes/Cum/cumface4.webp"
)>>
<<set $taraIntimateText to "You finish on Tara's face. She exhales slowly, then gives you a look that still manages to feel dangerous.">>
<<goto "Tara Intimate Player Cum">>
<</link>>
<<link "Inside">>
<<set $taraCumLocation to "inside">>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Cum/cumpussy.webp"
)>>
<<set $taraIntimateText to "You finish inside Tara. For once, she does not pull away quickly. She just stays there, breathing against you.">>
<<goto "Tara Intimate Player Cum">>
<</link>>
<<link "Ass">>
<<set $taraCumLocation to "ass">>
<<set $taraIntimateGif to either(
"media/characters/tara/scenes/Cum/cumass.gif"
)>>
<<set $taraIntimateText to "You finish inside Tara's ass. She just stays there, breathing against you.">>
<<goto "Tara Intimate Player Cum">>
<</link>>
</div>
<div class="intimate-end">
[[Back|Tara Intimate Scene]]
</div>
</div>
<</nobr>><<nobr>>
<<set $foundNeighborhood to true>>
<<set $neighborhoodDiscoveredDay to $day>>
You move carefully down the road beyond the compound gate.
<br><br>
For the first few minutes, the only sounds are your own footsteps and the distant creak of metal moving in the wind.
<br><br>
The compound walls disappear behind you.
<br><br>
About two hundred meters ahead, past a bend in the street and a line of abandoned cars, the road opens into a small residential neighborhood.
<br><br>
<img class="location-img" src="media/locations/outside/neighborhood.jpg">
<br><br>
Rows of houses sit quiet behind broken fences and overgrown yards.
<br><br>
Some doors hang open.
<br><br>
Some are still closed.
<br><br>
That might be worse.
<br><br>
A rusted street sign leans at the corner, half-covered by weeds. Beyond it, the neighborhood waits in silence.
<br><br>
<span class="stat-change">New location discovered: Nearby Neighborhood</span><br>
<span class="stat-change-negative">Energy -20</span><br>
<span class="stat-change">Time +1 hour</span>
<br><br>
[[Enter the Neighborhood|Nearby Neighborhood]]
<br>
[[Return Outside|Outside]]
<</nobr>><<nobr>>
<<if not $thirdBedroomCleared>>
<img class="location-img" src="media/locations/base/third_bedroom_cluttered.jpg">
<br><br>
The third bedroom is barely a bedroom anymore.
<br><br>
The door only opens halfway before hitting something heavy on the other side. Old boxes, broken furniture, torn bags, and forgotten household junk fill most of the room.
<br><br>
A dusty mattress leans against the far wall, almost buried behind a collapsed wardrobe.
<br><br>
It looks like the previous owners used this place as a storage room long before the world ended.
<br><br>
Still, if you cleared it out, this could become another usable bedroom.
<br><br>
<<if $energy >= 25>>
[[Clear the junk|Clear Third Bedroom]]
<<else>>
<span class="locked-option">Clear the junk</span>
<span class="locked-note">You are too tired. Requires 25 Energy.</span>
<</if>>
<<elseif not $thirdBedroomBedRepaired>>
<img class="location-img" src="media/locations/base/third_bedroom_clean.jpg">
<br><br>
The third bedroom is mostly clear now.
<br><br>
The floor is still dusty, and the air smells stale, but at least the room can breathe again.
<br><br>
The old mattress is ruined. The bed frame is damaged, but not completely useless. With some wood and cloth, you could make it usable again.
<br><br>
<<set _woodCount to 0>>
<<set _clothCount to 0>>
<<for _item range $inventory>>
<<if _item.name is "Wood">>
<<set _woodCount += _item.quantity>>
<</if>>
<<if _item.name is "Cloth">>
<<set _clothCount += _item.quantity>>
<</if>>
<</for>>
Requirements:<br>
Wood: <<print _woodCount>> / 3<br>
Cloth: <<print _clothCount>> / 2<br>
Energy: <<print $energy>> / 15
<br><br>
<<if _woodCount >= 3 and _clothCount >= 2 and $energy >= 15>>
[[Repair the bed|Repair Third Bedroom Bed]]
<<else>>
<span class="locked-option">Repair the bed</span>
<span class="locked-note">Requires Wood x3, Cloth x2, and 15 Energy.</span>
<</if>>
<<else>>
<img class="location-img" src="media/locations/base/third_bedroom_repaired.jpg">
<br><br>
The third bedroom is finally usable.
<br><br>
It is still simple, but the junk is gone, the bed has been repaired, and the room no longer feels abandoned.
<br><br>
Another survivor could sleep here if needed.
<br><br>
<span class="stat-change">Spare Bedroom Ready</span>
<</if>>
<br><br>
[[Back to the Second Floor|Second Floor]]
<</nobr>><<nobr>>
<<if $thirdBedroomCleared>>
The third bedroom has already been cleared.
<br><br>
[[Back to Guest Bedroom|Guest Bedroom3]]
<<elseif $energy < 25>>
You are too tired to clear the room right now.
<br><br>
[[Back to Guest Bedroom|Guest Bedroom3]]
<<else>>
<<set $energy -= 25>>
<<advanceMinutes 120>>
<<set $thirdBedroomCleared to true>>
You spend the next couple of hours dragging boxes, broken furniture, and useless junk out of the third bedroom.
<br><br>
Most of it is worthless.
<br><br>
Rotten clothes. Cracked plastic containers. A broken lamp. Old papers ruined by moisture.
<br><br>
Near the back of the room, you find a small box of usable scraps under the collapsed wardrobe.
<br><br>
<<addToInventory "Wood" "media/icons/wood.jpg" 2>>
<<addToInventory "Cloth" "media/icons/cloth.jpg" 1>>
You found:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/wood.jpg">
<div><strong>+2 Wood</strong></div>
</div>
<div class="loot-item">
<img src="media/icons/cloth.jpg">
<div><strong>+1 Cloth</strong></div>
</div>
</div>
<br>
<span class="stat-change-negative">Energy -25</span><br>
<span class="stat-change">Time +2 hours</span>
<br><br>
The room is not comfortable yet, but at least now you can see the floor.
<br><br>
[[Continue|Guest Bedroom3]]
<</if>>
<</nobr>><<nobr>>
<<set _woodCount to 0>>
<<set _clothCount to 0>>
<<for _item range $inventory>>
<<if _item.name is "Wood">>
<<set _woodCount += _item.quantity>>
<</if>>
<<if _item.name is "Cloth">>
<<set _clothCount += _item.quantity>>
<</if>>
<</for>>
<<if $thirdBedroomBedRepaired>>
The bed has already been repaired.
<br><br>
[[Back to Guest Bedroom|Guest Bedroom3]]
<<elseif not $thirdBedroomCleared>>
You need to clear the room before you can repair anything.
<br><br>
[[Back to Guest Bedroom|Guest Bedroom3]]
<<elseif $energy < 15>>
You are too tired to repair the bed right now.
<br><br>
[[Back to Guest Bedroom|Guest Bedroom3]]
<<elseif _woodCount < 3 or _clothCount < 2>>
You do not have enough materials to repair the bed.
<br><br>
Requirements:<br>
Wood: <<print _woodCount>> / 3<br>
Cloth: <<print _clothCount>> / 2
<br><br>
[[Back to Guest Bedroom|Guest Bedroom3]]
<<else>>
<<set _needWood to 3>>
<<set _needCloth to 2>>
<<for _i = 0; _i < $inventory.length; _i++>>
<<if _needWood > 0 and $inventory[_i].name is "Wood">>
<<set _takeWood to Math.min($inventory[_i].quantity, _needWood)>>
<<set $inventory[_i].quantity -= _takeWood>>
<<set _needWood -= _takeWood>>
<</if>>
<<if _needCloth > 0 and $inventory[_i].name is "Cloth">>
<<set _takeCloth to Math.min($inventory[_i].quantity, _needCloth)>>
<<set $inventory[_i].quantity -= _takeCloth>>
<<set _needCloth -= _takeCloth>>
<</if>>
<</for>>
<<for _i = $inventory.length - 1; _i >= 0; _i-->>
<<if $inventory[_i].quantity <= 0>>
<<set $inventory.deleteAt(_i)>>
<</if>>
<</for>>
<<set $energy -= 15>>
<<advanceMinutes 60>>
<<set $thirdBedroomBedRepaired to true>>
<<set $spareBedroomReady to true>>
You spend the next hour repairing the damaged bed frame.
<br><br>
The wood creaks under pressure, but it holds. You tighten what you can, replace the weakest parts, and stretch clean cloth over the worst sections of the old mattress.
<br><br>
It is not comfortable.
<br><br>
But in this world, usable is enough.
<br><br>
<span class="stat-change-negative">Wood -3</span><br>
<span class="stat-change-negative">Cloth -2</span><br>
<span class="stat-change-negative">Energy -15</span><br>
<span class="stat-change">Time +1 hour</span><br>
<span class="stat-change">Spare Bedroom Ready</span>
<br><br>
[[Back to Guest Bedroom|Guest Bedroom3]]
<</if>>
<</nobr>><<nobr>>
<<if setup.isInsideCompound() and $health > 0>>
<<if $gateCondition is undefined>>
<<set $gateCondition to 100>>
<</if>>
<div class="journal-box">
<h3>General Status</h3>
Security: <<print $compoundSecurity>> / 100<br>
Electricity: <<print $electricity>> / 100<br>
Fuel: <<print $fuel>><br>
Food: <<print setup.totalFood()>><br>
Survivors: <<print $population>>
</div>
<div class="journal-box">
<h3>Defenses</h3>
<div id="compound-gate-panel">
<<include "Compound Gate Status">>
</div>
<br>
Garage Door:
<<if $garageDoorSecured>>
Secured
<<else>>
Unsecured
<</if>>
</div>
<div class="journal-box">
<h3>Rooms</h3>
Master Bedroom: Player Room<br>
Guest Bedroom 1:
<<if $miaStayed and not $miaDead>>Mia<<else>>Empty<</if>>
<br>
Guest Bedroom 2:
<<if $taraStayed and not $taraDead>>Tara<<else>>Empty<</if>>
<br>
Third Bedroom:
<<if $spareBedroomReady>>
Spare Bedroom Ready
<<elseif $thirdBedroomCleared>>
Cleared, bed not repaired
<<else>>
Cluttered
<</if>>
</div>
<div class="journal-box">
<h3>Utilities</h3>
Generator:
<<if $generatorInspected>>Inspected<<else>>Not inspected<</if>>
<br>
Workbench:
<<if $workbenchBuilt>>Built<<else>>Not built<</if>>
<br>
Storage Room:
<<if $storageRoomCleaned>>Cleaned<<else>>Cluttered<</if>>
</div>
<<else>>
Compound Management is only available inside the compound.
<</if>>
<<link "Close">>
<<run Dialog.close()>>
<</link>>
<</nobr>><<nobr>>
<<silently>>
<<set _woodCount to 0>>
<<set _scrapCount to 0>>
<<set _clothCount to 0>>
<<for _item range $inventory>>
<<if _item.name is "Wood">>
<<set _woodCount += _item.quantity>>
<</if>>
<<if _item.name is "Scrap Metal">>
<<set _scrapCount += _item.quantity>>
<</if>>
<<if _item.name is "Cloth">>
<<set _clothCount += _item.quantity>>
<</if>>
<</for>>
<</silently>>
<div class="btw-workbench">
<h2>Workbench</h2>
<p>The workbench is rough, but useful. Scraps, tools, and materials are spread across its surface.</p>
<p>This is where you can craft supplies and build compound upgrades.</p>
<h3>Craft Supplies</h3>
<div class="wb-card">
<div class="wb-details">
<h4>Bandage</h4>
<div class="wb-cost">
Cloth x2<br>
Energy: 5 · Time: 30 minutes
</div>
<div class="wb-action">
<<if _clothCount >= 2 and $energy >= 5>>
<<link "Craft Bandage">>
<<set $workbenchAction to "bandage">>
<<goto "Workbench Action">>
<</link>>
<<else>>
<span class="locked-option">Craft Bandage</span>
<span class="wb-note">You need Cloth x2 and 5 Energy.</span>
<</if>>
</div>
</div>
<img class="wb-image wb-item-image"
src="media/icons/bandage.jpg"
alt="Bandage">
</div>
<h3>Compound Upgrades</h3>
<div class="wb-card">
<div class="wb-details">
<h4>Front Gate</h4>
<<if $frontGateReinforced>>
<span class="stat-change">Reinforced</span>
<<else>>
<div class="wb-cost">
Wood x6 · Scrap Metal x4<br>
Energy: 25 · Time: 2 hours
</div>
<div class="wb-action">
<<if _woodCount >= 6 and _scrapCount >= 4 and $energy >= 25>>
<<link "Reinforce Front Gate">>
<<set $workbenchAction to "frontGate">>
<<goto "Workbench Action">>
<</link>>
<<else>>
<span class="locked-option">Reinforce Front Gate</span>
<span class="wb-note">You need Wood x6, Scrap Metal x4, and 25 Energy.</span>
<</if>>
</div>
<</if>>
</div>
<img class="wb-image"
src="media/locations/base/Gate.jpg"
alt="Front gate">
</div>
<div class="wb-card">
<div class="wb-details">
<h4>Garage Door</h4>
<<if $garageDoorSecured>>
<span class="stat-change">Secured</span>
<<else>>
<div class="wb-cost">
Wood x3 · Scrap Metal x3<br>
Energy: 20 · Time: 90 minutes
</div>
<div class="wb-action">
<<if _woodCount >= 3 and _scrapCount >= 3 and $energy >= 20>>
<<link "Secure Garage Door">>
<<set $workbenchAction to "garageDoor">>
<<goto "Workbench Action">>
<</link>>
<<else>>
<span class="locked-option">Secure Garage Door</span>
<span class="wb-note">You need Wood x3, Scrap Metal x3, and 20 Energy.</span>
<</if>>
</div>
<</if>>
</div>
<img class="wb-image"
src="media/locations/base/Garage_door.jpg"
alt="Garage door">
</div>
<h3>Available Materials</h3>
<div class="wb-resources">
<span>Wood: <strong><<print _woodCount>></strong></span>
<span>Scrap Metal: <strong><<print _scrapCount>></strong></span>
<span>Cloth: <strong><<print _clothCount>></strong></span>
<span>Energy: <strong><<print $energy>></strong></span>
</div>
<div class="wb-back">
[[Back to Shed|Backyard Shed]]
</div>
</div>
<</nobr>><<nobr>>
<<set _woodCount to 0>>
<<set _scrapCount to 0>>
<<for _item range $inventory>>
<<if _item.name is "Wood">>
<<set _woodCount += _item.quantity>>
<</if>>
<<if _item.name is "Scrap Metal">>
<<set _scrapCount += _item.quantity>>
<</if>>
<</for>>
<<if $workbenchBuilt>>
The workbench has already been built.
<br><br>
[[Back to Shed|Backyard Shed]]
<<elseif $energy < 20>>
You are too tired to build the workbench right now.
<br><br>
[[Back to Shed|Backyard Shed]]
<<elseif _woodCount < 4 or _scrapCount < 3>>
You do not have enough materials to build the workbench.
<br><br>
Requirements:<br>
Wood: <<print _woodCount>> / 4<br>
Scrap Metal: <<print _scrapCount>> / 3
<br><br>
[[Back to Shed|Backyard Shed]]
<<else>>
<<set _needWood to 4>>
<<set _needScrap to 3>>
<<for _i = 0; _i < $inventory.length; _i++>>
<<if _needWood > 0 and $inventory[_i].name is "Wood">>
<<set _takeWood to Math.min($inventory[_i].quantity, _needWood)>>
<<set $inventory[_i].quantity -= _takeWood>>
<<set _needWood -= _takeWood>>
<</if>>
<<if _needScrap > 0 and $inventory[_i].name is "Scrap Metal">>
<<set _takeScrap to Math.min($inventory[_i].quantity, _needScrap)>>
<<set $inventory[_i].quantity -= _takeScrap>>
<<set _needScrap -= _takeScrap>>
<</if>>
<</for>>
<<for _i = $inventory.length - 1; _i >= 0; _i-->>
<<if $inventory[_i].quantity <= 0>>
<<set $inventory.deleteAt(_i)>>
<</if>>
<</for>>
<<set $energy -= 20>>
<<advanceMinutes 120>>
<<set $workbenchBuilt to true>>
You spend the next couple of hours clearing space inside the shed.
<br><br>
Old boxes are pushed aside. Broken boards are cut down and nailed into place. Scrap metal is bent, hammered, and fixed along the frame to make it stronger.
<br><br>
By the time you are finished, a rough but usable workbench stands against the wall.
<br><br>
It is not pretty.
<br><br>
But it gives you somewhere to repair, build, and prepare things properly.
<br><br>
<span class="stat-change-negative">Wood -4</span><br>
<span class="stat-change-negative">Scrap Metal -3</span><br>
<span class="stat-change-negative">Energy -20</span><br>
<span class="stat-change">Time +2 hours</span><br>
<span class="stat-change">Workbench Built</span>
<br><br>
[[Continue|Backyard Shed]]
<</if>>
<</nobr>><<nobr>>
<<set _woodCount to 0>>
<<set _scrapCount to 0>>
<<set _clothCount to 0>>
<<for _item range $inventory>>
<<if _item.name is "Wood">>
<<set _woodCount += _item.quantity>>
<</if>>
<<if _item.name is "Scrap Metal">>
<<set _scrapCount += _item.quantity>>
<</if>>
<<if _item.name is "Cloth">>
<<set _clothCount += _item.quantity>>
<</if>>
<</for>>
<<if $workbenchAction is "bandage">>
<<if $energy < 5>>
You are too tired to craft right now.
<<elseif _clothCount < 2>>
You do not have enough cloth to craft a bandage.
<br><br>
Cloth: <<print _clothCount>> / 2
<<else>>
<<set _needCloth to 2>>
<<for _i = 0; _i < $inventory.length; _i++>>
<<if _needCloth > 0 and $inventory[_i].name is "Cloth">>
<<set _takeCloth to Math.min($inventory[_i].quantity, _needCloth)>>
<<set $inventory[_i].quantity -= _takeCloth>>
<<set _needCloth -= _takeCloth>>
<</if>>
<</for>>
<<for _i = $inventory.length - 1; _i >= 0; _i-->>
<<if $inventory[_i].quantity <= 0>>
<<set $inventory.deleteAt(_i)>>
<</if>>
<</for>>
<<set $energy -= 5>>
<<advanceMinutes 30>>
<<addToInventory "Bandage" "media/icons/bandage.jpg" 1>>
You tear and fold the cleanest pieces of cloth, wrapping them tightly into a usable bandage.
<br><br>
It is not medical-grade, but it should help stop bleeding in an emergency.
<br><br>
You crafted:
<div class="loot-grid">
<div class="loot-item">
<img src="media/icons/bandage.jpg">
<div><strong>+1 Bandage</strong></div>
</div>
</div>
<br>
<span class="stat-change-negative">Cloth -2</span><br>
<span class="stat-change-negative">Energy -5</span><br>
<span class="stat-change">Time +30 minutes</span>
<br><br>
<<link "Craft another Bandage">>
<<set $workbenchAction to "bandage">>
<<goto "Workbench Action">>
<</link>>
<</if>>
<<elseif $workbenchAction is "frontGate">>
<<if $frontGateReinforced>>
The front gate has already been reinforced.
<<elseif $energy < 25>>
You are too tired to reinforce the gate right now.
<<elseif _woodCount < 6 or _scrapCount < 4>>
You do not have enough materials to reinforce the gate.
<br><br>
Wood: <<print _woodCount>> / 6<br>
Scrap Metal: <<print _scrapCount>> / 4
<<else>>
<<set _needWood to 6>>
<<set _needScrap to 4>>
<<for _i = 0; _i < $inventory.length; _i++>>
<<if _needWood > 0 and $inventory[_i].name is "Wood">>
<<set _takeWood to Math.min($inventory[_i].quantity, _needWood)>>
<<set $inventory[_i].quantity -= _takeWood>>
<<set _needWood -= _takeWood>>
<</if>>
<<if _needScrap > 0 and $inventory[_i].name is "Scrap Metal">>
<<set _takeScrap to Math.min($inventory[_i].quantity, _needScrap)>>
<<set $inventory[_i].quantity -= _takeScrap>>
<<set _needScrap -= _takeScrap>>
<</if>>
<</for>>
<<for _i = $inventory.length - 1; _i >= 0; _i-->>
<<if $inventory[_i].quantity <= 0>>
<<set $inventory.deleteAt(_i)>>
<</if>>
<</for>>
<<set $energy -= 25>>
<<advanceMinutes 120>>
<<set $frontGateReinforced to true>>
<<set $compoundSecurity = Math.min(100, $compoundSecurity + 20)>>
You spend the next couple of hours working on the front gate.
<br><br>
You brace the weakest sections with salvaged wood, bolt scrap metal across the thinner panels, and reinforce the hinges as best you can.
<br><br>
By the time you step back, the gate still looks rough, but it no longer feels like the first thing that will fail.
<br><br>
<span class="stat-change-negative">Wood -6</span><br>
<span class="stat-change-negative">Scrap Metal -4</span><br>
<span class="stat-change-negative">Energy -25</span><br>
<span class="stat-change">Time +2 hours</span><br>
<span class="stat-change">Front Gate Reinforced</span><br>
<span class="stat-change">Compound Security +20</span>
<</if>>
<<elseif $workbenchAction is "garageDoor">>
<<if $garageDoorSecured>>
The garage door has already been secured.
<<elseif $energy < 20>>
You are too tired to secure the garage door right now.
<<elseif _woodCount < 3 or _scrapCount < 3>>
You do not have enough materials to secure the garage door.
<br><br>
Wood: <<print _woodCount>> / 3<br>
Scrap Metal: <<print _scrapCount>> / 3
<<else>>
<<set _needWood to 3>>
<<set _needScrap to 3>>
<<for _i = 0; _i < $inventory.length; _i++>>
<<if _needWood > 0 and $inventory[_i].name is "Wood">>
<<set _takeWood to Math.min($inventory[_i].quantity, _needWood)>>
<<set $inventory[_i].quantity -= _takeWood>>
<<set _needWood -= _takeWood>>
<</if>>
<<if _needScrap > 0 and $inventory[_i].name is "Scrap Metal">>
<<set _takeScrap to Math.min($inventory[_i].quantity, _needScrap)>>
<<set $inventory[_i].quantity -= _takeScrap>>
<<set _needScrap -= _takeScrap>>
<</if>>
<</for>>
<<for _i = $inventory.length - 1; _i >= 0; _i-->>
<<if $inventory[_i].quantity <= 0>>
<<set $inventory.deleteAt(_i)>>
<</if>>
<</for>>
<<set $energy -= 20>>
<<advanceMinutes 90>>
<<set $garageDoorSecured to true>>
<<set $compoundSecurity = Math.min(100, $compoundSecurity + 10)>>
You work on the garage door, strengthening the frame and blocking the easiest gaps.
<br><br>
The old door still rattles when you push it, but now it would take real effort to force open.
<br><br>
That matters.
<br><br>
The generator and fuel are safer with the garage properly secured.
<br><br>
<span class="stat-change-negative">Wood -3</span><br>
<span class="stat-change-negative">Scrap Metal -3</span><br>
<span class="stat-change-negative">Energy -20</span><br>
<span class="stat-change">Time +90 minutes</span><br>
<span class="stat-change">Garage Door Secured</span><br>
<span class="stat-change">Compound Security +10</span>
<</if>>
<<else>>
Something went wrong. No workbench action was selected.
<</if>>
<br><br>
[[Back to Workbench|Workbench]]
<br>
[[Back to Shed|Backyard Shed]]
<</nobr>><<nobr>>
You slip past the raider and follow Tara through the fire escape door.
<br><br>
<<if $taraRunWithMia>>
Mia follows close behind. You wait until she clears the doorway, then hurry down the metal stairs together.
<<else>>
You hurry down the metal stairs behind Tara, keeping one hand on the rusted railing.
<</if>>
<br><br>
Above you, the raider shouts for the others.
<br><br>
You reach the alley and keep moving, putting the apartment block behind you before they can follow.
<br><br>
You escaped, but the raider is still alive.
<br><br>
[[Keep moving|Tara Return To Compound]]
<</nobr>><<widget "showInventoryPanel">><<silently>>
<<set _inventoryPanelPassage to _args[0] || "Inventory">>
<<run Dialog.setup("Inventory", "inventory-dialog")>>
<<run Dialog.wiki(Story.get(_inventoryPanelPassage).text)>>
<<run Dialog.open()>>
<</silently>><</widget>>
<<widget "showJournalPanel">><<silently>>
<<set _journalPanelPassage to _args[0] || "Survival Journal">>
<<run Dialog.setup("Survival Journal", "inventory-dialog journal-dialog")>>
<<run Dialog.wiki(Story.get(_journalPanelPassage).text)>>
<<run Dialog.open()>>
<</silently>><</widget>>
<<widget "checkSafeSidebarLocation">><<silently>>
<<set _safeSidebarLocation to [
"Entryway",
"Living Room",
"Kitchen",
"Master Bedroom",
"Backyard",
"Backyard Shed",
"Bathroom",
"Storage Room",
"Garage",
"Second Floor",
"Guest Bedroom1",
"Guest Bedroom2",
"Guest Bedroom3",
"Second Floor Bathroom",
"Small Office",
"Roof",
"Outside",
"Nearby Neighborhood",
"Lake",
"Forest",
"Compound Management",
"Workbench"
].includes(passage())>>
<</silently>><</widget>><<nobr>>
<<if $day <= 1 and not $generatorInspected>>
You are too restless to sleep. You should inspect the generator first.
<br><br>
[[Back to the Master Bedroom|Master Bedroom]]
<<elseif $hour >= 2 and $hour < 8>>
<<goto "Sleep">>
<<elseif $energy >= 100>>
You are already fully rested.
<br><br>
[[Back to the Master Bedroom|Master Bedroom]]
<<else>>
<<silently>>
<<advanceMinutes 60>>
<</silently>>
<<if $hour >= 2 and $hour < 8>>
<<goto "Sleep">>
<<else>>
<<silently>>
<<set _napEnergyRestored to Math.min(20, 100 - $energy)>>
<<set $energy += _napEnergyRestored>>
<</silently>>
You lie down on the bed and close your eyes.
<br><br>
An hour later, you wake feeling a little more rested.
<br><br>
<span class="stat-change">
Energy +<<print _napEnergyRestored>>
</span>
<br>
<span class="stat-change">Time +1 hour</span>
<br><br>
[[Back to the Master Bedroom|Master Bedroom]]
<</if>>
<</if>>
<</nobr>><<nobr>>
<<advanceMinutes 30>>
<div class="intimate-scene-wrapper">
<div class="intimate-text">
You step into the bathroom. Mia is already under the water, steam clinging to the tiles. She looks over her shoulder when she hears you.
</div>
<br><br>
<img class="scene-img" src="media/characters/Mia/Bathroom/showerjoin.jpg">
<br><br>
<div class="dialogue-box npc">
<img class="dialogue-portrait" src="media/characters/mia/avatar.jpg">
<div class="dialogue-content">
<div class="dialogue-name">Mia</div>
<div class="dialogue-text">
"Water’s still hot."
</div>
</div>
</div>
<br><br>
<div class="intimate-text">
You close the door behind you and step in. She turns to face you, water running over both of you. Neither of you speaks. She glances down, then sinks to her knees in front of you.
</div>
<br><br>
<img class="scene-img" src="media/characters/Mia/Bathroom/showerblowjob.webp">
<br><br>
<div class="intimate-text">
She stays on her knees a while longer, water still running over her. After a moment she rises, turns, and braces one hand against the tile. She glances back at you through the steam.
</div>
<br><br>
<img class="scene-img" src="media/characters/Mia/Bathroom/showersex.webp">
<br><br>
<div class="intimate-text">
You pull out at the last second. She stays where she is, one hand still braced on the tile, as you finish across her lower back and ass. The water runs over both of you for a few seconds longer before she reaches back and turns the shower off.
</div>
<br><br>
<div class="intimate-end">
[[Return to the bathroom|Second Floor Bathroom]]
</div>
</div>
<</nobr>><<nobr>>
<h2>Basement</h2>
<img class="scene-img"
src="media/locations/base/basement.jpg"
alt="An empty basement beneath the house">
<br><br>
The stairs lead down into a cool, empty basement. Bare concrete walls surround the room, and exposed pipes run beneath the ceiling. A narrow window near ground level lets in a little daylight.
<br><br>
Dust covers the floor. Apart from a few marks where shelves once stood, there is little sign of what the previous owners kept here.
<br><br>
There is plenty of space. For now, you leave it as it is.
<br><br>
[[Back upstairs|Entryway]]
<</nobr>><<nobr>>
<h2>Cheats</h2>
<<if not $cheatsUnlocked>>
<p>Enter the password to unlock cheats.</p>
<<textbox "_cheatPassword" "">>
<br><br>
<<link "Unlock">>
<<if _cheatPassword is "password">>
<<set $cheatsUnlocked to true>>
<<set _cheatPassword to "">>
<<showJournalPanel "Journal Cheats">>
<<else>>
<<replace "#cheat-password-message">>
<span class="journal-warning">Incorrect password.</span>
<</replace>>
<</if>>
<</link>>
<div id="cheat-password-message"></div>
<<else>>
<div class="journal-box">
<h3>Player Condition</h3>
Health: <<print $health>> / 100<br>
Energy: <<print $energy>> / 100<br>
Fullness: <<print $hunger>> / 100<br>
Hydration: <<print $thirst>> / 100<br>
Infection: <<print $infection>>%
<br><br>
<<link "Restore player condition">>
<<set $health to 100>>
<<set $energy to 100>>
<<set $hunger to 100>>
<<set $thirst to 100>>
<<set $infection to 0>>
<<set $bleeding to false>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
</div>
<div class="journal-box">
<h3>Food and Water</h3>
<<link "Add 10 cans to backpack">>
<<addToInventory "Canned Food" "media/icons/canfood.jpg" 10>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
<br><br>
<<link "Add 10 water bottles">>
<<addToInventory "Water Bottle" "media/icons/water_bottle.jpg" 10>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
</div>
<div class="journal-box">
<h3>Medical Supplies</h3>
<<link "Add 5 medkits">>
<<addToInventory "Medkit" "media/icons/medicalkit.jpg" 5>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
<br><br>
<<link "Add 5 bandages">>
<<addToInventory "Bandage" "media/icons/bandage.jpg" 5>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
</div>
<div class="journal-box">
<h3>Crafting and Fuel</h3>
Materials: <<print $materials>><br>
Fuel: <<print $fuel>>
<br><br>
<<link "Add 10 Wood, Scrap Metal, and Cloth">>
<<addToInventory "Wood" "media/icons/wood.jpg" 10>>
<<addToInventory "Scrap Metal" "media/icons/scrap_metal.jpg" 10>>
<<addToInventory "Cloth" "media/icons/cloth.jpg" 10>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
<br><br>
<<link "Add 10 Materials">>
<<set $materials += 10>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
<br><br>
<<link "Add 10 Fuel">>
<<set $fuel += 10>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
</div>
<div class="journal-box">
<h3>Ammunition</h3>
<<link "Add 20 rounds of 9mm ammo">>
<<addToInventory "9mm Ammo" "media/icons/9mm_ammo.jpg" 20>>
<<run UI.update()>>
<<showJournalPanel "Journal Cheats">>
<</link>>
</div>
<<link "Lock cheats">>
<<set $cheatsUnlocked to false>>
<<showJournalPanel "Journal Cheats">>
<</link>>
<br><br>
<</if>>
<<link "Back to Journal">>
<<showJournalPanel "Survival Journal">>
<</link>>
<br><br>
<<link "Close">>
<<run Dialog.close()>>
<</link>>
<</nobr>><<nobr>>
<strong>Front Gate</strong><br>
Condition: <strong><<print $gateCondition>> / 100</strong><br>
<<if $frontGateReinforced>>
Reinforced · Loses 2 Condition per night.
<<else>>
Unreinforced · Loses 5 Condition per night.
<</if>>
<br>
<<if $gateCondition <= ($frontGateReinforced ? 2 : 5)>>
<span class="warning-text">
The gate won’t survive another night. Repair it before you sleep.
</span>
<<elseif $gateCondition <= 25>>
<span class="warning-text">
The hinges are coming loose. If the gate reaches 0, the horde will get inside.
</span>
<<else>>
If the gate reaches 0, the compound will be overrun.
<</if>>
<br><br>
Materials available: <strong><<print $materials>></strong><br>
<<if $gateCondition >= 100>>
<span class="locked-option">Gate fully repaired</span>
<<elseif $materials < 1>>
<span class="locked-option">Repair Front Gate</span>
<span class="locked-note">You need 1 Material.</span>
<<else>>
<<link "Repair Front Gate (1 Material)">>
<<if setup.isInsideCompound() and $health > 0 and $materials >= 1 and $gateCondition < 100>>
<<set $materials -= 1>>
<<set $gateCondition to Math.min(100, $gateCondition + 20)>>
<<run UI.update()>>
<</if>>
<<replace "#compound-gate-panel">>
<<include "Compound Gate Status">>
<</replace>>
<</link>>
<span class="locked-note">Restores up to 20 Gate Condition.</span>
<</if>>
<</nobr>>