Message-ID: <3A8157CB.EA5E0D3D@csi.com>
Date: Wed, 07 Feb 2001 09:12:29 -0500
From: John Colagioia <JColagioia@csi.com>
Organization: No Conspiracy Here...
X-Mailer: Mozilla 4.76 [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] Odd Scopes
References: <3A7EC9A6.4DB7BEBB@csi.com> <anson-8350BC.11173405022001@news.efortress.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: jcolagioia.krusty.portasystems.com
X-Original-NNTP-Posting-Host: jcolagioia.krusty.portasystems.com
X-Trace: 7 Feb 2001 09:05:01 EST, jcolagioia.krusty.portasystems.com
Lines: 39
X-Authenticated-User: jnc
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!nntp.primenet.com!nntp.gblx.net!newsfeed.mesh.ad.jp!osa.uu.net!dfw.uu.net!arb.uu.net!nyc.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:83165

Anson Turner wrote:

> In article <3A7EC9A6.4DB7BEBB@csi.com>, John Colagioia <JColagioia@csi.com>
> wrote:
> : Quick question:
> : I was skimming through parts of the Designer's Manual, and started
> : looking at object scopes.  I looked through the standard scopes and the
> : ways of building custom scopes.  Then, I looked at the sample solutions
> : at the end, and noticed that at almost every point, there seemed to be
> : an unspoken rule of "scope can either be multiple-object OR not
> : visible."
> : Put simply, is there something I can do to the Foo() of "scope=Foo" to
> : allow it to handle multiple objects?  I'm not above hacking the
> : library, but I'd rather avoid do so if at all possible...
>
> Yes. Try reading the DM instead of "skimming through parts" of it.

In reply (take with many grains of salt, and in the light spirit intended):
"Sorry, but some of us have day jobs, too..."


> But so as
> not to be completely snarky:
>
>     When the parser reaches [scope=Topic ] it calls the Topic routine
>     with the variable scope_stage set to 1.  The routine should return 1
>     (true) if it is prepared to allow multiple objects to be accepted here,
>     and 0 (false) otherwise:  as we don't want "what is everything" to list
>     all the questions and answers in the game, we return false.
>
> (page 161)

Ah.  Good deal.  And, yeah, as "one of them teacher types," an answer of
"recheck section 28" would have been perfectly acceptable.  Thanks very much!

(And thanks to Neil for pointing me towards the "Translator's Manual."
Apparently, I won't need it, but it's darn fascinating reading)


