Lost Items

version 2/110308 by Mike Ciul

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter 2 - Printing a parser error

    The parser's wn is a number that varies. The parser's wn variable translates into I6 as "wn".

    Rule for printing a parser error when the latest parser error is the can't see any such thing error (this is the check for lost items rule):
        let the remembered wn be the parser's wn;
        Repeat with the missing item running through lost things:
            Now the item sought is the missing item;
            if the player's command includes "[any sought thing]":
                carry out the noticing absence activity with the missing item;
                rule fails;
        now the latest parser error is the can't see any such thing error;
        now the parser's wn is the remembered wn;
        make no decision;