Child's Play

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

Section 12 - By the Cabinet

By the Cabinet is south of Behind the Loveseat. "The cabinet that is also like an endtable for the loveseat and the couch is here. You can go north back to behind the loveseat[if something is on the cabinet top].[paragraph break]Way up on top of the cabinet you see [a list of things on the cabinet top][end if][if unvisited].[paragraph break]You can't believe the mom just shoved your favorite toy in that cabinet so you couldn't have it[end if]." The faraway descriptor is "next to the cabinet".

The wood cabinet is an openable closed scenery container in By the Cabinet. Understand "endtable" or "table" as the wood cabinet. The description is "The cabinet is wood like a lot of other furniture in here because the parents like wood or something, maybe they are tree huggers but only if the trees have been cut down and planed and shaped. Anyway it has this door in it which is [if the wood cabinet is open]standing open[otherwise]closed[end if][if something is on the cabinet top] and on top is [a list of things on the cabinet top][end if]." Instead of tasting the wood cabinet, say "It is waxy and maybe a bit lemony." Instead of putting something under the wood cabinet, say "There is not really enough room under there for anything thicker than a piece of paper." Instead of putting the folded paper under the wood cabinet, say "I guess it is really hard to put the paper under there because you can't get it to go under there again." Instead of looking under the wood cabinet, say "There is no real space under there for you to look in."

Instead of opening the wood cabinet when the player is standing (this is the player can't open the cabinet while standing rule), instead say "That is a good idea but you cannot really do that while you are all pulled up without falling down on your diaper instead, and besides the baby lock is so high you still couldn't reach it."

The player can't open the cabinet while standing rule is listed before the player opens the cabinet with jangly zoe rule in the instead rulebook.

Instead of opening the wood cabinet when the player is on a pushable between rooms enterable supporter (called the platform) (this is the player can't open the cabinet while on a block rule):
    [This shouldn't happen if the paper's been played with.]
    if the folded paper is handled, continue the action;
    say "That is a clever idea but your ideas are more agile than you are. Even though [the platform] makes you taller, opening the cabinet and pushing down on the baby lock and not falling on your face and hurting yourself is like two more things than you can do at one time. You should find something else to push down on that lock for you."

Mentioning the source of the coaster is a one-time deal.

To have the coaster bounce off the lock:
    say ". [if mentioning the source of the coaster has not occurred]This paper coaster that must have been under the tumbler[otherwise]The paper coaster[end if] comes sliding off the cabinet and hits the baby lock! But the coaster is really light and so it bounces off without opening the lock and lands on the floor[note coaster-falls]";
    move the coaster to By the Cabinet.

To have the coaster almost bounce off the lock:
    say ". [if mentioning the source of the coaster has not occurred]This paper coaster that must have been under the tumbler[otherwise]The paper coaster[end if] slides forward like it's about to fall off the cabinet".

Instead of opening the wood cabinet when Jemison is present and Zoe is present and Zoe has the velcro jangly balls (this is the player opens the cabinet with jangly zoe rule):
    say "You reach for the door and Zoe moves to stop you but Jemison gets in front of Zoe and reaches for the jangly balls[note baby-cancels-baby]. While she is all dealing with him you tug on the door and the baby lock catches";
    if the folded paper is handled begin;
        if the heavy tumbler is on the cabinet top begin;
            say ", making the entire cabinet rock towards you. And as it does so the tumbler tumbles, hitting the baby lock and pushing it down before springing off of the lock and over your head. The cabinet door pops open and your favorite toy rolls out[if the player is zeroth-height] and into your lap[end if]!";
            move your favorite toy to the player;
            stop the action;
        end if;
        say " and the entire cabinet rocks towards you now that there is no paper under it[if your favorite toy is in the wood cabinet] and your favorite toy rattles around in there";
        if the coaster is on the cabinet top, have the coaster bounce off the lock;
    otherwise if your favorite toy is in the wood cabinet;
        say " and you get a glimpse of your favorite toy";
    end if;
    instead say ".[paragraph break]Sadly your baby reflexes are not up to doing anything more than opening the door and so you then let go and the cabinet door closes[if the paper is handled] and the cabinet rocks back again[end if][note believable-baby-action]."

Instead of opening the wood cabinet when the player has the velcro jangly balls and Jemison is present:
    instead say "You go for the door but then Jemison is in front of you reaching for the jangly balls and they go jingle jangle when you pull away from him."

Together-playing is a one-time deal.

Instead of opening the wood cabinet when the folded paper is handled:
    say "You tug on the door and the baby lock on the door catches and the entire cabinet rocks towards you now that there is no paper under it[if the heavy tumbler is on the cabinet top] so that the heavy tumbler tips forward like it's going to fall[end if][if your favorite toy is in the wood cabinet] and your favorite toy rattles around in there[end if][note believable-baby-action]";
    if the coaster is on the cabinet top begin;
        if Zoe is present, have the coaster almost bounce off the lock;
        otherwise have the coaster bounce off the lock;
    end if;
    say ".[paragraph break]Then [if Zoe is present]Zoe shoves the door[otherwise]your baby reflexes are not up for more so you let go[end if] and the cabinet rocks back [if the coaster is on the cabinet top]making the coaster slide back fully on top of the cabinet [end if]and the door closes[if Zoe is present][note Zoe-pushes-door][end if][if zoe is present and together-playing has not occurred].[paragraph break]Lisa looks over the couch at you and at Zoe and she says, 'Awwww, they're playing together! How cute!'[otherwise].[end if]"

Instead of opening the wood cabinet:
    say "You tug on the door but it has one of those baby lock things on it that you have to push down to open the door and you cannot reach it at all so the door opens a tiny bit[if your favorite toy is in the wood cabinet] and you can barely see your favorite toy in there[end if][note believable-baby-action].[paragraph break]Then [if Zoe is present]Zoe falls forward and pushes against the door and it[otherwise]your reflexes are not up for more so you let go and the door[end if] slams shut[if Zoe is present][note Zoe-pushes-door][end if][if zoe is present and together-playing has not occurred].[paragraph break]Lisa looks over the couch at you and at Zoe and she says, 'Awwww, they're playing together! How cute!'[otherwise].[end if]"

Instead of pushing or pulling the wood cabinet, say "It is pretty firmly on the ground right now."

Instead of pushing or pulling the wood cabinet when the folded paper is handled (this is the push the wood cabinet rule), consider the make the cabinet rock rule.

This is the make the cabinet rock rule: say "It goes rock rock rock now that there is no paper wedged under it[if the heavy tumbler is on the cabinet top] and the tumbler tilts like it might fall forward[end if]."

A thing called the cabinet door is part of the wood cabinet. The description is "The door to the cabinet is [if the wood cabinet is open]open.[otherwise]closed." Before opening the cabinet door: try opening the wood cabinet instead. Before closing the cabinet door: try closing the wood cabinet instead. Before pulling the cabinet door: try opening the wood cabinet instead.

The cabinet top is a supporter. The cabinet top is part of the wood cabinet. Instead of examining the cabinet top, try examining the wood cabinet.

The fake baby lock is scenery in By the Cabinet. The printed name is "baby lock". The description is "You cannot really see the baby lock when the cabinet door is closed but you know what it looks like, it is a plastic latch way up at the top of the door. If you push down on the plastic latch then you can open the door which is a laugh because you are way short and it is way high." Instead of doing something other than examining when the fake baby lock is acted upon, say "You can't see the baby lock with the cabinet door closed but even if you could it is way high and out of reach. Not even pulling up would let you reach it unless you pulled up and then stood there for a year while you grew taller." Understand "latch" as the fake baby lock.

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