Newsgroups: rec.arts.int-fiction
Subject: Re: [TADS] Using user input in game output
From: argus@see.the.sig (T Raymond)
References: <220320021553038951%mborok@mindspring.com> <a7gobn$4so$1@drizzle.com> <Xns91DADE72C3C5FTjR12537@209.25.157.130> <a7jqdm$cbk$1@drizzle.com>
Message-ID: <Xns91DBB755C31A0TjR12537@209.25.157.130>
User-Agent: Xnews/4.05.11
NNTP-Posting-Host: 66.218.9.4
Date: 24 Mar 2002 16:39:29 -0600
X-Trace: corp.newsgroups.com 1017009569 66.218.9.4 (24 Mar 2002 16:39:29 -0600)
Lines: 34
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support,  spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com>
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 80,000+ UNCENSORED Newsgroups.
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!corp.newsgroups.com!not-for-mail
Xref: news.duke.edu rec.arts.int-fiction:102075

Dan Shiovitz was overheard typing about:

> preparseCmd() gets called (more or less) after the sentence has
> been parsed but before anything is done about it. It takes in a
> list consisting of all the words in the command (and it gets
> called for each command on the line). So if you enter in
> something like
>>GO NORTH AND PET THE DOG THEN GET ALL
> preparseCmd() would get called three times, with
> ['go', 'north'] ['pet', 'the', 'dog'] ['get' 'A'] as the
> arguments to it for the three calls.
>
> What the code above does is grab the first word in the list
> (which is the verb) and stick it on the global object so it can
> be accessed later, and then return true to tell the command
> sequence to proceed on normally.
>
> The tads manual has a good discussion of this:
>  http://www.tela.bc.ca/tads-manual/tads-6.html#preparsecmd

Thanks for the pointer to where I can look up some more on it. It
wasn't actually something I planned on right away until I saw it in
print. Funny how that works. Thanks again.

Tom
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Tom Raymond                        af956 AT osfnDOTorg
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
