dupa

Author Topic: Hal remembers who tought him plugin  (Read 9133 times)

ajdude

  • Newbie
  • *
  • Posts: 29
    • View Profile
Hal remembers who tought him plugin
« on: May 26, 2008, 12:22:38 pm »
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

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Hal remembers who tought him plugin
« Reply #1 on: May 27, 2008, 06:51:19 am »
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

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://www.visualillustrations.co.uk
Hal remembers who tought him plugin
« Reply #2 on: May 27, 2008, 12:11:21 pm »
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

  • Newbie
  • *
  • Posts: 29
    • View Profile
Hal remembers who tought him plugin
« Reply #3 on: May 27, 2008, 01:17:04 pm »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3853
    • View Profile
Hal remembers who tought him plugin
« Reply #4 on: May 27, 2008, 07:01:34 pm »
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

  • Hero Member
  • *****
  • Posts: 2775
    • View Profile
Hal remembers who tought him plugin
« Reply #5 on: May 28, 2008, 03:23:41 am »
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

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Hal remembers who tought him plugin
« Reply #6 on: January 09, 2009, 04:54:35 pm »
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

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Hal remembers who tought him plugin
« Reply #7 on: January 10, 2009, 11:05:34 am »
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

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
Hal remembers who tought him plugin
« Reply #8 on: March 12, 2009, 02:52:05 pm »
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...

« Last Edit: March 12, 2009, 02:57:15 pm by Larry »
 

onthecuttingedge2005

  • Guest
Hal remembers who tought him plugin
« Reply #9 on: March 13, 2009, 01:35:14 am »
Ziggy's Reference
here you go: for HAL 6.0,6.1,6.2

Code: [Select]
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]
« Last Edit: March 13, 2009, 01:39:04 am by onthecuttingedge2005 »

onthecuttingedge2005

  • Guest
Hal remembers who tought him plugin
« Reply #10 on: March 13, 2009, 01:38:09 am »
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

  • Newbie
  • *
  • Posts: 26
    • View Profile
Hal remembers who tought him plugin
« Reply #11 on: March 13, 2009, 02:00:01 am »
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

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Hal remembers who tought him plugin
« Reply #12 on: March 22, 2009, 02:39:24 pm »
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[:)]
« Last Edit: March 22, 2009, 02:43:11 pm by jasondude7116 »
 

onthecuttingedge2005

  • Guest
Hal remembers who tought him plugin
« Reply #13 on: March 22, 2009, 04:23:00 pm »
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:

Code: [Select]
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]