Hi all. I’m new to this forum, and new to Inform.
By way of introduction, I began playing text adventures as a kid around '80 on a VT 100 terminal calling into a mini computer. I was also a big Infocom fan, and had a number of their games on my Apple ][. I have recently gotten my 10-year old daughter interested in Infocom games, and then she was delighted to find Colossal Cave on her Kano computer. We decided to look into learning to write IF, and located Inform, which we have started using. Our first attempt is a very simple set of rooms mirroring our home, with a couple of easy puzzles intended to help us learn how to do certain things. With regard to this, I have a couple of questions. We spent a fair bit of time yesterday scanning the documentation, googling, and trying different things to sort these two (simple, I’m sure) issues out.
We have a bookshelf which is a container. You seem to need to use the preposition “in” to put something into a container, but no one says “Put the book in the bookshelf.” They always say “on”. I tried variations on this:
Understand “put [something] on bookshelf” as putting it in the bookshelf.
…to no avail. What is the correct approach here?
My second item is directly related. This errors when we try doing it, and I’m not sure where we have gone wrong:
After putting the storybook in the bookshelf:
say “The house feels tidier already.”;
remove the storybook from play;
increase the score by 10;
The error we get is:
Problem. You wrote ‘After putting the storybook in the bookshelf’ , which seems to introduce a rule taking effect only if the action is ‘putting the storybook in the bookshelf’. But that did not make sense as a description of an action. I am unable to place this rule into any rulebook.
The above is modeled on a nearly identical code block that works without a hiccup:
After giving the scraps to Nighty:
say “The gerbil begins to munch hungrily.”;
remove the scraps from play;
increase the score by 10;
Thank you for any help you may be able to offer.