WEEK 2: Enhancing MoodsEXPLORING THE BEHAVIORS (BHAV) SECTION (continued)Compare the difference between Fig. 1.4 and Fig. 1.6 below. See the difference? The code is much easier to read and follow after rewriting the lines of code.
Interpreting the above lines means we would need to go into stack objects and slots; something we are not yet prepared to do. So, in this lesson we will only scan through the code, reserving the fine details for learning at a later date. However, a brief over view of the above reads like this (in a round-about way): Is the Sim trying to use me, the Cheap Chair? If I am the Cheap Chair the Sim is trying to use, is there anyone sitting here? If I'm unoccupied let the Sim sit, and if not, tell him to wait or move away. On your own, you can study this behavior to see if you can make sense out of it. However, for the purpose of this lesson we have satisfied our curiosity and made sure there is no funky conditions to be met here like, is it raining outside? Or, am I Bella Goth? Or worse... Is this an Expansion Pack 19 chair and do you have it? That would be totally wrong and quite difficult to circumvent because I don't know about you, but I don't own Expansion Pack 19. Anyway, we need to get back to where we were, over in Behavior #4097. Click OK to get out of this window and go back to the Behaviors window. Find #4097 and double click it to open it once again. And here we are, staring at this strange and vague line of code.
We were about to ask the question, "How do we know what that private sit function does? And where the heck is it?" Um, okay, so that's two questions, but we can handle it.
|