I suspect I’m missing something very basic here, as I just started looking at the manual and tutorial for Chatscript.
I took the basic simpletopic.top that comes with Chatscript (v 2.93 on windows ) and that does the basic questions shown in the tutorial, and tried to replace the “what is your name” rule with this modified one:
#! what is your name $bot = harry
u: ($bot=harry what is your name) My name is Harry Potter—what’s yours?
a: (My name is _*1 _*1 >) $firstninny = ‘_0 $lastnanny = ‘_1 Hello $firstninny $lastnanny .
This syntax is taken out of the manual, page 21, aside from the output. I believe the characters at the start of ‘_0 and ‘_1 are indeed ASCII character 39, an apostrophe.
In order to run this multiple times I also had to modify the INTRRODUCTIONS topic to add noerase and repeat:
topic: ~INTRODUCTIONS noerase repeat (~emogoodbye ~emohello ~emohowzit name here )
That’s all I changed. Here’s what I get, on two different machines:
My name output name
============ =========
a b a B
A B a B
aaa bbb AAA B
one two rule does not fire
zdkjf zdkfjs passed through correctly
Wade Schuette rule does not fire
wade schuette Wade Schutte ( changed “ue” to “u” in the last name)
I would have expected (as a newbie) that by single quoting ‘_0 and ‘_1 that I would have
bypassed all pre-processing of the first and last name, but this is clearly not true.
What else do I need to do to simply capture, correctly, the two input words, and print them (capitalized or not) without other change in the output stream?
Thank you!
Wade