31
Programming using the Ultra Hal Brain Editor / Transferring info from one brain to another
« on: November 11, 2007, 08:17:33 am »
'Respond: Questions
'If the user wants Hal to ask a question, then Hal will ask one
If HalBrain.TopicSearch(UserSentence, "QuestionDetect") = "True" Then GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("ScienceQuestions")
HalBrain.DebugWatch GetResponse, "scienceQuestions"
Jerry I tried copying the "get joke" script and came up with the above script. I also created a "questionDetect table based on the "jokedetect" table, and a "ScienceQuestions" tabe based on the "jokes" table. I placed them in the same locations as the correspondikng jokes tables.
NOTHING HAPPENS. Hal just responds to the statement as though that script was not there.
I have never programmed, so I am trying to figure things out by careful observation and deduction (I just said that because I wanted to sound like a real scientist[8D][8D]).
I inserted this script after the tell a joke script.
Any suggestions?
'If the user wants Hal to ask a question, then Hal will ask one
If HalBrain.TopicSearch(UserSentence, "QuestionDetect") = "True" Then GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("ScienceQuestions")
HalBrain.DebugWatch GetResponse, "scienceQuestions"
Jerry I tried copying the "get joke" script and came up with the above script. I also created a "questionDetect table based on the "jokedetect" table, and a "ScienceQuestions" tabe based on the "jokes" table. I placed them in the same locations as the correspondikng jokes tables.
NOTHING HAPPENS. Hal just responds to the statement as though that script was not there.
I have never programmed, so I am trying to figure things out by careful observation and deduction (I just said that because I wanted to sound like a real scientist[8D][8D]).
I inserted this script after the tell a joke script.
Any suggestions?