Systemshock,
The space ship theme is very popular and the teleport is useful because it removes the how do we get there which I run into, we magically move from the house to the park as an example. I usually avoid the scripted responses but possibly the case function will remove that feeling.
I just ran across the AutoHapGenerator, it might come in useful. For now I'll put in the Wiki plugin that still needs work to be done on it, actually just a modification of the Google search. Also the Google search should be modified so they don't interfere with each other.
Rem Type=Plugin
Rem Name=Wiki
Rem Author=Zabaware ModifiedCJ
Rem Host=Assistant
'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
lblPlugin(0).Caption = "Hal will open your browser and enter a Wiki query if you use the keyword "Wiki"
lblPlugin(0).Move 120, 120, 3300, 1000
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub
Rem PLUGIN: PLUGINAREA1
'The comment above tells Ultra Hal Assistant to insert the following code
'on-the-fly into the main brain code in the section referenced.
SearchEngine = "
https://en.wikipedia.org/wiki/English_language"
If InStr(1, UserSentence, "Wiki", 1) > 0 Then
SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "+"))
SearchKeyWords = Replace(SearchKeywords, "find+", "")
SearchKeyWords = Replace(SearchKeywords, "research+", "")
SearchKeyWords = Replace(SearchKeywords, "locate+", "")
SearchKeyWords = Replace(SearchKeywords, "search+", "")
HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & SearchKeywords & "</RUNPROG>"
GetResponse = GetResponse & "I will help you research this topic on the Internet. "
End If
Carl2