Reply-To: "Kent Tessman" <kent@remove-to-reply.generalcoffee.com>
From: "Kent Tessman" <kent@remove-to-reply.generalcoffee.com>
Newsgroups: rec.arts.int-fiction
References: <g7ni7ugr8a8nfvb22t8sjgbjtqku4sdci8@4ax.com>
Subject: Re: [HUGO]  How to preclude player seeing parser errors?
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <6Qje8.2224$q47.512957@news20.bellglobal.com>
Date: Mon, 25 Feb 2002 00:20:05 -0500
NNTP-Posting-Host: 64.229.226.153
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 1014614402 64.229.226.153 (Mon, 25 Feb 2002 00:20:02 EST)
NNTP-Posting-Date: Mon, 25 Feb 2002 00:20:02 EST
Organization: Bell Sympatico
Path: news.duke.edu!newsgate.duke.edu!solaris.cc.vt.edu!news.vt.edu!news-out.cwix.com!newsfeed.cwix.com!nntp.abs.net!feeder.qis.net!sunqbc.risq.qc.ca!news.uunet.ca!tor-nx1.netcom.ca!news1.tor.metronet.ca!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
Xref: news.duke.edu rec.arts.int-fiction:100659


"Dana Clarke" <joeynipp@bellsouth.net> wrote in message
news:g7ni7ugr8a8nfvb22t8sjgbjtqku4sdci8@4ax.com...
> First, I want to thank everybody for all the help they have given me
> so far with HUGO.  The process of learning all about HUGO is, however,
> depressing my ego further than I though possible <g>.  So, on to my
> current issue.
>
> I have a certain (only one so far) npc who I need to respond to each
> and every command with a certain phrase.  I though certainly the
> proper approach (with my severely limited understanding of HUGO) would
> be to define (within the npc's definition block) his "order_response"
> and so I did thusly:
>
> order_response
> {
> print "As you wish."
> }
>
> This seems most straightforward to my albeit simple mind.
>
> It works just fine.
>
> EXCEPT..... If the player chooses to issue a command with a direct
> object that is NOT defined, the parser (I suspect it is coming from
> there) politely issues a response back to the player that basically
> says: "You cannot use that word" - or something to that effect.  For
> instance, if the player types: "Fred, get the food." but I do not have
> a "food" object defined, the parser barfs out (please excuse the
> technical lingo here).
>
> But remember I said I wanted "As you wish." to be the response the
> player received for ANY command issued to the npc - and I do NOT want
> to have to enter all possible words the player might use as a direct
> object - nor do I wish to have to imagine all possible verbs the
> player might try to issue as a command to this particular npc.
>
> So, is there some way to, in effect, bypass the parser in this
> situation only so that no matter what command the player issues to
> Fred, he will respond with "As you wish."?
>
> Thank you for your studied opinions
> Dana (aka too loose to track)
>


