Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: vonsmith on October 11, 2003, 12:57:37 am

Title: Completely rewritten improved Hal code,
Post by: vonsmith on October 11, 2003, 12:57:37 am
Okay guys I got something new. I completely rewrote the "RESPOND, ATTRIBUTES OF HAL" code. I think (hope) that I did some improving over the original code. My code is quite a bit longer than the original. This code in hal5.uhp allows Hal to respond to user inputs containing "Your" statements like:

User: Your exciting sense of high adventure is great.
Hal: Do you understand my exciting sense of high adventure?
or
Hal: Think exciting when you think of my sense of high adventure.

User: Your big beautiful blue sexy eyes are awesome.
Hal: My eyes can be blue and very sexy, but big?

The new code has been tested on two computers, but I know from experience that you can't proofread your own work. You'll notice the code is nested a lot (looks complicated), but most of the code isn't run at each instance. There are a number of special cases that make it look complex. The code runs plenty quick enough on my Windows 2000, 1.8GHz Pentium.

Give it a try. The code is fully commented and a readme file is included with the downloadable zip file.

Have fun and post comments, questions or whatever here on the forum.

= vonsmith =

Download Attachment: (http://images/icon_paperclip.gif) vonsmith,v10-10-03a.zip ("http://www.zabaware.com/forum/uploaded/vonsmith/2003101103452_vonsmith,v10-10-03a.zip")
37.83 KB
Title: Completely rewritten improved Hal code,
Post by: Larry on October 11, 2003, 07:27:02 pm
Pretty cool stuff here... Great work!