I have been trying to get one of the snippets of code in the manual to work.
In 7.7 The other four sense, it has the line
Instead of listening in the Seashore, say “The song of gulls.”
However when I try this, i get an error message saying
This is the report produced by Inform 7 (build 6G60) on its most recent run through:
Problem. You wrote ‘Instead of listening in the Seashore’ , which seems to introduce a rule taking effect only if the action is ‘listening in the Seashore’. But that did not make sense as a description of an action. I am unable to place this rule into any rulebook.
Am I missing something?
I can get
Instead of listening:
if the player is in the Seashore, say “The song of gulls.”
but I prefer the first approach if I can get it to work.
I agree that there’s more to it.
The Standard Rules sometimes use “listening to” sometimes just “listening”. I can’t remember reading any explanation as to when prepositions at the end of the name of an action can be omitted and when they can’t.
Besides, if you try defining a new action – say, bouncing on something --, in as close analogy to the action of listening to as possible, I don’t think Inform will let you omit the “on” in “bouncing on“ even where the “to” in “listening to” is omitted in the Standard Rules.