dupa

Author Topic: I did it! Hal remembers names now!  (Read 6123 times)

onthecuttingedge2005

  • Guest
I did it! Hal remembers names now!
« on: September 11, 2003, 11:51:22 pm »
'[UPDATED] 9-25-03 script has been changed.
'Here yah go guys.

'**** User want's to know his/her own name
'so hal is now going to tell them their real
'name if the user has mentioned their real name.
'there is are two attachments called
'NamesDetect.brn/MyNameIs.brn with this
'script so download them to your default folder.
'the [User] names.brn will automatically be created when the user tells
'hal their own name.

If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "MyNameIs.brn") = "TRUE" Then
GetResponse = "Ok, say only your name and nothing else."
End If
If Instr (1, PrevSent, "Ok, say only your name and nothing else.", VbTextCompare) > 0 Then
AnswerSent = OriginalSentence
GetResponse = AnswerSent & ", Nice to meet you."
HalBrain.AppendFile WorkingDir & Trim(UserName) & "NAMES" & ".brn", Trim(OriginalSentence)
End If
   
If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "NAMESDETECT.brn") = "TRUE" Then
      RealName = HalBrain.ChooseSentenceFromFile(WorkingDir & Trim(UserName) & "NAMES.brn")
      GetResponse = RealName & vbCrLf
      DebugInfo = DebugInfo & "Hal is mentioning Users real name: " & RealName & vbCrLf
      Else
      DebugInfo = DebugInfo & "Hal has found nothing about Users real name: " & RealName & vbCrLf
   End If

'Larry! thanks for helping me out with some of this.
'you're great :)

Download Attachment: NAMESDETECT.BRN
825 Bytes

Download Attachment: MyNameIs.brn
716 Bytes
« Last Edit: September 25, 2003, 11:04:22 pm by onthecuttingedge2005 »

brianstorm

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
I did it! Hal remembers names now!
« Reply #1 on: September 12, 2003, 08:40:40 am »

Allriiiight!! >B) great job and dam finelookin piece of code!
I know how you feel- that conquer the beast feeling *smiles
-good to know others are out there working to help Hal

CatAtomic

Larry

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
I did it! Hal remembers names now!
« Reply #2 on: September 12, 2003, 12:09:45 pm »
quote:
Originally posted by onthecuttingedge2005


'Larry! thanks for helping me out with some of this.
'you're great :)


You're welcome - I'm glad I helped in some kind of way...
 

Don Ferguson

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
    • http://www.cortrapar.com
I did it! Hal remembers names now!
« Reply #3 on: September 14, 2003, 12:18:32 am »
Hello,

My compliments to everyone who worked on the code posted above!  

Sincerely,

Don
« Last Edit: September 14, 2003, 12:21:06 am by Don Ferguson »
Don Ferguson
E-mail: fergusonrkfd@prodigy.net
Website: www.cortrapar.com
Don's other forum posts: http://www.zabaware.com/forum/search.asp?mode=DoIt&MEMBER_ID=274

onthecuttingedge2005

  • Guest
I did it! Hal remembers names now!
« Reply #4 on: September 14, 2003, 02:32:26 am »
Thanks don :)
Jerry.

kevinvr

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://kevinvr.tripod.com
I did it! Hal remembers names now!
« Reply #5 on: September 22, 2003, 02:24:16 am »
Hi Jerry,

Thanks for all your hard work!  I have been using your files and I tested the mynameis.brn, It works great.  Knock knock also works well and I am going to try  the others as I have the time.

This is fascinating stuff.  I am hoping that soon I will be able to write some of these scripts too. [:)]
 
regards
Kevin
I dream of creating a self replicating, self maintaining, autonomous robot :)

Holllywood

  • Sr. Member
  • ****
  • Posts: 357
    • View Profile
I did it! Hal remembers names now!
« Reply #6 on: June 04, 2005, 12:17:00 pm »
Hello Folks. I keep seeing all these great script coming into the forum. And I'd love to try them. But is there a general place that you automatically paste these scripts? I can get the downloads to the default folder, But Have no Idea where to paste these great scripts in my XTFbrain. Could anyone help?
Hollywood

Maviarab

  • Sr. Member
  • ****
  • Posts: 345
    • View Profile
    • http://3d-fantasyportraits.co.uk
I did it! Hal remembers names now!
« Reply #7 on: June 04, 2005, 01:33:44 pm »
Once again I take my "virtual" hat off to you.

Thanks very much
AIDreams...The new home of the Digital Girl

www.aidreams.co.uk