quote:
Originally posted by Baerdric
It should be easy enough to make a plugin for that. Hal stores its last sentence, you extract that with the "Don't say that" command, and write it to a new DB which the plugin checks before each response. If the sentence is in the DB, it makes hal choose another one, probably by reentering the user input phrase again.
If you can't get that to work, I'll think about it some more, maybe try a couple things myself.
Thanks for the reply. This is exactly what i had in mind, but i'm really not capable of writing such a plugin. [

]
EDIT: Searching the archives, i found this "Repeat" plugin by Bill DeWitt which forces Hal to repeat his last response (PrevSent). What i would like is a plugin that will allow me to tell Hal to "never" say that phrase again.
'========= Begin code
Rem Type=Plugin
Rem Name= Repeat
Rem Author= Bill DeWitt
Rem Host=All
Sub OptionsPanel()
lblPlugin(0).Caption = "Repeats last response when asked"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub
Rem PLUGIN: PLUGINAREA7
'verify that you want the repeat function
FindSubject=Array("repeat", "say that again")
If ParseRequest(OriginalSentence, FindSubject) Then
'verify that you are making a request
FindRequest=Array("please","can you","will you","could you","would you","if you don't mind","I'd like you to","I would like you to")
If ParseRequest(OriginalSentence, FindRequest) Then
GetResponse = PrevSent
End If
End If
Rem PLUGIN: FUNCTIONS
'===================================
Function ParseRequest(Source, Matrix)
'Reads information from an array to verify a request
For Each Datum In Matrix
If InStr(1,Source,Datum,1) Then
ParseRequest = True
End If
Next
End Function
'=======================================end code