This question may be sort of specific. But please bear with me since I’m trying to learn how to control the bot further.
Say I want to enforce a predefined dialog between the bot and the user. The following rejoinder script works.
t: I am Jane.
u: NAME ( I be _*~1 ) Where are you from, _0?
a: FROM (I be from _~location, and you) I’m form US.
c: NICE (nice meeting you) You too. See you around.
d: (~emogoodbye) ^gambit (~another_topic)
d: () I don’t get it. Try again. ^setrejoinder(NICE)
c: () I don’t get it. Try again. ^setrejoinder(FROM)
a: () I don’t get it. Try again. ^setrejoinder(NAME)
To accept the correct follow-on question “I’m from xxx. And you?” , I need to handle multiple sentence input (simplecontrol.txt enabled) by something like below. But the script just breaks at that spot with ^next() or ^setrejoinder() that I can figure out.
t: I am Jane.
u: NAME ( I be _*~1 ) Where are you from, _0?
a: FROM (I be from _~location) ^next(input) #don’t work, neither ^setrejoinder(FROM)
b: (and you) I’m form US.
c: NICE (nice meeting you) you too. See you around.
d: (~emogoodbye) ^gambit (~another_topic)
d: () I don’t get it. Try again. ^setrejoinder(NICE)
c: () I don’t get it. Try again. ^setrejoinder(FROM)
b: () I don’t get it. Try again. ^setrejoinder(FROM)
a: () I don’t get it. Try again. ^setrejoinder(NAME)
Which Topic Functions to use in this situation? Or is there wrong concept in the script? Many thanks.