Child's Play

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

Chapter 6 - Clinging, Cruising, and Standing, Which Allows Babies To Pull Up On Items and Move Around

Section 1 - The Clinging Relation

[It would be nice if the verb could be "to cling to".]
Clinging relates various people to one thing. The verb to cling (he clings, they cling, it is clinged, he is clinging) implies the clinging relation. The verb to be pulled up on implies the clinging relation.

[5G67 introduced a bug where this "standing" definition clashed with the "standing using" action. Whoops. Rephrase.]
Definition: a person is standing if it is pulled up on something.
Definition: a thing is pulled-up-on if something is pulled up on it.

The previous-support is a thing that varies.

To seat (kid - a person):
    if the kid is pulled up on something (called item), change previous-support to item;
    now the kid is not pulled up on anything;

To let go of (furnishing - a thing):
    now the furnishing is not clinged by anyone;

[Changes to status line due to upstanding using]
When play begins:
    change the left hand status line to "[the player's surroundings][if the player is pulled up on something (called the support)] (pulled up on [the support])".

A thing can be suitable for pulling up on. A thing is usually not suitable for pulling up on. A thing can be suitable for cruising. A thing is usually not suitable for cruising.

Furniture is usually suitable for pulling up on. A woman is usually suitable for pulling up on. A man is usually suitable for pulling up on.

[A height reachability rule for the furniture on which you are pulled up.]
A height reachability rule when the reaching actor is pulled up on the reaching object: continue action processing.

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