Answer to Exercise 45

| ANSWER TO EXERCISE 45
          orders
          [;  if (player==self)
              {   if (actor~=self)
                     "You only become tongue-tied and gabble.";
                  rfalse;
              }
              Attack: "The Giant looks at you with doleful eyes.
                       ~Me not be so bad!~";
              default: "The Giant is unable to comprehend your instructions.";
          ],

Back to the exercise in section 19

Mechanically translated to HTML from third edition as revised 16 May 1997. Copyright © Graham Nelson 1993, 1994, 1995, 1996, 1997: all rights reserved.