Measured Liquid

version 4 by Emily Short

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 3 - Liquid Sources

    Chapter 1 - The Liquid Source

    [And now we add our liquid source kind, which will represent streams of tap water, saltwater lakes, absinthe fountains, and any other infinite supplies of liquid we might need. The volume of a liquid source is always set to be the largest possible number of fluid ounces available to us, but this varies for the Z-machine and Glulx, so they are separately defined.]

    A liquid source is a kind of fluid container. A liquid source has a liquid. A liquid source is usually scenery.

    When play begins (this is the initialize liquid sources rule):
        repeat with item running through liquid sources:
            now the fluid capacity of the item is max volume;
            now the fluid content of the item is max volume.

    Carry out pouring a liquid source into something (this is the liquid sources stay full rule):
        now the fluid content of the noun is the max volume.