WEEK 2: Enhancing MoodsEXPLORING BEHAVIORS (continued)Shall we continue our scavenger hunt? Click OK to get out of this behavior. From the BHAV window, find #4099, and then double click it to open it. And that behavior looks like this...
Oooh! Oh... Ouch! That is positively awful! Unfortunately we'll often encounter behaviors like this that are replete with lines of mucky code which we will be unable to make heads or tails out of without using a very large magnifying glass. But that's okay. Where there's a will there's got to be a way, and we usually find it. That's because by nature we're logical creatures, and when it comes to hacking, logic is our most valued possession. Let's rewrite this puppy to make it easier to look at, if not easier to read. We're not very good at reading code at the moment, after all. Right click anywhere on the white space (if you can find some) to get the menu, and then choose "Rewrite" from the menu.
Fig. 1.23
|