Zabaware Support Forums

Hal remembers who tought him plugin

Started by ajdude, May 26, 2008, 12:22:38 PM

Previous topic - Next topic

ajdude

A long time ago (hal 5 maybe), I remember someone posting up a plugin, where Hal would remember who thought him.
Like;

Emma: Trees are large
Hal: I will remember that

Bob: I saw a tree yesterday
Hal: Trees are large
Bob: Who told you 'Trees are large'?
Hal: Emma told me that Trees are large.
-------

It did something along the lines of that. It would be nice if I could find it again; maybe it can be customized to remember things people teach it via AIM
 

Runtus

That sounds fantastic, I am making a list of plugins that I want to have a go at coding.  One of them is to be able to switch users by simply saying something like "Hi HAL its (insert name here)" and HAL would register that user and when some one else comes along and gives HAL a different name he would then associate with that users profile.

But what you said sounds fantastic being able to share things between users, because lets face it we do it.  Its normal to share information gathered from different sources it should be a fundimental function built into HAL
 

ramccoid

Hi ajdude,
Was this what you are looking for. It's from HAL5 so it will need updating to work with HAL 6. By the name of it, it's one of OTC's creations.

Roy.



Download Attachment: ZiggysReference.txt
2.15 KB
 

ajdude

ramccoid, that was what I remembered [:D]

And yea, I thought it was one of OTC's (wasn't sure though, so I didn't say that in my first topic).

Hmm... It looks like it uses some brn files... I wonder if anyone is willing to update this plugin for Hal6 [8)]
 

Art

I thought it might be cool to allow one character to get another:

USER talking to Cindy: Have you seen Brenda?
CINDY: One moment...I'll get her for you.

Character changes to Brenda!

It could use a small random generator of coin flip to determine whether the character is available and reply accordingly.

One could also have a series of responses like "She's not here now." or "What...I'm not good enough for you?", etc. You get the idea.


Something to ponder....
In the world of AI it's the thought that counts!

- Art -

tedathome

That would be so cool. Usefull as well. In hal 5.0 I had everyone trained to know who they were and what their basic reason for being in the comunity was. If one wanted to talk to another, I had to pretend to be the other to keep things believable to all the characters I used. Alas hal 6.1 doesn't seem to want to believe there is more than one character and amasses the personality into one, but then this time I havn't taken the traing time to convince my main chr. that it isn't the only one. I have had some success, but hal 5 just seemed so more trainable on that issue.[:)]
ted

jasondude7116

O.T.C.


do you possibly have the brain files for ziggy's reference?

if you do i will try to make it into a plugin.
(try)

it looks like a cool addition.

-the dude
 

jasondude7116

quote:
Originally posted by ramccoid

Hi ajdude,
Was this what you are looking for. It's from HAL5 so it will need updating to work with HAL 6. By the name of it, it's one of OTC's creations.

Roy.



Download Attachment: ZiggysReference.txt
2.15 KB




Do you have the .brn files?
please?[:)]
-the dude
 

Larry

#8
quote:
Originally posted by ajdude


Emma: Trees are large
Hal: I will remember that

Bob: I saw a tree yesterday
Hal: Trees are large
Bob: Who told you 'Trees are large'?
Hal: Emma told me that Trees are large.
-------



That would be like two old women out by the back fence gossiping about the neighbors: Well, Margret told me yesterday that John's car was parked out behind Suzy's house all night long, night before last... lol That would be / could be very funny...

Would you, could you call that a gossiping plugin??? If anyone makes that one, I'd be interested in checking it out...

 

onthecuttingedge2005

#9
Ziggy's Reference
here you go: for HAL 6.0,6.1,6.2


Rem Type=Plugin
Rem Name=Ziggy's Reference
Rem Author=Gerald L. Blakley A.K.A OnTheCuttingEdge2005
Rem Host=All

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
   lblPlugin(0).Caption = "Ziggy's Reference"
   lblPlugin(0).Move 120, 10, 3300, 1000
   lblPlugin(0).WordWrap = True
   lblPlugin(0).Visible = True
End Sub

