Hi etellier,
You don't need to keep rewriting this part
'sets original user sentence to lower case
OriginalSentence = Lcase(OriginalSentence)
'removes all punctuation
OriginalSentence = HalBrain.AlphaNumericalOnly(OriginalSentence)
So your plugin should look like:
-----------
Rem Type=Plugin
Rem Name= speed
Rem Author= etellier
Rem Host=Assistant
'---------------------------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'---------------------------------------------------------------------------------
Sub OptionsPanel()
lblPlugin(0).Caption = "Ask HAL about speed."
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub
'-------------------------------------------------------------------------------------------
Rem PLUGIN: PLUGINAREA7
'The comment above tells Ultra Hal Assistant to insert the following code
'on-the-fly into the main brain code in the section referenced.
'-------------------------------------------------------------------------------------------
OriginalSentence = Lcase(OriginalSentence)
OriginalSentence = HalBrain.AlphaNumericalOnly(OriginalSentence)
If InStr(1, OriginalSentence, "tell me about 350",1) > 0 Then
Getresponse = "350 are fast engines. "
End If
If InStr(1, OriginalSentence, "how fast did we go",1) > 0 Then
Getresponse = "just below the limit. "
End If
Now just keep adding your responses.
Roy.