Hello again,
thought I’d be fine, but here I run into another problem.
I guess to answer this question one will need a bit experience with the Extension “Questions by Michael Callaghan”.
I am trying to establish a conversation and have been fairly successful. Basically it is just one person talking and asking the player a number of questions. The conversation begins when entering a specific room.
Sounds simple. Most likely it is. I chose a complicated path, most likely. This is what I did in a simplified example:
[code]
Include Questions by Michael Callaghan
The Bedroom is a room. “It is ridiculously boring.”
A question is a kind.
A question is either answered or unanswered.
A question is usually unanswered.
Question1 is a question.
Question2 is a question.
Every turn:
If player is in the Bedroom:
If Question1 is unanswered:
Now the current question is “How much is 1 x 12?”;
Now current question menu is { “1”, “12”, “24” };
Ask a closed question, in menu mode;
Otherwise if Question2 is unanswered:
Now the current question is “How much is 2 x 12?”;
Ask a closed question, in text mode.
A menu question rule:
if the current question is “How much is 1 x 12?”:
If the number understood is 2:
Increase Score by 5;
Say “You are a math genius!”;
Now Question1 is answered.
A text question rule:
if the current question is “How much is 2 x 12?”:
If the current answer is “24”:
Increase Score by 5;
Say “You are unbeatably brilliant!!!”;
Now Question2 is answered.[/code]
My problem here is that I cannot get past the text question. The line “You are unbeatably brilliant!!!” is shown, but then the game gives me the prompt for answering the question again.
How can I exit the loop?
Also: Is there a more elegant way to trigger the conversation? At the moment I use the “Every turn” rule, but what if I want to do that later and there is no action I could bind a rule (like “after”, “before” or “instead”) to?
This also applies if I want to “Say” something, but have no rule I could put the “If” clause in. What can be done?
Any ideas?
Thanks in advance for your input.
BiB