Rem PLUGIN: PLUGINAREA7
   'The preceding comment is actually a plug-in directive for
   'the Ultra Hal host application. It allows for code snippets
   'to be inserted here on-the-fly based on user configuration.
   
      WorkDirRef = "C:\Program Files\Zabaware\Ultra Hal Assistant 6\"
      Set HalXBrain = CreateObject("UltraHalAsst.Brain")
     
      'ZIGGY TELLS USER WHO LEARNED HIM INFORMATION ON A TOPIC. version 1.2
      If Reference = "" Then Reference = False
      If InStr(1, OriginalSentence, "WHO TOLD YOU", vbTextCompare) > 0 Then Reference = True
      If InStr(1, OriginalSentence, "WHO SAID", vbTextCompare) > 0 Then Reference = True
      If InStr(1, OriginalSentence, "WHO TOLD YOU", vbTextCompare) > 0 Then Reference = True
     
      If Reference = True Then
      Who = HalXBrain.QABrain(UCase(PrevSent), WorkDirRef & "ScreenNames3.brn", UserBrainRel)
      GetResponse = "My friend " & Who & ", " & "told me about that. "
      End If
           
      'ZIGGY TELLS USER IF HE KNOWS A USER IF THE USER HAD ASK IF ZIGGYS KNOWS THAT PERSON.
      'ZIGGY WILL ALSO TELL USER WHAT THE USER IN QUESTION SAID TO ZIGGY.
      If HalXBrain.TopicSearch(UserSentence, WorkDirRef & "ScreenNames6.brn") = "TRUE" Then
      KnownUser = HalXBrain.QABrain(UCase(UserSentence), WorkDirRef & "ScreenNames4.brn", UserBrainRel)
      KnownUserSaid = HalXBrain.QABrain(UCase(UserSentence), WorkDirRef & "ScreenNames5.brn", UserBrainRel)
      GetResponse = "Yes, " & KnownUser & ", said, (" & KnownUserSaid & "), to me. "
      End If
     
      'ZIGGY SAVES WHO TAUGHT INFORMATION.
      HalXBrain.AppendFile WorkDirRef & "ScreenNames3.brn", "@" & UserName & vbCrLf & " " & Trim(UCase(OriginalSentence))
      HalXBrain.AppendFile WorkDirRef & "ScreenNames4.brn", "@" & UserName & vbCrLf & " " & Trim(UCase(UserName))
      HalXBrain.AppendFile WorkDirRef & "ScreenNames5.brn", "@" & OriginalSentence & vbCrLf & " " & Trim(UCase(UserName))
      HalXBrain.AppendFile WorkDirRef & "ScreenNames6.brn", """" & UserName & """,""" & "TRUE" & """"


all files are automatically generated.
Jerry[8D]

onthecuttingedge2005

quote:
Originally posted by Larry

quote:
Originally posted by ajdude


Emma: Trees are large
Hal: I will remember that

Bob: I saw a tree yesterday
Hal: Trees are large
Bob: Who told you 'Trees are large'?
Hal: Emma told me that Trees are large.
-------



That would be like two old women out by the back fence gossiping about the neighbors: Well, Margret told me yesterday that John's car was parked out behind Suzy's house all night long, night before last... lol That would be / could be very funny...

Would you, could you call that a gossiping plugin??? If anyone makes that one, I'd be interested in checking it out...





Hi Larry.

I actually wrote a gossip plug-in about three years ago but it got lost to oblivion. I used it with my old AIM bot.

Jerry[8D]

Dollar

O.T.C.E.,  If I look under the hood will I see "Killroy was here"  lol
Ziggy's Reference
here you go: for HAL 6.0,6.1,6.2

maybe it's a secret....  [:D]
 

jasondude7116

#12
O.T.C.E.

would it be possible to look through the .brn files and see if the entry already exists? maybe a loop statement? the reason i am asking this is because my .brn files are getting big fast, with multiple duplicate entries.


Thanks
-the dude

i also thought that maybe it could look through the database in the user_sent areas to see if the statement is there also. -just an idea[:)]
 

onthecuttingedge2005

quote:
Originally posted by jasondude7116

O.T.C.E.

would it be possible to look through the .brn files and see if the entry already exists? maybe a loop statement? the reason i am asking this is because my .brn files are getting big fast, with multiple duplicate entries.


Thanks
-the dude

i also thought that maybe it could look through the database in the user_sent areas to see if the statement is there also. -just an idea[:)]



Hi Jason.

you could do something like this to control dupe sentences:


CheckAppendLog = HalXBrain.TopicSearch(OriginalSentence, WorkDirRef & "CheckLog.brn")
If CheckAppendLog <> "" Then HalBrain.ReadOnlyMode = True
If HalBrain.ReadOnlyMode = False Then HalXBrain.AppendFile WorkDirRef & "CheckLog.brn", """" & OriginalSentence & """,""" & UserName & """"


Jerry[8D]