How do I get the Inanimate Listener to respond to "Computer, hello"?

0 votes
50 views
asked Sep 13 in Authoring by anonymous
edited Sep 13

Thank you -

Instead of asking Computer about something, say "'Voice print not recognised.'"

works.

I was expecting however that it would work for any comments directed at the computer, but it doesn't.

ASK COMPUTER ABOUT THE DOOR gets the right response but

COMPUTER, HELLO does not.

I can see that the second command is not an asking-type action. I assume this is why it falls outside the rule we've made.

Is there a simple way to get the computer to respond to anything said to it?

1 Answer

0 votes
answered Sep 13 by bg (692 points)
edited Sep 13 by bg

If you are using an extension that includes a conversation system, there might already be a way to refer to all talking-related actions--you could check the extension's documentation to find out.

If not, you could create a kind of action that includes the different talking-related actions. See ยง7.15. Kinds of action in the manual.

If you use the ACTIONS command and type "Computer, hello", it seems to fall under the "answering it that" action, so that should be included.

You could make a kind of action that's specific to this computer:

Asking the computer about something is fruitlessly dialoguing.
Telling the computer about something is fruitlessly dialoguing.
Answering the computer that something is fruitlessly dialoguing.

Instead of fruitlessly dialoguing:
    say "'Voice print not recognised.'"

If there are any other talking-related actions you want to include (see "Actions" in the Index tab), you can follow the same pattern.

Or if you want to be able to write rules that apply to all talking actions that are addressed to a particular thing/person, even if the action is not addressed to the computer:

Asking something about something is dialoguing.
Telling something about something is dialoguing.
Answering something that something is dialoguing.

Instead of dialoguing when the noun is the computer:
    say "'Voice print not recognised.'"
This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...