Child's Play

An interactive fiction by Stephen Granade (2007) - the Inform 7 source text

Chapter 5 - Snacktime
Snacktime is a scene. Snacktime begins when Tabletime ends. Snacktime ends when the player has your favorite toy.
When Snacktime begins:
   remove alfadog from play; [aww]
   delete North End of Loveseat from the plastic gate;
   change the visitation count of the West End of Couch to 0;
   move your favorite toy to the wood cabinet;
   move the footstool to the West End of Couch;
   now every thing in the backpack is in the TKBUG Open Area;
   [Get the parents and the kids in their new places]
   now Parry is in the West End of Couch;
   now Lisa is in the North End of Loveseat;
   now Becca is in the By the Rocking Chair;
   now Marion is in the East End of Couch;
   now the mom is in the Middle of Couch;
   now Zoe is in the TKBUG Open Area;
   now Cassie is in the West End of Couch;
   now Watson is in the TV room;
   now Jemison is in the Middle of Couch;
   [Prepare the baby swing and Watson]
   choose row with a baby name of Watson in the Table of Baby State Machines;
   change machine entry to WM Fussing Rules;
   now Watson is upset;
   now fuss count is 0;
   [In case Watson never got out of his hint-giving rules:]
   change the base act percentage of Watson to 20;
   change the act percentage of Watson to 20;
   [Prepare the tumbler puzzle]
   move the heavy tumbler to the cabinet top;
   move the short plastic block to the TKBUG Open Area;
   move the bugish plastic block to the South End of Loveseat;
   move the tall plastic block to the Middle of the Living Room;
   [Change Zoe's reports]
   choose row with a baby name of Zoe in the Table of Dropping Report Rules;
   change report rulename entry to ZK dropping report rule;
   choose row with a baby name of Zoe in the Table of Baby State Machines;
   change machine entry to ZK Stalking Rules;
   [Adjust Jemison's fixation]
   now Jemison is impervious to fixation;
   move the velcro jangly balls to Jemison;
   now Jemison wears the velcro jangly balls;
   now Jemison is fascinated by the velcro jangly balls;
   [Move unused conversations into the table of snacktime chatter]
   copy rows from Table of Playtime-Chatter to Table of Snacktime-Chatter;
   change the chatter list table to the Table of Snacktime-Chatter;
   restart chatter;
   now every playmate is active;
   move the player to the Middle of the Living Room.
When Snacktime ends:
   say "Then you hear the crying. When you turn you see a very wet Zoe and a very wet Jemison and the empty tumbler is next to them. Jemison takes it like a toddler, he is fine, but Zoe is angry like a wet evil cat. Heads pop over the top of the loveseat staring down at all of you, one of them is Parry and he looks really embarassed[note tumbler-falls].
You're probably not going to get to keep the toy.";
   cut chatter short;
   record 10 points for "getting your favorite toy the third time";
   [Evil people like Admiral Jota might pile things into the secret space. Clear out the Secret Space.]
   now every small thing in Secret Space is in the West End of Couch;
   now every medium thing in Secret Space is in the West End of Couch;
   if testing is not in progress, wait for any key.
Table of Snacktime-Chatter
Convo
Table of Birth-Experience-Chatter
Table of Babysitter-Chatter
Table of Preschool-Chatter
Table of Kids-Love-Toys-Chatter
Table of Kid-Development-Chatter
with 5 blank rows
Table of Birth-Experience-Chatter
Chatter
"Becca is still all sipping on a mimosa and she says, 'Hey, hospitals should give us mimosas to go with our epidurals.'"
"The mom laughs, 'Becca, you didn't even get an epidural.'"
"Becca just smiles while Lisa says, 'I still can't believe you did that.'"
"'It wasn't too hard,' Becca says. 'I just screamed a lot and hit Kurt when the pain got really bad.'"
"'The trick,' Marion says, 'is to relax into the pain instead of anticipating it and tensing up.'"
"Lisa sighs and says, 'My epidural stopped working.'"
"'What?' Becca asks. 'I hadn't heard that.'"
"'Yeah', says Lisa, 'I got my epidural and then they turned me on my side. The next thing I knew I was feeling everything, and I mean everything, on my left side.'"
"Parry pipes up, 'You know, it's a shame that the anesthesiologist makes you hunch forward so he can slide the needle into your spine just when contractions make you want to flatten out.'"
"All the other parent people stare and Parry and he sits back quietly."
Table of Babysitter-Chatter
Chatter
"The mom asks the other parent people, 'Do any of you have a suggestion for a baby sitter?' Wait, what the hey?"
"The mom goes on, 'We've got a Christmas party to go to in a month or so, and we've never used a babysitter before.' No, really--what the hey???"
"Marion says, 'Didn't you have luck with Susan, Lisa?' Susan, that's a name that sounds okay."
"Lisa says, 'I've used Susan two--no, three times. She said Cassie was great.' Lisa pauses all thoughtful like. 'Maybe she was lying to get a bigger tip.'"
"'I didn't think she was all that,' Becca says. 'I had her keep Zoe once. Susan and Zoe didn't get along at all.' This Susan is sounding better all the time."
"Marion says, 'You could have Susan visit ahead of time to look for any problems.'"
"'I'll give her a call, then,' the mom says."
Table of Preschool-Chatter
Chatter
"'You've all picked out preschools, right?' Becca says."
"Parry is all, 'Not really.'"
"'Oh my God, it's almost too late!' Lisa says, and Becca chimes in, 'Competition for the good preschools is fierce.'"
"Parry says, 'We've looked at some, but really we're just after somewhere where Watson can have more socialization.'"
"'Cassie is in preschool one day a week,' says Lisa. 'I can already tell that she's learning faster because of it.'"
"Becca agrees, 'I'm going to make sure Jemison has three or four legs up educationally.'"
"You can totally hear Marion's frown when she says, 'I'm not interested in pushing Zoe like that.'"
"'It's not pushing,' Becca sniffs. 'It's making sure our kids live up to their potential.'"
"'Still,' Marion says, and the conversation kinda peters out."
Table of Kids-Love-Toys-Chatter
Chatter
"Parry says to Marion and the mom, 'Your two kids really love that one toy.'"
"The mom laughs. 'Ever since Zoe started coming it's been that way.'"
"'I always thought that kind of competition wouldn't happen until Zoe was two or so,' Marion says."
"Becca says, 'Jemison doesn't really care about other kids['] toys,' she must be smoking something and it is not tobacco."
"'I don't know what I'll do if Cassie ends up grabbing toys from other kids,' Lisa says."
"Marion says, 'You'll watch for it and redirect Cassie and the other kid. When Cassie's older, you'll punish her.'"
"'Oh,' Lisa says, 'I couldn't spank Cassie.'"
"'You don't have to spank her,' the mom says and Marion chimes in, 'Farina's right. You'll figure out what Cassie's levers are and you'll pull them.'"
"Lisa sounds all puzzled, 'What do you mean?'"
"Marion says, 'As outgoing as Cassie is, you can try sending her to her room, or you can take away something she likes or likes to do. Figure out what she values. That's where you apply pressure.'"
"'Oh, okay,' Lisa says, but you can tell she is not convinced."
Table of Kid-Development-Chatter
Chatter
"'Cassie is really pulling up well,' the mom tells Lisa."
"'Oh, thanks,' Lisa says. 'She's probably too good at pulling up and climbing, to tell you the truth.'"
"'We've been working on pulling up,' the mom says, boy is she going to be surprised by all the practice you're getting today."
"Becca snorts. 'I love how all of you take credit for your kids['] development. Like you're the one pulling up.'"
"Lisa says, 'You're just annoyed that Jemison just sits there--' but Becca keeps on talking, 'So your kid pulls up or cruises or whatever. Big deal!'"
"Parry says, 'Kids develop at different speeds. It's not as if I'll still be helping Watson pull up when he goes to college.'"
"'As long as Zoe doesn't fall too far behind, I'm not worried,' Marion says."
"'Yeah,' Parry says. 'It won't bother me if Watson is like many boys and is slower to talk.'"
"'As long as Cassie is ahead of where she's supposed to be, I won't worry either,' Lisa says."
The baby-swing is a fixed in place container. The description of the baby-swing is "It is this a-frame thing with a swing in the middle and a speed switch[if the player is in the baby-swing] and from up here in it you are all tall[otherwise] way up there[end if]. [if the current speedness of the speed switch is hi and the player is in the baby-swing]Now that[otherwise]When[end if] the speed switch is all the way up boy does that swing go high, nearly high enough to kick a parent in the head if you were that kind of baby. It is supposed to be this cheerful baby plaid but instead it is this weird lumberjack-like plaid[contents-and-speed of the swing in description]." The printed name is "baby swing". Understand "baby" or "swing" or "plaid" or "frame" or "a-frame" as the baby-swing. The baby-swing can be on or off. The baby-swing is off. The baby-swing can be temporarily muffled. Instead of jumping when the player is in the baby-swing, say "You are strapped into the swing and that keeps you from jumping to your pain if not death." Instead of inserting something into the baby-swing when the player is not in the baby-swing, say "The baby swing is [if the player is not quarter-height-or-higher]too high and is also [end if]not really for putting things other than babies in it." Instead of entering or upstanding using the baby-swing when the player is not in the baby-swing, say "[if the player is eighth-height-or-higher]Even though you are taller right now y[otherwise]Y[end if]ou cannot get in the baby swing yourself, that is something the parents do for you when they are bored of you or you are upset." Instead of being ambulatory when the player is in the baby-swing, say "You are way high in the baby swing and are all swinging, you are not some stunt baby who is used to taking falls." Instead of pushing or pulling the baby-swing when the player is not in the baby-swing, say "The frame part is too heavy to move and the swing part is too high[if the baby-swing is on] and besides it is already swinging[end if]." Before pushing the baby-swing to a direction when the player is not in the baby-swing, instead say "It is too heavy for you to move." A height reachability rule when the reaching actor is in the baby-swing (this is the baby-swing specific noun reachability rule):    if the reaching object is not nothing begin;    if the baby-swing encloses the reaching object or the reaching object is your favorite toy, continue action processing;    if the reaching actor is the player, say "With you strapped into the swing you cannot reach [the reaching object].";    stop action processing;    end if;    continue action processing. Every turn when the baby-swing is on and the baby-swing is present:    if the baby-swing is temporarily muffled begin;    now the baby-swing is not temporarily muffled;    otherwise;    say "The baby swing clicks and clacks as it swings[if the current speedness of the speed switch is hi] really high[end if]";    if the player is in the baby-swing, say ", and the whole world tilts and turns as you swing with it[if the current speedness of the speed switch is hi and the location of the baby-swing is TKBUG Open Area and your favorite toy is not in a playpen]. At the top of the swing you are way close to your toy";    say ".";    end if. To say contents-and-speed of the swing in description:    if a playmate is in the baby-swing begin;    say ". [A random playmate in the baby-swing] is all dangly from the swing";    if the baby-swing is on begin;    say " as it is swings";    if the current speedness of the speed switch is hi, say " really high";    end if;    otherwise if the baby-swing is on;    say ". The baby swing is all swinging[if the current speedness of the speed switch is hi] really high";    end if. To say contents-and-speed of the swing in room:    if a playmate is in the baby-swing begin;    say " and [a random playmate in the baby-swing] is all dangly from it";    if the baby-swing is on begin;    say " as it is swings";    if the current speedness of the speed switch is hi, say " really high";    end if;    otherwise if the baby-swing is on;    say " and it is all swinging[if the current speedness of the speed switch is hi]really high";    end if. Rule for writing a paragraph about the baby-swing: say "There is a big old baby swing here[contents-and-speed of the swing in room]." Rule for writing a paragraph about the baby-swing when the player is in the baby-swing: say "The baby swing is all holding you up." Rule for writing a paragraph about the baby-swing when the baby-swing is in the TV room: say "There is this baby swing right in front of the TV[contents-and-speed of the swing in room]." Rule for writing a paragraph about the baby-swing when the baby-swing is in the TKBUG Open Area: say "There is a big old baby swing all shoved up against the bookcase[contents-and-speed of the swing in room]." Instead of turning the baby-swing to, try turning the speed switch to the speedness understood. A thing called the speed switch is part of the baby-swing. The description is "That is the switch that controls how high the swing goes, it can be set to lo, med, or hi. Right now it is on [current speedness of the speed switch]." The speed switch has a speedness called the current speedness. The current speedness of the speed switch is lo. Instead of turning the speed switch to (this is the change speed switch speeds rule):    if the speedness understood is the current speedness of the speed switch begin;    say "The switch is already set to [speedness understood].";    otherwise;    change the current speedness of the speed switch to the speedness understood;    say "You push on the switch [if the player carries the poosh stick]with the poosh stick [end if]and turn it to [speedness understood].";    end if. Instead of flipping or turning or attacking or pushing or pulling the speed switch (this is the block flipping or turning or pushing the speed switch rule), say "The speed switch has three settings, lo, med, or hi, so you will have to turn it to a specific speed." The block flipping or turning or pushing the speed switch rule is listed after the change speed switch speeds rule in the instead rulebook. Instead of pushing the speed switch with the poosh stick, try pushing the speed switch. A height reachability rule when the reaching object is the speed switch and the reaching actor is in the baby-swing (this is the speed switch is way high even when in the baby swing rule):    if the reaching actor is the player, say "In one way you are close to the speed switch now that you are in the baby swing but in another way you are not that close because the swing straps hold you in, you will have to change the speed switch from outside the swing.";    stop action processing. The speed switch is way high even when in the baby swing rule is listed before the baby-swing specific noun reachability rule in the height reachability rulebook. A height reachability rule when the reaching object is the speed switch and (the reaching actor is quarter-height-or-higher or the poosh stick is carried by the reaching actor) (this is the speed switch is finally in reach rule):    continue action processing. A height reachability rule when the reaching object is the speed switch and the reaching actor is on a pushable between rooms enterable supporter (called the platform) (this is the speed switch is still way high rule):    if the reaching actor is the player, say "Even on [the platform] you are not tall enough to reach the speed switch.";    stop action processing. A height reachability rule when the reaching object is the speed switch (this is the speed switch is way high rule):    if the reaching actor is the player, say "You have short arms, you can't reach the speed switch from [if the player is half-height-or-higher]up[otherwise]down[end if] here.";    stop action processing.

The source code to Child's Play is licensed under a Creative Commons NonCommercial Sampling Plus 1.0 License.