Hello,
I’ve recently started learning Inform 7. I did a bit of stuff many years ago in Inform 6, but this format is pretty new to me. I’m not by any means a programmer, so none of this stuff is obvious to me.
I’m trying to make this story, which starts with a simple conversation. I’m trying to use the command prompt, and give the player only a few options to type. ‘Yes’, ‘no’, and anything else. The character (Dr. Klein), will ask his patient (the player) a few questions, and have a limited set of replies.
This means that the player will not be using any standard commands like “ask Dr. Klein” or “talk to Dr. Klein”, but will simply type the reply directly into the prompt, and Inform shouldn’t be doing anything else other than typing Dr. Klein’s responses.
The whole thing is basically just to set up the atmosphere in what will - hopefully - be a thriller/horror game taking place in a psychiatric ward.
Here’s how I’m trying to set it up:
[code]Section 1 - Returning
Reply is a kind of value. The replies are neut, nowt, yes and no.
Klein is a man. Klein has a reply. Klein is neut.
Welcoming is a scene. Welcoming begins when play begins.
When play begins:
if Welcoming is happening:
talk to Klein.
After reading a command:
if Klein is neut:
if player’s command matches “no”:
now Klein is no;
if player’s command matches “yes”:
now Klein is yes;
otherwise:
now Klein is nowt.
To talk to Klein:
if Klein is neut:
say “[bold type]Dr. Klein:[roman type] So glad to see you back at the fold, Raphael. We’ve been missing you.”;
now command prompt is “Are you glad to be back? >”;
if Klein is no:
say “[bold type]Dr. Klein:[roman type] Oh well. You’ve had quite a set-back Raphael, and you need to be with the flock again”;
now command prompt is “Are you feeling numb in any of your limbs? >”;
if Klein is yes:
say “[bold type]Dr. Klein:[roman type] So glad to hear. We’re very happy to have you back in the pack, Raphael.”;
now command prompt is “Are you feeling numb in any of your limbs? >”;
otherwise:
"[bold type]Dr. Klein:[roman type] I’m sorry, I’m not sure what you’re talking about Raphael. Maybe we need to get on with the
now command prompt is “Are you feeling numb in any of your limbs?”.[/code]
This doesn’t really seem to work though, so I’m wondering if anyone could give me some tips?
I also quickly discovered that although I can get Inform to print the text, it will still print the “This is not a rhetorical question” message. Was wondering how I get rid of this?
Cheerio!