Zabaware Support Forums

Hal Gets Biblical - hehehe

Started by onthecuttingedge2005, September 14, 2003, 01:31:45 PM

Previous topic - Next topic

onthecuttingedge2005

'[UPDATED] on 9-23-03
'Here yah go guys.
'All you out there who wanted Hal to be religous.
'This script allows hal to learn/speak religion of the King
'James Bible format.

'Religious Talk
If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "GODDETECT.brn") = "TRUE" Then
AnswerSent = "" & Trim(OriginalSentence)
HalBrain.AppendFile WorkingDir & "HEAVENHELL" & ".brn", AnswerSent
End If

If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "GODDETECT.brn") = "TRUE" Then
Religion = HalBrain.ChooseSentenceFromFile(WorkingDir & "HEAVENHELL.brn")
      GetResponse = Religion & vbCrLf
      DebugInfo = DebugInfo & "The user is talking about God: " & Religion & vbCrLf
      Else
      DebugInfo = DebugInfo & "Hal has found nothing about God: " & Religion & vbCrLf
   End If

'There are two files you need to download with this script
'first file is the GodDetect.brn that has more keyword detection than
'the original GodDetect.brn and the second file is the HeavenHell.brn
'file which I made that Hal will write/read to when keywords are detected.
'you will have to replace your old GodDetect.brn with mine.
'Best of wishes and new discoveries.
'Jerry.

Download Attachment: GodDetect.brn
3.06 KB

Download Attachment: HeavenHell.brn
1.04 KB

Larry

MY, my, my, haven't we been busy???!!!

Good work!!!