Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!stern.fokus.gmd.de!zib-berlin.de!gs.dfn.de!Germany.EU.net!EU.net!news.sprintlink.net!simtel!col.hp.com!sdd.hp.com!news.cs.indiana.edu!shulick@guava.ucs.indiana.edu
From: "Sam Hulick" <shulick@guava.ucs.indiana.edu>
Subject: Re: Inform: How to arrest actions
Message-ID: <1995Oct1.210421.11595@news.cs.indiana.edu>
Organization: Vallen Software
References: <19950929.210409.75@arnod.arnod.demon.co.uk> <GDR11.95Sep30164831@stint.cl.cam.ac.uk>
Date: Sun, 1 Oct 1995 21:04:15 -0500
Lines: 31

gdr11@cl.cam.ac.uk (Gareth Rees) writes:
>Julian Arnold <jools@arnod.demon.co.uk> wrote:
>> The thing is I have an object, the_sun, which is... um... the Sun.
>> This is found_in all outdoors locations, and if the player refers to
>> it in particular (like EXAMINE SUN) the game gives a message.  But, I
>> don't want it to respond to TAKE ALL commands.  I've tried several
>> changes to the library to prevent this (which I won't go into), but
>> none of them work 100%.  Any ideas?
>
>You need to use the `ChooseObjects' entry point.  See item 57 of the
>library changes file:
>
>http://www.cl.cam.ac.uk/users/gdr11/inform/library-history.html

It shouldn't require any library changes!  It's quite simple.  All I do
is this:

Object the_sun "sun"
 with  article "the",
       name "sun",
       description "Yow, don't stare at it, man!"
 has   scenery concealed;

If you just put 'scenery', a 'get all' will still try to get the sun.
But if you add on 'concealed', 'get all' will avoid it.

-- 
--- Sam Hulick ------------- shulick@indiana.edu ---------------------
Systems Consultant        | Homepage:
Indiana College Placement |    http://copper.ucs.indiana.edu/~shulick/
  and Assessment Center   | PGP public key available on request
