HAL emotion adjusters listed by Grant Garmonsway --------------------- This file lists places in HAL's brain that adjust the emotion variables (Hate, Swear, Insults, Compliment). This is useful as reference, and to get a "feel" for how HAL's emotions are calculated, without having to search through the whole brain. The format is: : Abbreviated function names are as follows: UH = UltraHal GR = GetResponse UH 41: Emotion variables set at 0 if not already defined. UH 57: Slow centering: If Hate, Swear or Insults are above zero, 10% chance 1 will be subtracted. UH 64: Variety: The following are ALL based on ONE random number, chosen from 0 to 99, and occur in order: 0-29: If Compliment = 4, then set to 2 0-4: If Compliment is 1 through 3, OR 5 or above, then set to 0 0-29: If compliment < 0, then set to 0 81-89: Set Compliment = 2 91-94: Set Compliment = 4 UH 167: UltraHal calls GetResponse. GR 374: HAL searches for "emotionally charged" words in User's sentence. The following changes to Compliment are made depending on the type of "emotional charge" found: Surprise: If > 0 then set to 4, if = 0 then set to 2, and if < 0 then set to 0 Happy: If = 0 then set to 2, and if < 0 then set to 0 Sober: If < 4 then set to 0, and if = 4 then set to 2 Angry: If = 0 then set to -1, and if > 0 then set to 0 Sad: If = 0 then set to -2, and if > 0 then set to 0 GR 628: If a compliment is detected, add 1 to Compliment. (HAL also makes remarks about "too many compliments" once Compliment hits 15.) GR 655: If a negative compliment is made (e.g. "You are NOT smart"), add 1 to Insults. (HAL insists the negatory is wrong.) GR 793: If an apology is detected, move Insults, Hate and Swear 1 closer to 0 (assuming they're > 0). If any of these are now < 3, set it to 0. GR 807: If the User swears at HAL, add 1 to Swear (and HAL comments on this). GR 828: Interestingly, "Your mama" insults don't hurt HAL's feelings. Maybe HAL doesn't have parents? Or a mother, at any rate. GR 837: If the User claims to hate HAL, add 1 to Hate (and HAL comments). GR 847: If the User instults HAL, add 1 to Insults (and comment). GR 1143: If the User thanks HAL and Compliments < 4, add 1 to Compliments. GR 1162: If the User proclaims love for HAL twice in a row, set Compliment to 4 GR 1166: If the User proclaimed love for HAL last sentence but not this sentence, set Compliment to -2. (!) GR 1170: If the User proclaims love for HAL in this sentence but didn't in the last sentence, set Compliment to 0.