Measured Liquid

version 4 by Emily Short

  • Home page
  • Beginning
  • Previous



  • Chapter 4 - Unsuccessful Attempts

    Unsuccessful attempt by someone pouring something into something (this is the explain unsuccessful pouring rule):
        if the reason the action failed is:
            -- the can't pour from a closed noun rule:
                say "[The actor] can't pour from [the noun] when [it-they] [is-are] closed.";
                rule succeeds;
            -- the can't pour two untouched things rule:
                say "[The actor] can't quite get [the noun] and [the second noun] into the right configuration for pouring.";
                rule succeeds;
            -- the can't pour without fluid containers rule:
                if the noun is not a fluid container:
                    say "[The noun] [is-are]n't something that can be poured.";
                    rule succeeds;
                if the second noun is not a fluid container:
                    say "[The second noun] [is-are]n't something that can be poured.";
                    rule succeeds;
            -- the no pouring something into itself rule:
                say "[The actor] can hardly pour [the noun] into [if the noun acts plural]themselves[otherwise]itself[end if].";
                rule succeeds;
            -- the can't pour empties rule:
                say "No more [liquid of the noun] remains in [the noun].";
                rule succeeds;
            -- the can't overfill rule:
                say "[The second noun] cannot contain any more than it already holds.";
                rule succeeds;
            -- the might mix substances rule:
                say "[The liquid-mixture refusal][paragraph break]";
                rule succeeds;
        make no decision.

    Unsuccessful attempt by someone drinking something (this is the explain unsuccessful drinking rule):
        if the reason the action failed is:
            -- the can't drink things that aren't fluids rule:
                say "[The noun] [is-are]n't suitable to drink.";
                rule succeeds;
            -- the can't drink from empty containers rule:
                say "[The noun] contain[s] nothing." instead;
                rule succeeds;
            -- the can't drink noxious containers rule:
                say "The [liquid of the noun] [is-are]n't something [the actor] can drink.";
                rule succeeds.


    Measured Liquid ends here.