Answer to Exercise 44

| ANSWER TO EXERCISE 44
| The common man's wayhel was a lowly mouse. Since we think much more highly of the player:
    Object hog "Warthog" Caldera
      with name "wart" "hog" "warthog", description "Muddy and grunting.",
           number 0,
           initial "A warthog snuffles and grunts about in the ash.",
           orders
           [;  Go, Look, Examine, Eat, Smell, Taste, Touch: rfalse;
               default: "Warthogs can't do anything as tricky as that!";
           ],
      has  animate proper;
and we just `ChangePlayer(warthog);`. Note that the same `orders` routine applies to the player-as-human typing "warthog, listen'' as to the player-as-warthog typing just "listen''.

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.