Hey everyone, I’ve been wanting to build a chatbot for ages and I’ve recently downloaded chatscript.
I just have a quick question, I’m sorry if I’m not very clear as this is my first time with chatscript/programming so bear with me.
Under interjections in the manual, it says that stuff like yes, no, haha (which are under the ~yes ~no and ~emohappy etc) will get broken off into it’s own sentence, with whatever comes after in a new sentence.
For example: the input ‘Yes, I would like ham on my sandwich’ would get broken down into ~yes in the first sentence, and ‘I would like ham on my sandwich’ in the second.
I tried building a simple sandwich building bot to test stuff out.
Using this:
s: (~yes * ham) How many slices?
Doesn’t catch the input ‘Yes, I would like ham on my sandwich’ because it’s not one sentence, but two (after the substitute has broken it down). Is there a way to write something that catches both the ~yes and the ‘ham’ part? I tried just using
s: (ham) How many slices?
But that would also catch ‘no, I don’t want any ham’ which is bad.
Thanks, I hope I made myself clear.