Section 4 - Outdoors Region
Backyard is south of Dining Room. “An emerald lawn stretches out beyond the patio up to the edge of a fence. Your grandmother reclines on a lawn chair, enjoying the morning air."
Garden Flowers are a fixed in place thing in The Backyard with description "Some beautiful, sweet-smelling petunias line the back of the house." Understand "blossoms/boquets" as Garden Flowers.
Years Ago is a room.
After examining Garden Flowers for the first time:
say "It's hard to think of a springtime when your backyard wasn't covered in the most lovely of flowers.";
move player to Years Ago;
say "Your grandma moved into your house in the winter, but as soon as the snow began to melt, she started planting flowers. You've just gotten home from school, and she drags you with her into the backyard to show you how she does it. She tells you stories about her years working as a florist. You can tell that nothing makes her happier than planting these flowers, except perhaps having your help doing it.";
increase Familymemories by 1;
move player to The Backyard;
say "In the flower beds, there are almost as many weeds there as blossoms. Even just last year, your grandma would have been out here every couple days making sure that nothing would hurt her flowers. Now, you're not sure she has enough energy to get out of her chair alone."
Outdoors is a region. The Backyard and the Frontyard are in Outdoors.
Section 7 - Homework Simulator
[Things]
Understand "soda/pop" as Can of Soda.
Homework is a thing. Homework is on Desk. It is fixed in place.
[Rules]
HomeworkDone is a truth state that varies. HomeworkDone is false.
Understand the command "do" as "examine".
numberOfQuestions is a number variable.
currentQuestion is a number variable.
questionsCompleted is a number variable. QuestionsCompleted is 0.
doingHomework is a truth state that varies. DoingHomework is false.
When play begins:
now numberOfQuestions is a random number between 7 and 15;
now currentQuestion is a random number between 1 and the number of rows in Table of Homework.
Homework is a thing. Homework is on Desk. It is fixed in place. It has description "A bunch of completed problems. Or close enough to complete that Miss Morgan won't notice."
Carry out examining homework:
If homeworkDone is false:
say "Oh boy, here we go. [numberOfQuestions] problems to do!
You decide to start at Number [currentQuestion].";
try completingHomework;
stop the action.
CompletingHomework is an action applying to nothing. Carry out completingHomework:
if questionsCompleted is not less than numberOfQuestions:
now homeworkDone is true;
say "Your homework is done!";
now doingHomework is false;
Else:
Choose row currentQuestion from Table of Homework;
now the command prompt is "Question [CurrentQuestion]: [Questions entry] ";
now doingHomework is true;
After reading a command:
if doingHomework is true:
if "[the player's command]" matches the regular expression "stop|quit|leave|restart|undo", case insensitively:
now doingHomework is false;
now the command prompt is ">";
Otherwise:
Let playerAnswer be "[the player's command]";
Choose row currentQuestion from Table of Homework;
if playerAnswer matches the regular expression "[Answers entry]", case insensitively:
increment questionsCompleted;
say "Correct! [questionsCompleted] out of [numberOfQuestions] completed.";
if questionsCompleted is not less than numberOfQuestions:
now homeworkDone is true;
say "Your homework is done!";
now doingHomework is false;
now the command prompt is ">";
otherwise:
increment currentQuestion;
if currentQuestion is greater than the number of rows in Table of Homework:
now currentQuestion is 1;
Choose row currentQuestion from Table of Homework;
now the command prompt is "Question [CurrentQuestion]: [Questions entry] ";
Otherwise:
say "Wrong!";
stop the action.
Before taking the Can of Soda:
if HomeworkDone is false:
say "Mom said 'No soda until you finish your homework! It must be back in your room.'";
stop the action;
if HomeworkDone is true:
say "Mom says 'Good job on your homework, sweetie. Here you go.'"
[Table]
Table of Homework
Questions Answers
"7 x 7 =" "49|forty.nine"
"What is the last name of the third president?" "Jefferson"
"Mitochondria is the powerhouse of the _____" "Cell"
"1.3 + 7.9 =" "9.2"
"How many cents is a half dollar worth?" "50|fifty"
"What year did we land on the moon?" "1969"
"Name a word that ends with 'tion'." "tion$"
"True or False: The sun is a star." "true|t|2tru|y|yes"
"What prefix means three?" "tri|tri."
"True or False: 2/8 is greater than 0.25" "false|f|falls|n|no"
"2 + 4,000 + 40 + 600 =" "4642|4.642"
"Name a word that begins with 'post'." "^post"
"In Roman Numerals, XLIV =" "44|forty.four"
"Round 1.6 to the nearest whole number." "2|2.0|two"
"True or False: 3% is less than 1/25." "true|t|2tru|y|yes"
"How many cents is one quarter and one dollar?" "125|one.hundred.twenty.five"
"Who invented the cotton gin?" "Eli Whitney"
"4^2 =" "16|sixteen"
"Name this punctuation: ';'." "semicolon|semi.colon"
"Name a word beginning with 'x'." "^x"
"When two words sound the same but are spelled differently, they are called _______" "homophone|homophones"
"A synonym for 'easy' might be ________" "simple|basic|effortless|straightforward|uncomplicated|smooth|obvious|not difficult|your (mom|mother)"
"An antonym for 'easy' might be _______" "hard|difficult|complicated|unclear|arduous|laborious|intricate|exhausting|demanding|this fucking game|this game"
"Midnight is 12:00__" "A.m.|am"
"Noon is 12:00__" "p.m.|pm"
"The capitol of the United States is:" "Washington (d.c.|dc|d.c|dc.)|it's a free country"
"Name a continent." "North America|South America|Europe|Asia|Africa|Australia|Antarctica"
"Red and blue together make ______" "purple|violet|indigo"
"What musical note comes after G#?" "A"
"What does president FDR's name stand for?" "Franklin Delano Roosevelt|freedom"
"How many years are in a century?" "100|one.hundred|a hundred|hundred"
Section 10 - Dad Simulator 2k16
CharonMadCheddar is a truth state that varies. CharonMadCheddar is false.
Giving is an action applying to one thing.
Understand "give [something]" as giving.
Carry out giving:
if Player is in Ominous Pier:
if CoinGet is false:
say "You need to pay the toll!";
if CoinGet is true:
say "You hand the Cloaked Man the coin. He bites down on it to make sure that it's not chocolate. 'Thank you. Climb onto my boat. There is someone you must see,' he said.";
now CharonMadCheddar is true.
Climbing on is an action applying to one thing.
Understand "climb onto [something]" as Climbing on.
Carry out climbing on:
if Player is in Ominous Pier:
if CharonMadCheddar is true:
say "'Let's set sail!' said Cloaked Man. You ride across the river of souls and into the cave of the one they call the Skeleton King.";
move player to Cave Entrance;
otherwise:
say "'You have to pay me first!' said Cloaked Man.";
otherwise:
say "There's nothing to climb onto here. You could climb onto a boat, perhaps, but not onto anything you see here.";
Instead of going north in Ominous Pier:
say "Don't even think about crossing the river of souls. You should just use the boat. Try climbing onto it.";
stop the action.
Before going east to Ominous River:
if player is wearing sheets:
if player is wearing football gear:
if player has coin:
if player has sword:
if player has can of soda:
if Dog is in Your Bedroom:
say "Alright, hero, you've got your gear together. Now put your game face on. Here we go!";
continue the action;
otherwise:
say "Something evil lurks in there. You better not head in there until you're prepared.";
stop the action;
otherwise:
say "Something evil lurks in there. You better not head in there until you're prepared.";
stop the action;
otherwise:
say "Something evil lurks in there. You better not head in there until you're prepared.";
stop the action;
otherwise:
say "Something evil lurks in there. You better not head in there until you're prepared.";
stop the action;
otherwise:
say "Something evil lurks in there. You better not head in there until you're prepared.";
stop the action;
otherwise:
say "Something evil lurks in there. You better not head in there until you're prepared.";
stop the action.
Section - Memories
Familymemories is a number variable. Familymemories is 0.
[Every turn:
say "[familyMemories] Memories earned!";]
[Section - Final Confrontation(BUT NOT REALLY LOL)
[SkellyDead is a truth state that varies. SkellyDead is false.]
ItemsUsed is a number variable.
currentItem is a number variable.
[questionsCompleted is a number variable. QuestionsCompleted is 0.]
PickingItem is a truth state that varies. PickingItem is false.
[instead of talking to Skeleton King:
try FinalCombat;]
Instead of attacking Skeleton King:
try FinalCombat;
[Instead of killing Skeleton King:
try FinalCombat;]
FinalCombat is an action applying to nothing. Carry out FinalCombat:
if itemsUsed is 5:
say “You win! [familyMemories] memories found! Something has gone terribly wrong in the code here...”;
Else if itemsUsed is 0:
say “The strange, wretched beast stands over you, casting a seemingly infinite shadow. It is time to put your heroic items to use; it is time to fight. If you are to stand any chance, you should power up with something tasty before you engage.”;
now the command prompt is “What will you use? >”;
now pickingItem is true.
After reading a command:
if pickingItem is true:
if “[the player’s command]” matches the regular expression “quit|restart|undo”, case insensitively:
now pickingItem is false;
now the command prompt is “>”;
otherwise if itemsUsed is 0: [Potion Level]
if the player’s command matches the regular expression “potion|soda|pop|can|soda pop”:
increment itemsUsed;
say “You feel the fizzy liquid rushing through your body. You feel ready to shatter some skulls and stomp some sternums. Just as you raise your blade, the Skeleton King procures an orb of sinister purple flame. This doesn’t look good. You must use something to distract the monstrosity and dodge the attack majestically.”;
otherwise if itemsUsed is 1: [Cape Level]
if the player’s command matches the regular expression “cape|sheets|cloak|robe”:
increment itemsUsed;
say “You spin elegantly to throw off the Skeleton King’s aim. The orb flies by with a fiery scream. It barely singes your cape. You face the creature again, and its enormous foot is already headed towards you to strike you with a devastating kick. There’s no dodging this attack. If you have something impenetrable, now is the time to use it.”;
otherwise if itemsUsed is 2: [Armor Level]
if the player’s command matches the regular expression “armor|pads|helmet|gear”:
increment itemsUsed;
say “You puff your chest and lower your head. You are launched backward, but your helmet and chest plate take the blow. You are unscathed, and the Skeleton King still stands on one leg, susceptible to an attack of your own. Someone truly loyal to you would run right in and rip the shin bone out from beneath him.”;
otherwise if itemsUsed is 3: [Dog Level]
if the player’s command matches the regular expression “Samwise|dog|Sammy|Sam|doggy|doggie”:
increment itemsUsed;
say “Samwise gallops towards the weak Skeleton King without hesitation and chomps down on the shin bone, causing the monster to fall onto his back. A deafening boom echoes through the cave. The Skeleton King is immobile. Now go! Finish him off with that mighty weapon of yours!”;
otherwise if itemsUsed is 4: [Sword Level]
if the player’s command matches the regular expression “sword|blade|stick|handle|saber|sabre”:
say “You leap up onto the fallen Skeleton King’s chest and hold the tip of your blade a single inch away from the his forehead. His crown has fallen onto the ground and shattered.”;
if familyMemories is 0, end the story saying “The jaw of the Skeleton King suddenly drops open completely, letting out a heart-wrenching shriek. Deep in the cacophony, you hear millions of screeching voices:
'shesgoneshelovedyoushehatedyouyoureweakyourepatheticwhydidntyousaveherwhycouldntyousavehershesgone'
The tormenting voices continue and overwhelm you. All you see, hear, and feel turns to nothing.”;
if familyMemories is 1, end the story saying “The jaw of the Skeleton King drops open, letting out a chilling shriek. Deep in the cacophony, you hear hundreds of screeching voices:
'shesleavingshelovesyouyouwerentstrongenoughyetyourestilltooweekyoucantsavehershesgone'
The swarming voices continue and bring you to one knee. Nearly all you see, hear, and feel fades away, but a brief glimmer breaks through the shadows. You feel its warmth for a moment before it blinks out.”;
if familyMemories is 2, end the story saying “The Skeleton King’s jaw creaks open, letting out an unsettling cry. Deep in the noise you hear dozens of screeching voices:
‘shesleavingshestilllovesyoushecanmakeyoustrongenoughyouarenotweaktoherbutyoucantsavehershesgone’
The swarming voices continue and nearly cause you to fall. Your vision begins to turn to black, but a burst of light breaks through the darkness. It is warm, but it passes like morning light.”;
if familyMemories is 3, end the story saying “The jaw of the Skeleton King slowly creaks open, letting out a feeble cry. You think you hear several voices whisper out from it:
‘shesleavingeveryoneleavessomedayeveryonelovessomeonewecanallbestrongtogetherwefeelweakbutcanbesomuchmorecanwesaveoneanother’
The eerie words continue and make you feel woozy. Suddenly a hand grabs you by the shirt and warm light surrounds you. You think you see a familiar face, but it dissolves away into the blinding white.”;
if familyMemories is 4, end the story saying “The Skeleton King’s jaw barely creaks open, and quiet murmuring cascades out from between the rotting teeth:
‘shesleavingwewillallleavesomedaywewillmeetagainwewillbestrongtogetherwefeelstrongtogetherwecansaveoneanotherifweletoneanothergoshewillalwaysloveyou’
The eerie words continue and make you feel a bit woozy. You feel a soft hand gently wrap itself around yours. An angelic being pulls you through spaces of light and dark until you awake in your bedroom.”;
if familyMemories is 5:
say “The Skeleton King’s jaw barely creaks open, and a single, sweet phrase arises from it like a song.
‘She will always be with you.’
The monster and the cave all slowly disappear as pure white light surrounds you.”;
now the Player is in Radiant Peak;
now the command prompt is ">";
increment itemsUsed.
Radiant Peak is a room. “Your grandmother stands before you at the very top of a towering mountain. Clouds stretch out towards the sunlit horizon. She smiles. You embrace one another. She begins to walk away.
Before letting go of your hand, she looks at you with bright eyes and says, ‘I will always be with you.’”
Every turn:
if player is in Radiant Peak:
end the story saying "'Okay, that's enough stories for tonight! Now go to sleep, dearie! Sweet dreams!'"]
Section - Final Confrontation
ItemsUsed is a number variable.
currentItem is a number variable.
PickingItem is a truth state that varies. PickingItem is false.
Instead of attacking Skeleton King:
try FinalCombat;
FinalCombat is an action applying to nothing. Carry out FinalCombat:
if itemsUsed is 5:
say “You win! [familyMemories] memories found! Something has gone terribly wrong in the code here...”;
Else if itemsUsed is 0:
say “The strange, wretched beast stands over you, casting a seemingly infinite shadow. It is time to put your heroic items to use; it is time to fight. If you are to stand any chance, you should power up with something tasty before you engage.”;
now the command prompt is “What will you use? ”;
now pickingItem is true.
After reading a command:
if pickingItem is true:
if “[the player’s command]” matches the regular expression “quit|restart|undo”, case insensitively:
now pickingItem is false;
now the command prompt is “>”;
otherwise if itemsUsed is 0: [Potion Level]
if the player’s command matches the regular expression “potion|soda|pop|can|soda pop”:
increment itemsUsed;
say “
You feel the fizzy liquid rushing through your body. You feel ready to shatter some skulls and stomp some sternums. Just as you raise your blade, the Skeleton King procures an orb of sinister purple flame. This doesn’t look good. You must use something to distract the monstrosity and dodge the attack majestically.”;
Stop the action;
otherwise:
say "That can't be right!
[One of]The king's exposed bones shamble closer. If only you had a tasty, cold potion to give you strength.[or]He's only feet away! Your mouth feels insatiably dry.[or]He looks like he's about to attack! At times like this, dad would ask you to get him a cold drink from the fridge.[stopping]";
stop the action;
otherwise if itemsUsed is 1: [Cape Level]
if the player’s command matches the regular expression “cape|sheets|cloak|robe”:
increment itemsUsed;
say “
You spin elegantly to throw off the Skeleton King’s aim. The orb flies by with a fiery scream. It barely singes your cape. You face the creature again, and its enormous foot is already headed towards you to strike you with a devastating kick. There’s no dodging this attack. If you have something impenetrable, now is the time to use it.”;
Stop the action;
otherwise:
say "No, that's not it!
[One of]The king's hands have erupted in purple flame, and he's winding up for a throw. The flowing violet fire almost reminds you of your bedspread.[or]The fireball has left his hand! It'll be on you in just a second! You wonder what a caped crusader would do in such a situation.[or]The fireball has almost reached you and you can feel its heat. Sweat starts to form under the cape around your neck.[stopping]";
stop the action;
otherwise if itemsUsed is 2: [Armor Level]
if the player’s command matches the regular expression “armor|pads|helmet|gear”:
increment itemsUsed;
say “
You puff your chest and lower your head. You are launched backward, but your helmet and chest plate take the blow. You are unscathed, and the Skeleton King still stands on one leg, susceptible to an attack of your own. Someone truly loyal to you would run right in and rip the shin bone out from beneath him.”;
Stop the action;
otherwise:
say "That won't work!
[One of]Time seems to slow. You wonder if this is how Peter feels during one of his football games.[or]The bony foot has almost connected with you, but the time is just padded enough for you to make a splitsecond decision.[or]Time nearly stops as your adrenaline and battle reflexes come in. You feel every muscle in your body, as well as the armor that surrounds it.[stopping]";
stop the action;
otherwise if itemsUsed is 3: [Dog Level]
if the player’s command matches the regular expression “Samwise|samwise|dog|Sammy|Sam|doggy|doggie”:
increment itemsUsed;
say “
Samwise gallops towards the weak Skeleton King without hesitation and chomps down on the shin bone, causing the monster to fall onto his back. A deafening boom echoes through the cave. The Skeleton King is immobile. Now go! Finish him off with that mighty weapon of yours!”;
Stop the action;
otherwise:
say "Your gut says that would be the wrong move.
[One of]The King is still off balance, if only for a moment. If only there was a trusty steed around who liked to gnaw on bones.[or]The King has nearly gained his composure again after his failed attack. You hear a low growl from your trusty companion behind you.[or]The King has nearly regained his balance. His determined, evil face leaves you feeling dog-tired.[stopping]";
stop the action;
otherwise if itemsUsed is 4: [Sword Level]
if the player’s command matches the regular expression “sword|blade|stick|handle|saber|sabre”:
say “
You leap up onto the fallen Skeleton King’s chest and hold the tip of your blade a single inch away from the his forehead. His crown has fallen onto the ground and shattered.”;
if familyMemories is 0, end the story saying “The jaw of the Skeleton King suddenly drops open completely, letting out a heart-wrenching shriek. Deep in the cacophony, you hear millions of screeching voices:
'shesgoneshelovedyoushehatedyouyoureweakyourepatheticwhydidntyousaveherwhycouldntyousavehershesgone'
The tormenting voices continue and overwhelm you. All you see, hear, and feel turns to nothing.”;
if familyMemories is 1, end the story saying “The jaw of the Skeleton King drops open, letting out a chilling shriek. Deep in the cacophony, you hear hundreds of screeching voices:
'shesleavingshelovesyouyouwerentstrongenoughyetyourestilltooweekyoucantsavehershesgone'
The swarming voices continue and bring you to one knee. Nearly all you see, hear, and feel fades away, but a brief glimmer breaks through the shadows. You feel its warmth for a moment before it blinks out.”;
if familyMemories is 2, end the story saying “The Skeleton King’s jaw creaks open, letting out an unsettling cry. Deep in the noise you hear dozens of screeching voices:
‘shesleavingshestilllovesyoushecanmakeyoustrongenoughyouarenotweaktoherbutyoucantsavehershesgone’
The swarming voices continue and nearly cause you to fall. Your vision begins to turn to black, but a burst of light breaks through the darkness. It is warm, but it passes like morning light.”;
if familyMemories is 3, end the story saying “The jaw of the Skeleton King slowly creaks open, letting out a feeble cry. You think you hear several voices whisper out from it:
‘shesleavingeveryoneleavessomedayeveryonelovessomeonewecanallbestrongtogetherwefeelweakbutcanbesomuchmorecanwesaveoneanother’
The eerie words continue and make you feel woozy. Suddenly a hand grabs you by the shirt and warm light surrounds you. You think you see a familiar face, but it dissolves away into the blinding white.”;
if familyMemories is 4, end the story saying “The Skeleton King’s jaw barely creaks open, and quiet murmuring cascades out from between the rotting teeth:
‘shesleavingwewillallleavesomedaywewillmeetagainwewillbestrongtogetherwefeelstrongtogetherwecansaveoneanotherifweletoneanothergoshewillalwaysloveyou’
The eerie words continue and make you feel a bit woozy. You feel a soft hand gently wrap itself around yours. An angelic being pulls you through spaces of light and dark until you awake in your bedroom.”;
if familyMemories is 5:
say “
The Skeleton King’s jaw barely creaks open, and a single, sweet phrase arises from it like a song.
‘She will always be with you.’
The monster and the cave all slowly disappear as pure white light surrounds you.”;
now the Player is in Radiant Peak;
now the command prompt is ">";
increment itemsUsed;
Stop the action;
otherwise:
say "Probably not the best choice in this situation.
[One of]The creature is still on the ground at your mercy. He looks ready to be cut down.[or]The Skeleton King looks like he's getting over his daze. Only a strong weapon forged by the wisest elder will be able to stop him now.[or]The King has nearly gotten back to his feet! With the pressure to act, your sword has become incredibly heavy in your hands.[stopping]";
stop the action.
Radiant Peak is a room. “Your grandmother stands before you at the very top of a towering mountain. Clouds stretch out towards the sunlit horizon. She smiles. You embrace one another. She begins to walk away.
Before letting go of your hand, she looks at you with bright eyes and says, ‘I will always be with you.’”
Before reading a command:
if player is in Radiant Peak:
end the story saying "'Okay, that's enough stories for tonight! Now go to sleep, dearie! Sweet dreams!'";
Stop the action.