Re: Questions on In Scope for INFORM


30 Mar 1995 07:29:44 GMT

MeiTien <meitien@aol.com> wrote:

>I started to study Balances.inf and play Balances to understand the code.
>I wonder why we can examine cedarwood box after search the furnitire in
>the hut?

Here's the relevant piece of code from balances.inf...

-----

Nearby furniture "wooden furniture"
with name "furniture" "broken" "wood" "wooden",
before
[; Examine, Search, LookUnder:
self.before=0; score=score+5;
--> move h_box to player;
"Searching through the furniture, which is good for nothing \
but firewood now, you come across an old cedarwood box.";
],
has scenery;

-----

The bit I've marked with the arrow is what you're looking for. The
reason the box is 'in scope' after you search the furniture is that,
after you've searched the furniture, you're holding it. (:3

It's always the little things that getcha...

---Fred M. Sloniker, stressed undergrad
L. Lazuli R'kamos, FurryMUCKer
lazuli@u.washington.edu

Fred's Sixth Law: The one thing you're not paying attention to is the
one thing you should be.