Re: Inform--I need help


6 Aug 1995 17:32:53 -0700

Gareth Rees (gdr11@cl.cam.ac.uk) wrote:
: exactly what you want to do with the water.

What I want to do is have it already in a container and allow the
player to drink it. It have tried the contents as Object and Nearby
both, but it still says there is nothing to drink. DRINKABLE is not
on the attribute list. I declared it and it gave no error.
I haven't tried calling it 'conts' as in Advent. The containers are
openable and that works.

: > Also, I would like clarification on aborting the default responses,
: > the use of rtrue.

: There's a short clarification on how the library interprets the return
: code from `before' and `after' routines at the Web page
: <http://www.cl.cam.ac.uk/users/gdr11/inform/tutorial.html>.

Well, I will try. I only have Lynx.

: > Another thing--it won't give the description for certain fixed items
: > in the room with the provided words. EG name "west wall" "west item"
: > but does respond to "west" (also on list, applies to all directions).

: I don't understand what you mean at all here. Can you clarify?

Object east_shelf "east shelf"
with name "east shelf" "east wall" "east",
description "This is the shelf on the east wall, etc.", "
has static;
! has scenery; this didn't seem to help.
Player: x east shelf Response is 'no such item'
x east wall ditto or 'nothing unusual'
x east -> This is the shelf on the east wall....

To check that I understood, I read toyshop.inf and then played
using boy, child, Chris, Christopher for testing. All worked.

I may have made the shelf Nearby. I have been using both depending
on what seemed to work. With Object, I put a 'found_in' usually.
AAD