Liquid Handling

version 8 by Al Golden

  • Home page
  • Beginning
  • Previous



  • Example: ** A Coke & A Smile - 2nd example for testing.

        "A Coke & A Smile"

        use full-length room descriptions.

        Include Liquid Handling by Al Golden.

        rule for printing room description details:
        stop the action.

        after printing the name of an open container:
        omit contents in listing.

        instead of examining a closed container,
        say "[The noun] is closed.".

        instead of eating the sandwich:
        remove the sandwich from play;
        say "Delicious!".

        instead of eating a liquid:
        say "Try DRINKING [the noun] instead.".

        Starter is a room. the printed name is "Start Room".
        "Your standard every day start room with NO exits.".

        a supporter called a table is in Starter.

        the wall chart is a fixed in place thing in Starter.
        "You see a wall chart here".

        the description of the wall chart is
        "A chart that tells the combinations that you can make from the items in this room."


        instead of reading the chart, say "[line break]C O M B I N A T I O N C H A R T
        
        Items For Mixing
        
        Bleach,Cola,Potato Flakes,Kool-Aid,Oil
        
        ***********************************
        
        2-item Mixtures
        
        bleach-cola -> Poison [line break]
        bleach-flakes -> Poison [line break]
        bleach-Kool-Aid -> Poison [line break]
        bleach-oil -> Poison [line break]
        cola-flakes -> Safe [line break]
        cola-Kool-Aid -> Safe [line break]
        cola-oil -> Poison [line break]
        flakes-Kool-Aid -> Safe [line break]
        flakes-oil -> Poison [line break]
        Kool-Aid-oil -> Poison
        
        ***********************************
        
        combinations with single items
        
        Safe with bleach -> Poison[line break]
        Safe with oil -> Poison[line break]
        Poison with cola -> Poison[line break]
        Poison with Kool-Aid -> Poison[line break]
        Poison with flakes -> Poison[line break]".

        an open transparent container called a glass is in Starter.

        a drinkable liquid called the cola is in the glass.
        the printed name is "Coke".
        the indefinite article of the cola is "some".
        the coke is edible.
        understand "Coca-Cola" or "coke" as the cola.
        the description of the cola is "Coca-Cola! Brown and sugary,
        just as it's always been for 131 years.
        [if glass is floating] There is a cork floating in the Coke[end if]".

        a leaky container called a sieve is in Starter.
        understand "strainer" as the sieve.

        the description of the sieve is
        "It has a lot of holes in it and can not really hold liquids or even powders.".

        a thing called a cork is in Starter. the cork is floatable.
        the description of the cork is "A cork from a champagne bottle .".

        instead of smelling the cork, say "It smells of expensive champagne.".

        an absorber called a sponge is in Starter.

        an absorber called a paper towel is in Starter.

        an absorber called a Handi-Wipe is in Starter.

        instead of emptying the sponge,
        say "Try squeezing it instead.".

        instead of emptying the towel,
        say "Try squeezing it instead.".

        instead of emptying the Handi-Wipe,
        say "Try squeezing it instead.".

        a pipe wrench is in Starter.
        the description of the wrench is
        "Used for tightening and loosening things.".

        an edible thing called a ham sandwich is in Starter.
        the description of the sandwich is
        "A slab of ham between two pieces of white bread.".
        understand "white" or "bread" or "slab" as the sandwich.

        instead of eating something which is not edible,
        say "That can't be eaten.".

        check drinking from a container:
        if the number of things in the noun is 0,
        say "The [noun] is empty." instead.

        instead of drinking when the noun is the can,
        try drinking the oil.

        instead of drinking when the noun is the bottle,
        try drinking the bleach.

        instead of drinking when the noun is the glass,
        try drinking the cola.

        instead of drinking the oil from the can,
        try drinking the oil.

        instead of drinking the bleach from the bottle,
        try drinking the bleach.

        instead of drinking the cola from the glass,
        try drinking the cola.

        instead of drinking from the can when the oil is in the can,
        try drinking the oil.

        instead of drinking from the can when the bleach is in the can,
        try drinking the bleach.

        instead of drinking from the can when the cola is in the can,
        try drinking the cola.

        instead of drinking from the can when the wetmix is in the can,
        try drinking the wetmix.

        instead of drinking from the glass when a wetmix is in the glass,
        try drinking the wetmix.

        instead of drinking from the glass when the oil is in the glass,
        try drinking the oil.

        instead of drinking from the glass when the bleach is in the glass,
        try drinking the bleach.

        instead of drinking from the glass when the cola is in the glass, try drinking the cola.

        instead of drinking from the bottle when a wetmix is in the bottle,
        try drinking the wetmix.

        instead of drinking from the bottle when the oil is in the bottle,
        try drinking the oil.

        instead of drinking from the bottle when the bleach is in the bottle,
        try drinking the bleach.

        instead of drinking from the bottle when the cola is in the bottle,
        try drinking the cola.

        instead of drinking the cola: remove the cola from play;
        say "You finish off the cola. Boy did that ever hit the spot!".

        a closed, openable container called a bottle is in Starter.

        instead of examining the bottle when the bottle is closed:
        say "The label reads 'Clorox' and is closed.".

        instead of examining the bottle when the bottle is open:
        say "The label reads 'Clorox' and is open.
        [line break] Inside the bottle is [list of things in the bottle].".

        instead of drinking from the bottle when the bottle is open
        and the bleach is in the bottle, try drinking the bleach.

        instead of drinking from the bottle when the bottle is open
        and the wetmix is in the bottle, try drinking the wetmix.

        instead of drinking from the bottle when the bottle is open
        and the drymix is in the bottle, try drinking the drymix.

        instead of drinking from the bottle when the bottle is closed,
        say "The bottle ain't open!".

        instead of drinking from the can when the can is open
        and the oil is in the can, try drinking the oil.

        instead of drinking from the can when the can is open
        and the wetmix is in the can, try drinking the wetmix.

        instead of drinking from the can when the can is open
        and the drymix is in the can, try drinking the drymix.

        instead of drinking from the can when the can is closed,
        say "The can ain't open!".

        an edible liquid called the bleach is in the bottle.
        the bleach is poisonous and drinkable.
        the indefinite article of the bleach is "some".
        understand "Clorox" as the bleach.

        the description of the bleach is
        "Some of Clorox's finest bleach.
        [if bottle is floating] There is a cork floating in the bleach.[end if]".

        instead of smelling the bottle when the bottle is closed,
        say "You detect the faint odor of bleach.".

        instead of smelling the bottle when the bottle is open,
        try smelling the bleach.

        a closed openable container called a can is in Starter.
        instead of examining the can,
        say "[if closed]It says Pennzoil on the outside. [otherwise] It says
        Pennzoil on the outside. [line break]
        Inside you see [a list of things in the can][end if].".

        a drinkable, poisonous liquid called the motor oil is in the can.
        the indefinite article of the oil is "some".
        the description of the oil is "Pennzoil 30 weight
        [if can is floating] There is a cork floating in the oil.[end if]".

        a powder called some French's Potato Flakes is in Starter.
        the flakes is edible.
        the description of the flakes is "Potatos turned into powdery form.".
        understand " powder" as the flakes.

        instead of smelling the sandwich,
        say "Pork flavor.".

        instead of smelling the Kool-Aid,
        say "Grape flavor.".

        instead of smelling the bleach,
        say "It stinks highly of ammonia!".

        instead of smelling the cola,
        say "It smells just like Coca Cola!".

        instead of smelling the flakes,
        say "They smell just like potatoes! Duuuh!";

        instead of smelling the can when the can is closed,
        say "You detect the faint smell of something like gasoline.".

        instead of smelling the can when the can is open,
        say "It smells almost like gasoline.".

        instead of smelling the oil,
        say "It smells almost like gasoline.".

        instead of smelling the wetmix when the wetmix is safe,
        say "It has a fruity flavor to it.".

        instead of smelling the wetmix when the wetmix is poisonous,
        say "It stinks highly of ammonia and gasoline!".

        an edible powder called a Kool-Aid is in Starter.
        the indefinite article of the Kool-Aid is "some".
        understand "powder" as the Kool-Aid.
        the description of the Kool-Aid is "Grape-flavored powder.".

        instead of eating the Kool-Aid,
        say "You'd better mix it with something wet instead.".

        instead of eating the Flakes,
        say "You'd better mix it with something wet instead.".

        instead of mixing the cola with the bleach,
        try mixing the bleach with the cola.

        instead of mixing the flakes with the bleach,
        try mixing the bleach with the flakes.

        instead of mixing the oil with the bleach,
        try mixing the bleach with the oil.

        instead of mixing the Kool-Aid with the bleach,
        try mixing the bleach with the Kool-Aid.

        instead of mixing the flakes with the cola,
        try mixing the cola with the flakes.

        instead of mixing the Kool-Aid with the cola,
        try mixing the cola with the Kool-Aid.

        instead of mixing the oil with the cola,
        try mixing the cola with the oil.

        instead of mixing the flakes with the Kool-Aid,
        try mixing the Kool-Aid with the flakes.

        instead of mixing the oil with the wetmix,
        try mixing the wetmix with the oil.

        instead of mixing the bleach with the wetmix,
        try mixing the wetmix with the bleach.

        instead of mixing the cola with the wetmix,
        try mixing the wetmix with the cola.

        instead of mixing the Kool-Aid with the wetmix,
        try mixing the wetmix with the Kool-Aid.

        instead of mixing the flakes with the wetmix,
        try mixing the wetmix with the flakes.

        instead of mixing the oil with the drymix,
        try mixing the drymix with the oil.

        instead of mixing the bleach with the drymix,
        try mixing the drymix with the bleach.

        instead of mixing the cola with the drymix,
        try mixing the drymix with the cola.

        instead of mixing the Kool-Aid with the drymix,
        try mixing the drymix with the Kool-Aid.

        instead of mixing a mixed thing with a mixed thing,
        say "You've already mixed those two things together.".

        instead of mixing the drymix with the wetmix,
        try mixing the wetmix with the drymix.

        instead of drinking the drymix,
        say "You might try mixing it with something wet before doing that;".

        instead of mixing the bleach with the cola:
        move the bleach to the wetmix;
        move the second noun to the wetmix;
        now the second noun is mixed;
        now the wetmix is poisonous;
        move the wetmix to the glass;
        say "You mix the bleach and [the second noun]
        together and now have a deadly cocktail which you place in the glass.".

        instead of mixing the bleach with the flakes:
        move the bleach to the wetmix;
        move the second noun to the wetmix;
        now the second noun is mixed;
        now the noun is mixed;
        now the wetmix is poisonous;
        move the wetmix to the glass;
        say "You mix the bleach and [the second noun]
        together and now have a deadly cocktail which you place in the glass.".

        instead of mixing the bleach with the Kool-Aid:
        move the bleach to the wetmix;
        move the second noun to the wetmix;
        now the second noun is mixed;
        now the noun is mixed; now the wetmix is poisonous;
        move the wetmix to the glass;
        say "You mix the bleach and [the second noun] together
        and now have a deadly cocktail which you place in the glass.".

        instead of mixing the bleach with the oil:
        move the bleach to the wetmix;
        move the second noun to the wetmix;
        now the second noun is mixed;
        now the noun is mixed;
        now the wetmix is poisonous;
        move the wetmix to the glass;
        say "You mix the bleach and [the second noun]
        together and now have a deadly cocktail which you place in the glass.".

        instead of mixing the cola with the flakes:
        move the cola to the wetmix;
        move the second noun to the wetmix;
        now the second noun is mixed;
        now the noun is mixed; now the wetmix is safe;
        move the wetmix to the glass;
        say "You mix the cola and the [second noun]
        together and now have a terrible but drinkable
        cocktail which you place in the glass.".

        instead of mixing the cola with the Kool-Aid:
        move the cola to the wetmix;
        move the second noun to the wetmix;
        now the second noun is mixed;
        now the wetmix is safe;
        move the wetmix to the glass;
        say "You mix the cola and [the second noun]
        together and now have a terrible but drinkable cocktail which you place in the glass.".

        instead of mixing the cola with the oil:
        move the cola to the wetmix;
        move the second noun to the wetmix;
        now the second noun is mixed;
        now the wetmix is poisonous;
        move the wetmix to the glass;
        say "You mix the cola and [the second noun]
        together and now have a deadly cocktail which you place in the glass.".

        instead of mixing the Kool-Aid with the oil:
        move the Kool-Aid to the wetmix;
        move the second noun to the wetmix;
        now the second noun is mixed;
        now the wetmix is poisonous;
        move the wetmix to the glass;
        say "You mix the bleach and [the second noun]
        together and now have a deadly cocktail which you place in the glass.".

        instead of mixing the Kool-Aid with the flakes:
        move the Kool-Aid to the drymix;
        move the second noun to the drymix;
        move the drymix to the glass;
        say "You mix the Kool-Aid and the potato flakes
        together, and have an drinkable blend in the glass.".

        instead of mixing the wetmix with the oil:
        remove the oil from play;
        now the wetmix is poisonous;
        move the wetmix to the glass;
        say "You mix the cocktail and the oil together
        and now have an even deadlier cocktail which you place in the glass.".

        instead of mixing a wetmix with the bleach:
        move the bleach to the wetmix;
        now the wetmix is poisonous;
        move the wetmix to the glass;
        say "You mix the cocktail and the bleach
        together and now have an even deadlier
        cocktail which you place in the glass.".

        instead of mixing a poisonous wetmix
        with the cola: move the cola to the wetmix;
        move the wetmix to the glass;
        say "You mix the cocktail and the cola together
        and now have an even deadlier cocktail which you place in the glass.".

        instead of mixing a safe wetmix with the cola:
        move the cola to the wetmix;
        move the wetmix to the glass;
        say "You mix the cocktail and the cola together
        and now have an even nastier drinkable concoction which you place in the glass.".

        instead of mixing a poisonous wetmix with the Kool-Aid:
        move the Kool-Aid to the wetmix;
        move the wetmix to the glass;
        say "You mix the cocktail and the Kool-Aid together
        and now have an even deadlier cocktail which you place in the glass."

        instead of mixing a safe wetmix with the Kool-Aid:
        move the Kool-Aid to the wetmix;
        move the wetmix to the glass;
        say "You mix the cocktail and the Kool-Aid together
        and now have an even nastier drinkable concoction
        which you place in the glass.".

        instead of mixing a poisonous wetmix with the flakes:
        move the flakes to the wetmix;
        move the wetmix to the glass;
        say "You mix the cocktail and the flakes together
        and now have an even deadlier cocktail which you place in the glass.".

        instead of mixing a safe wetmix with the flakes:
        move the flakes to the wetmix;
        move the wetmix to the glass;
        say "You mix the cocktail and the flakes together
        and now have an even nastier drinkable
        concoction which you place in the glass.".

        the wetmix is a container.
        the wetmix is drinkable.
        the wetmix is safe.
        the printed name is "cocktail".
        understand "wet" or "deadly" or "cocktail" as the wetmix.

        the drymix is a container.
        the drymix is undrinkable.
        the printed name is "dry blend".
        understand "dry" or "blend" as the drymix.

        instead of examining the the drymix when the drymix is in the glass:
        say "You have an undrinkable combination of [list of things in the drymix] in the glass.".

        instead of examining the wetmix,
        say "A dubious cocktail of [list of things in the wetmix].".
        instead of drinking the wetmix when the wetmix is safe:
        remove the wetmix from play;
        say "You hold your nose and glug the wetmix down.";

        instead of drinking the wetmix when the wetmix is poisonous:
        say "You drank a real deadly potion!";
        end the game in death;

        instead of mixing the drymix with the oil:
        move the second noun to the wetmix;
        move the Kool-Aid to the wetmix;
        move the flakes to the wetmix;
        remove the drymix from play;
        move the wetmix to the glass;
        now the wetmix is poisonous;
        say "You combine the dry concoction with
        [the second noun] and place it in the glass.".

        instead of mixing the drymix with the bleach:
        move the second noun to the wetmix;
        move the Kool-Aid to the wetmix;
        move the flakes to the wetmix;
        remove the drymix from play;
        move the wetmix to the glass;
        now the wetmix is poisonous;
        say "You combine the dry concoction with
        [the second noun] and place it in the glass.".

        instead of mixing the drymix with the cola:
        move the second noun to the wetmix;
        move the Kool-Aid to the wetmix;
        move the flakes to the wetmix;
        remove the drymix from play;
        move the wetmix to the glass;
        now the wetmix is safe;
        say "You combine the dry concoction
        with [the second noun] and place it in the glass.".

        instead of mixing the drymix with the Kool-Aid:
        move the second noun to the wetmix;
        move the Kool-Aid to the wetmix; move the flakes to the wetmix;
        remove the drymix from play; move the wetmix to the glass;
        now the wetmix is safe; say "You combine the dry concoction
        with [the second noun] and place it in the glass.".

        instead of mixing the wetmix with the drymix:
        now every thing in the drymix is in the wetmix;
        say "You mix the dry blend into the cocktail.".

        test look with "x chart/read chart/x sandwich,x glass /x cork/
        
        x bottle/ x can/x towel/x sponge/x handi-wipe.".

        test smell with "smell sandwich/smell glass/smell cork/smell bottle/
        open bottle/smell bottle/smell Kool-Aid/smell flakes/smell can/
        open can/smell can/smell oil".

        test leaky with "pour cola into sieve/ open bottle/
        open can/pour oil into sieve/pour bleach into sieve".

        test mop with "empty cola/mop cola with towel/open bottle/
        empty bottle/mop bleach with sponge/ x towel/
        x Handi-Wipe/squeeze sponge into glass/ squeeze towel into bottle".

        test mix with "open bottle/open can/mix oil with bleach/
        mix flakes with Kool-Aid/
        mix cola with cocktail/mix blend with cocktail".