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:
vonsmith,v10-10-03a.zip37.83 KB