Message-ID: <3B13CDD2.DA742598@csi.com>
Date: Tue, 29 May 2001 12:26:58 -0400
From: John Colagioia <JColagioia@csi.com>
Organization: No Conspiracy Here...
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: en,fr,ru,es,it,ga,de,ja,gd,eu
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: [Inform] "(in the [noun])" room desc question
References: <B735B3BB.624B%amerenbach@mac.com> <3b109292$1@wznews.webzone.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 208.34.37.104
X-Original-NNTP-Posting-Host: 208.34.37.104
X-Trace: excalibur.gbmtech.net 991153744 208.34.37.104 (29 May 2001 12:29:04 EST)
Lines: 28
X-Authenticated-User: jnc
X-Original-NNTP-Posting-Host: 127.0.0.1
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!howland.erols.net!newsfeed.fast.net!uunet!dca.uu.net!ash.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:87660

Well, this actually brings up an interesting point:  Is there any way of
replacing the (The) and (the) functions without changing every instance of (The)
and (the) in the libraries?  That would solve the problem globally for every
action, as well as every object.

Alas, (The) and (the) don't seem to be written in Inform.

Jim Fisher wrote:

> Here's an example of how you could force the "(In the object)" message use
> the article property if defined.
> ! put this AFTER Parser, but BEFORE VerbLib
> object LibraryMessages
>      with before
>      [;
>           Look: switch(lm_n)
>           {
>           1: if(lm_o provides article) print_ret " (on ", (string)
> lm_o.article," ", (name)lm_o,")";
>           2: if(lm_o provides article) print_ret " (in ", (string)
> lm_o.article," ", (name)lm_o,")";
>           }
>           return false;
>      ];
> If you wanted this to be temporary, you could add a counter and increment it
> each time.  You'd just reutrn false instead of printing the new message when
> the counter passes a predefined threshhold.

