dupa

Author Topic: Hal Gets Biblical - hehehe  (Read 3896 times)

onthecuttingedge2005

  • Guest
Hal Gets Biblical - hehehe
« on: September 14, 2003, 01:31:45 pm »
'[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
« Last Edit: September 23, 2003, 08:58:03 pm by onthecuttingedge2005 »

Larry

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
Hal Gets Biblical - hehehe
« Reply #1 on: September 14, 2003, 02:05:52 pm »
MY, my, my, haven't we been busy???!!!

Good work!!!