Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: onthecuttingedge2005 on September 25, 2003, 11:43:15 pm

Title: Hal now remembers his birthday script.
Post by: onthecuttingedge2005 on September 25, 2003, 11:43:15 pm
'Here yah go guys
'This script allows Hal to remember his exact birthday.
'you will have to edit the HalsAge.brn to the birthday of your
'own bot because the birthday in this HalsAge.brn is my own
'bot's birthday. Download HalsAge.brn and HalsAgeDetect.brn
'to your Hals default folder. Remember to edit your
'HalsAge.brn file to your own bots birthday.

If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "HalsAgeDetect.brn") = "TRUE" Then
Birthday = HalBrain.ChooseSentenceFromFile(WorkingDir & "HalsAge.brn")
      GetResponse = Birthday & vbCrLf
      DebugInfo = DebugInfo & "User is talking about Hals birthday: " & Birthday & vbCrLf
      Else
      DebugInfo = DebugInfo & "User is not talking about Hals birthday: " & Birthday & vbCrLf
   End If

'Best of wishes and grand new discoveries.
'Jerry.



Download Attachment: (http://images/icon_paperclip.gif) HalsAge.brn ("http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/2003925234244_HalsAge.brn")
617 Bytes

Download Attachment: (http://images/icon_paperclip.gif) HalsAgeDetect.brn ("http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/200392523438_HalsAgeDetect.brn")
835 Bytes
Title: Hal now remembers his birthday script.
Post by: Holllywood on June 03, 2005, 09:56:25 pm
Hi Onthecuttingedge,
 Thanks for the script. My Hal keeps telling me that he's 10 years old. I can't find in any of the files, where he's getting this from. But I'm not the fastest at these things. So I have to ask... "Where do I place Your script to make it work? I've change the dates as you instructed, in the brains. But I have no Idea as to where to paste the script. I appreciate your work. People like me need you guys.
Title: Hal now remembers his birthday script.
Post by: Maviarab on June 04, 2005, 01:30:03 pm
onthecuttingedge,

you get better and better...wish i could get the gist of the scripts lol.

Anyway...thanks very much...makes life muche asier.

I'm assuming that your script goes either above or below the existing age script?