The easiest way is not to have it in that location at all until it’s revealed.
There is a banana. [This places it "off-stage" until we move it somewhere else.]
Instead of looking under the table when the banana is off-stage:
say "There seems to be a banana under the table.";
move the banana to the kitchen.
Ok, I managed to get it to be used in my program. Read a bit of the documentary and really didnt know what this meant: To hide (T - a thing):
now T is hidden;
if T is multi-location:
now T is Inform library absent;
now T is undescribed;
surreptitiously remove T from play;
change the original location of T to the holder of T;
remove T from play. Any help? Thanks!
It’s basically removing the object from play in a fancy way so that it can be brought back to the same place later. The “multi-location” part is for things like backdrops and doors which appear in multiple rooms. You don’t need the extension for something as simple as this.
Thanks for pointing that out. I guess I should look at my own code more thoroughly before I give advice.
I seem to handle most of these situations manually. I agree, the offstage method is still probably best.
To handle it manually:
Instead of taking the banana:
Say "You pick up the banana.";
Now the player carries the banana.