Message-ID: <3B1A0BDB.532D@attglobal.net>
Date: Sun, 03 Jun 2001 03:05:15 -0700
From: "J. Fatula" <fatula3@attglobal.net>
Reply-To: fatula3@attglobal.net
Organization: Dis- or sometimes Un-
X-Mailer: Mozilla 3.01C-PBWG  (Win95; U)
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: [Inform] Delayed use of Parser
References: <3B192FB1.6CD8@attglobal.net> <B73E4F86.6BAF%amerenbach@mac.com> <9fbiaa$22s$2@newsg3.svr.pol.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: slip-12-64-96-92.mis.prserv.net
X-Trace: 2 Jun 2001 22:15:56 GMT, slip-12-64-96-92.mis.prserv.net
Lines: 45
X-Complaints-To: abuse@prserv.net
Path: news.duke.edu!newsgate.duke.edu!solaris.cc.vt.edu!news.vt.edu!news-out.cwix.com!newsfeed.cwix.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!znr.news.ans.net!newsfeed.us.prserv.net!prserv.net!news1.prserv.net!slip-12-64-96-92.mis.prserv.net
Xref: news.duke.edu rec.arts.int-fiction:87950

Let me try and rephrase this.
I've got an NPC in the game, we'll call him John.  Unfortunately, John
is not present right now.  As luck would have it, the security guard is
standing here, and will still be here when John shows up.  I want to
give the guard this order:

   >GUARD, TELL JOHN "BRING THE RIFLE TO THE REPOSITORY"

When this happens, the code I ALREADY HAVE will take the text "in
quotes" and store it as an array.  The guard will have a daemon running
that watches for John.  When John is present, the daemon will run a
little routine that simply passes on the array, but parses it into
actor, verb, noun, second, etc.  This routine is the problem.

How do I parse an array at a later point?
(Hence the subject line of the post)

Thanks, I know this is a tough/obscure one.

Joe Fatula

Adam Biltcliffe wrote:
>
> "Andrew Merenbach" <amerenbach@mac.com> wrote:
>
> > J. Fatula wrote:
> >
> > > I've got a bit of a problem again. (no surprise)
> > > I would like the player to be able to type in something like the
> > > following:
> > >
> > >> TELL JOHN "THROW THE BALL AT THE MONKEY"
>
> (snip description of how)
>
> > Yep.  Give John an "orders" property:
>
> The code you gave here works fine once the sentence has been parsed into
> actor, verb, noun and second and run as an action by the library, but I
> believe Joe was actually asking how to do that. The parser won't handle TELL
> NPC "COMMAND" without modification. As I suggested elsewhere in this thread,
> the easiest way would probably be to modify AskTellOrder.h.
>
> jw

