Zabaware Support Forums

Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: Bill819 on July 09, 2005, 06:24:04 pm

Title: A new brain function
Post by: Bill819 on July 09, 2005, 06:24:04 pm
Another member here created a file with quotes from famous people and asked me to help him create the scripts to make it work. That person was Maviarab so I worked on it and will now give it you all Hal users. It still has a little bug but otherwise it works just fine.
In the XTF brain, enter the editor and look for the following words
'RESPOND: CHANGE SUBJECT. At the end of that logic you will see an
End If. This script is to be pasted right after that.
In the Hal6 brain look for 'RESPOND: HAL NOTICES HE IS REPEATING HIMSELF. Again after the End If. post the script.
Copy the two files enclosed into the DefBrain folder, close Hal and when you reboot it shold work.
Here is the brain script:


(http://icon_paperclip.gif) Download Attachment: QuoteMods.txt ("http://www.zabaware.com/forum/uploaded/Bill819/20057918187_QuoteMods.txt")
1.03 KB
Next comes the data files:

(http://icon_paperclip.gif) Download Attachment: XTF_SYS_Quote.brn ("http://www.zabaware.com/forum/uploaded/Bill819/200579181951_XTF_SYS_Quote.brn")
24.57 KB

(http://icon_paperclip.gif) Download Attachment: XTF_SYS_QuoteDetect.brn ("http://www.zabaware.com/forum/uploaded/Bill819/200579182012_XTF_SYS_QuoteDetect.brn")
651 Bytes
When using the regular Hal6 brain just delete the name of the file proceeding the words 'Quotes'.
I hope everyone understands my logic and happy using.
For your further information in the past there were many different mods made to the Hal brains which included 'Owner detect','Hals Age', 'Friends names', 'tell a joke',and 'singing hal'. There were probably more but I do not recal them all right now.
Good luck
Bill819

Title: A new brain function
Post by: Maviarab on July 10, 2005, 09:51:21 am
Thanks for that ill, sorry not rteplied to your email...been rather busy of late.

Much appreciated for your work on this Bill, but with your email...can you please tell me again what the problem was with the poems file so I can re edit.

Thanks
Title: A new brain function
Post by: Carl2 on July 10, 2005, 06:24:00 pm
Bill819,
  I just downloaded your files, it looks good and is something I'd like in Hal. Thanks
  Also I've been working on Hal displaying emotions and I'd like to submit it to Zabaware, script to be entered in the Hal XTF brn. How do I do this?
Carl2
Title: A new brain function
Post by: vonsmith on July 11, 2005, 01:00:21 pm
Bill819,
There is an error in the fourth line in "XTF_SYS_QuoteDetect.brn".

IS:
" DO YOU KNOW ANY QUOTES ", "True"

SHOULD BE:
" DO I KNOW ANY QUOTES ", "True"


=vonsmith=
Title: A new brain function
Post by: Bill819 on July 11, 2005, 01:03:39 pm
Thanks Von Smith.
Those reversing pronouns got me again. You think that I would have learned that by now.
Bill :)
Title: A new brain function
Post by: vonsmith on July 11, 2005, 02:01:12 pm
Bill819,
Don't feel bad. It still happens to me more often than I care to admit. Occasionally some reversals in Hal aren't as expected and it makes debugging very messy.


=vonsmith=