Inform: Stopping objects being listed?
10 Apr 1995 22:12:26 GMT
I'm currently trying to write a small program in Inform (as a nice, vaguely
computer-related activity to relax from revision with that won't involve a
language that conflicts with one I'm being examined in) - but have hit a
snag. How can I have an object that is fully addressable, but doesn't appear
in listings?
This has been a problem in two places. The first is: right near the
start of my code, a person runs into the start room, throws an object to the
player, and legs it. The person ("figure in the door") is an object,
dropped into the startroom by a daemon and then removed a turn later.
Doing things to it just produces stock failure responses. The problem is - if
you type "look" just after he's come in, it prints out the entire room
description, followed by "There is a figure in the door here", followed by
the daemon-produced description of the person leaving again!. Can I suppress
the object listing here?
Likewise; another idea I tried to put it was to enable the player to refer to
their own limbs individually (eg, examine foot). All these objects are dropped
into the player by Initialize, and they work fine.. except that if you run an
inventory, you're told you're carrying all of them, which would require major
contortionism! I have tried overriding Invent, but it doesn't seem to do
anything (does a routine that returns a blank get regarded as a nonexistant
routine?)
Can anybody help here?
--
Mark Green, CS Undergrad, Reading, UK Standard Disclaimers apply
Finger my account@laurel.rdg.ac.uk for G-Code and PGP 2.3 Public Key Block
"They said to me to be myself; I was, and now they hate me."