Problems using Questions by Michael Callaghan


(Stew King) #1

I’m using latest inform 7 (which is pretty early anyway) setup for gluxle and i just can’t figure out how to properly use Questions by Michael Callaghan. I can get it to work just fine with a single question, but if i have two (or more) in a row, it doesn’t seem to try to get input for all but the last question. I’ve looked at the source code, but being my first if, it all seems fine.

Help please!

Thanks,
-stew king

"test2" by Stew King

Include Questions by Michael Callaghan.

ABC is a room. "It has abc written all over the walls."
XYZ is south of ABC. "It has xyz written all over the walls."

Last report going rule (this is the color-choosing rule):
	if the room gone to is XYZ:
		follow the pick-color question rule;
		follow the pick-sound question rule.

The pick-color-Q is always "What is your favorite color? >".
This is the pick-color question rule:
	now current question is "[pick-color-Q]";
	now current question menu is {"Red", "Not red"};
	ask a closed question, in menu mode.
	
A menu question rule (this is the pick-color answer rule):
	if current question matches the text "[pick-color-Q]":
		if the number understood is 1:
			say "You should meet Redd Foxx";
		if the number understood is 2:
			say "You must be blue";
		if the number understood is greater than 2:
			say "Please, there are only two possible answers.";
			retry;
		exit.

The pick-sound-Q is always "What is your favorite sound? >".
This is the pick-sound question rule:
	now current question is "[pick-sound-Q]";
	now current question menu is {"Train horn", "Dove call"};
	ask a closed question, in menu mode.
	
A menu question rule (this is the pick-sound answer rule):
	if current question matches the text "[pick-sound-Q]":
		if the number understood is 1:
			say "WHAT?";
		if the number understood is 2:
			say "Coool.";
		if the number understood is greater than 2:
			say "Please, there are only two possible answers.";
			retry;
		exit.

test2
An Interactive Fiction by Stew King
Release 1 / Serial number 190312 / Inform 7 build 6M62 (I6/v6.33 lib 6/12N) SD

ABC
It has abc written all over the walls.

s

XYZ
It has xyz written all over the walls.

What is your favorite color? >
1 - Red
2 - Not red

What is your favorite sound? >
1 - Train horn
2 - Dove call

Please select a number between 1 and 2 >