WEEK 2: Enhancing Moods

EXPLORING THE BEHAVIORS (BHAV) SECTION (continued)


Alright, then. We know the script is telling us to go elsewhere if conditions are met. So, before we follow any "go to" instructions, we should first find out what the conditions are, right? Right. Our check tree was Behavior #4098, so let's go there right now. Click "OK" to get out of this window and get back to the behaviors section.

Find Behavior #4098 (the check tree #) and double click it to open it. This is what it looks like:


Fig. 1.4

A bunch of goobledymuck, don't you agree? And look, even if the lines are numbered correctly 0 through 3, the "Next" or "True/False" statements are a mess, hopping from one line to another willy nilly without rhyme or reason. Which brings us to our next Hacking Rule.

Hacking Rule #3: Optimize or Rewrite. Get in the habit; it'll make your life easier. When you open a behavior for viewing, all the bits and bobs will be there, but somewhat out of order (even though they appear to be numbered correctly. To "reorder" the lines of code so they read correctly and consecutively, we optimize or rewrite the lines of code. If we are using IFF, we rewrite. If we are using SS, we optimize. Same outcome, different names. Let's do that now.

Let us now rewrite the lines of code and compare so that you can get a good idea of what rewriting or optimization does for you.

While still inside the Behavior #4098, place your cursor anywhere in the white space and right click. You will be presented with a menu, and from that menu you will select "Rewrite".


Fig. 1.5

 

Continued on Next Page . . .