!7 cmodule GDialogRunner > DynPrintLog { GModuleInfo gInfo; LS dialog = tlft([[ can you add numbers? sure. which numbers would you like to add? 5 ok, and? 3 that makes 8 thanks ]]); int index = 1; // first line is trigger S answer(S s) { if (nextLineIsBotLine()) ret nextLine(); S line = nextLine(); if (match(line, ai_dropLeadingPhrases_one(s, "ok"))) ret nextLine(); else { --index; ret "Nah dude. You are supposed to say: " + line; } } S initialAnswer(O... _) { ret nextLine(); } bool nextLineIsBotLine() { ret odd(index); } S nextLine() { S line = get(dialog, index); if (line == null) ret null with gazelle_stop(); ++index; ret line; } }