"Watermelons" Source (Inform7)

A weight is a kind of value. 1kg specifies a weight. Everything has a weight. A thing usually has weight 1kg.

The verb to weigh means the weight property.

A container has a weight called breaking strain. The breaking strain of a container is usually 5kg. Definition: A container is bursting if the total weight of things in it is greater than its breaking strain.

A watermelon is a kind of portable thing. A watermelon has weight 10kg.

The Fruit Stall is a room. "The plastic bag can hold 20 kilograms before bursting. One watermelon weighs 10 kilograms. What would happen if you put 3 watermelons in the bag?"

Three watermelons and a plastic bag are in the Fruit Stall. The plastic bag is a container with breaking strain 20kg.

Every turn when a container (called the sack) held by someone visible (called the chump) is bursting:
say "[The sack] splits and bursts under the weight! [if the player is the chump]You discard[otherwise][The chump] discards[end if] its ruined remains, looking miserably down at [the list of things in the sack] on the floor.";
now all of the things in the sack are in the location;
now the sack is nowhere.

(Based on http://inform7.com/book/RB_10_5.html#e365)

Home