I am not getting the pattern matching concept of chat script properly . I was moving my project form AIML to chatscript. A small example i tried and dint worked .
topic: ~introductions keep []
t: Hi, I am bot
u: (~emohello) [Hello][Hi][Hey]
u: (a) ^respond(~a)
u: (b) ^respond(~b)
u: (c) ^respond(~c)
u: (when will you go home) ^respond(~d)
topic: ~a nostay []
t: a
topic: ~b nostay []
t: b
topic: ~c nostay []
t: c
topic: ~d nostay []
t: d
when I type hi/hello/hey, every time it will hit u: (~emohello) [Hello][Hi][Hey]
But when i type “a” , it is randomly hiting any of responders, then erase , then next one.
When i type “a” , it is supposed to take u: (a) ^respond(~a) only rt ? But taking randomly one after other.
For “when will you go home” ; that is also taking randomly not hiting the last one exactly.
Whether my concept on pattern matching is wrong ? Even if i elaborate this pattern in each responders I am not getting expected result.
Can I get some good sample project that covers all chatscript features so that i can study and develop my bot?