Message-ID: <3B0ACEDF.12D5@attglobal.net>
Date: Tue, 22 May 2001 13:41:03 -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: Help w/parse name
References: <3B06E7AD.1F46@attglobal.net> <9e64ou$e9e$2@news.panix.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: slip-12-64-54-190.mis.prserv.net
X-Trace: 22 May 2001 09:07:43 GMT, slip-12-64-54-190.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.cc.ukans.edu!newsxfer.eecs.umich.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed.nyc.globix.net!uunet!ash.uu.net!newsfeed.us.prserv.net!prserv.net!news1.prserv.net!slip-12-64-54-190.mis.prserv.net
Xref: news.duke.edu rec.arts.int-fiction:87376

Thanks very much, and no, I don't mind hacking English.h at all - I'm
already using a version customized for my game.

Joe Fatula

--

Andrew Plotkin wrote:
>
> J. Fatula <fatula3@attglobal.net> wrote:
> > I need some help with a wall object in my game.  I want it so that if
> > the player types:
>
> >    >HIT WALL
>
> > the parser knows that it is this wall, not any of the default walls.  I
> > think this needs a parse_name routine for this wall, but I'm not sure.
>
> This is sort of a nuisance.
>
> You could use a ChooseObjects() routine to privilege your wall object
> above the direction-wall objects. However, this would produce output
> like
>
> >HIT WALL
> (the brick wall)
> Pow.
>
> Since your game almost certainly has no reference to the default
> walls, it's simpler to hack the library and remove the word 'wall'
> from the direction-wall objects. (They're in English.h.)
>
> If you're not into hacking English.h, you can set
>
> Constant WITHOUT_DIRECTIONS;
>
> and then create your own compass objects (n_obj, s_obj, etc) and move
> them into the Compass object in your Initialise() routine.
>
> --Z
>
> "And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."
> *
> * Make your vote count. Get your vote counted.

