I’m trying to create a toy doll which can record something the player says and play it back. I think I’ve got most of it figured out, but the last part is giving me trouble. Here’s the code so far:
Talkity Tota is a female person in the toy store. Talkity Tota is portable. The description of Talkity Tota is “DESCRIPTION TEXT.”
Talkity Tota’s recording is a text that varies. Talkity Tota’s recording is “Goo goo ga ga!”
The black button is part of Talkity Tota. The description of the black button is “Push this button, and Talkity Tota will record whatever words she hears next.”
The white button is part of Talkity Tota. The description of the white button is “Push this button to make Talkity Tota play back whatever she’s recorded.”
After pushing the black button:
say “Talkity Tota is primed to record the next words she hears.”;
now Talkity Tota is curious.
After pushing the white button:
say “Talkity Tota says ‘[Talkity Tota’s recording]’”;
now Talkity Tota is satisfied.
Talkity Tota can be curious or satisfied. Talkity Tota is satisfied.
Teaching Talkity Tota is a recurring scene. Teaching Talkity Tota begins when Talkity Tota is curious. Teaching Talkity Tota ends when Talkity Tota is satisfied.
When Teaching Talkity Tota ends:
say “Talkity Tota’s audio player stops recording. Push the white button to hear what you recorded.”
So far, so good. The problem occurs when I try to get the game to recognizing ‘saying’ something. As far as I can work out, I think it should look something like this:
After saying something (called the statement) when Talkity Tota is curious:
now Talkity Tota’s recording is “[the statement]”;
now Talkity Tota is satisfied.
Inform doesn’t like that, though, and I can’t find anything in the instruction book that addresses this in the way I need to do it (the closest is using the command prompt to name a character, but that won’t work in this case because the puzzle involves using the doll to tape someone else talking.) Does anyone have any suggestions to make this work?