Newsgroups: rec.arts.int-fiction
Path: news.duke.edu!newsgate.duke.edu!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!cyclone0.chicago.il.ameritech.net!uunet!chi.uu.net!arb.uu.net!ffx.uu.net!world!buzzard
From: buzzard@world.std.com (Sean T Barrett)
Subject: [inform] npc, yes
Message-ID: <G5M2H1.M7@world.std.com>
Date: Fri, 15 Dec 2000 13:22:13 GMT
Organization: The World Public Access UNIX, Brookline, MA
Lines: 56
Xref: news.duke.edu rec.arts.int-fiction:81525

I'm having trouble making "character, yes" work. The DM seems
to imply that I'm supposed to get my orders property called
with the action set to "yes", but instead I get the orders
property called with the action set to NotUnderstood.

=-=-= =-=-= =-=-=

! I'm retyping this by hand, so apologies for typos

include "Parser";
include "VerbLib";
include "Grammar";

Object room "room" with description "This is a room." has light;

Object -> "gal" with
   name "gal",
   orders
   [;
      Go:            "Go";
      Yes, No:       "Yes, No";
      Give:          "Give";
      NotUnderstood: "NotUnderstood";
      default:       "default";
   ],
   has animate;

[ Initialise; location = room; ];

=-=-= =-=-= =-=-=

room
This is a room.

You can see a gal here.

>gal, give me me
Give

>gal, push me
default

>gal, fekopk
NotUnderstood

>gal, yes
NotUnderstood

>yes
That was a rhetorical question.

=-=-= =-=-= =-=-=

Can somebody explain to me what's going on here?

SeanB
