Thanks so far, everyone, for all the help I’ve received on the forums. Slowly, but surely–but slowly!–I’m catching on to Inform.
My problem this time is that things that work perfectly in one part of the game fail to activate in another, even though the code compiles. I have two examples.
-
I stole a custom notify score rule from some good soul on these boards. Works great–except, when I changed the scene, it seemed not to notify players when their scores rises anymore. Is there any reason a rule would not be global, even though I wrote in nothing to make the rule scene-specific?
-
This one is really frustrating. Maybe it’s just better to show you some simplified version of it:
[code]A person can be relaxed, wary or ready. A person is usually relaxed.
The schoolhouse is a room.
The teacher is a woman in the schoolhouse. Understand “the teacher” and “teacher” as the teacher. The description of the teacher is “This teacher loves to give tests.”
After examining the teacher, award 5 points.
Monday Morning is a scene. Monday Afternoon is a scene. Monday Testing is a scene. Monday Morning begins when play begins.
Monday Afternoon begins when Monday Morning ends. Monday Morning ends when the score is 5.
Monday Testing begins when Monday Afternoon ends. Monday Afternoon ends when the player is ready.
When Monday Afternoon begins:
now the player is wary;
say “The teacher asks you, ‘What is the object of the sentence [’]Wizards cast spells?[’]’”.
After reading a command while the player is wary:
if player’s command matches “spells”:
say “Correct!”;
now the player is ready;
reject the player’s command;
otherwise:
award -1 point;
say “Wrong!”;
reject the player’s command.
When Monday Testing begins, say “Okay, it looks like you’re ready for your test. Good luck!”
[/code]
Test with “x teacher”, “spells”.
Is there any reason why the scene does not progress to Monday Testing? Thanks in advance for your help!