Hello everyone. I would first like to thank Vonsmith for providing us with his great XTF plugin. Although I haven't actually tried it much (I usually run Hal in a debug state), I've look over the script and the .brn files and it looks like you've made some vast improvements to the way Hal remembers topics and related responses.
To the question of using a VB object throughout a conversation session, a VB object has only page scope. Meaning that when you create an object when the GetResponse is run, it is only accessible until the end of the script. When the main program calls the GetResponse script again, a new object is created, with no reference to the original object's data.
I just felt I'd save you the trouble because I found this out while trying to use a Media Player object to play music, but the object lost all references when the script was finished. What I was left with was a playlist of music running in the background, which I could not turn off (or do anything else to it for that matter) unless I exited the Hal program. Maybe the CustomMem variable can be used to store a short list of ephemeral topics that the user has mentioned.
On the other topic of sharing addin scripts, I believe everyone is contributing to the new scripts in some way. One thing we need lots of is user feedback about existing functions, new features to add, and examples of conversations with Hal. I read one interesting script where Hal actually seemed to stay within reasonable relevance of the topic for more than a couple sentences.
I'm posting a little code that will allow Hal to create a playlist from your Media Library based on artist, or random selection of artists. The playlist is opened in Media Player (you need version 7+) and played. Cut and paste the code into the brain script immediately after the section:
'PROCESS: ADD SPACES
'This will add spaces to the beggining and end
'of the user sentence to make sure that
'whole words can be found at the beginning and end of any sentence
UserSentence = " " & UserSentence & " "
I will eventually extend the script so that the music selection can be by song, specific list of songs, genre, etc.
More on the way so keep posting.[

]
Download Attachment:
MusicAddin.txt2.32 KB