Author Topic: Where is the "what a coincidence" response call?  (Read 3288 times)

lostbowyer

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Where is the "what a coincidence" response call?
« on: October 02, 2003, 11:14:04 am »
Does anyone know where the "what a coincidence I own a..." response is called from in the beta brain? I want to disable this function, the answers are so far fetched it's driving me crazy. I've been really busy the past few weeks so I haven't had time to hunt it down, if anyone knows where it is, I'd appreciate it.

Thanks
Glenn
 

Don Ferguson

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
    • http://www.cortrapar.com
Where is the "what a coincidence" response call?
« Reply #1 on: October 02, 2003, 01:14:52 pm »
Hi Glenn,

That response is coming from the main script, Hal5.uhp.  It is in the section where Hal accesses word relationships from the new WordNet capability.

I understand that in Zabaware's release version of Hal 5, there will be enhancements, greater variety, modifications, and restrictions to that routine so that it won't do what you are describing.

If you want to edit that routine in the meantime, the easiest way to find it in the script is to open Hal5.uhp in a text editor, and search for the string "what a coincidence".  That should take you right to the spot.

The least-labor-hours way to modify it for now, would be to look at the random integer generator that precedes the set of choices.  Change the integer to a higher number, and the responses won't occur as often.

This is true of most routines such as this.  If you see something like this:

Roulette = Int(Rnd*5)+1

...if you change it to this:

Roulette = Int(Rnd*50)+1

...it will cause any given choice to appear ten times less often. (When the random integer generator generates a number that is beyond the range of the choices, then the routine simply won't produce a response. HOWEVER, don't get carried away in general with this modification, since some routines might assemble sentences out of a series of phrases, and making this modification to one of those phrase-type routines could cause it to generate sentences with a phrase missing.)

I'm accessing the forum from a remote computer today, so I don't have the Hal script in front of me.  Hopefully this is sufficiently descriptive to get you there.  Let me know if this works for you.

Sincerely,

Don
« Last Edit: October 02, 2003, 01:20:33 pm by Don Ferguson »
Don Ferguson
E-mail: fergusonrkfd@prodigy.net
Website: www.cortrapar.com
Don's other forum posts: http://www.zabaware.com/forum/search.asp?mode=DoIt&MEMBER_ID=274

lostbowyer

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Where is the "what a coincidence" response call?
« Reply #2 on: October 02, 2003, 02:30:47 pm »
Thanks Don
I found the section, I can't change the random command like you suggested, in this instance it is used to point to a case (1-5) I remmed out the "what a coincidence" line, and one additional choice I had forgotten about that also drove me crazy. I took the remaining three lines and renumbered the cases 1-3 and changed the randomize command to the same choice range.
Thanks for all your help!
Glenn
 

Don Ferguson

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
    • http://www.cortrapar.com
Where is the "what a coincidence" response call?
« Reply #3 on: October 03, 2003, 12:35:04 am »
Hi,

I'm glad it worked out for you.  I think you'll like the modifications planned by Zabaware in the release version.

Sincerely,

Don
Don Ferguson
E-mail: fergusonrkfd@prodigy.net
Website: www.cortrapar.com
Don's other forum posts: http://www.zabaware.com/forum/search.asp?mode=DoIt&MEMBER_ID=274