Measured Liquid
version 4 by Emily Short
Documentation
- Chapter: New Units
- Chapter: New Kinds
- Section: Liquids
- Section: Fluid containers and their descriptions
- Section: Fluid containers and solid objects
- Section: Inserting fluid containers
- Section: Cleaning fluid containers
- Section: Liquid Sources
- Chapter: New Actions
- Section: Drinking
- Section: Pouring and Filling
- Section: Simple Mixing
- Section: Mixing with Quantified Ingredients
- Section: Swimming
- Example: * Lakeshore - A lakeshore with a lake as a liquid source, an openable graduated flask that can be used to drink from it, and examples of attempted swimming.
- Example: * Lakeshore Swim - A lakeshore where the player can swim successfully.
- Example: * Metric Lakeshore - As above, but in cubic centimeters. Note that this example will compile only if our settings panel is set to Glulx.
- Example: ** Chemist's Lakeshore - Now we let the player type POUR 1.0 FL OZ OF LAKE WATER INTO FLASK, using measurements whenever the target vessel is graduated.
- Example: * Poisons - A drink that has a strong effect on the drinker.
- Example: * Guzzle and Gulp - Adding GULP and GUZZLE verbs alongside DRINK to allow the player to take different sizes of sip at will. GULP drinks a very large sip, while GUZZLE consumes all the liquid in a container in a single move. Demonstrates the use of sip size.
- Example: * Cranvodka - An example of liquids that cannot be mixed.
- Example: * Crantini - An example of liquids that can be mixed, producing new liquids.
- Example: * Clarktini - The same as before, but this time with our servant Clark doing all the mixing and drinking.
- Example: * Crashtini - A pyrotechnic variation in which the wrong mixture of liquids explodes both containers entirely. Demonstrates using the "resulting liquid" variable in the pouring it into action.
- Example: *** Exactitude - Requiring the player to use precise quantities of liquids to attain mixture results. Mixtures that are not included in the recipe book are rejected, so that the player can't make arbitrary combinations. Demonstrates using the liquid-mixture rulebook.
Measured Liquid provides a concept of volume, kinds for fluid containers and liquid sources, and actions for pouring, drinking, and swimming. It handles mixture recipes and allows players to combine liquids to produce new ones. It also provides full support for non-player characters to use the same actions.
Measured Liquid can be used with the Metric Units extension by Graham Nelson, or on its own, in which case it will assume the use of Imperial units. (Note that Metric Units requires Glulx.)
The inclusion of Assorted Text Generation by Emily Short will add some additional detail to the description of partially-filled containers, but that extension is not required.