{
Soft music is playing from the radio, drifting into the back seat where you're laying down. You swivel one velvet ear to catch the dulcet tones, but it's drowned out by the music pulsing from the headphones your girl is wearing.<p>
You tilt your head up to watch the young girl bopping her head while she colors something on the other half of her lap, close to your chiseled snout. You lazily lick at her fingers wrapped around the crayon when it comes to rest on the page. She barely notices as she stops to stare out the window.<p>
The music from the player stops. The parent ahead of you speaks while looking in the rearview mirror.<p>
"You don't have to be so mopey, honey. We're only going to be spending a week at the villa. The weather is supposed to be nice. Don't you want to enjoy your summer vacation?"<p>
Your girl mumbles something in reply...<p>
"But Dad..."(click: "But Dad...")[<p>(set: $parentA to 0)(go-to: "intro2")]<br>
"But Mom..."(click: "But Mom...")[<p>(set: $parentA to 1)(go-to: "intro2")]
}{
"No buts, Emma. I miss your smile, and I'm sure $corgiName does too," (if: $parentA is 0)[he](else:)[she] says.<p>
As a small corgi charged with caring for a small girl, you've learned in the past that it's best to listen to (if: $parentA is 0)[Dad](else:)[Mom].<p>
(if: $parentA is 0)[Dad](else:)[Mom] turns on the blinker and takes a left turn, heading down a wooded lane. One worried glance is all that is spared into the backseat.<p>
"Are you worried about the divorce?"<p>
Your ears perk up as your girl's fingers tightly weave through your neck fur.<p>
"I guess I just miss..." Her voices trails off into a whisper, but you can hear the mournful confession.<p>
|intro1>["Daddy..."<br>](click: "Daddy")[(set: $parentB to 0)(replace: ?intro2)[]<p>Your girl looks hurriedly out the window, blinking away tears. You hear a strained voice from the front seat, and a poorly disguised sniffle. (if: $parentA is 0)[Dad's](else:)[Mom's] knuckles clench on the wheel.<p>
"I miss (if: $parentB is 0)[him](else:)[her] too."<p>
[[Some time later...|intro3]]]
|intro2>["Mama..."](click: "Mama")[(set: $parentB to 1)(replace: ?intro1)[]<p>Your girl looks hurriedly out the window, blinking away tears. You hear a strained voice from the front seat, and a poorly disguised sniffle. (if: $parentA is 0)[Dad's](else:)[Mom's] knuckles clench on the wheel.<p>
"I miss (if: $parentB is 0)[him](else:)[her] too."<p>
[[Some time later...|intro3]]]
}{
"Wake up, $corgiName," Emma says, gently ruffling your fur. You twitch awake, still feeling the roll of the moving car. "(if: $parentA is 0)[Dad](else:)[Mom] says we're almost to the summer house."<p>
You roll on the seat, tangling your leash that's buckled like a seat belt. Emma gently untangles you as you yawn.<p>
Do you...
|c1>[<p>(link-reveal: "Roll back over and tuck your head away, ignoring the sunlight.")[(set: $CHA to (random: 1, 3))(replace: ?c2)[](replace: ?c3)[]<p>"$corgiName..." Emma groans. "I'm bored. Let's play some games until we get to the beach."<p>You wag at the mention of a game.]]
|c2>[<p>(link-reveal: "Perk up a little, pawing at the finished crayon sketchings.")[(set: $CHA to (random: 4, 6))(replace: ?c1)[](replace: ?c3)[]<p>Emma giggles. "I know, but I'm tired of drawing. Let's play a game before we get to the beach."<p>You wag at the mention of a game.]]
|c3>[<p>(link-reveal: "Gracefully fling yourself at Emma, licking her face joyously.")[(set: $CHA to (random: 7, 10))(replace: ?c2)[](replace: ?c1)[]<p>Emma yelps! "$corgiName, settle down!" Her laughter trails off as (if: $parentA is 0)[Dad](else:)[Mom] smiles quietly. "Let's play a game before we get to the beach."<p>You wag at the mention of a game.]]
(click: "wag")[
<p>"Okay, $corgiName, here's how it's gonna work," Emma explains as she puts her drawing pad on the floor and hoists you into her lap. "Every time a tree passes by, you bark to keep count. Can you do that?"<p>
|w1>[<p>(link-reveal: "Bark at every tree, very carefully as they whip past.")[(set: $WIS to (random: 7, 10))(replace: ?w2)[](replace: ?w3)[]<p>"Wow, that was very good, $corgiName," Emma says, pleasant surprise lining her voice. "I didn't think you could do that."<p>"Hey," (if: $parentA is 0)[Dad](else:)[Mom] calls back. "We're almost to the villa."]]
|w2>[<p>(link-reveal: "Bark at every tree, but also the occasional rock or various vermin.")[(set: $WIS to (random: 4, 6))(replace: ?w1)[](replace: ?w3)[]<p>"Well, that was a nice try, $corgiName," Emma says, petting you gently. "I guess I shouldn't expect much from just a dog."<p>"Hey," (if: $parentA is 0)[Dad](else:)[Mom] calls back. "We're almost to the villa."]]
|w3>[<p>(link-reveal: "Bark at absolutely everything you see. Wildly.")[(set: $WIS to (random: 1, 3))(replace: ?w1)[](replace: ?w2)[]<p>"Okay, quiet down now, $corgiName," Emma says, a bit of panic in her voice. "I guess that was a silly idea."<p>"Hey, can you keep $corgiName calm back there?" (if: $parentA is 0)[Dad](else:)[Mom] calls back. "We're almost to the villa."]]
]
(click: "villa")[
<p>You settle down against Emma as the scenery changes. Trees thin until the ocean comes into view, along with the golden stretches of shoreline. You can't wait to dip your paws into the cool water. As you round the bend, you can see your destination rising into view. Just a little more time to pass.
|j1>[<p>(link-reveal: "Crawl into Emma's lap, and peer down at her drawing.")[(set: $JOY to (random: 1, 3))(replace: ?j2)[](replace: ?j3)[]<p>"Oh, that's nothing," Emma murmurs, tucking the drawing away before you can discern what it is. It quickly leaves your mind as you [[arrive|main]].]]
|j2>[<p>(link-reveal: "Look out the window at your awaiting adventure, glancing at Emma and wagging.")[(set: $JOY to (random: 7, 10))(replace: ?j1)[](replace: ?j3)[]<p>"I know, it's beautiful," Emma murmurs, absentmindedly petting you. You relax into her loving touch as you [[arrive|main]].]]
|j3>[<p>(link-reveal: "Put one paw on Emma's lap, and flash her your best canine smile.")[(set: $JOY to (random: 4, 6))(replace: ?j2)[](replace: ?j1)[]<p>"Such a silly dog," Emma murmurs, a gentle smile tugging at her lips. You can sense her hesitation, but it gets lost in the excitement as you [[arrive|main]].]]
]
}{
<center>You are a Corgi on a sandy beach.<p></center>
(if: (history:) contains "main")[
You've been on vacation for $days days, and you have $seashells seashells.<p>
As you and Emma loiter outside the villa, waiting to see which adventures present themselves, you hear (if: $parentA is 0)[Dad](else:)[Mom] whistling while working outside. Garden tools, a wheelbarrow, and a hose are strewn across the yard, but hey, everyone needs a hobby.<p>
]
(else:)[
As the car pulls into the driveway, the family gets to work unloading and settling into the villa. Emma heads to her room, and you can barely keep up with the rushing feet as everyone goes back and forth. As hard as it is to stay underneath them, you manage to harass and trip them up through most of the process. Once everything is put away, or ready to be used, it's finally time for you and Emma to explore and get started on your vacation.<p>
But oh, where to start?<p>
]
(if: $doubloonArea is 1)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
[[Beach|beach]]<br>
(if: (history:) contains "shanty")[
[[Shanty|shanty]]
]
(else:)[
[[Explore|shanty]]
]
<br>[[Sleep|hammock]]
}{
On a long stretch of glorious sand that stretches into the distance, many people are milling about. Children are joyously playing, and seagulls circle in the air, screaming for scraps.
(if: $trinketB is false)[
<p>As you stroll down the shoreline with Emma, you see a faint glow in the sand, and feel a gentle hum of a vibration. Emma sees it too, and you both hurry towards it. What kind of |trinketB>[stone] is this?<p>
]
(click: ?trinketB)[
(set: $trinketB to true)(set: $trinkets to it + 1)//Glowing Stone Trinket located.//
(if: $trinkets is 3)[(set: $achievementA to true)(set: $chievos to it + 1)<br>^^//Achievement Unlocked//^^]
]
(if: $doubloonArea is 2)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
<p>
[[Sandcastles|sc init]]<br>
[[Volleyball|vball init]]<br>
[[Boardwalk Fair|boardwalk]]<br>
<!-- Sunbathing<br> -->
[[Villa|main]]
}{
(if: (history:) contains "shanty")[
<h6>Current Shanty Level: $shanty</h6><p>
Here you see a (if: $shanty is 0)[derelict](else-if: $shanty is 1)[weathered](else-if: $shanty is 2)[humble](else-if: $shanty is 3)[spacious](else:)[luxurious] seaside shanty built amongst the underbrush. Off to the side, there is a rocky cove where waves concentrate and shallow pools teem with life.<p>
Just outside, you see a [[gopher]].<p>
Inside you and Emma can relax in your own hideaway, sheltered from the stressors of the outside world. There's a table and two chairs, a reading nook with a modest bookshelf, a poster with a map on it, and a [[cabinet]] with glass doors.
]
(else:)[
You and Emma trail off from the villa, looking to explore for the first time in a long time. Although the family has been coming here every summer ever since Emma was very little, you know she'd never really gotten the chance to wander far. Now that she was getting older, and (if: $parentA is 0)[Dad](else:)[Mom] is more distracted, the perfect opportunity has shown itself.<p>
You dash through the underbrush while Emma follows more carefully, and you slide to a stop when you hear her gasp. You bound over to her where she stood looking up at a childhood treasure. She picks you up and brushes the dirt off.<p>
"Do you see that, $corgiName?" she says in awe. A decrepit and long-abandoned treehouse stands before you. At least, it could have been a treehouse, but some of it has fallen on the ground, and it's built haphazardly around the base of the trunk.<p>
A low growl forms in your throat as you worry about the safety of such a structure, but Emma steps forward anyways. "Shh, $corgiName, it's okay. I'll be careful."<p>
She tugs on the rope ladder to test it, and finds it sound enough to haul herself up. In the main room at the top, you both find it's well put together. Sparsely furnished, but clearly once loved.<p>
"I bet this used to be a shanty," Emma murmurs, looking around. "It'll be our secret, okay, $corgiName?" You wag slowly, not sure about it unless you can work together to fix it up, but seeing Emma happy was worth it enough to go along with it.
]
(if: $doubloonArea is 3)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
<p>
[[Rock Skipping|skip start]]<br>
[[Scavenger Hunt|hunt init]]<br>
<!-- Surfing<br> -->
[[Cove|cove]]<br>
[[Villa|main]]
}Double-click this passage to edit it.{
(set: $scene to (random: 1, 10))
|stats>[You have $energy energy and $points points.]
|itemA)[<br>
(if: (random: 1, 3) is 1)[
Treasure!
(set: $energy to it - 1)
(set: $points to it + 1)
(replace: ?stats)[You have $energy energy and $points points.]
(if: $energy <= 0)[(goto: "scavenger end")]
]
(else:)[Nothing here...
(set: $energy to it - 1)
(replace: ?stats)[You have $energy energy and $points points.]
(if: $energy <= 0)[(goto: "scavenger end")]
]
]
|itemB)[<br>
(if: (random: 1, 3) is 1)[
More Treasure!
(set: $energy to it - 1)
(set: $points to it + 1)
(replace: ?stats)[You have $energy energy and $points points.]
(if: $energy <= 0)[(goto: "scavenger end")]
]
(else:)[Nothing here...
(set: $energy to it - 1)
(replace: ?stats)[You have $energy energy and $points points.]
(if: $energy <= 0)[(goto: "scavenger end")]
]
]
|itemC)[<br>
(if: (random: 1, 3) is 1)[
Treasure Again!
(set: $energy to it - 1)
(set: $points to it + 1)
(replace: ?stats)[You have $energy energy and $points points.]
(if: $energy <= 0)[(goto: "scavenger end")]
]
(else:)[Nothing here...
(set: $energy to it - 1)
(replace: ?stats)[You have $energy energy and $points points.]
(if: $energy <= 0)[(goto: "scavenger end")]
]
]
<p>
(if: $scene is 1)[Although there's not much here, the tide is lapping gently against a[ ]rocky outcrop. Beyond that, the beach melds easily into a scrubby bunch of trees. However, is that a cave just on the other side of the rocks?
(mouseover: "rocky outcrop")[(show: ?itemA)]
(mouseover: "trees")[(show: ?itemB)]
(mouseover: "cave")[(show: ?itemC)]
]
(else-if: $scene is 2)[You twist and turn amongst the[ ]ferns, but you keep track of which direction you came from. To your left, there's a tree with a hole in the trunk, and to your right, there's a fallen nest among the earthen debris.
(mouseover: "ferns")[(show: ?itemA)]
(mouseover: "trunk")[(show: ?itemB)]
(mouseover: "nest")[(show: ?itemC)]
]
(else-if: $scene is 3)[You go behind the villa where the storage[ ]shed is, and you start searching through your parents' old junk. There's a broken toaster in the rubble, but also one of your old toy jeeps that you used to drive around.
(mouseover: "shed")[(show: ?itemA)]
(mouseover: "rubble")[(show: ?itemB)]
(mouseover: "jeeps")[(show: ?itemC)]
]
(else-if: $scene is 4)[You head along the beach where the water flows colder. You stay near the tawny[ ]weeds and discarded towels of those long-gone from their vacations. It's too bad in this part of the beach how neglected it is, and how the litter piles up.
(mouseover: "weeds")[(show: ?itemA)]
(mouseover: "towels")[(show: ?itemB)]
(mouseover: "litter")[(show: ?itemC)]
]
(else-if: $scene is 5)[You cross the boardwalk and start searching between the[ ]food trucks, then at the game stations. You were sure you'd find more, but at least on the way back you stop at the little travel library and snoop around.
(mouseover: "food trucks")[(show: ?itemA)]
(mouseover: "game stations")[(show: ?itemB)]
(mouseover: "library")[(show: ?itemC)]
]
(else-if: $scene is 6)[You head more towards the woods behind the villa and beyond the beachfront. There's some[ ]pinecones strewn about, and a rotted log poised against another fallen tree. There's a small den of some sort, but whatever inhabitant had built it was long gone from the smell of it.
(mouseover: "pinecones")[(show: ?itemA)]
(mouseover: "log")[(show: ?itemB)]
(mouseover: "den")[(show: ?itemC)]
]
(else-if: $scene is 7)[In the more populated area of the beach, with the warm sand and gentle breeze, there's a[ ]surfboard propped up near a drink hut, and a few public umbrellas set up for the fairer skinned patrons.
(mouseover: "surfboard")[(show: ?itemA)]
(mouseover: "hut")[(show: ?itemB)]
(mouseover: "umbrellas")[(show: ?itemC)]
]
(else-if: $scene is 8)[You dash around the yard, upsetting a half-pitched[ ]tent, knocking over a wheelbarrow, and getting tangled in a garden hose.
(mouseover: "tent")[(show: ?itemA)]
(mouseover: "wheelbarrow")[(show: ?itemB)]
(mouseover: "hose")[(show: ?itemC)]
]
(else-if: $scene is 9)[So many unattended items at the beach. Emma trails after you, shouting at you to stop, but not before you get your nose into various objects. There's a diaper[ ]bag, but you sneeze at the powder. A book is laid open, forever ruining the spine of the paperback. And a half-eaten ice cream cone is almost buried in the sand – a tragic loss.
(mouseover: "bag")[(show: ?itemA)]
(mouseover: "book")[(show: ?itemB)]
(mouseover: "cone")[(show: ?itemC)]
]
(else-if: $scene is 10)[Back at the shanty, you sniff along the base of the trunk, searching the smaller storage[ ]rooms. You poke your nose underneath the staircase that might have once led to some sort of room. Along the far side you find the remains of what might have been a beautiful garden at one point.
(mouseover: "rooms")[(show: ?itemA)]
(mouseover: "staircase")[(show: ?itemB)]
(mouseover: "garden")[(show: ?itemC)]
]
<p>(link-goto: "Onward!", "scavenger")
}{
[There are three stones here viable for throwing.<p>
On the left there is a
(if: $stoneA's flat is 0)[ perfectly flat, ]
(else-if: $stoneA's flat >= 1 and <= 3)[ relatively flat, ]
(else-if: $stoneA's flat >= 4 and <= 7)[ rather flat, ]
(else-if: $stoneA's flat >= 8 and <= 11)[ rather round, ]
(else:)[ rounded, ]
(if: $stoneA's size is 1)[quite small, ]
(else-if: $stoneA's size is 2)[rather small, ]
(else-if: $stoneA's size is 3)[perfect sized, ]
(else-if: $stoneA's size is 4)[rather big, ]
(else:)[quite big, ]
(if: $stoneA's weight is 0)[quite light, ]
(else-if: $stoneA's weight is 1)[rather light, ]
(else-if: $stoneA's weight is 2)[perfectly weighted, ]
(else-if: $stoneA's weight is 3)[slightly heavy, ]
(else-if: $stoneA's weight is 4)[rather heavy, ]
(else:)[quite heavy, ]
(if: $stoneA's shape is 0)[circular ]
(else-if: $stoneA's shape is 1 or 2)[oval ]
(else-if: $stoneA's shape is 3)[rectangular ]
(else-if: $stoneA's shape is 4)[square ]
(else:)[triangular ]
stone.<p>
In the middle there is a
(if: $stoneB's flat is 0)[ perfectly flat, ]
(else-if: $stoneB's flat >= 1 and <= 3)[ relatively flat, ]
(else-if: $stoneB's flat >= 4 and <= 7)[ rather flat, ]
(else-if: $stoneB's flat >= 8 and <= 11)[ rather round, ]
(else:)[ rounded, ]
(if: $stoneB's size is 1)[quite small, ]
(else-if: $stoneB's size is 2)[rather small, ]
(else-if: $stoneB's size is 3)[perfect sized, ]
(else-if: $stoneB's size is 4)[rather big, ]
(else:)[quite big, ]
(if: $stoneB's weight is 0)[quite light, ]
(else-if: $stoneB's weight is 1)[rather light, ]
(else-if: $stoneB's weight is 2)[perfectly weighted, ]
(else-if: $stoneB's weight is 3)[slightly heavy, ]
(else-if: $stoneB's weight is 4)[rather heavy, ]
(else:)[quite heavy, ]
(if: $stoneB's shape is 0)[circular ]
(else-if: $stoneB's shape is 1 or 2)[oval ]
(else-if: $stoneB's shape is 3)[rectangular ]
(else-if: $stoneB's shape is 4)[square ]
(else:)[triangular ]
stone.<p>
On the right there is a
(if: $stoneC's flat is 0)[ perfectly flat, ]
(else-if: $stoneC's flat >= 1 and <= 3)[ relatively flat, ]
(else-if: $stoneC's flat >= 4 and <= 7)[ rather flat, ]
(else-if: $stoneC's flat >= 8 and <= 11)[ rather round, ]
(else:)[ rounded, ]
(if: $stoneC's size is 1)[quite small, ]
(else-if: $stoneC's size is 2)[rather small, ]
(else-if: $stoneC's size is 3)[perfect sized, ]
(else-if: $stoneC's size is 4)[rather big, ]
(else:)[quite big, ]
(if: $stoneC's weight is 0)[quite light, ]
(else-if: $stoneC's weight is 1)[rather light, ]
(else-if: $stoneC's weight is 2)[perfectly weighted, ]
(else-if: $stoneC's weight is 3)[slightly heavy, ]
(else-if: $stoneC's weight is 4)[rather heavy, ]
(else:)[quite heavy, ]
(if: $stoneC's shape is 0)[circular ]
(else-if: $stoneC's shape is 1 or 2)[oval ]
(else-if: $stoneC's shape is 3)[rectangular ]
(else-if: $stoneC's shape is 4)[square ]
(else:)[triangular ]
stone.<p>
Do you choose the [left]<A|, [middle]<B|, or [right]<C|?
<p>]<stones|
(click: ?A)[(set: $stone to $stoneA)(replace: ?stones)[](show: ?angle)You chose your stone!]
(click: ?B)[(set: $stone to $stoneB)(replace: ?stones)[](show: ?angle)You chose your stone!]
(click: ?C)[(set: $stone to $stoneC)(replace: ?stones)[](show: ?angle)You chose your stone!]
[
<p>
|display>[Shuffling on the shoreline...]
<p>
(link: "Set Angle")[
(live: 0.001s)[
(if: $angle is not false)[
(stop:)
(set: $counter to 0)
(set: $dir to "up")
(replace: ?display)[
You stand $angle degrees to the water.
]
]
(else:)[
(if: $counter >= 0 and $dir is "up")[
(set: $counter to it + 1)
(if: $counter >= 180)[
(set: $dir to "down")
]
]
(else-if: $counter >= 0 and $dir is "down")[
(set: $counter to it - 1)
(if: $counter <= 0)[
(set: $dir to "up")
]
]
(replace: ?display)[
You are facing $counter degrees to the water.
]
]
]
(link: "Stop")[
(set: $angle to $counter)
(show: ?force)
]
]
](angle|
[
<p>
|display2>[You scoop up the stone in your muzzle...]
<p>
(link: "Set Force")[
(live: 0.001s)[
(if: $force is not false)[
(stop:)
(set: $counter to 0)
(set: $dir to "up")
(replace: ?display2)[
You raised your muzzle $force degrees from the water.
]
]
(else:)[
(if: $counter >= 0 and $dir is "up")[
(set: $counter to it + 1)
(if: $counter >= 180)[
(set: $dir to "down")
]
]
(else-if: $counter >= 0 and $dir is "down")[
(set: $counter to it - 1)
(if: $counter <= 0)[
(set: $dir to "up")
]
]
(replace: ?display2)[
You raise your muzzle $counter degrees from the water.
]
]
]
(link: "Stop")[
(set: $force to $counter)
(show: ?speed)
]
]
](force|
[
<p>
|display3>[Preparing max velocity...]
<p>
(link: "Set Speed")[
(live: 0.001s)[
(if: $speed is not false)[
(stop:)
(set: $counter to 0)
(set: $dir to "up")
(replace: ?display3)[
You swung your maw $speed degrees backwards.
]
]
(else:)[
(if: $counter >= 0 and $dir is "up")[
(set: $counter to it + 1)
(if: $counter >= 15)[
(set: $dir to "down")
]
]
(else-if: $counter >= 0 and $dir is "down")[
(set: $counter to it - 1)
(if: $counter <= 0)[
(set: $dir to "up")
]
]
(replace: ?display3)[
You swing back $counter degrees with your maw.
]
]
]
(link: "Stop")[
(set: $speed to $counter)
(show: ?spin)
]
]
](speed|
[
<p>
|display4>[Preparing spin...]
<p>
(link: "Set Spin")[
(live: 0.001s)[
(if: $spin is not false)[
(stop:)
(set: $counter to 0)
(set: $dir to "up")
(replace: ?display4)[
You flick your nose $spin degrees.
]
]
(else:)[
(if: $counter >= 0 and $dir is "up")[
(set: $counter to it + 1)
(if: $counter >= 15)[
(set: $dir to "down")
]
]
(else-if: $counter >= 0 and $dir is "down")[
(set: $counter to it - 1)
(if: $counter <= 0)[
(set: $dir to "up")
]
]
(replace: ?display4)[
You tilt your nose $counter degrees.
]
]
]
(link: "Stop")[
(set: $spin to $counter)
(show: ?throw)
]
]
](spin|
|throw)[
<p>
Finally, throw your stone!
(click: "throw")[(goto: "skip end")]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Turret Bucket")[
(replace: ?display2)[
You're now using the Turret Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a turret at each corner, a gate in the center of the south wall, and a big ol' castle right in the middle and protected by walls on all sides.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 2)[
(set: $sandcastle to it + 1)
]
(if: $w is 0)[
(set: $sandcastle to it + 1)
]
(if: $sw is 2)[
(set: $sandcastle to it + 1)
]
(if: $n is 0)[
(set: $sandcastle to it + 1)
]
(if: $c is 3)[
(set: $sandcastle to it + 1)
]
(if: $s is 1)[
(set: $sandcastle to it + 1)
]
(if: $ne is 2)[
(set: $sandcastle to it + 1)
]
(if: $e is 0)[
(set: $sandcastle to it + 1)
]
(if: $se is 2)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scA"))
<p>
[[Leave|beach]]
]
}{
(set: $vballMode to "easy")
|points>[Your Points: $points | Their Points: $pointsOP]
<p>
|display1>[Getting ready to serve...]
<p>
|display2>[Your opponent stands at alert...]
(live: 4s)[
(if: $points >= 3 or $pointsOP >= 3)[
(set: $ball to 0)
(set: $rally to 0)
(replace: ?display1)[
The game is over!<p>
(link-goto: "Game Over", "vball end")
]
(replace: ?display2)[]
]
(if: $ball is false and $rally is true)[
(link: "Serve!")[
(set: $ball to true)
(replace: ?display1)[The ball is served!]
(replace: ?display2)[You stand at alert...]
]
]
(if: $ball is false and $rally is false)[
(replace: ?display1)[
Opponent is lining up to serve...
(if: (random: 1, 4) <= 3)[
<p>Ball is served!
(set: $ball to true)
]
(else:)[
<p>Bad serve!
(set: $rally to true)
]
]
]
(if: $ball is true and $rally is true)[
(if: $position is 0)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent bumps!
(set: $position to 1)
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 1)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent sets!
(set: $position to 2)
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 2)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent spikes!
<p>
(link: "Block!")[
(if: (random: 0, 1) is 0)[
(replace: ?display1)[
You managed to block the shot!
(set: $position to 0)
(set: $rally to false)
]
]
(else:)[
(replace: ?display1)[
You miss the block...
(set: $ball to false)
(set: $rally to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
(if: $ball is true and $rally is false)[
(set: $vball to (shuffled: "Bump", "Set", "Spike"))
(if: $position is 0)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You bumped the ball!
(set: $position to 1)
]
]
(click: "Set")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Spike")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 1)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Set")[
(replace: ?display2)[
You set the ball!
(set: $position to 2)
]
]
(click: "Spike")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 2)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Set")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Spike")[
(replace: ?display2)[
You spiked the ball!!!
(set: $ball to false)
(set: $rally to true)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
]
}{
Emma trudges to the beach and lays out her towel, and you follow plodding behind. She crosses her arms and grasps her elbows, looking out over the ocean and its hazy mist on the darkening horizon.<p>
"It's not even the worst thing I can think of, but I'm still not happy about (if: $parentA is 0)[Dad](else:)[Mom] and (if: $parentB is 0)[Daddy](else:)[Mama] not being together," Emma says. "Where exactly does that leave me?"<p>
She sits looking out at the horizon, bringing her knees up and sinking further into herself. "I just feel like I wasted today. We're supposed to be on vacation, but it doesn't feel like it."<p>
(if: $JOY > 3 and <= 6)[
(link: "Playful Tail Wiggle")[
You bound over to your girl, arching your elongated back and wiggling your rear - the classic offer of playing. She giggles as you hop back and forth, front paws splayed and stumpy tail wagging. Your tongue lolls out just above the sand.<p>
(set: $score to it + 2)
(replace: ?Link)[]
"Okay, $corgiName, I get it," Emma says. "It's up to us to enjoy ourselves. We'll just make sure tomorrow is a better day, right?" She gets up as the sun slips lower on the horizon and folds her towel, and you both walk back to the villa together, with you prancing at her side.
(show: ?end)
]
]
(else-if: $JOY > 6)[
(link: "Yank Towel")[
You belly-sneak to the best of your ability behind your girl and grab a corner of the towel firmly between your jaws. She rests back on her elbows, her cute (either: "seahorse", "flower", "balloon", "star") bathing suit wrinkling as she stretches out, unsuspecting of your coup.<p>
(set: $score to it + 3)
(replace: ?Link)[]
"Yah!" Emma screeches as the towel moves under her. It wasn't as great as a foil as you first thought, but it has the desired result as she bounces up and chases you. You both dash to the shoreline, her laughing and screaming, you barking and yipping. You weave through the gentle low waves, splashing each other until (if: $parentA is 0)[Dad](else:)[Mom] calls you both for dinner.<p>
Emma picks up her towel, the blush of a smile on her face still as you both head back to the villa, and your tail is involuntarily wagging.
(show: ?end)
]
]
(else:)[
(link: "Play Fetch")[
You rove up and down the shoreline while Emma watches you from a distance. Your nose is only a few centimeters above the sand, but you're a certified canine stick detector. You finally find it, and trot back to your girl.<p>
(set: $score to it + 1)
(replace: ?Link)[]
Emma looks down at the brittle, flimsy, water-logged stick you placed ceremoniously before her, and clutches herself tighter. You sit there in silence as the sun begins to lower.<p>
"I'm sorry, $corgiName, but I don't really feel like playing right now. I wish you could understand," she says, standing up and gathering up her towel. "Let's head back before (if: $parentA is 0)[Dad](else:)[Mom] worries."<p>
You follow along slightly behind, looking back at your rejected stick. You glance ahead at Emma's slumped shoulders and slow steps, her gaze either far ahead or deep within, but she doesn't respond much when you touch your cold, sandy nose to her palm.<p>
Her words ring in your drooping ears, wishing dearly that you could understand as well.
(show: ?end)
]
]
<br>
(if: $WIS > 3 and <= 6)[
(link: "Listen to Her")[
You sit next to her, within reach but also giving her space. After a moment, she reaches out and pets you absently.<p>
"I guess I'm just afraid of the change," Emma says. "Other kids at school have divorced parents as well, but it always felt different to me. (if: $parentA is 0)[Dad](else:)[Mom] and (if: $parentB is 0)[Daddy](else:)[Mama] loved each other, and that felt like a universal truth. I'm just not sure what's true anymore."<p>
(set: $score to it + 2)
(replace: ?Link)[]
You lean into her pets, and her grip tightens in a needy way that warms your fur. You lick at a part of her arm that you can reach, and she gives you a small smile.<p>
"I know our friendship is true. At least I have that."<p>
You think about her words as you both head back to the villa. You can only hope you prove her right every day.
(show: ?end)
]
]
(else-if: $WIS > 6)[
(link: "Comfort Her")[
You plod over to her, kicking up sand onto your low-hanging fur. You nuzzle against her leg and brace your paws into the tallest stance you can manage, and one hand wanders to your ears.<p>
"You're right, $corgiName," Emma says. "I'll always have you."
<p>
(set: $score to it + 3)
(replace: ?Link)[]
Emma lays down on the towel and stretches out, and you follow suit. The sun is reaching its peak, and it feels brilliant on your fur. Laying next to Emma, you can't imagine any corgi having a better life. You only wish your girl could feel as happy as you do.<p>
As her fingers thread through your fur, you feel the tension leave and her breathing slow as you both cloud-gaze peacefully. The sun sinks on the horizon, and you wonder what tomorrow will bring.
(show: ?end)
]
]
(else:)[
(link: "Nudge Her")[
There's only one way to get your girl out of this slump, and you know it. Vacation isn't a time to mope around, but only a corgi as smart as you knows that. She'll just need a little nudge in the right direction, so you go prod her arm with your cold nose. When she ignores you, you prod more insistently.<p>
(set: $score to it + 1)
(replace: ?Link)[]
"Knock it off, $corgiName." She stands up and gathers up her towel. "Fine, we'll go get your food, I guess." She stalks off towards the villa, and you follow helplessly in her wake. You're not sure how that hadn't gone your way, but you knew best, right?
(show: ?end)
]
]
<br>
(if: $CHA > 3 and <= 6)[
(link: "Present Belly")[
Prancing smoothly across the sand, you get in front of your girl and usurp her attention. In one graceful move, you flip and flop on your back, presenting your belly for the ceremonnial belly rubs. After all, what wouldn't make someone feel better than a handful of Corgi fluff?<p>
(set: $score to it + 2)
(replace: ?Link)[]
She giggles at your antics, but hesitantly reaches out to rub. She stares off at the horizon while absent-mindedly petting you. "I don't know, $corgiName," she says, "Maybe vacation was a mistake. It doesn't feel right without (if: $parentB is 0)[Daddy](else:)[Mama]."<p>
You wiggle cutely and lick her arm, regaining her attention and endearing her with your worshipful Corgi gaze, and she smiles.<p>
"You're right," she says, gathering up the towels. "There's always next year, and I'm sure they'll work it out. Visitation won't be so bad, I hear. Maybe we'll get more focused quality time. More than before."<p>
You both head back to the villa, determination and optimism lighting your way in the fallling dusk.
(show: ?end)
]
]
(else-if: $CHA > 6)[
(link: "Canine Smile")[
You waddle around hysterically, moving subtly in front of her gaze. When you catch her eye, you tilt your head and let loose your best canine smile with your tongue lolling out of the side. She gives you a small, gentle smile as you tilt your head the other way. You pull out the show-stopping move and flop on your back, giving her the best upside down Corgi delight you have.<p>
(set: $score to it + 3)
(replace: ?Link)[]
"Okay, okay, $corgiName, I get it." She leans forward to ruffle your belly fluff as a trail of gentle laughter erupts from some forgotten place within her. "Tomorrow will be better, right?"
(show: ?end)
]
]
(else:)[
(link: "Beg Cutely")[
You surreptitiously plod over to your girl, and tentatively lift one paw. Her gaze remains unfocused as the anxiety creeps in. You wave your paw a little, hoping to get her attention, but she's already lost in her own thoughts. You try once again, slapping your paw on the ground, and giving a small yip.<p>
(set: $score to it + 1)
(replace: ?Link)[]
Emma startles and pulls back, looking around until her eyes fall on you. They narrow, and her tone sounds harsher than she probably means.<p>
"Don't scare me like that, $corgiName," she says, starting to gather up her things. "It's late anyways." She gazes towards the villa longingly. "I only wish (if: $parentB is 0)[Daddy](else:)[Mama] were here."<p>
As you both wander back towards the smells of supper being made, Emma's silence lets you wonder how your cute plans could have gone awry.
(show: ?end)
]
]
|end)[
(if: $score is 1)[
(set: $ep to (round: ($ep / 2)))
]
(set: $score to 0)
(set: $dayEP to $ep)
(set: $eventZ to true)
<p>[[Sleep |main]]
]
}{
(if: $huntDaily is false)[
"You know what?" Emma asks you with her hands clasped behind her back. Your tail wags at the beckoning tone. "I bet you'd love to help me with..."<p>
You bounce in excitement as she brings her arms around in a flashy gesture.<p>
"This treasure map!" Emma brandishes the crayon-drawn map. You recognize the villa, the beach, and a few other notable landmarks, but you don't know how to read a map. You're a corgi, for bark's sake. But as a corgi sworn to protect and care for your girl, it's your solemn duty to partake in any treasure hunts, and to just do your best.<p>
(link: "Ready?")[
(set: $energy to 20)
(goto: "scavenger")
]<br>
[[Not quite ready...|shanty]]
]
(else:)[
Emma looks around, and then down at you.<p>
"I think we've found all the treasure we need for today. Let's do something else instead," she suggests, and you [[head back|shanty]] towards the shanty.
]
(if: $doubloonArea is 8)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
}{
The scavenger hunt is over! You have $energy energy and $points points.
<p>
(if: $points >= 0 and < 5)[
(set: $epGained to 0)
Emma looks around, confused and disappointed, carrying a near empty loot bag.
]
(else-if: $points >= 5 and < 10)[
(set: $epGained to 1)
Emma sits cross-legged, sorting through the loot. You nose over a couple interesting items, and she giggles.
]
(else-if: $points >= 10 and < 15)[
(set: $epGained to 2)
"This will be a great addition to the shanty," Emma mutters, shifting through the loot. "We didn't do too bad this time, eh, $corgiName?"
]
(else-if: $points >= 15 and < 20)[
(set: $epGained to 3)
With such a triumphant haul, Emma warns you it's not safe to keep real treasure out in the open. You both hurry back to your shanty, buzzing with excitement over what you've uncovered together.
]
(else:)[
(set: $epGained to 4)
Emma races around with her heavy bag of loot, whooping and hollering with unbridled glee. You race beside her, tongue lolling out, and keeping your eye on your shared treasure. However, you know that Emma is your greatest treasure of all.
]
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
(set: $energy to 0)
(set: $points to 0)
(set: $huntDaily to true)
<p>
[[Back|shanty]]
}{
</div></div>
<script>
$('.topBackground').css('background-image','url(beach.png)');
$('.topBackground').css('background-size','cover');
$('.topBackground').css('background-repeat','no-repeat');
$('.topBackground').css('background-position','center');
</script>
}{
<div class='container'>
<div class='topBackground'></div>
<div class='textBubble'>
(link:"Save Game")[
(if:(save-game: $corgiName))[
Game saved!
](else: )[
Sorry, I couldn't save your game.
]
] | (if: (saved-games:) contains $corgiName)[(link: "Load Game")[
(load-game: $corgiName)
] |] [[Credits]] | [[Code]]
---
<p>
}{
(if: $points > $pointsOP)[
You won!
(if: $opponent is "crab")[
(set: $epGained to 2)
]
(else-if: $opponent is "seagull")[
(set: $epGained to 3)
]
(else-if: $opponent is "seal")[
(set: $epGained to 4)
]
]
(else:)[
You lost...
(set: $epGained to 1)
]
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
(set: $vballDaily to true)
<p>
[[Back|beach]]
}{
With (if: $parentA is 0)[Dad's](else:)[Mom's] permission, you and Emma venture toward the boardwalk just beyond the gravel shoreline that tapers off from the woods behind your villa. It's a short, pleasant walk, but almost a world of differene once you get there.<p>
Families and teenagers mill about the shops lining the boardwalk, and the rumble of skateboarders and skaters thump along the walkway. Emma seems both overwhelmed and overjoyed at the buzz of activity.<p>
You can see the beginnings of a county fair being set up, with some of the colorful booths eliciting excitement from your girl. Unfortunately, it's not quite ready yet, but it'll definitely add some fun to your summer once it is.
(if: $trinketC is false)[
<p>You and Emma walk close by a booth setting up, and an elderly gentleman waves you over. The prizes are being unpacked, and he tosses Emma a |trinketC>[stuffed dog] of mismatched patches before waving you both on your way.<p>
]
(click: ?trinketC)[
(set: $trinketC to true)(set: $trinkets to it + 1)//Dog Plushie Trinket located.//
(if: $trinkets is 3)[(set: $achievementA to true)(set: $chievos to it + 1)<br>^^//Achievement Unlocked//^^]
]
(if: $doubloonArea is 4)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
<p>[[Head Home|main]]
}{
<!--
Lowest Score: 0
Highest Score: 41
-->
(if: $stone's flat is 0)[(set: $score to it + 5)]
(else-if: $stone's flat >= 1 and <= 3)[(set: $score to it + 3)]
(else-if: $stone's flat >= 4 and <= 7)[(set: $score to it + 2)]
(else-if: $stone's flat >= 8 and <= 11)[(set: $score to it + 1)]
(else:)[(set: $score to it + 0)]
(if: $stone's size is 1)[(set: $score to it + 0)]
(else-if: $stone's size is 2)[(set: $score to it + 3)]
(else-if: $stone's size is 3)[(set: $score to it + 5)]
(else-if: $stone's size is 4)[(set: $score to it + 3)]
(else:)[(set: $score to it + 0)]
(if: $stone's weight is 0)[(set: $score to it + 0)]
(else-if: $stone's weight is 1)[(set: $score to it + 3)]
(else-if: $stone's weight is 2)[(set: $score to it + 5)]
(else-if: $stone's weight is 3)[(set: $score to it + 3)]
(else-if: $stone's weight is 4)[(set: $score to it + 1)]
(else:)[(set: $score to it + 0)]
(if: $stone's shape is 0)[(set: $score to it + 0)]
(else-if: $stone's shape is 1 or 2)[(set: $score to it + 1)]
(else-if: $stone's shape is 3)[(set: $score to it + 2)]
(else-if: $stone's shape is 4)[(set: $score to it + 3)]
(else:)[(set: $score to it + 5)]
(if: $angle >= 0 and <= 45)[(set: $score to it + 5)]
(else-if: $angle > 45 and <= 85)[(set: $score to it + 3)]
(else-if: $angle > 85 and <= 94)[(set: $score to it + 0)]
(else-if: $angle > 94 and <= 129)[(set: $score to it + 3)]
(else-if: $angle > 129 and <= 180)[(set: $score to it + 5)]
(if: $force < 25)[(set: $score to it + 0)]
(else-if: $force > 25 and <= 45)[(set: $score to it + 2)]
(else-if: $force > 45 and <= 90)[(set: $score to it + 3)]
(else-if: $force > 90 and <= 145)[(set: $score to it + 4)]
(else-if: $force > 145 and <= 179)[(set: $score to it + 5)]
(else:)[(set: $score to it + 6)]
(if: $speed is 0)[(set: $score to it + 0)]
(else-if: $speed > 0 and <= 5)[(set: $score to it + 1)]
(else-if: $speed > 5 and <= 10)[(set: $score to it + 2)]
(else-if: $speed > 10 and <= 14)[(set: $score to it + 3)]
(else:)[(set: $score to it + 5)]
(if: $spin is 0)[(set: $score to it + 0)]
(else-if: $spin > 0 and <= 5)[(set: $score to it + 1)]
(else-if: $spin > 5 and <= 10)[(set: $score to it + 2)]
(else-if: $spin > 10 and <= 14)[(set: $score to it + 3)]
(else:)[(set: $score to it + 5)]
Your score is $score!
(if: $skipA is false)[
(set: $skipA to $score)
]
(else-if: $skipB is false)[
(set: $skipB to $score)
]
(else-if: $skipC is false)[
(set: $skipC to $score)
]
(if: $skipA is false or $skipB is false or $skipC is false)[
<p>[ [[Try Again?|skip init]] ]<try|
<br>(link: "Take Score")[(display: "skip score")]
]
(else:)[
<p>You're done for today.
<br>(link: "Take Score")[(display: "skip score")]
]
}{
(set: $stoneA to (dm: "flat", (random: 0, 15), "size", (random: 1, 5), "weight", (random: 0, 5), "shape", (random: 0,5)))
(set: $stoneB to (dm: "flat", (random: 0, 15), "size", (random: 1, 5), "weight", (random: 0, 5), "shape", (random: 0,5)))
(set: $stoneC to (dm: "flat", (random: 0, 15), "size", (random: 1, 5), "weight", (random: 0, 5), "shape", (random: 0,5)))
(set: $angle to false)
(set: $force to false)
(set: $speed to false)
(set: $spin to false)
(set: $dir to "up")
(set: $score to 0)
(display: "skipping")
}{
(replace: ?try)[]
(if: $skipB is false)[
(set: $skipB to 0)
]
(if: $skipC is false)[
(set: $skipC to 0)
]
(if: $skipA > $skipB and > $skipC)[
Your best score was your first try at $skipA points.
(if: $skipA is 0)[
Unfortunately, it was a miss!
(set: $epGained to 0)
]
(else-if: $skipA > 0 and < 10)[
Emma gazes contentedly at the shore, perusing better stones for next time.
(set: $epGained to 1)
]
(else-if: $skipA >= 10 and < 20)[
Emma pets you lovingly. "We almost got it, didn't we, $corgiName?"
(set: $epGained to 2)
]
(else-if: $skipA >= 20 and < 35)[
"Right on!" Emma whoops loudly, standing triumphantly on the shoreline.
(set: $epGained to 3)
]
(else:)[
You feel a sense of weightlessness as Emma scoops you up and hugs you. Her laughter trails away as the hug grows tender. "That was fantastic, $corgiName."
(set: $epGained to 4)
]
]
(if: $skipB > $skipA and > $skipC)[
Your best score was your second try at $skipB points.
(if: $skipB is 0)[
Unfortunately, it was a miss!
(set: $epGained to 0)
]
(else-if: $skipB > 0 and < 10)[
Emma gazes contentedly at the shore, perusing better stones for next time.
(set: $epGained to 1)
]
(else-if: $skipB >= 10 and < 20)[
Emma pets you lovingly. "We almost got it, didn't we, $corgiName?"
(set: $epGained to 2)
]
(else-if: $skipB >= 20 and < 35)[
"Right on!" Emma whoops loudly, standing triumphantly on the shoreline.
(set: $epGained to 3)
]
(else:)[
You feel a sense of weightlessness as Emma scoops you up and hugs you. Her laughter trails away as the hug grows tender. "That was fantastic, $corgiName."
(set: $epGained to 4)
]
]
(if: $skipC > $skipB and > $skipA)[
Your best score was your third try at $skipC points.
(if: $skipC is 0)[
Unfortunately, it was a miss!
(set: $epGained to 0)
]
(else-if: $skipC > 0 and < 10)[
Emma gazes contentedly at the shore, perusing better stones for next time.
(set: $epGained to 1)
]
(else-if: $skipC >= 10 and < 20)[
Emma pets you lovingly. "We almost got it, didn't we, $corgiName?"
(set: $epGained to 2)
]
(else-if: $skipC >= 20 and < 35)[
"Right on!" Emma whoops loudly, standing triumphantly on the shoreline.
(set: $epGained to 3)
]
(else:)[
You feel a sense of weightlessness as Emma scoops you up and hugs you. Her laughter trails away as the hug grows tender. "That was fantastic, $corgiName."
(set: $epGained to 4)
]
]
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
(set: $skipDaily to true)
<p>
[[Back|shanty]]
}{
(if: $skipDaily is false)[
"Hey, $corgiName," Emma says, walking along the shoreline. "Look at these rocks. I remember when (if: $parentB is 0)[Daddy](else:)[Mama] taught me how to skip rocks. Why don't we give it a try?"
<p>
[[Wag and Nod|skip init]]<br>
[[Shake Head and Turn Tail|shanty]]
]
(else:)[
"We've already done this today, $corgiName," Emma says, her enthusiasm deflating. She sits quietly at the shoreline, gazing off across the sparkling reflection. You join her in quiet meditation, until you feel it is time [[to go|shanty]].
]
(if: $doubloonArea is 9)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
}{
(if: $vballDaily is false)[
(set: $ball to 0)
<!-- (set: $rally to true)
(set: $position to 0) -->
(set: $points to 0)
(set: $pointsOP to 0)
"$corgiName, look out!" Emma shouts at you. You roll just in time to miss a volleyball smacking a Corgi-sized hole in the sand where you had just been standing. You turn and scamper back to the protective calves of your girl as you both look on in amazement at the surreal scene.<p>
A crab scuttles forward and swipes at the out-of-bounds ball, glaring at you in the process. It hurls the ball back to the other players, a seagull and a seal. They all look at you as curiously as you do at them.<p>
"Oh, wow," Emma murmurs. "Do you think they'll let us play?" The three of them share a consulting look, and then the crab steps forward, declaring itself the most amateur of the group. Then the seagull struts forward, a modest player. However, the most veteran of all, the seal, strides forward with a quiet confidence.<p>
//It takes 6 points to win against the crab, 12 points against the seagull, and 16 points against the seal, but the rewards are greater with a more difficult victory.//<p>
Which opponent do you want to play?<p>
(link: "Crab")[(set: $opponent to "crab")(goto: "vballNew")]<br>
(link: "Seagull")[(set: $opponent to "seagull")(goto: "vballNew")]<br>
(link: "Seal")[(set: $opponent to "seal")(goto: "vballNew")]<p>
[[Rather not play...|beach]]
]
(else:)[
You and Emma watch the trio practicing their moves for some time. Perhaps you're strategizing? Or just bored. Emma nudges you, and you both quietly [[leave them|beach]] to their game.
]
(if: $doubloonArea is 6)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
}{
(set: $vballMode to "medium")
|points>[Your Points: $points | Their Points: $pointsOP]
<p>
|display1>[Getting ready to serve...]
<p>
|display2>[Your opponent stands at alert...]
(live: 4s)[
(if: $points >= 7 or $pointsOP >= 7)[
(set: $ball to 0)
(set: $rally to 0)
(replace: ?display1)[
The game is over!<p>
(link-goto: "Game Over", "vball end")
]
(replace: ?display2)[]
]
(if: $ball is false and $rally is true)[
(link: "Serve!")[
(set: $ball to true)
(replace: ?display1)[The ball is served!]
(replace: ?display2)[You stand at alert...]
]
]
(if: $ball is false and $rally is false)[
(replace: ?display1)[
Opponent is lining up to serve...
(if: (random: 1, 4) <= 3)[
<p>Ball is served!
(set: $ball to true)
]
(else:)[
<p>Bad serve!
(set: $rally to true)
]
]
]
(if: $ball is true and $rally is true)[
(if: $position is 0)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent bumps!
(set: $position to 1)
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 1)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent sets!
(set: $position to 2)
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 2)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent spikes!
<p>
(link: "Block!")[
(if: (random: 0, 1) is 0)[
(replace: ?display1)[
You managed to block the shot!
(set: $position to 0)
(set: $rally to false)
]
]
(else:)[
(replace: ?display1)[
You miss the block...
(set: $ball to false)
(set: $rally to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
(if: $ball is true and $rally is false)[
(set: $vball to (shuffled: "Bump", "Set", "Spike"))
(if: $position is 0)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You bumped the ball!
(set: $position to 1)
]
]
(click: "Set")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Spike")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 1)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Set")[
(replace: ?display2)[
You set the ball!
(set: $position to 2)
]
]
(click: "Spike")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 2)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Set")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Spike")[
(replace: ?display2)[
You spiked the ball!!!
(set: $ball to false)
(set: $rally to true)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
]
}{
(set: $vballMode to "hard")
|points>[Your Points: $points | Their Points: $pointsOP]
<p>
|display1>[Getting ready to serve...]
<p>
|display2>[Your opponent stands at alert...]
(live: 4s)[
(if: $points >= 12 or $pointsOP >= 12)[
(set: $ball to 0)
(set: $rally to 0)
(replace: ?display1)[
The game is over!<p>
(link-goto: "Game Over", "vball end")
]
(replace: ?display2)[]
]
(if: $ball is false and $rally is true)[
(link: "Serve!")[
(set: $ball to true)
(replace: ?display1)[The ball is served!]
(replace: ?display2)[You stand at alert...]
]
]
(if: $ball is false and $rally is false)[
(replace: ?display1)[
Opponent is lining up to serve...
(if: (random: 1, 4) <= 3)[
<p>Ball is served!
(set: $ball to true)
]
(else:)[
<p>Bad serve!
(set: $rally to true)
]
]
]
(if: $ball is true and $rally is true)[
(if: $position is 0)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent bumps!
(set: $position to 1)
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 1)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent sets!
(set: $position to 2)
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 2)[
(if: (random: 1, 4) <= 3)[
(replace: ?display1)[
Opponent spikes!
<p>
(link: "Block!")[
(if: (random: 0, 1) is 0)[
(replace: ?display1)[
You managed to block the shot!
(set: $position to 0)
(set: $rally to false)
]
]
(else:)[
(replace: ?display1)[
You miss the block...
(set: $ball to false)
(set: $rally to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
]
(else:)[
(replace: ?display1)[
Ball fumbles...
(set: $ball to false)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
(if: $ball is true and $rally is false)[
(set: $vball to (shuffled: "Bump", "Set", "Spike"))
(if: $position is 0)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You bumped the ball!
(set: $position to 1)
]
]
(click: "Set")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Spike")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 1)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Set")[
(replace: ?display2)[
You set the ball!
(set: $position to 2)
]
]
(click: "Spike")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
(else-if: $position is 2)[
(replace: ?display2)[
(print: $vball's 1st) | (print: $vball's 2nd) | (print: $vball's 3rd)
]
(click: "Bump")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Set")[
(replace: ?display2)[
You fumbled the ball...
(set: $ball to false)
(set: $position to 0)
(set: $pointsOP to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
(click: "Spike")[
(replace: ?display2)[
You spiked the ball!!!
(set: $ball to false)
(set: $rally to true)
(set: $position to 0)
(set: $points to it + 1)
(replace: ?points)[Your Points: $points | Their Points: $pointsOP]
]
]
]
]
]
}{
Writer: Lucas C. Wheeler<br>
Programmer: Lucas C. Wheeler<br>
(link: "Website")[(open-url: "https://lucascwheeler.com")]<p>
Beta Testers:<br>
//MetalPharoah//<p>
Logo: //By a talented artist who prefers to remain uncredited.//<p>
<h4>This is the **Festival Version** of Sunny's Summer Vacation, released in the Spring of 2021 as a part of the Spring Thing competition.</h4><p>
There are several differences between this version and the planned commercial release in Summer 2021. This version was made in consideration to the judges and an allotted playtime of 2 hours or less per entry. This contains the core gameplay of Sunny's Summer Vacation and is completed in regards to Story Events with defined endings, 4 functioning minigames with varied outcomes, and 3 achievements, 4 shanty upgrade levels and 3 collectable trinkets.<br>
This should allow players to experience the spirit of the game, while awaiting improvements in the commercial version including expanded story text, more areas to explore, more minigames, and a questing system to dig deeper into character development.<br>
Hope you enjoy, and shine bright!<p>
---
//A Note on Saving the Game://<p>
Save Game data is tied to the corgi's name as set at the beginning of the story. If saved under a certain name, note it somewhere for yourself what it is, because it cannot be viewed externally if forgotten.<p>
To resumed a saved game (if not done automatically), open the game and name the corgi exactly as the saved game's corgi, then click "Load Game". It should pick up exactly where you last saved.<p>
If you start a new game with a previously used corgi's name, and click save without loading the previous game file, it will be treated as a new save and overwritten. Be cautious!
<p>(link-undo: "Back to Game")
}{
Here is where you can enter codes to unlock further content, although none are available yet.<p>
(link: "Input Code")[
(set: $code to (prompt: "Enter Code:", "###"))
(if: $code is "code")[
Hah. Nice try.
]
(else:)[(color: red)[Not a valid code.]]
]
<p>(link-undo: "Back to Game")
}{
Spread out on the lounge chair on the patio are crayons of all sizes and colors. Broken and new, they shared equality on the masterpiece that Emma was polishing. Coarsely grained papers held a family of stick figures in various adventures – island exploring, battleship, spelunking. As you waddle up to her and peer down your elongated nose at her work, she pats your head fondly.<p>
"It was a pretty good day today," Emma admits, shuffling a few pages. One drawing catches your eye – a plump corgi with your undeniable coat and markings appear on the page, next to a stick figure of a happy little girl. "I just hope it lasts."
(set: $dayEP to $ep)
(set: $eventB to true)
<p>[[Sleep |main]]
}{
}{
(set: $days to it + 1)
(set: $skipDaily to false)
(set: $skipA to false)
(set: $skipB to false)
(set: $skipC to false)
(set: $scDaily to false)
(set: $vballDaily to false)
(set: $huntDaily to false)
(set: $sandcastle to 0)
(set: $sand to 0)
(if: $doubloon is false)[
(set: $doubloonArea to (random: 1, 10))
]
(else:)[
(set: $doubloonArea to 0)
]
(if: $days is 8)[(go-to: "EndingA")]
(if: $ep > $dayEP)[
(if: $eventH is true)[
(go-to: "EndingH")
]
(else-if: $eventG is true)[
(go-to: "StoryEventH")
]
(else-if: $eventF is true)[
(go-to: "StoryEventG")
]
(else-if: $eventE is true)[
(go-to: "StoryEventF")
]
(else-if: $eventD is true)[
(go-to: "StoryEventE")
]
(else-if: $eventC is true)[
(go-to: "StoryEventD")
]
(else-if: $eventB is true)[
(go-to: "StoryEventC")
]
(else-if: $eventA is true)[
(go-to: "StoryEventB")
]
(else:)[
(go-to: "StoryEventA")
]
]
(else:)[
(if: $eventU is true)[
(go-to: "EndingB")
]
(else-if: $eventV is true)[
(go-to: "StoryEventU")
]
(else-if: $eventW is true)[
(go-to: "StoryEventV")
]
(else-if: $eventX is true)[
(go-to: "StoryEventW")
]
(else-if: $eventY is true)[
(go-to: "StoryEventX")
]
(else-if: $eventZ is true)[
(go-to: "StoryEventY")
]
(else:)[
(go-to: "StoryEventZ")
]
]
}{
(set: $days to 0)
(set: $seashells to 0)
(set: $skipDaily to false)
(set: $skipA to false)
(set: $skipB to false)
(set: $skipC to false)
(set: $vballDaily to false)
(set: $scDaily to false)
(set: $huntDaily to false)
(set: $sandcastle to 0)
(set: $sc to (a: "scA", "scB", "scC", "scD", "scE", "scF", "scG", "scH", "scI", "scJ", "scK", "scL"))
(set: $trinkets to 0)
(set: $trinketA to false)
(set: $trinketB to false)
(set: $trinketC to false)
(set: $chievos to 0)
(set: $achievementA to false)
(set: $achievementB to false)
(set: $achievementC to false)
(set: $shanty to 0)
(set: $doubloon to false)
(set: $doubloonArea to (random: 1,10))
(put: (prompt: "Corgi Name", "Sunny") into $corgiName)
}{
(set: $corgiName to "Sunny")
(set: $days to 0)
(set: $JOY to 3)
(set: $CHA to 6)
(set: $WIS to 10)
(display: "hammock")
}{
As you all pile into the car to head home, you feel the heaviness in the air between Emma and her (if: $parentA is 0)[father](else:)[mother]. You feel uncomfortably caught in the middle, and the sulfiric emotional atmosphere is weighing you down too - poisoning you.<p>
It's hard to look at Emma, who is sullenly doodling angry sketches in her drawing pad. Her music is turned up loud, and you can hear the sullen tones through her headphones. Her face is downcast, and her cheeks are smudged with tears from the argument earlier that morning as they packed up to leave the villa.<p>
(if: $parentA is 0)[Dad](else:)[Mom] keeps gazing in the rearview mirror at you both throughout the long drive, with strained knuckles clutching the steering wheel. You shiver on the car seat, out of ideas on how to make this better and get your humans through it. You're out of ideas. Out of moves. Out of time.<p>
You remember the harsh words exchanged this morning, and don't know what they mean for you. Emma doesn't want to go to school. Emma doesn't want to eat her meals. Emma doesn't want to live with (if: $parentA is 0)[Dad](else:)[Mom]. Emma doesn't really want to do anything anymore.<p>
And you don't know how to fix it. You can only hope that time can heal these wounds, and maybe next summer will be better.<p>
(align:"=><=")+(box:"X")[<h1>The End</h1>(click-prepend: "End")[Worst ]]
<p>[[//Go to Summary//|summary]]
}{
(if: $ep is 84)[
You and Emma roam around the villa on the final day, and you're taken back by the sense of calm you feel emanating from her. You stroll the shoreline and breathe the salty air together, and you just have the overwhelming sense that you're experiencing the perfect day.<p>
"Everything's going to be okay, isn't it?" Emma says, stopping to peer at the horizon. "I mean, whatever the future holds for us, we've got each other. After a while, everything won't seem so scary, and we'll get used to how our new life will look."<p>
You don't have much to contribute, but you wag and look up at her, and she picks you up.<p>
"I know what you mean," she says, and you hope she does. "We'll get through this. And we'll still see (if: $parentB is 0)[Daddy](else:)[Mama] pretty much whenever we want. Our family will just be different now."<p>
(if: $parentA is 0)[Dad](else:)[Mom] calls you to the car, and you both hurry over. Everything is packed and summer has come to a close. All three of you start the journey home, with a greater sense of hope and enthusiasm than you came with. It might not always be easy, but you have confidence you can handle whatever comes your way, together.
]
(else-if: $ep > 40 and < 84)[
As the family packs up the car and prepares to say farewell to the villa for another year, there's a sense of unrest in the air. Emma looks troubled as she takes her seat, and you sit next to her as she pulls out her drawing pad.<p>
"I'm not sure, $corgiName," Emma says, perhaps prompted by your inquisitive look. "I guess it was a good summer. We had a couple good memories, but I feel like it could have been more. I'm going to try to get used to (if: $parentB is 0)[Daddy](else:)[Mama] not being around, but it's going to be tough."<p>
You nudge her hand and give it a tentative lick. She pets you absentmindedly as (if: $parentA is 0)[Dad](else:)[Mom] secures the last minute packing and then gets behind the wheel.<p>
The engine starts and you all head off back to a different home, with a different structure, and a different feel, but hopefully one you can cope with. Your family depends on it.
]
(else:)[
The uneasiness hangs in the air as the family packs to leave the villa. Emma wanders around, not committing to much conversation, or much productivity. She only manages to talk to you when (if: $parentA is 0)[Dad](else:)[Mom] isn't around.<p>
"I guess this summer was okay, but it just wasn't the same," Emma admits. "It's going to take some getting used to. I feel better about it now than when vacation started, but... I hope it gets better, because this still hurts too much to last forever."<p>
You settle into her side for the majority of the car ride home, because whatever you head into, you want her to know you're doing it together.
]
<p>
(align:"=><=")+(box:"X")[<h1>The End</h1>]
<p>[[//Go to Summary//|summary]]
}{
(set: $rand to (random: 1, 10))
You've still got days left in your vacation, but you've progressed through all the best events and come out the other side with points to spare. Just enjoy your pseudo-random day with Emma.
You shouldn't be able to get this during beta testing, but if you do, make a note of it.
(if: $rand is 1)[
Scenario 1
]
(else-if: $rand is 2)[
Scenario 2
]
(else-if: $rand is 3)[
Scenario 3
]
(else-if: $rand is 4)[
Scenario 4
]
(else-if: $rand is 5)[
Scenario 5
]
(else-if: $rand is 6)[
Scenario 6
]
(else-if: $rand is 7)[
Scenario 7
]
(else-if: $rand is 8)[
Scenario 8
]
(else-if: $rand is 9)[
Scenario 9
]
(else:)[
Scenario 10
]
[[Sleep |main]]
}{
"Don't forget some salad too," (if: $parentA is 0)[Dad](else:)[Mom] reminded as Emma started building her plate. You nose up alongside her, sniffing madly at the freshly grilled hotdogs placed before you. Your eyes cross as you gaze upon the precious, but your thoughts are interrupted by Emma grabbing her own servings.<p>
"I know, (if: $parentA is 0)[Dad](else:)[Mom]," Emma placated, sprucing up her green helpings. She leans down and whispers to you. "Sorry, $corgiName. I can't sneak you hotdogs like I used to when (if: $parentB is 0)[Daddy](else:)[Mama] was around. (if: $parentB is 0)[He](else:)[She] didn't care as much as (if: $parentA is 0)[Dad](else:)[Mom] does, but I'll give you an extra treat later."<p>
"Don't think I don't hear your conspiration," (if: $parentA is 0)[Dad](else:)[Mom] mutters as a couple hamburgers came off the grill. As the plate is set upon the picnic table, your gazes meet and you are granted a wink.<p>
"Don't you think you're making too much food, (if: $parentA is 0)[Dad](else:)[Mom]?" Emma asked, looking at the bountiful spread. (if: $parentA is 0)[Dad](else:)[Mom] looked at it too, wiping (if: $parentA is 0)[his](else:)[her] hands off on the apron.<p>
"I guess so. At least the leftovers will last us. Sorry about that, I guess I'm used to cooking for more people."<p>
Even as you snuck a slurped hotdog, you didn't miss the brief grimace of pain come from them both.
(set: $dayEP to $ep)
(set: $eventC to true)
<p>[[Sleep |main]]
}{
A sour grimace falls across your girl's face, and you're not entirely sure why. The sun is shining, the wind has died down, and the kiddie pool is quickly filling with water. Emma grunts and twists away from (if: $parentA is 0)[Dad](else:)[Mom], shucking off the inflatable arm floatie.<p>
"I'm too big for this pool," Emma whines, absently kicking at the plastic mold. "Why can't I swim in the ocean? It's right there." She gestures grandly in exasperation. "Don't you trust me?"<p>
(if: $parentA is 0)[Dad](else:)[Mom] wipes (if: $parentA is 0)[his](else:)[her] hand on a towel and then bends over to pick up the floatie. Calm and serene, (if: $parentA is 0)[Dad](else:)[Mom] crosses (if: $parentA is 0)[his](else:)[her] arms before giving Emma a kind gaze.<p>
"Even adults find themselves in trouble in the ocean, and then it could easily be too late before I could do anything. It has nothing to do with your age, or trust." Emma pouts, but (if: $parentA is 0)[Dad](else:)[Mom] continues, "Besides, there's something more important to consider."<p>
Emma looks up, skeptically. "What's that?"<p>
(if: $parentA is 0)[Dad](else:)[Mom] points to you, and you gently raise a paw in askance.<p>
"$corgiName is not a great swimmer, and far too little for the ocean. Littler than you. Now, how would $corgiName feel if you left to swim the ocean alone, with no one to swim with in our pool?"<p>
Emma eyes you up and down, and you loll your tongue out in a canine smile. It's the best you've got. "Probably lonely."<p>
(if: $parentA is 0)[Dad](else:)[Mom] nods. "I bet you know how that feels."<p>
"Yeah, I think so," Emma mutters. "Fine, I'll swim here with $corgiName to make sure no one gets lonely."<p>
"That's my girl," (if: $parentA is 0)[Dad](else:)[Mom] says, and gives her a hug before heading inside to start supper.
(set: $dayEP to $ep)
(set: $eventD to true)
<p>[[Sleep |main]]
}{
In one of the rare excursions to the Great Indoors on your trip, you, Emma, and (if: $parentA is 0)[Dad](else:)[Mom] settle around the living room coffee table. A board game with sheets and character pieces are spread out on it, and you've just finished going over the rules.<p>
"Now, does everyone understand?" (if: $parentA is 0)[Dad](else:)[Mom] gazes at you both, and Emma looks at you before nodding back at her (if: $parentA is 0)[father](else:)[mother]. You look and nod too, paws prancing back and forth while you struggle to remain seated in the atmosphere of excitement. A new adventure is about to begin, and you can feel that energy building up.<p>
Emma reaches for the scorepad in the box, and she freezes when she pulls it out, staring at the pencil etchings from before. (if: $parentA is 0)[Dad](else:)[Mom] follows her gaze, and they both take on the same sort of sad, deflated look.<p>
"I forgot about the scores from last time," (if: $parentA is 0)[Dad](else:)[Mom] says, gently taking it, and tearing the top page off. (if: $parentA is 0)[He](else:)[She] looks at it, and a brief fondness flickers across (if: $parentA is 0)[his](else:)[her] face. "Remember how badly (if: $parentB is 0)[Daddy](else:)[Mama] beat us both? And all because of a lucky, last minute bonus card." Emma starts giggling as she wipes away a tear, and (if: $parentA is 0)[Dad](else:)[Mom] joins in. (if: $parentA is 0)[He](else:)[She] folds the paper and tucks it away, and then a new scorecard is outlined.<p>
(set: $dayEP to $ep)
(set: $eventE to true)
<p>[[Sleep |main]]
}{
Marching like a troop in the cascading darkness, you all head to the tent pitched in the backyard. Emma and (if: $parentA is 0)[Dad](else:)[Mom] had set it up together earlier, while you supervised from the patio with your alert, observant corgi gaze.<p>
Now as you set up the inside of the tent, Emma carries the bulk of the blankets, pillows, and sleeping bags, flowing over her in a heap, while (if: $parentA is 0)[Dad](else:)[Mom] carries the lantern, cooler, and radio. You skip ahead on jaunty paws, holding your chiseled snout high with the importance of carrying Emma's beloved stuffed (either: "green alligator", "lavender rabbit", "pink pony", "hideous monster"), so that it doesn't get dirty.<p>
It doesn't take long to arrange the bedding inside the tent and getting the entertainment set up. A few books are set up near the bed, and you recognize your favorite bedtime story among the mix. Your stumpy tail wags slowly, anticipating Emma reading it to you.<p>
(if: $parentA is 0)[Dad](else:)[Mom] looks on as Emma tucks herself in, and tells you both goodnight. A look of hesitation remains on (if: $parentA is 0)[his](else:)[her] face.<p>
"Are you sure you're okay to sleep out here alone?" (if: $parentA is 0)[he](else:)[she] asks, although you know you're only a few feet away from the light of the villa's patio, and (if: $parentA is 0)[Dad](else:)[Mom] is never too far away – a few sniffs at most.<p>
Emma crosses her arms confidently.<p>
"Of course I'm okay, I'm becoming a big girl now. Plus, I'm not alone. I have $corgiName with me." You sit firmly and proudly, backing up her claim with a dutiful nod. (if: $parentA is 0)[Dad](else:)[Mom] smiles, reassured.<p>
"Alright then. If you need anything, I'll just be inside the villa, sleeping on the couch."<p>
"Goodnight, (if: $parentA is 0)[Dad](else:)[Mom]," Emma says, and they have a quick hug. As the tent door is zipped up, Emma calls out. "If you talk on the phone tonight with (if: $parentB is 0)[Daddy](else:)[Mama], can you tell (if: $parentB is 0)[him](else:)[her] goodnight from me too?" The hopeful tone in her voice hung in the air as the shadow stood still outside.<p>
"Of course, honey."<p>
Emma beckons you into her sleeping bag as the sound of the patio door slid closed, and the storybook is propped up for you both to see. And then you were both alone, with the wall of the tent basking in the gentle glow of patio lights from the villa, as you both snuggled in for the night.
(set: $dayEP to $ep)
(set: $eventF to true)
<p>[[Sleep |main]]
}{
After a long day of frolicking, adventures, and snacks, you find your girl laying down on the living room floor with a sofa cushion grasped under her tummy. A few books are open in front of her, and her legs are kicking absently as she peruses various pictures. Still full from dinner, and dessert, and second dessert, you scuttle over to her and look over her shoulder as she turns the page.<p>
"See, $corgiName?" Emma points at a picture of (if: $parentA is 0)[Dad](else:)[Mom] and (if: $parentB is 0)[Daddy](else:)[Mama] holding a newborn wrapped in a (either: "yellow", "blue", "pink", "green", "purple") blanket. "That's me, on the day I was brought home." You lick at her ear, and she swats gently and giggles. She turns the page, and a broad smile lights up her face.<p>
"And here's you, on the day we brought you home!" She points, and much like the previous picture, there's (if: $parentA is 0)[Dad](else:)[Mom], (if: $parentB is 0)[Daddy](else:)[Mama], and Emma, now a grade-school age child with missing front teeth, smiling widely at the camera with a furry bundle in her arms. You can only see your shiny, healthy nose and satin, pointed ears peeking out of the (either: "yellow", "blue", "pink", "green", "purple") blanket.
(set: $dayEP to $ep)
(set: $eventG to true)
<p>[[Sleep |main]]
}{
You and Emma are sitting at the kitchen island, both precariously perched on stools as (if: $parentA is 0)[Dad](else:)[Mom]'s voice carries in from the hallway.<p>
"Yes, she misses you too. She's been waiting to speak with you," (if: $parentA is 0)[Dad](else:)[Mom] pauses, then begins again. "Yes, I know. I know. We'll work it out. Let's just do what's best for Emma. She's strong, but it's still been a struggle." Another pause. "For both of us."<p>
Emma is leaning away from her stool, and your ear is tilted towards the hallway. You can't imagine she can hear what you can, but you wish you could tell her. You don't have long to agonize about it, because then (if: $parentA is 0)[Dad](else:)[Mom] comes around the corner, holding the cord to the wall phone.<p>
"Now?" Emma asks as she bounces off her seat.<p>
"Yes, honey," (if: $parentA is 0)[Dad](else:)[Mom] says. "(if: $parentB is 0)[He](else:)[She]'s waiting to talk to you too." (if: $parentA is 0)[He](else:)[She] hands her the phone, and as Emma stands there, your attuned corgi ears can pick up both sides of the conversation clearly.
(set: $dayEP to $ep)
(set: $eventH to true)
<p>[[Sleep |main]]
}{
You and Emma plod along the shoreline, taking turns dipping your toes into the caressing waves. The wet sand clings to your ankles, but as you weave back and forth between your girl's legs as you walk, you find that you don't mind so much. She giggles at your antics, and catches herself from almost tripping, and then chases you back towards the villa.<p>
You both pause at the wooden stairs that lead up the embankment and look over the water. She cups her hand at her brow to shield out the diminishing goldenrod rays, and you follow her line of sight.<p>
"Do you think (if: $parentB is 0)[Daddy](else:)[Mama] is looking at the sunset too, $corgiName?" Emma asks. You look at her and tilt your head, one pointed ear flopping slightly, and Emma sighs. "It's not like we'll never see each other again, right? Maybe this won't be so bad after a while."
(set: $dayEP to $ep)
(set: $eventA to true)
<p>[[Sleep |main]]
}{
A reprieve of cooler night air swirls across the villa patio, seemingly washing away the humidity of earlier. (if: $parentA is 0)[Dad](else:)[Mom] finishes setting the picnic table with food, a delectable spread of hotdogs, buns, condiments, and various salads while Emma pokes at the sliced hot dog on her plate. She slowly slides the pieces around the styrofoam surface, her gaze a million miles away.<p>
"Are you okay, honey?" (if: $parentA is 0)[Dad](else:)[Mom] asks, briefly touching the back of (if: $parentA is 0)[his](else:)[her] hand to Emma's forehead.<p>
"I'm fine," Emma says, squishing a piece of hot dog into a modest pile of ketchup. "Just not feeling hungry." A small stream of parental clucking precedes an admonishment, and a muttered curse before (if: $parentA is 0)[Dad](else:)[Mom] heads back inside to grab more napkins. While you're alone, Emma turns to you, the small corgi seated next to her and staring intently at the tubed meat neglected on the plate.<p>
"You know," Emma says. "We didn't really do much today. I bet if (if: $parentB is 0)[Daddy](else:)[Mama] were here, we would have played all day, and then I'd be hungry enough to eat everything on the picnic table." She looks again at her plate, her nose crinkling in disgust at the globs of ketchup. "But right now? I just feel sick."
<p>
(if: $JOY > 3 and <= 6)[
(link: "Flip Plate")[
In a stroke of ingentuity, you lash out with one paw and slam the paper plate, sending it spiraling across the picnic table. Ketchup whirls like a sprinkler, splattering both you and Emma, who shrieks. She quickly stifles herself before (if: $parentA is 0)[Dad](else:)[Mom] hears, but her fit of giggling is harder to contain. She cleans up hurriedly, and you do your part in cleaning up the waylaid hotdog pieces - a sacrifice, you know, as you gulp them down.<p>
(set: $score to it + 2)
(replace: ?Link)[]
"I can't believe you, $corgiName," Emma says, using a napkin to dab the ketchup off your noble canine visage. "Such a mess. At least I can't be expected to eat it now, can I?" She cleans you both up and finishes taking care of the picnic table. As you both head inside, (if: $parentA is 0)[Dad](else:)[Mom] looks at you, but you and Emma know (if: $parentA is 0)[he](else:)[she] doesn't suspect a thing.
(show: ?end)
]
]
(else-if: $JOY > 6)[
(link: "Steal Hotdog")[
In one fell swoop, you leap forward and grasp a fully intact hotdog off the main plate and scamper away, and Emma shrieks, dashing after you. The chase is fervent and desperate, but her peals of laughter give away her mirth as she tries to corner you on the far side of the patio.<p>
(set: $score to it + 3)
(replace: ?Link)[]
"$corgiName! You're going to get us in trouble!" she whisper yells, but (if: $parentA is 0)[Dad](else:)[Mom] is already looking through the kitchen window while doing dishes, trying to hide (if: $parentA is 0)[his](else:)[her] own laugh. She finally catches you as the last bit of hotdog disappears down your gullet, and you flash your best canine smile.<p>
"Oh, $corgiName, what am I going to do with you?" Her tone is chastising, but also loving. She takes you back to the picnic table, where you both finish your meal.
(show: ?end)
]
]
(else:)[
(link: "Slurp Ketchup")[
You know exactly what to do to cheer your girl up. You reach your neck forward and curl your tongue, forming a suction tunnel as it darts across the plate, decimating the ketchup population of Hotdog Ville. Emma claps her hands over her mouth, turning a sick shade of green as you turn your head and start hacking. The acidity of the ketchup was not something you were prepared for, and it all starts to come back up on the patio.<p>
(set: $score to it + 1)
(replace: ?Link)[]
"Oh my gosh, $corgiName, no!" Emma wails, jumping up and looking sick herself. She makes a break for the bathroom inside just as (if: $parentA is 0)[Dad](else:)[Mom] comes out, wondering what all the noise is about. The bathroom door slams shut, and you finish yakking, but you feel like laying down. (if: $parentA is 0)[Dad](else:)[Mom] sighs with exasperation and starts cleaning everything up.<p>
You vaguely wonder where your girl went, and hope you cheered her up.
(show: ?end)
]
]
<br>
(if: $WIS > 3 and <= 6)[
(link: "Nose Boop")[
You boop your cold nose against her shoulder, then her arm, and when she giggles, you change course and boop your nose against her cheek.<p>
(set: $score to it + 2)
(replace: ?Link)[]
She turns and looks at you. "Oh, what do you want?" she says, trying to sound grumpy. You boop her gently once more, this time more than a gesture of silliness, but a gesture of solidarity and good will. "I know, $corgiName," she says. "It'll get better, as long as I have you."
(show: ?end)
]
]
(else-if: $WIS > 6)[
(link: "Paw on Hand")[
You reach forward and place your paw on her trembling hand. She looks at you, and you tilt your head down and your eyes up. The ultimate knowing look of concern.<p>
(set: $score to it + 3)
(replace: ?Link)[]
She reaches out to pet you, comforting you as much as herself. "I know, $corgiName. You're here, and I know things will get better. Every day couldn't possibly like today, could it?"
(show: ?end)
]
]
(else:)[
(link: "Slump")[
It's probably best that you try to get her attention. Using your diminutive corgi weight, you slump against her. First her arm, then her side, then the ground as she keeps moving.<p>
(set: $score to it + 1)
(replace: ?Link)[]
"Ugh, $corgiName, not now," she chastises, gathering up her plate and utensils. "I'm just... not in the mood right now." She heads inside, leaving you there, belly up and flabberghasted. What exactly just happened? How did that not go well?
(show: ?end)
]
]
<br>
(if: $CHA > 3 and <= 6)[
(link: "Whine")[
You lean forward and tilt your eyes up, rounding them puppy-style as the whine bubbles in your throat. It gently beckons like a morning symphony via flute. You alter your cadence up and down until Emma looks at you, and then you hear the telltale sign. It was a risky move, but you've stuck the landing.<p>
(set: $score to it + 2)
(replace: ?Link)[]
"Awwww, $corgiName," she cooes, reaching out to you and petting you firmly, "it's okay. You're okay. Here, have a piece of hot dog." As she feeds you and focuses on you, she absently eats a few more pieces herself.<p>
As you both finish the plate, she pets you, a small smile forming on her face. "There, now that wasn't so bad, was it?"<p>
No, no it wasn't, you wanted to admit, but it's not possible to wink only to yourself.
(show: ?end)
]
]
(else-if: $CHA > 6)[
(link: "Yip")[
You make a small yip, and she turns her head. You yip slightly louder, holding yourself upright with dignity as your next yip reaches a higher pitch. As Emma turns away, you yip again with all your corgi might.<p>
(set: $score to it + 3)
(replace: ?Link)[]
"Okay, okay," Emma says, petting you. "What's up, $corgiName? Do you want some hot dog too?" She feeds you a few pieces, and then tentatively eats some more on her own while she watches you enjoy it. "I guess it's not the worst thing in the world. I just wish (if: $parentB is 0)[Daddy](else:)[Mama] were here. (if: $parentB is 0)[He](else:)[She] used to grill them so much better." Her eyes dart around to check if her (if: $parentA is 0)[father](else:)[mother] is in ear shot. "I don't usually like them this burnt," she whispers to you as you both finish off the plate. "But I guess there's a learning curve."<p>
You both head inside, a slightly more spring in your step, and your stumpy tail confidently wagging.
(show: ?end)
]
]
(else:)[
(link: "Slobber")[
Feeling extra motivated by the hot dogs, you begin to drool and slobber. You lean too far forward and begin dripping it on Emma's arm, in long, gooey tendrils.<p>
(set: $score to it + 1)
(replace: ?Link)[]
As soon as the first drop hits, she recoils and squeals.<p>
"$corgiName! Look what you did!" She gets up and stomps over to the napkins, wiping herself clean with a vengeance. She leaves her plate and heads inside, lost in thought, muttering about how gross that was.<p>
You inhale some of your wayward spittle before feasting on the last of the hot dogs, still wondering what you did wrong.
(show: ?end)
]
]
|end)[
(if: $score is 1)[
(set: $ep to (round: ($ep / 2)))
]
(set: $score to 0)
(set: $dayEP to $ep)
(set: $eventY to true)
<p>[[Sleep |main]]
]
}{
Basking in the warm afternoon sun, you gently float on your back in the kiddie pool, becoming in-tune with your inner otter. You lazily paddle your two back paws, with your front paws folded against your fluffy chest. Your stumpy tail adjusts to act as a rudder as you drift along the circle of the colorful, plastic tub. As you drift over the crossed legs of your girl, you flip an ear her way to catch her disgruntled sigh.<p>
"A whole ocean out there," she says, gazing across the villa's yard as it turned into shore, "and I'm stuck here in a kiddie pool with molded turtles." A small floatie toy bumps you and spins away as you paddle back towards your girl. Her hand finds your belly, and her touch softens, as does her tone. "I just don't understand why they don't trust me. If I'm old enough to have one less parent, I'm old enough to swim in the ocean, aren't I?"<p>
Your gaze darts between the sparkling, endless ocean where Emma's eyes are fixed, and the villa, where (if: $parentA is 0)[Dad](else:)[Mom] is moving around inside, busy with the dinner preparations. You're not sure how you feel, but you know you must keep Emma safe at all costs.
<p>
(if: $JOY > 3 and <= 6)[
(link: "Splash Playfully")[
With a gentle swoop of one fluff-webbed paw, you tentatively splash in Emma's direction, thus catching her eye. With her gaze focusing on you, you splash again with more fervor, and a small smirk works across her face. Wagging fast enough to cause a small tsunami (if only you had a gloriously long and fluffy tail, like your cousin, Cardigan, you briefly curse), you wiggle and wind up for a more devastating blow. Ready to unleash a wave of reckoning, you see your girl reach behind a pool noodle.<p>
(set: $score to it + 2)
(replace: ?Link)[]
"So, it's a war you want then?" Her full smile betrays the joy beneath her words, even if it does feel a little bit forced. In better days, her moves for the vicious water gun wouldn't have been so languid. But it's better than nothing, right? You do a barrel roll to the right, narrowly dodging the sun-warmed spray of water. With both paws flailing while you stand on your tippy toes, you rally back to the offensive while Emma giggles and shields using a water frisbee. Attacks and counters waged on both sides as the sun set, until (if: $parentA is 0)[Dad](else:)[Mom] called you inside for supper.<p>
"At least dry off first!" (if: $parentA is 0)[he](else:)[she] exclaimed, tossing a towel to Emma, which partly draped over your rotund corgi body as it landed. While the tone was chiding, you saw the small, relieved smile on (if: $parentA is 0)[his](else:)[her] face when Emma's laughter picked up again as she dries you both off.<p>
Some part of you feels like moments like this are finite, and you're moving on to more challenging days, but it's nice to be able to put a smile on your girl's face. No matter how brief.
(show: ?end)
]
]
(else-if: $JOY > 6)[
(link: "Somersault")[
You climb your way to the tippy top of the (either: "unicorn", "plesiosaur", "orca", "alligator", "shark") floatie and wiggle your fluffy rear to prepare for a pounce. You set the pouty Emma in your sights, and launch gracefully with your four stubby, yet powerful limbs. You catch a glorious breeze and begin the flip, tucking and rolling your elongated body with the force of an olympian. You splash down with a cannonball impact before being grasped by flailing human arms.<p>
(set: $score to it + 3)
(replace: ?Link)[]
Emma shrieks as she catches you, and when you breach the shallow kiddie pool water again and shake off the remaining drops, her shrieks peal into uncontrollable laughter. "Oh my goodness, $corgiName, what do you think you're doing!" Emma screeched, followed by a few coughs as she regained control of herself. She holds you close and says, "You're just lucky I caught you. You surprised me, that's for sure." Her laughter quiets to chuckles as she pets you, and you bask in the glow of joys days past. It feels like you've got your girl back again, and you're determined to keep that glow going - and beat back the shadowed blanket of sadness that threatens her. After all, that's your solemn duty, not only as a corgi, but as a canine bound to a human, isn't it?
(show: ?end)
]
]
(else:)[
(link: "Shark Bait")[
You sink subtly beneath the shallow waters with your fluffy tummy grazing the bottom of the plastic tub. You begin a slow doggy paddle, weaving between the floating toys. Your prey is in your sights as you round a (either: "majestic", "modest", "glorious", "grimy", "sun-bleached") battleship, and only the tip of your snout, your pointed ears, and the tip of your stubby tail breach the surface. Surely, victory will be in your grasp today. You twitch your tail as a rudder as you close in, ready for the |strike)[(text-style: "strike")[chomp]](link: "chomp")[(show: ?strike) nip].<p>
(set: $score to it + 1)
(replace: ?Link)[]
Emma jerks away from your grasping maw and examines her arm with wide eyes. "No, $corgiName!" She scrutinizes the scratchy indents as your ears droop. It hadn't been that hard, had it? "How could you?" You can hear the tears bubbling beneath Emma's strangled tone, and as they start to fall you try to crawl into her lap. She picks you up and places you outside the kiddie pool, soon following herself. As she dries off and heads to the villa, you trot on your stubby legs to keep up, but she purposefully outpaces you.<p>
She hides her face and clutches her arms in the towel as she heads inside, and she closes the patio door between you. You paw at it pathetically, but you can hear her hollow voice as she disappears inside.<p>
"I can't believe you would do that." Her shadow eclipses in the hallway, and you sit on the patio alone, wondering why you would have done that.
(show: ?end)
]
]
<br>
(if: $WIS > 3 and <= 6)[
(link: "Grab Towel")[
You grab the towel from the drying rack behind the kiddie pool, and give it a few tentative yanks. A growly noise emits from your throat as you struggle for victory (as is only natural). One yank, and it jitters. Two yanks, and the towel gives before it gets caught in a corner wedge. Three yanks, and with a rusty squeak it starts to tilt, and your entire corgi life flashes before your rounded, shining eyes.<p>
(set: $score to it + 2)
(replace: ?Link)[]
Emma looks in your direction just in time to see the drying rack start to tip in your direction. In a splash of water, she bounds up and catches it. She gives you an admonishing look as she sets it right and grabs the towel. It doesn't look so big and foreboding now that Emma is next to it. "$corgiName, what did you think you were doing?" she says, wrapping you both in the towel. "You could have really gotten hurt. You're so lucky I was there."<p>
As you both dry off and prepare to head inside for supper, you can't help but agree with her. You are indeed very lucky that she is here.
(show: ?end)
]
]
(else-if: $WIS > 6)[
(link: "Climb Floatie")[
There's no better distraction than an interesting expedition. You cast your gaze across all the toys at your disposal, and you set your sights on the obvious choice. Paddling over to the (either: "unicorn", "plesiosaur", "orca", "alligator", "shark") floatie, you begin to claw (click-prepend: "claw")[ (gently) ] your way up to the summit of that impressive, inflatable mountain. You reach the summit, and gaze down at Emma, who is still looking at the ocean. Your vision wavers, and your paws shake. You begin to wonder if this was a good idea after all.<p>
(set: $score to it + 3)
(replace: ?Link)[]
The next thing you see is Emma peering down at you, and you feel disoriented. How did you suddenly get flat on your back in your girl's arms? Why is (if: $parentA is 0)[Dad](else:)[Mom] there too? Odd warbling in the background comes into focus along with your dim vision, and you hear their worried voices. "I think $corgiName fainted," Emma says. "I just looked up in time when I heard some whimpering and a groan."<p>
"Silly dog," (if: $parentA is 0)[Dad](else:)[Mom] says while petting you. "I think it's time you both take a break."<p>
Your girl glances between you and the ocean a few times, and then sighs, getting up out of the kiddie pool. "I guess you're right," she says, and then mutters when you're both alone, "I guess you wouldn't do very well on the high seas, huh, $corgiName?"<p>
As much as you wish you could stick up for your own dignity, the proof is in the pudding, as (if: $parentB is 0)[Daddy](else:)[Mama] used to say. You only manage a small yip and whimper in defeat as you're carried inside, but you notice something else too. A small sense of resolution and contentment from your girl, and her small smile as she tucks you tighter into a towel.
(show: ?end)
]
]
(else:)[
(link: "Sink Battleship")[
You know what will get Emma's attention. It's a surefire plan, and you'll fight it with fire. Wait, was that the human saying? Anyways, you lock onto your target and propel yourself with all four stubby limbs towards an inevitable victory. The (either: "majestic", "modest", "glorious", "grimy", "sun-bleached") battleship is bobbing gently on the horizon (click-append: "horizon")[ of the kiddie pool's plastic boundaries]. As you speed towards your nautical prey, you scrape the bottom of the kiddie pool and launch yourself towards F8. Or is it D3?<p>
(set: $score to it + 1)
(replace: ?Link)[]
"$corgiName!" Is all you hear as the Splashening(TM) quakes the pool. Emma shrieks and raises her hands as the water cascades over the side of the pool, leaving the sunken battleship in the swirling mud. As the waves settle, all that's left is Emma's annoyed expression, and your lopsided canine smile. Wait, why isn't she as happy as you feel? But it was the perfect plan, right?<p>
Emma gets out of the kiddie pool and starts to dry herself off, yanking the dirty, besodden battleship from its muddy sinkhole of defeat. "What if you had wrecked this, $corgiName? (if: $parentB is 0)[Daddy](else:)[Mama] gave it to me for my birthday last year," she says, her eyes filling with tears. "Right before...," she looks away before continuing, her voice low and strange, "before everything changed." She rushes off to the villa, tracking mud and water, and you try to follow her, but your long and low body is slipping and sliding all the way. You don't make it in time before the patio door closes, and you're left there. Alone. To contemplate how you could have done better, and replaying that fateful birthday party in your mind.
(show: ?end)
]
]
<br>
(if: $CHA > 3 and <= 6)[
(link: "Doggy Paddle")[
You push off the side of the pool and start fervently giving it your best dog paddle - to and fro', to and fro', around the edge. Showing off your best moves to Emma will surely cheer her up. Each stubby limb gives its best push and pull motion, carrying your torpedo-like body smoothly through the water.<p>
(set: $score to it + 2)
(replace: ?Link)[]
Emma covers her mouth as she watches you, stifling a giggle. It breaks loose and gets your attention as she scoops you up. "You're right, $corgiName," she says, slicking your wet fur down. "I guess you're not ready for the ocean either. We'll just keep each other company here." Your ears level at her words indignantly, but it's probably not the worst outcome, after all.
(show: ?end)
]
]
(else-if: $CHA > 6)[
(link: "All Aboard!")[
At the beckoning of an imaginary ship whistle, you scamper up your girl's torso, resting against her shoulder. You snuggle in tight, shivering in the slight breeze from exiting the lukewarm water.<p>
(set: $score to it + 3)
(replace: ?Link)[]
Emma puts her arms around you, snuggling you close. You ignore her mutterings of wet dog smell as you both relax into the silence. "It's probably for the best," Emma says, holding you closer and petting softly. "If you can't handle the kiddie pool, it's best that I stay close for you." It's not exactly the sentiment you were going for, but it seems like the best you can accept. You give her a brief lick on the cheek, and then settle in until it's time to dry off and eat dinner.
(show: ?end)
]
]
(else:)[
(link: "Rubber Ducky")[
You see a rubber ducky float by, and you grip it in your maw. You squeak it to get your girl's attention, and the moist air comes out in a strangled squeak. Emma flinches, but doesn't focus on you right away. So you do it again. Longer. Louder.<p>
(set: $score to it + 1)
(replace: ?Link)[]
"Ugh! Okay, fine! Give!" Emma reaches out and tries to pry the toy from your jaws, but your inner instinct that resides within all canines tells you not to let go for dear life. To do so would be failure and dishonor. After a fervent, growly struggle, Emma huffs and gets out of the pool, grabbing her nearby towel. "Keep it then! I'm too old for stupid bath toys anyways. I'm going inside."<p>
Before you can even leap out and chase after her, she's already gone, and you're sitting there in a plastic puddle, wondering what you did wrong.
(show: ?end)
]
]
|end)[
(if: $score is 1)[
(set: $ep to (round: ($ep / 2)))
]
(set: $score to 0)
(set: $dayEP to $ep)
(set: $eventX to true)
<p>[[Sleep |main]]
]
}{
The crinkling of tarp and plastic, and the clattering of polyfiber poles makes an orchestrated cacophony to your winged corgi ears. While gnawing on a delicious leathery bone, you watch across the yard as your girl purposefully strides back and forth while hauling tent supplies. As she bends one pole into place and tries to slide the tent fabric upwards and out of her stunted reach, you hear (if: $parentA is 0)[Dad's](else:)[Mom's] voice from the patio.<p>
"Do you need any help, honey?" (if: $parentA is 0)[he](else:)[she] asks, then takes a sip of lemonade. With (if: $parentA is 0)[his](else:)[her] arms crossed over a robe, and eyes narrowed, you can feel the hesitation and helplessness emanating from (if: $parentA is 0)[him](else:)[her] as Emma struggles.<p>
"No!" Emma shouts back as the pole collapses. "I have to do this by myself!" She kicks a piece of the tarp, quite ineffectually, and stomps around to the other side and tries bending another pole into place. (if: $parentA is 0)[Dad](else:)[Mom] watches for a few moments more, and then heads inside.
<p>
(if: $JOY > 3 and <= 6)[
(link: "Fetch the Bendy Sticks")[
When you first see the poles being brought out of the casing, your eyes grow wide in wonder. What are these glorious, magnificent sticks? Who could possibly be worthy of fetching them? Is it you!? It is you!! You scamper over to the ones by the picnic table that Emma couldn't carry on the first trip, and you gather them up in your truncated maw. It's not exactly easy, but you're able to start hauling them off somewhere. A lair? A den? Where could your unequaled treasure go?<p>
(set: $score to it + 2)
(replace: ?Link)[]
As you're about to break the treeline into the sandy woods, you hear Emma's sigh of relief. "Oh, thank you, $corgiName." She bends down to pluck your prize from your grip. Startled, you give them up easily. Too easily. She bends down to pet you.<p>
"At least I'll always have you to help me, right?" Her warm touch lingers as her eyes shine in the descending twilight. As she heads back to the still misshapen tent, you nod to yourself. It wasn't that bad watching your incredible catch waltz away, especially if it made Emma happy, even for just a moment.
(show: ?end)
]
]
(else-if: $JOY > 6)[
(link: "Fetch the Stakes")[
You watch your girl carefully as the tent takes form. You follow her from corner to corner, helping as best a corgi can - well, okay, it's mostly moral support, but Emma seems to enjoy your company. Looking around for extra parts that may have been missed, you spy a smaller case and bring it over to her, trotting and wagging with all the pride a tent assistant can muster.<p>
(set: $score to it + 3)
(replace: ?Link)[]
Emma grabs the bag from you, and looks inside. Her eyes widen in surprise. "Oh, thank you, $corgiName! I can't believe I almost missed these." She pours the stakes into her hand, and goes around to stake down the tent. Now that it's mostly illuminated by the patio light, it's not half bad, you think. You can see (if: $parentA is 0)[Dad](else:)[Mom] peeking out the kitchen window at you both, and a small smile forming on (if: $parentA is 0)[his](else:)[her] face, thus mirroring Emma's own growing smile. She picks you up and you lean into her warmth.<p>
"We're almost done. Now we just have to get our bedding," she says, surveying her work. "I knew I could always count on you. As long as I have that, I think we'll all be okay."<p>
You yip in agreement, because you know you'll do anything to make that a reality for her.
(show: ?end)
]
]
(else:)[
(link: "Parachute Time")[
When you see the tarp fluttering in the wind, you know exactly what it can be. What it can do for you. It can make you... Super Corgi! You quickly dash around Emma's legs to grasp four corners in your maw. You vault onto the picnic table and take aim for the treacherous drop on the other side. You wiggle your fluffy rear in preparation for take-off, and dash forward, waiting for the tarp to fill and propel you upward. The sense of falling hits you too late as you crest the end of the table and launch yourself skywards.<p>
(set: $score to it + 1)
(replace: ?Link)[]
"$corgiName! No!" Emma shouts as she barely manages to catch you. By this point, you're terribly tangled in the traitorous tarp, and your limbs are tied beneath you. Your nose is tilted upside down, peering at the gravel and pinecones you were destined to nosedive into had Emma not caught you. Fidgeting around in your girl's tenuous grasp, you only wonder how the tarp hadn't inflated and taken flight.<p>
"What's wrong?" You hear (if: $parentA is 0)[Dad's](else:)[Mom's] voice coming through the kitchen window. (if: $parentA is 0)[He](else:)[She] peers out, kitchen towel slung over (if: $parentA is 0)[his](else:)[her] shoulder.<p>
"Nothing much," Emma says, untangling you and setting you down in the dirt unceremoniously. "Just $corgiName going rogue with the tarp, and messing it all up." She crosses her arms as a dark expression crosses her face. If looks could kill, you could only imagine that the glare cast at the tent would incinerate it. "I guess it just wasn't meant to be."<p>
She stomps inside, leaving the mess of a tent in the coming twilight, and you look around glumly at all the work there was to do. You just wanted Emma to have fun, and you can't imagine how it all went wrong.
(show: ?end)
]
]
<br>
(if: $WIS > 3 and <= 6)[
(link: "Collect Pinecones")[
You scurry the perimeter of the would-be campsite and start gathering up pinecones, precious little wooden treasures, and start stockpiling them on the far side of the fire pit. You dip and dive, weave and waver, scooping up every pinecone that you can see. Some honorable mention sticks make it into the pile too, along with a very attractive stone. After all, you're treasure hunting anyways, and there's no need to be picky right now.<p>
(set: $score to it + 2)
(replace: ?Link)[]
"Thanks for your help, $corgiName," Emma says while smoothing out the ground tarp. "The ground is much more level now. That'll be more comfortable to sleep on." She feels out a few corners with the toe of her shoe. "If we even get that far, that is." While her tone and the evidential mess around them betrayed her pessimism, there was a glimmer of enthusiasm starting to build too. Even if you don't get the tent up tonight, working side by side with Emma is worth it. If all you can lend is your company and pint-sized elbow grease, then so be it.
(show: ?end)
]
]
(else-if: $WIS > 6)[
(link: "Fetch Instructions")[
A light breeze kicks up, and some fluttering movement in your prey-driven peripheral vision catches your attention. You manage to pounce just in time, right before the leaflet of instructions crested over the discarded case. The wind whips more fervently against the trapped paper beneath your paws, and you can feel your prey start to loosen. You bark with gusto, thus determined to remain the victorious captor no matter the adversary. This is canine versus nature, and nature has nothing on you.<p>
(set: $score to it + 3)
(replace: ?Link)[]
But a little girl might. "Aww, thank you, $corgiName," Emma says, plucking the instructions from underneath your grasping paws. The sound of your indignant, defeated whine is engulfed by the wind. "This might get us back on track." She compares the illustrations in the instructions to the mess before you, and her face falls into doubt the more she looks. "Well, it's better than nothing, right?" You follow her gaze around the disheveled tarp and askew poles and lopsided stakes. At this rate, anything is better than nothing, and although she doesn't wait for your opinion before getting back to work, you can only nod in agreement.<p>
Your work is cut out for both of you, no doubt.
(show: ?end)
]
]
(else:)[
(link: "Lay on Tarp")[
The last of the afternoon's sun's ray are beating down on one side of the tarp Emma freshly laid out, and you're not willing to let that opportunity pass by. You swagger up to the sunny spot while Emma is otherwise occupied with unrolling the tent and constructing poles. You flew your paws and stretch your back legs, getting ready for a well-deserved sunbathing session. You line up your lengthy body with the illuminated square, then unceremoniously flop sideways onto the heated patch. The warmth is glorious, both from above and beneath, and you roll gently back and forth to reach all your cool spots. If anyone would ever doubt that a corgi could smile, all they need is to look at you right now.<p>
(set: $score to it + 1)
(replace: ?Link)[]
"$corgiName..." Emma groans, having dragged the tent over. "That's not exactly helpful right now." She nudges you gently several times, but you're too far away mentally to care. Perhaps Tahiti. She tries a few more times to bribe you off the tarp, and perhaps she briefly considers laying the tent over you. Not that it would do much to diminish the zen that afternoon rays have bestowed upon your sun-kissed fur. You vaguely hear the crunch of a little girl stomping away, but by the time you raise your chiseled snout to peer around, you've found yourself alone, with Emma nowhere in sight. The swish and clip of the patio door snapping shut is your only answer to your tentative yip.<p>
But you got what you wanted, right?
(show: ?end)
]
]
<br>
(if: $CHA > 3 and <= 6)[
(link: "Hammock Swing")[
While your girl is busy struggling with all manners of setting up a backyard campsite, you spy something far more inviting - a gently swinging hammock. With all watchful eyes otherwise preoccupied, you take the opportunity to slink up the patio steps, and then nimbly hop into the canvas sleep sack. Spread-eagled and trying to gain your balance so as to not flop off the other side into the unforgiving edge of the porch, you wait until the swinging slows before rolling over. Wiggling into position and drawing your short limbs close to you, you finally relax and begin soaking up the afternoon rays. A soft breeze tussles your fur and rocks the hammock, and before you know it, you feel yourself drifting on the edge of consciousness.<p>
Ah, this is the life. You briefly wonder what the poor canines are up to right now.<p>
(set: $score to it + 2)
(replace: ?Link)[]
"$corgiName?" Emma calls, but she sounds so very far away. Almost as far away as all your mortal worries. "$corgiName, where'd you go?" she calls again, and you let out an answering, languid yip. The sound of her soft giggling follows her footsteps onto the patio. Her shadow eclipses your sunbathing momentarily. "So there you are." It's so hard to open your eyes, but you peep one half-lidded eye at her as additional weight shifts you around the taut canvas.<p>
"This actually isn't a bad idea," she says, settling next to you. "I could use a break. I bet I'll get a lot more done once I have more energy." You wag in agreement as she cuddles you close, and you both drift off together. It's not exactly the day she had in mind, but it's a pleasant enough alternative, you think. Who needs a tent, anyways?
(show: ?end)
]
]
(else-if: $CHA > 6)[
(link: "Carry Flashlight")[
You watch Emma moving around the backyard, adjusting this, fixing that, clicking one pole into place, just to have another come loose. One panel is tightened, while another sags. An inopportune wind gusts at an unsecured flap. You can feel the tension building as Emma huffs and stomps around, and you watch for any opportunity to be helpful. You feel powerless as you sit there, watching the scene unfold, until the sun starts to fall towards its horizon. Then you spot the metallic glint of (if: $parentB is 0)[Daddy's](else:)[Mama's] flashlight on the picnic table, and you dash towards it, gripping the rubber handle in your maw. You triumphantly trot towards Emma, ready to be helpful and supportive.<p>
That is, until you trip.<p>
(set: $score to it + 3)
(replace: ?Link)[]
It's not easy carrying something almost as big as yourself, and this industrial flashlight is no different. When you reach the tarp where Emma is trying to bend a pole into place, you're not quite prepared and go sprawling. The flashlight spins end over end and clicks on, illuminating you in its fluorescent light. You yawn-yelp in surprise and pain, and your shadow's open maw flickering against the patio wall looks monstrous. Emma looks just in time to see it and giggles.<p>
"You look like a ravenous monster, $corgiName," she says, picking up the flashlight. By the way she grimaces, you know she recognizes it. "I remember when (if: $parentB is 0)[Daddy](else:)[Mama] bought this." She turned it over in her hands, feeling the texture. "(if: $parentA is 0)[Dad](else:)[Mom] thought (if: $parentB is 0)[he](else:)[she] was crazy for spending so much, but it's held up better than any flashlight we've ever had." Her face suddenly brightens, and a cheerfulness finds its way into her voice. "Hey, you remember when (if: $parentB is 0)[Daddy](else:)[Mama] showed us how to make shadow puppets with it? And morse code by flickering it on and off just right?"<p>
You feel it was rhetorical, but you nod just the same.<p>
"That was the best," Emma says, tears threatening to spill. "I just hope that part isn't over."<p>
You place a paw on her shoe to get her attention, and she bends down to pet you.<p>
"Thank you, $corgiName," she says, rubbing your velvety ears. "I know I'll always have you, and we have a lot of shadow puppets and hidden messages ahead of us. I just know it."
(show: ?end)
]
]
(else:)[
(link: "Tippy Tap Tarp")[
The crunch of Emma's shoes roaming over the tarp is almost too much to resist. The crinkling reminds you of the feeling you get with popping mailing bubbles, or spreading your furry toes through styrofoam packing peanuts. It's one of those deeply satisfying, yet inexplicable feelings that well up into you until you have to take action - Okay, fate really twisted your tail on this one. You trot over to the tarp, and perform your best rendition of your girl's favorite penguin movie all across the tarp.<p>
(set: $score to it + 1)
(replace: ?Link)[]
"Ugh, $corgiName, not now," Emma huffs, dropping the tent where she was working on it. "I can't concentrate with you doing that, and you're in my way anyways." She tries to drag the tent back onto the tarp, but your incessant tap dancing is no match for her. The melodious sounds of your fancy feet fleeting upon the fibrous fabric drown out her cries of fruitless frustration.<p>
By the time the curtain falls upon your performance, you realize that was just the falling canvas of the dilapidated tent. Emma is long gone, probably inside mourning the loss of her campsite aspirations, and furthermore, the belief that she could do anything if she put her mind to it.<p>
You sit on the tarp, which is quickly growing colder in the coming twilight, and you ponder how your fabulous and joyous dance could have possibly missed the mark on this one.
(show: ?end)
]
]
|end)[
(if: $score is 1)[
(set: $ep to (round: ($ep / 2)))
]
(set: $score to 0)
(set: $dayEP to $ep)
(set: $eventW to true)
<p>[[Sleep |main]]
]
}{
You and Emma trudge into the villa at night, shaking sand from your respective feet and paws. Emma tosses her towel at the door mat as she climbs onto a stool by the kitchen island. (if: $parentA is 0)[Dad](else:)[Mom] walks in to check on the sudden noise, and spots the discarded towel. (if: $parentA is 0)[He](else:)[She] snaps it up with a scowl on (if: $parentA is 0)[his](else:)[her] face.<p>
"Honey, that's not how we take care of things. You know better."<p>
"I'm sick of knowing better. That's for adults." Emma reaches for the cereal and a bowl but is quickly scolded.<p>
"You don't want to ruin your dinner."<p>
Her hand wavers on the box until (if: $parentA is 0)[Dad](else:)[Mom] heads to the laundry with the towel, and only for you to hear, she mutters under her breath – her voice shaky, "You've already ruined my life."<p>
With a quick check to make sure you're both alone, Emma gets up and walks over to the wall phone, tentatively lifting the receiver and looking at a phone number on the bulletin board. She dials it and brings the receiver to her ear. Her hand shakes. Her eyes widen as they focus on you. Like a co-conspirator, she brings her finger to her lips and shushes you, although you've sat patiently, and not made a peep.<p>
With your super corgi hearing, you can hear the dial tone flatline, and Emma whispers, "(if: $parentB is 0)[Daddy](else:)[Mama]?"<p>
There's no answer, and she hangs up the phone. Her shoulders slump, and her eyes dim as she trudges into the living room and you slowly follow.
<p>
(if: $JOY > 3 and <= 6)[
(link: "Grab Toy")[
Desperate for anything to cheer Emma up, you scan the humble living room and your gaze rests on a toy chest in the corner. Long-forgotten by Emma, but religiously cleaned by (if: $parentA is 0)[Dad](else:)[Mom], you nose your way inside the lid and search around for anything viable. You smell for her strongest scent, looking for a favorite toy. You find it, and your tail wags furiously in victorious glee. You gently lift it up and ease yourself out of the toy chest, and then scurry over to Emma. You lift your front end onto the couch and ceremoniously present her with the stuffed (either: "sheep", "cow", "pig", "cat", "rabbit").<p>
(set: $score to it + 2)
(replace: ?Link)[]
It takes Emma a minute to recognize your presence, much less your present. When she does, a small smile quirks at her mouth as she brings the toy closer into view. She runs her fingers through the soft fur, tracing the seams, and examining the tag. "It's been a long time since I've seen this," she finally says, and you excitedly tippy tap your paws. "Do you remember when (if: $parentB is 0)[Daddy](else:)[Mama] gave this to me? Golly, that was so long ago." She holds it close to herself, and chokes down a sob. You rest your head on her knee, waiting to help however you can. She rests a hand on your head and gently pets.<p>
"Thank you, $corgiName. But mostly for being here."<p>
You wag slowly and lick her hand. That's all you ever wanted.
(show: ?end)
]
]
(else-if: $JOY > 6)[
(link: "Paw at Remote")[
You watch as Emma blankly stares at the flashing pictures on TV. She doesn't even try to scroll through the shows, and you're not sure if she's actively watching it. You pad over to the modest dining table and paw at the remote, remembering which ones the humans use most. You tap and paw at the buttons, getting nowhere fast, but eventually one of the buttons has some sort of effect. The screen goes black, then blue, and then a picture starts playing. You oddly recognize this movie, although the details are fuzzy.<p>
(set: $score to it + 3)
(replace: ?Link)[]
Emma scoops you up and brings you into her lap as she grabs the remote too. "Hey, I didn't know you knew how to do that," Emma says. "Unless you really just wanted to watch the DVD." As the opening credits roll, her breath catches. "Oh, we haven't seen this since... you know, before." The opening melody plays and she holds you tighter. "I guess we left it in the DVD player from last time. You remember how much (if: $parentB is 0)[Daddy](else:)[Mama] loved watching it with us."<p>
You don't remember, exactly, but you're willing to play along. That's what corgis are best at, after all. You relax into Emma's hold and you watch the movie unfold, listening to her commentary of days past. Eventually, (if: $parentA is 0)[Dad](else:)[Mom] joins you after realizing what you're watching, and you all cuddle together on the couch. Some tears manage to escape, but with each one, the pain collectively lessens.
(show: ?end)
]
]
(else:)[
(link: "Tug of War")[
As she settles onto the couch, you feel lost at what to do. You don't like this feeling of dread and hopelessness emanating from her, and it's resting in the pit of your stomach. You just want to make your girl happy again. You want to play like you used to when she was younger, and carefree. Whatever it is, it has to happen now, you decide. You target the only thing you can reasonably reach, the hem of her shorts, and begin to growl and tug. You move back and forth, putting on a show whipping your head side to side, but you're not really in it to win it. You just want her attention. You hope your energy and your bounding leaps instills some sense of joy in her.<p>
(set: $score to it + 1)
(replace: ?Link)[]
"Ugh, $corgiName, no." Emma swats you away, barely bothering to move. You keep up the offense, and then she snaps at you. "I said, no!" At the sudden raising of her voice, you quickly back off, as if you were stung. Emotionally stung, at least. Emma pulls herself into the fetal position, and rocks herself while silently starting to cry.<p>
You try to clamor up there to cuddle, but it's already too late. She shoos you away, almost roughly, and you limp away dejectedly to lay down on the rug. All you can do is watch now as she cries herself to sleep, and you're not sure what else you could have done better. But you know it wasn't this.
(show: ?end)
]
]
<br>
(if: $WIS > 3 and <= 6)[
(link: "Lap Cuddles")[
You can feel the wave of sadness crashing over you, just as you're sure it's wrecking your favorite human. You sit beside the couch forlornly, ears drooping, stubby tail still. You're just not really sure what to do, but you know what you want to do - comfort yourself as much as you hopefully comfort her. Sometimes, it's the simplest solution that's best. You nose your way up onto the couch, one limb sneakily at a time until you make your way into her lap.<p>
(set: $score to it + 2)
(replace: ?Link)[]
Emma doesn't react much at first, just staring at the TV as it goes to commercial. But eventually, her hand comes up to caress the fur around your neck, and then your soft, velvety ears. You murmur softly at the touch, and she pulls you closer for a hug with your snout resting on her shoulder.<p>
"I'm sorry, $corgiName," she whispers. "I don't know where it all went wrong, but I guess both of us have to get used to coming from a broken home." You lick calmly at her neck and ear, and she leans against you. "At least I'll always have you."<p>
She always will, you vow.
(show: ?end)
]
]
(else-if: $WIS > 6)[
(link: "Grab Blanket")[
You think you know just what your girl needs. Sometimes, sad feelings can only be felt and you have to lean into the ennui. Ice cream is usually best for these situations, but the closest thing you have is the fleece blanket draped across the top of the couch. You hoist yourself up with tremendous effort, and crawl across the fetal position of your smallest human. Gripping the blanket in your muzzle, you drag it across you both and settle into the crook of Emma's arm.<p>
(set: $score to it + 3)
(replace: ?Link)[]
At first you don't expect any reaction or acknowledgement from her, but after a few moments she reaches up and situates that blanket over you better. Then, she pulls you closer for a tighter cuddle. You can feel the sobs racking against you as she tries to hold them back, but you lick her hand, telling her it's okay to let go. Sometimes, that's all you can do. She cries against you, snotting in your fur (but you don't care - it'll wash), and you lay there offering your company and your warmth. It's all you have right now, and as it turns out, all she needs. As the TV shows eclipse each other throughout the rest of the day, her sobs quiet, and her breathing slows. Not long after, she is asleep beside you, and the only movement is (if: $parentA is 0)[Dad](else:)[Mom] checking in on her from time to time.<p>
Later, when (if: $parentA is 0)[Dad](else:)[Mom] helps her to bed, she sleepily swipes at her crusty, red-rimmed eyes and beckons to you to follow. You gladly oblige, and low enough for only you to hear, she says, "Thank you, $corgiName. I needed that."<p>
Then she drifts off for her first restful sleep for that entire vacation.
(show: ?end)
]
]
(else:)[
(link: "Chew Photo Frame")[
The waves of sadness rolling off of your girl are hard to handle, and you start feeling antsy. And when you feel this anxious, you want to give in to your bad habits too. You want to indulge, something, anything, that will take this feeling away. Sitting next to Emma on the couch, you spy something on the end table. It's a family photo, housed in the nice wooden frame. The one with the pleasing texture, and the gnawable corners. Your eyes dart around for any witnesses, but Emma is staring blankly off into space. You reason you can probably get away with it, and then you wiggle-scoot your way down the length the couch. Your jaws opening more the closer you get, until you can clutch and chew that deliciously tender frame. An arts and craft project has never been so tantalizing. It could only taste better if it were graded.<p>
(set: $score to it + 1)
(replace: ?Link)[]
Your nose being bopped, and the frame being yanked away almost immediately scares you out of your skin. You twirl and yip, snapping into defense mode - flight or fight. Your calmness evaporates with the absence of your comfort item, and you see Emma crying and clutching the frame. Looking closer, you see it's the last picture taken of everyone together as a family. How could you have missed that? Nonetheless, you feel as if she's overreacting a bit... you were just having a harmless chew.<p>
"Oh, $corgiName, how could you? You're a bad dog." Her words are strangled by tears, and her fingers roam the newly minted teethmarks on the frame, but those words cut you through to your soul. She couldn't have meant that, could she? No, she couldn't have. You're not a bad dog. You love your family, and you only ever try to protect and care for your girl. She's just distraught.<p>
You try to cuddle closer to comfort her, because the tears are falling hard and free now, but she doesn't let you get close. She shoves the frame in front of your snout and through her sobs exclaims, "See? See what you did?"<p>
Looking at her up and down, withdrawn and clutching the frame, sobbing with abandon on the couch, yes, you do see what you did. And you've never felt sorrier in your entire canine life. Her words of being a bad dog linger to haunt you, and you can only think that they will for a very long time.
(show: ?end)
]
]
<br>
(if: $CHA > 3 and <= 6)[
(link: "Speak")[
You sit in front of the couch where Emma is curled up, and prepare for your best vocalizations. Somewhere between a bark and a yip, and something akin to a groan, you begin doing your best human impression that you can muster. You learned this skill from a husky some time before, and it's usually a showstopping move with the humans. You must be doing something right, because Emma finally sits up and peeks over at you.<p>
(set: $score to it + 2)
(replace: ?Link)[]
She pats the seat next to her, and you know that's your cue. You hop up onto the couch (after checking to make sure that (if: $parentA is 0)[Dad](else:)[Mom] is still preoccupied with the laundry or similarly domestic duties) and sit beside your girl, continuing your low guttural vocalizations. Her face brightens and she pets you.<p>
"Wow, $corgiName. It almost sounds like you're saying 'I love you', but I know that's silly." Still, her hand trembles as she pets you. "But just in case, I want you to know that I love you too."<p>
As you settle in for cuddles, you knew there was never any doubt.
(show: ?end)
]
]
(else-if: $CHA > 6)[
(link: "Perform Tricks")[
You yip (either: "chastely", "politely", "softly", "demurely", "pleasantly"), just enough to get Emma's attention as you begin your routine. You haul your long body up on your haunches for your cutest, most treat-winning beg. Emma looks just in time to see your stubby, round paws flailing, but she doesn't seem all that impressed. So, you land on all fours and begin chasing your elusive tail, which you vow to one day obtain. Alas, it eludes you this time, although your fervent spinning coaxes a giggle out of Emma. Buoyed by her increased interest, you sit for the showstopper. With Emma's eyes on you, your rear wiggles against the ground as your legs tense. Then you launch yourself, leaning backwards and tucking your head back. Once your legs and fluffy rear clear the orbit, you easily bring yourself back around in a complete (if not a little sloppy) backflip and land wobbily on all fours.<p>
(set: $score to it + 3)
(replace: ?Link)[]
"Holy smokes, $corgiName!" Emma sits upright and applauds for you and then scoops you up for a hug and pets. "I didn't realize you could do all that." You yip and lick her face, just happy that she sounds happy. "I bet (if: $parentB is 0)[Daddy](else:)[Mama] was the one that taught you all those neat tricks, right?" You stare blankly back at her, your tongue lolling out while you pant. "Yeah, I bet it was," she answers herself. "(if: $parentA is 0)[Dad](else:)[Mom] is always too busy for things like that, but (if: $parentB is 0)[Daddy](else:)[Mama] loved it. I think we can keep going with your training, and then next time we see (if: $parentB is 0)[Daddy](else:)[Mama] we'll really surprise (if: $parentB is 0)[him](else:)[her] with your training, okay?"<p>
You don't really understand the implications of what Emma is proposing, but it sounds like treats will be involved. At any rate, just hearing Emma excited and happy is enough to make your day, so you're ready to go along with anything. Your fervent wagging is enough to signal as much, and Emma spends the rest of the day planning out your future trick training routine. Giving her something to look forward to is enough for you, and you hope you always do so.
(show: ?end)
]
]
(else:)[
(link: "Slapstick Comedy")[
Even though Emma is hunkered down on the couch and buried in some of the throw pillows, you decide to rely on a childhood classic. You weave around the living room floor, hoping to cross into her line of sight as she stares languidly at the flashing TV. You purposefully trip numerous times, landing in comical pratfalls. Many times, your fluffy rear end achieving significant altitude (relatively speaking), and your skills as a canine contortionist are put to the test. Reinacting her favorite childhood cartoons as you flop around, and fall all over yourself, the only thing missing are the cartoon canaries circling your corgi crown.<p>
(set: $score to it + 1)
(replace: ?Link)[]
Alas, Emma's only acknowledgement comes in the form of admonishment.<p>
"$corgiName, I'm just not feeling up to it today. That's kid humor anyways." She sinks lower into the couch, and turns up the volume on the TV. You sit in front of her, exhausted, and a tiny bit sore from your performance, but more than anything, utterly lost on what to do. If that childhood staple turned out to be a dud, you're not sure what's left in your "human's best friend" arsenal. If you can't wipe away your human's sadness, you're just not sure what your purpose is anymore, and you lay down forlornly in front of the couch. At least her misery now has company.
(show: ?end)
]
]
|end)[
(if: $score is 1)[
(set: $ep to (round: ($ep / 2)))
]
(set: $score to 0)
(set: $dayEP to $ep)
(set: $eventV to true)
<p>[[Sleep |main]]
]
}{
You wander around inside the villa, following your snoot as you search for your girl. Your little paws with their delicate nails click-clack over wooden tile, and your little paw pads squish tenderly over coarse carpet. You go from room to room, wondering what adventures Emma is getting up to without you. You hear the sniffling first. Then you see the pile of blankets as you nose into her bedroom.<p>
On a beautiful day like today, and she hasn't even gotten out of bed? You tumble among the comforter with her, and she holds you close. Possibly she feels your sentiment, because she says, "There didn't really seem like much point today."<p>
The TV is playing a movie on low volume and you recognize it. It was one of her favorites as a small child, and she always got to watch it when she was sick. (if: $parentB is 0)[Daddy](else:)[Mama] was always sure to put it on for her.<p>
The scene changes in the movie, and Emma whispers while she rubs your velvety ear, "You remember this part, don't you, $corgiName?"
<p>
(link: "Joy")[
(if: $JOY > $WIS and $CHA)[
Good
(set: $score to it + 2)
(replace: ?Link)[]
(show: ?end)
]
(else:)[
Bad
(set: $score to 1)
(replace: ?Link)[]
(show: ?end)
]
]<br>
(link: "Wise")[
(if: $WIS > $JOY and $CHA)[
Good
(set: $score to it + 2)
(replace: ?Link)[]
(show: ?end)
]
(else:)[
Bad
(set: $score to 1)
(replace: ?Link)[]
(show: ?end)
]
]<br>
(link: "Charisma")[
(if: $CHA > $WIS and $JOY)[
Good
(set: $score to it + 2)
(replace: ?Link)[]
(show: ?end)
]
(else:)[
Bad
(set: $score to 1)
(replace: ?Link)[]
(show: ?end)
]
]
|end)[
(if: $score is 1)[
(set: $ep to (round: ($ep / 2)))
]
(set: $score to 0)
(set: $dayEP to $ep)
(set: $eventU to true)
<p>[[Sleep |main]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Fountain Bucket")[
(replace: ?display2)[
You're now using the Fountain Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a fountain right in the center, which is flanked on the north side by castles. There is a gate on the south edge, with a wall on each side of it.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 3)[
(set: $sandcastle to it + 1)
]
(if: $w is 3)[
(set: $sandcastle to it + 1)
]
(if: $sw is 0)[
(set: $sandcastle to it + 1)
]
(if: $n is 3)[
(set: $sandcastle to it + 1)
]
(if: $c is 2)[
(set: $sandcastle to it + 1)
]
(if: $s is 1)[
(set: $sandcastle to it + 1)
]
(if: $ne is 3)[
(set: $sandcastle to it + 1)
]
(if: $e is 3)[
(set: $sandcastle to it + 1)
]
(if: $se is 0)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scB"))
<p>
[[Leave|beach]]
]
}{
(if: $scDaily is false)[
As you and Emma stroll along the beach, watching some other happy families drift and play, you feel the waves of sadness lapping at Emma's spirit. You nudge her, almost toddling over, and Emma glances at you, giggling before she leans down to lift you back into balance.<p>
"You're right, $corgiName," she says, scanning the area. "I did bring my toys to build sandcastles. Here, look at this one I dreamed up last night..." she trails off while rifling through her tote bag. "Do you want to help me build it?"<p>
(link: "Wag and Nod")[
(go-to: (either: ...$sc))
]<br>
[[Tilt Head and Walk Away Slowly|beach]]
]
(else:)[
"I don't have a new drawing yet," Emma says as you approach the crumbling sandcastle from before. "It's beautiful, isn't it?" A small smirk mars her face. "Even though it's ruined, the imprint of it is still there. That's probably what memories are good for, to keep the memory alive, right, $corgiName?"<p>
You put a paw on her foot, reassuring her the only way you know how. You both watch some of the other families play and relax together, and then you're both [[ready to go|beach]].
]
(if: $doubloonArea is 7)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Turret Bucket")[
(replace: ?display2)[
You're now using the Turret Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a turret at the north and south points, and a gate similarly east and west. There's a castle exactly in the middle, and a wall at each corner.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 0)[
(set: $sandcastle to it + 1)
]
(if: $w is 1)[
(set: $sandcastle to it + 1)
]
(if: $sw is 0)[
(set: $sandcastle to it + 1)
]
(if: $n is 2)[
(set: $sandcastle to it + 1)
]
(if: $c is 3)[
(set: $sandcastle to it + 1)
]
(if: $s is 2)[
(set: $sandcastle to it + 1)
]
(if: $ne is 0)[
(set: $sandcastle to it + 1)
]
(if: $e is 1)[
(set: $sandcastle to it + 1)
]
(if: $se is 0)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scC"))
<p>
[[Leave|beach]]
]
}{
Emma Scenario Text Event A
<p>
(if: $JOY > 3 and <= 6)[
(link: "Joy")[
Corgi Reaction Text
(set: $score to it + 2)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
(else-if: $JOY > 6)[
(link: "Joy")[
Corgi Reaction Text
(set: $score to it + 3)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
(else:)[
(link: "Joy")[
Corgi Reaction Text
(set: $score to it + 1)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
<br>
(if: $WIS > 3 and <= 6)[
(link: "Wise")[
Corgi Reaction Text
(set: $score to it + 2)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
(else-if: $WIS > 6)[
(link: "Wise")[
Corgi Reaction Text
(set: $score to it + 3)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
(else:)[
(link: "Wise")[
Corgi Reaction Text
(set: $score to it + 1)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
<br>
(if: $CHA > 3 and <= 6)[
(link: "Charisma")[
Corgi Reaction Text
(set: $score to it + 2)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
(else-if: $CHA > 6)[
(link: "Charisma")[
Corgi Reaction Text
(set: $score to it + 3)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
(else:)[
(link: "Charisma")[
Corgi Reaction Text
(set: $score to it + 1)
(replace: ?Link)[]
Emma Reaction Text
(show: ?end)
]
]
|end)[
(if: $score is 1)[
(set: $ep to (round: ($ep / 2)))
]
(set: $score to 0)
(set: $dayEP to $ep)
(set: $eventA to true)
<p>[[Sleep |main]]
]
}{
(set: $rand to (random: 1,5))
It's a little dusty, but it's perfect for storing sacred treasures close to Emma's heart. All her prized possessions will fit in here nicely.<p>
There's currently open space for (if: $trinkets is 0)[3](else-if: $trinkets is 1)[2](else-if: $trinkets is 2)[1](else:)[0] more object(unless: $trinkets is 2)[s].
(if: $trinketA is true)[<p>On the far left is a worn battleship, with stories of glory held within its tarnished hull.<p>]
(if: $trinketB is true)[<p>In the center, there's a luminescent rock with a soft teal glow. Its smooth surface is soothing to touch.<p>]
(if: $trinketC is true)[<p>On the far right is a stuffed dog. It's not as cute as you, but it was a worthy predecessor. Well-worn, and well-loved.]
<p>There's a small leather-tied diary with Emma's handwriting inside. On today's page it says:
(if: $achievementA is true)[
<br>**//All Trinkets Found//**
]
(if: $achievementB is true)[
<br>**//Shanty Upgraded to Max//**
]
(if: $achievementC is true)[
<br>**//Rusty Doubloon Found//**
]
<p>
(if: $rand is 1)[
//Dear Diary,<p>
Today was alright. The weather was nice, and the clouds were fluffy. We had (either: "hot dogs", "burgers", "tuna sandwiches", "salad", "pizza") for lunch today. I gave some to $corgiName, and it was nearly inhaled.<p>
Love, Emma//
]
(else-if: $rand is 2)[
//Dear Diary,<p>
I've been trying to explore more lately, but I get lost easily. It's great that I have $corgiName with me at least. I always feel safe.<p>
Love, Emma//
]
(else-if: $rand is 3)[
//Dear Diary,<p>
Tonight after dinner and before bed, I tried painting some more. (if: $parentA is 0)[Dad](else:)[Mom] bought me some canvas and acrylics, so I've been practicing. Today I painted (either: "the shoals", "the woods", "a fawn", "a raccoon", "(print: $corgiName)", "a rabbit", "the boardwalk", "a gopher wearing a construction hat"), and I think it turned out pretty okay.<p>
Love, Emma//
]
(else-if: $rand is 4)[
//Dear Diary,<p>
I had a nightmare last night. I couldn't find (if: $parentA is 0)[Dad](else:)[Mom] or (if: $parentB is 0)[Daddy](else:)[Mama]. I could hear $corgiName barking from far away, but it was like I couldn't move or see. I've never been more glad to wake up. <p>
Love, Emma//
]
(else-if: $rand is 5)[
//Dear Diary,<p>
I actually had a good day today, all things considering. When I'm not busy playing with $corgiName, I've been listening to (if: $parentA is 0)[Dad's](else:)[Mom's] meditation tapes. I think they help, but we'll see.<p>
Love, Emma//
]
<p>[[Close Cabinet|shanty]]
}{
(align:"=><=")+(box:"X")[<h2>Summary</h2>]
<p>
You were on vacation for $days day(unless: $days is 1)[s].<br>
You ended with $seashells seashells.<br>
Your shanty was level $shanty.<br>
You found $trinkets trinkets.<br>
You completed $chievos achievements.
<p>
(align:"=><=")+(box:"X")[<h2>[[Restart?|init]]</h2>]
}{
**You have $seashells seashells.**<p>
Outside the shanty, you see a gopher hard at work, wearing a yellow construction hat. When it catches your eye, it waves you over. With a fair bit of gesturing, you work out that it's willing to upgrade your shanty in exchange for seashells.<p>
(unless: $shanty is 4)[
(if: $seashells >= 50)[
(link: "Upgrade: 50 Seashells")[
(set: $shanty to it + 1)
You have upgraded your shanty by one level. The gopher thanks you for your business.
(set: $seashells to it - 50)
(if: $shanty is 4)[
(set: $achievementB to true)
(set: $chievos to it + 1)
<p>^^//Achievement Unlocked//^^
]
]
]
(else:)[
You don't have enough seashells for this. It costs 50 seashells per upgrade.
]
]
(else:)[
Your shanty is upgraded as much as this gopher is skilled. Congrats on living in the lap of luxury!
]
(if: $doubloonArea is 10)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
<p>[[Back|shanty]]
}{
You've heard the stories of Swashbuckler's Cove, and you see the broken sign leading the way down the rocky beach. You get close enough to see the lip of the cave, but the tide is high, and Emma looks scared. It probably isn't safe to continue right now, but you can't help but wonder what secrets lie inside.
(if: $trinketA is false)[
<p>Feeling a burst of courage, you carefully lead Emma through the rockier parts of the shoal. Your persistance is rewarded when you see a glint reflecting in the summer sun. A |trinketA>[toy] is wedged between two rocks. Should you rescue it from the lapping waves?<p>
]
(click: ?trinketA)[
(set: $trinketA to true)(set: $trinkets to it + 1)//Battleship Trinket located.//
(if: $trinkets is 3)[(set: $achievementA to true)(set: $chievos to it + 1)<br>^^//Achievement Unlocked//^^]
]
(if: $doubloonArea is 5)[
<p>
You see a glint of metal peeking out of the ground. Should you dig?
(click: "dig")[
You found a rusty doubloon!
(set: $doubloon to true)(set: $chievos to it + 1)
(set: $achievementC to true)
(set: $doubloonArea to 0)
]
]
<p>[[Head Back|shanty]]
}{
=><=
<u>Scores</u><br>
Yours | Theirs<br>
[$points | $pointsOP]<points|
---
<==
<p>
|display1>[The $opponent squares up on the opposite side of the net.]
<p>
|display2>[You flex your furry toes in the sand, relishing in the grip.]
<p>
(hook: "flip")+(link: "Coin Flip")[
(if: (random: 0,1) is 0)[
(Heads) You lost the serve...
(set: $serve to false)
(click: " serve")[
(if: $opponent is "crab")[
(display: "volleyEasy")
]
(else-if: $opponent is "seagull")[
(display: "volleyMed")
]
(else:)[
(display: "volleyHard")
]
(replace: ?flip)[]
]
]
(else:)[
(Tails) You won the serve!
(set: $serve to true)
(click: " serve")[
(if: $opponent is "crab")[
(display: "volleyEasy")
]
(else-if: $opponent is "seagull")[
(display: "volleyMed")
]
(else:)[
(display: "volleyHard")
]
(replace: ?flip)[]
]
]
]
(live: 500ms)[
(if: $opponent is "crab")[
(if: $points >= 6 or $pointsOP >= 6)[
(set: $ball to 0)
(replace: ?display2)[]
(replace: ?display1)[
The game is over!<p>
(link-goto: "Game Over", "vball end")
]
]
]
(else-if: $opponent is "seagull")[
(if: $points >= 12 or $pointsOP >= 12)[
(set: $ball to 0)
(replace: ?display2)[]
(replace: ?display1)[
The game is over!<p>
(link-goto: "Game Over", "vball end")
]
]
]
(else:)[
(if: $points >= 16 or $pointsOP >= 16)[
(set: $ball to 0)
(replace: ?display2)[]
(replace: ?display1)[
The game is over!<p>
(link-goto: "Game Over", "vball end")
]
]
]
]
}{
(if: $serve is false)[
(replace: ?display1)[
The ball (either: "speeds", "hurtles", "launches", "blazes", "rushes", "bolts", "dashes", "zips", "races", "barrels", "careens", "zooms", "whirls", "rockets") towards you!
]
(replace: ?display2)[
(link-repeat: "Bump")[
(if: $ball is 0)[
(if: (random: 1,10) <= 6)[
(replace: ?display1)[
You bump the ball!
(set: $ball to 1)
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyEasy")
]
]
(replace: ?display2)[]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyEasy")
]
]
(replace: ?display2)[]
]
]
|
(link-repeat: "Set")[
(if: $ball is 1)[
(if: (random: 1,10) <= 8)[
(replace: ?display1)[
You set the ball!
(set: $ball to 2)
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyEasy")
]
]
(replace: ?display2)[]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyEasy")
]
]
(replace: ?display2)[]
]
]
|
(link-repeat: "Spike")[
(if: $ball is 2)[
(replace: ?display1)[
You spike the ball!
(set: $ball to 3)
(click: " spike")[
(set: $ball to 0)
(set: $serve to true)
(display: "volleyEasy")
]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyEasy")
]
]
(replace: ?display2)[]
]
]
]
]]
(else:)[
(replace: ?display1)[
The ball (either: "speeds", "hurtles", "launches", "blazes", "rushes", "bolts", "dashes", "zips", "races", "barrels", "careens", "zooms", "whirls", "rockets") toward the $opponent!
]
(replace: ?display2)[
(if: (random: 1,10) <= 5)[
The $opponent bumps the ball!
(click: " bumps")[
(replace: ?display2)[
(if: (random: 1,10) <= 5)[
The $opponent sets the ball!
(click: " sets")[
(replace: ?display2)[
(if: (random: 1,10) <= 5)[
The $opponent spikes the ball!
(set: $serve to false)
(click: " spikes")[
(display: "volleyEasy")
]
]
(else:)[
(replace: ?display1)[
The $opponent prepares to spike the ball but misses!
]
(replace: ?display2)[
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyEasy")
]
]
]
]
]
]
(else:)[
(replace: ?display1)[
The $opponent prepares to set the ball but misses!
]
(replace: ?display2)[
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyEasy")
]
]
]
]
]
]
(else:)[
(replace: ?display2)[
The $opponent prepares to bump the ball but misses!<br>
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyEasy")
]
]
]
]
]
}{
(if: $serve is false)[
(replace: ?display1)[
The ball (either: "speeds", "hurtles", "launches", "blazes", "rushes", "bolts", "dashes", "zips", "races", "barrels", "careens", "zooms", "whirls", "rockets") towards you!
]
(replace: ?display2)[
(link-repeat: "Bump")[
(if: $ball is 0)[
(if: (random: 0,1) is 0)[
(replace: ?display1)[
You bump the ball!
(set: $ball to 1)
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyMed")
]
]
(replace: ?display2)[]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyMed")
]
]
(replace: ?display2)[]
]
]
|
(link-repeat: "Set")[
(if: $ball is 1)[
(if: (random: 1,4) <= 3)[
(replace: ?display1)[
You set the ball!
(set: $ball to 2)
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyMed")
]
]
(replace: ?display2)[]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyMed")
]
]
(replace: ?display2)[]
]
]
|
(link-repeat: "Spike")[
(if: $ball is 2)[
(unless: (random: 1,10) is 1)[
(replace: ?display1)[
You spike the ball!
(set: $ball to 3)
(click: " spike")[
(set: $ball to 0)
(set: $serve to true)
(display: "volleyMed")
]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyMed")
]
]
(replace: ?display2)[]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyMed")
]
]
(replace: ?display2)[]
]
]
]
]
(else:)[
(replace: ?display1)[
The ball (either: "speeds", "hurtles", "launches", "blazes", "rushes", "bolts", "dashes", "zips", "races", "barrels", "careens", "zooms", "whirls", "rockets") toward the $opponent!
]
(replace: ?display2)[
(if: (random: 1,10) <= 6)[
The $opponent bumps the ball!
(click: " bumps")[
(replace: ?display2)[
(if: (random: 1,10) <= 6)[
The $opponent sets the ball!
(click: " sets")[
(replace: ?display2)[
(if: (random: 1,10) <= 6)[
The $opponent spikes the ball!
(set: $serve to false)
(click: " spikes")[
(display: "volleyMed")
]
]
(else:)[
(replace: ?display1)[
The $opponent prepares to spike the ball but misses!
]
(replace: ?display2)[
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyMed")
]
]
]
]
]
]
(else:)[
(replace: ?display1)[
The $opponent prepares to set the ball but misses!
]
(replace: ?display2)[
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyMed")
]
]
]
]
]
]
(else:)[
(replace: ?display2)[
The $opponent prepares to bump the ball but misses!<br>
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyMed")
]
]
]
]
]
}{
(if: $serve is false)[
(replace: ?display1)[
The ball (either: "speeds", "hurtles", "launches", "blazes", "rushes", "bolts", "dashes", "zips", "races", "barrels", "careens", "zooms", "whirls", "rockets") towards you!
]
(replace: ?display2)[
(link-repeat: "Bump")[
(if: $ball is 0)[
(if: (random: 1,10) <= 7)[
(replace: ?display1)[
You bump the ball!
(set: $ball to 1)
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyHard")
]
]
(replace: ?display2)[]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyHard")
]
]
(replace: ?display2)[]
]
]
|
(link-repeat: "Set")[
(if: $ball is 1)[
(if: (random: 1,10) <= 8)[
(replace: ?display1)[
You set the ball!
(set: $ball to 2)
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyHard")
]
]
(replace: ?display2)[]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyHard")
]
]
(replace: ?display2)[]
]
]
|
(link-repeat: "Spike")[
(if: $ball is 2)[
(unless: (random: 1,10) is 1)[
(replace: ?display1)[
You spike the ball!
(set: $ball to 3)
(click: " spike")[
(set: $ball to 0)
(set: $serve to true)
(display: "volleyHard")
]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyHard")
]
]
(replace: ?display2)[]
]
]
(else:)[
(replace: ?display1)[
You miss and the ball fumbles...
(set: $pointsOP to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(set: $ball to 0)
(click: " fumbles")[
(display: "volleyHard")
]
]
(replace: ?display2)[]
]
]
]
]
(else:)[
(replace: ?display1)[
The ball (either: "speeds", "hurtles", "launches", "blazes", "rushes", "bolts", "dashes", "zips", "races", "barrels", "careens", "zooms", "whirls", "rockets") toward the $opponent!
]
(replace: ?display2)[
(if: (random: 1,10) <= 8)[
The $opponent bumps the ball!
(click: " bumps")[
(replace: ?display2)[
(if: (random: 1,10) <= 8)[
The $opponent sets the ball!
(click: " sets")[
(replace: ?display2)[
(if: (random: 1,10) <= 8)[
The $opponent spikes the ball!
(set: $serve to false)
(click: " spikes")[
(display: "volleyHard")
]
]
(else:)[
(replace: ?display1)[
The $opponent prepares to spike the ball but misses!
]
(replace: ?display2)[
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyHard")
]
]
]
]
]
]
(else:)[
(replace: ?display1)[
The $opponent prepares to set the ball but misses!
]
(replace: ?display2)[
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyHard")
]
]
]
]
]
]
(else:)[
(replace: ?display2)[
The $opponent prepares to bump the ball but misses!<br>
Ball fumbles... Prepare to serve!
(set: $points to it + 1)
(replace: ?points)[
$points | $pointsOP
]
(click: " serve")[
(display: "volleyHard")
]
]
]
]
]
}{
(set: $corgiName to "Sunny")
(set: $vballDaily to false)
(display: "vball init")
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Turret Bucket")[
(replace: ?display2)[
You're now using the Turret Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a gate at the northern point with two long walls flanking east and west. There's a castle in the center which extends across the southern edge.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 0)[
(set: $sandcastle to it + 1)
]
(if: $w is 0)[
(set: $sandcastle to it + 1)
]
(if: $sw is 3)[
(set: $sandcastle to it + 1)
]
(if: $n is 1)[
(set: $sandcastle to it + 1)
]
(if: $c is 3)[
(set: $sandcastle to it + 1)
]
(if: $s is 3)[
(set: $sandcastle to it + 1)
]
(if: $ne is 0)[
(set: $sandcastle to it + 1)
]
(if: $e is 0)[
(set: $sandcastle to it + 1)
]
(if: $se is 3)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scD"))
<p>
[[Leave|beach]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Moat Bucket")[
(replace: ?display2)[
You're now using the Moat Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Turret Bucket")[
(replace: ?display2)[
You're now using the Turret Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a castle dead center, surrounded by a moat on all sides.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 0)[
(set: $sandcastle to it + 1)
]
(if: $w is 0)[
(set: $sandcastle to it + 1)
]
(if: $sw is 0)[
(set: $sandcastle to it + 1)
]
(if: $n is 0)[
(set: $sandcastle to it + 1)
]
(if: $c is 3)[
(set: $sandcastle to it + 1)
]
(if: $s is 0)[
(set: $sandcastle to it + 1)
]
(if: $ne is 0)[
(set: $sandcastle to it + 1)
]
(if: $e is 0)[
(set: $sandcastle to it + 1)
]
(if: $se is 0)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scE"))
<p>
[[Leave|beach]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Fountain Bucket")[
(replace: ?display2)[
You're now using the Fountain Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a fountain in the center, a gate at each cardinal point, and a castle at each corner.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 3)[
(set: $sandcastle to it + 1)
]
(if: $w is 1)[
(set: $sandcastle to it + 1)
]
(if: $sw is 3)[
(set: $sandcastle to it + 1)
]
(if: $n is 1)[
(set: $sandcastle to it + 1)
]
(if: $c is 2)[
(set: $sandcastle to it + 1)
]
(if: $s is 1)[
(set: $sandcastle to it + 1)
]
(if: $ne is 3)[
(set: $sandcastle to it + 1)
]
(if: $e is 1)[
(set: $sandcastle to it + 1)
]
(if: $se is 3)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scF"))
<p>
[[Leave|beach]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Stable Bucket")[
(replace: ?display2)[
You're now using the Stable Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Fountain Bucket")[
(replace: ?display2)[
You're now using the Fountain Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a fountain in the center which is flanked by castles along the south side. There is a gate at the north point, with a stable on each side.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a stable here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a fountain here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 0)[
(set: $sandcastle to it + 1)
]
(if: $w is 3)[
(set: $sandcastle to it + 1)
]
(if: $sw is 3)[
(set: $sandcastle to it + 1)
]
(if: $n is 1)[
(set: $sandcastle to it + 1)
]
(if: $c is 2)[
(set: $sandcastle to it + 1)
]
(if: $s is 3)[
(set: $sandcastle to it + 1)
]
(if: $ne is 0)[
(set: $sandcastle to it + 1)
]
(if: $e is 3)[
(set: $sandcastle to it + 1)
]
(if: $se is 3)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scG"))
<p>
[[Leave|beach]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Turret Bucket")[
(replace: ?display2)[
You're now using the Turret Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a towering castle in the center, and walls surrounding it on all sides.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a turret here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 0)[
(set: $sandcastle to it + 1)
]
(if: $w is 0)[
(set: $sandcastle to it + 1)
]
(if: $sw is 0)[
(set: $sandcastle to it + 1)
]
(if: $n is 0)[
(set: $sandcastle to it + 1)
]
(if: $c is 3)[
(set: $sandcastle to it + 1)
]
(if: $s is 0)[
(set: $sandcastle to it + 1)
]
(if: $ne is 0)[
(set: $sandcastle to it + 1)
]
(if: $e is 0)[
(set: $sandcastle to it + 1)
]
(if: $se is 0)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scH"))
<p>
[[Leave|beach]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Moat Bucket")[
(replace: ?display2)[
You're now using the Moat Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a gate at the west and southesast points. A moat stretching from the center of the property to the northeastern corner is bisected by a perpendicular wall, while the rest of the moat extends to the southern center. A castle sits at the northwestern point, and a wall sits below the western gate.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a moat here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 3)[
(set: $sandcastle to it + 1)
]
(if: $w is 1)[
(set: $sandcastle to it + 1)
]
(if: $sw is 0)[
(set: $sandcastle to it + 1)
]
(if: $n is 0)[
(set: $sandcastle to it + 1)
]
(if: $c is 2)[
(set: $sandcastle to it + 1)
]
(if: $s is 2)[
(set: $sandcastle to it + 1)
]
(if: $ne is 2)[
(set: $sandcastle to it + 1)
]
(if: $e is 0)[
(set: $sandcastle to it + 1)
]
(if: $se is 1)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scI"))
<p>
[[Leave|beach]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "River Bucket")[
(replace: ?display2)[
You're now using the River Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a forked river running from the northwestern point to the southeastern point, which splits to the northeastern point from the center. Walls cross it from the northern, eastern, and southern points. There's a castle at the western point, with a gate below it.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a river here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 2)[
(set: $sandcastle to it + 1)
]
(if: $w is 3)[
(set: $sandcastle to it + 1)
]
(if: $sw is 1)[
(set: $sandcastle to it + 1)
]
(if: $n is 0)[
(set: $sandcastle to it + 1)
]
(if: $c is 2)[
(set: $sandcastle to it + 1)
]
(if: $s is 0)[
(set: $sandcastle to it + 1)
]
(if: $ne is 2)[
(set: $sandcastle to it + 1)
]
(if: $e is 0)[
(set: $sandcastle to it + 1)
]
(if: $se is 2)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scJ"))
<p>
[[Leave|beach]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Wall Bucket")[
(replace: ?display2)[
You're now using the Wall Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Stable Bucket")[
(replace: ?display2)[
You're now using the Stable Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a castle in the center, a gate to the north, and a stable at each corner. Walls fill in the gaps along each edge.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a wall here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a stable here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 2)[
(set: $sandcastle to it + 1)
]
(if: $w is 0)[
(set: $sandcastle to it + 1)
]
(if: $sw is 2)[
(set: $sandcastle to it + 1)
]
(if: $n is 1)[
(set: $sandcastle to it + 1)
]
(if: $c is 3)[
(set: $sandcastle to it + 1)
]
(if: $s is 0)[
(set: $sandcastle to it + 1)
]
(if: $ne is 2)[
(set: $sandcastle to it + 1)
]
(if: $e is 0)[
(set: $sandcastle to it + 1)
]
(if: $se is 2)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scK"))
<p>
[[Leave|beach]]
]
}{
|display>[There are some buckets and shovels here.]<br>
|display3>[You currently have no piles of sand.]<p>
(link-repeat: "Shovel Sand")[
(replace: ?display)[
You shovel one pile of sand!
(set: $sand to it + 1)
]
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
<p>
There are a few different buckets to choose from today.<p>
(link-repeat: "Moat Bucket")[
(replace: ?display2)[
You're now using the Moat Bucket.
(set: $bucket to 0)
]
] (2 Piles of Sand)<br>
(link-repeat: "Gate Bucket")[
(replace: ?display2)[
You're now using the Gate Bucket.
(set: $bucket to 1)
]
] (3 Piles of Sand)<br>
(link-repeat: "Bridge Bucket")[
(replace: ?display2)[
You're now using the Bridge Bucket.
(set: $bucket to 2)
]
] (5 Piles of Sand)<br>
(link-repeat: "Castle Bucket")[
(replace: ?display2)[
You're now using the Castle Bucket.
(set: $bucket to 3)
]
] (10 Piles of Sand)<p>
|display2>[You're not using a bucket yet.]<p>
There are 9 square plots below to create a sandcastle. Emma shows you a picture of a sandcastle she drew with a castle forming an X shape. There is a bridge at the northern and southern points, with a gate to the east, and a moat to the west.<p>
|=
Northwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $nw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $nw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $nw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $nw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $nw to 4)
]
]
]<br>
West: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $w to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $w to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $w to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $w to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $w to 4)
]
]
]<br>
Southwest: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $sw to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $sw to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $sw to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $sw to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $sw to 4)
]
]
]
=|=
North: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $n to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $n to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $n to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $n to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $n to 4)
]
]
]<br>
Center: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $c to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $c to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $c to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $c to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $c to 4)
]
]
]<br>
South: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $s to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $s to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $s to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $s to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $s to 4)
]
]
]
=|
Northeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $ne to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $ne to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $ne to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $ne to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $ne to 4)
]
]
]<br>
East: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $e to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $e to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $e to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $e to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $e to 4)
]
]
]<br>
Southeast: (link: "Build")[
(if: $bucket is 0)[
(if: $sand >= 2)[
You built a moat here.
(set: $se to 0)
(set: $sand to it - 2)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 1)[
(if: $sand >= 3)[
You built a gate here.
(set: $se to 1)
(set: $sand to it - 3)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 2)[
(if: $sand >= 5)[
You built a bridge here.
(set: $se to 2)
(set: $sand to it - 5)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
(else-if: $bucket is 3)[
(if: $sand >= 10)[
You built a castle here.
(set: $se to 3)
(set: $sand to it - 10)
(replace: ?display3)[
You currently have $sand piles of sand.
]
]
(else:)[
You didn't have enough sand, and it crumbles.
(set: $se to 4)
]
]
]
|=|
<p>
(link: "Finished?")[
(if: $nw is 3)[
(set: $sandcastle to it + 1)
]
(if: $w is 0)[
(set: $sandcastle to it + 1)
]
(if: $sw is 3)[
(set: $sandcastle to it + 1)
]
(if: $n is 2)[
(set: $sandcastle to it + 1)
]
(if: $c is 3)[
(set: $sandcastle to it + 1)
]
(if: $s is 2)[
(set: $sandcastle to it + 1)
]
(if: $ne is 3)[
(set: $sandcastle to it + 1)
]
(if: $e is 1)[
(set: $sandcastle to it + 1)
]
(if: $se is 3)[
(set: $sandcastle to it + 1)
]
(if: $sandcastle is 0)[
You sit on your jumble of pile of sand while Emma sighs.
]
(else-if: $sandcastle < 3)[
Well, at least it took some sort of shape, and Emma pets you consolingly.
(set: $epGained to 1)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >= 3 and < 6)[
Emma looks at her drawing and then back to you, then shakes her head before muttering, "No, we can do better than that, $corgiName."
(set: $epGained to 2)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle >=6 and <= 8)[
Emma sits down to admire the sandcastle you two built together, and she lays a hand on your long back. "Almost perfect, isn't it?"
(set: $epGained to 3)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(else-if: $sandcastle is 9)[
Looking between her drawing and the castle, Emma scoops you up in triumph with a whoop of joy. "We did it, $corgiName! It's perfect! I can't wait to show (if: $parentA is 0)[Dad](else:)[Mom]."
(set: $epGained to 4)
(set: $ep to it + $epGained)
(if: $prestige > 0)[
(set: $seashells to it + (($epGained + 11) * $prestige))
<p>You were given (print: (($epGained + 11) * $prestige)) seashells.
]
(else:)[
(set: $seashells to it + ($epGained + 11))
<p>You were given (print: ($epGained + 11)) seashells.
]
]
(set: $scDaily to true)
(set: $sc to it - (a: "scL"))
<p>
[[Leave|beach]]
]
}