WEEK 2: Enhancing MoodsEXPLORING BEHAVIORS (continued)Your rewritten lines of code should now look like this, and much easier on the eyes.
For a solid week this chair's code has taken us to many places, and because we are new at this type of thing, it is possibly easy to forget our initial objective. Never fear, I shall remind you now! Our initial objective was to modify this chair's behavior. Remember, we were not going to change it or add to it. We were simply going to modify the chair's output, which is comfort. Here's the reminder: We're looking for anything that talks about comfort. Scan through the lines of code above. Do you see anything that says "comfort"? I see a lot of "Animate Sim" lines, and a lot of "my person data route entry flags". I also see some "Test Object Type" lines with GUID numbers. But I don't see anything relating to comfort. Dead end? Not really, because I know exactly where to look! So why did I put you through the arduous paces when I knew all along where to go? Because I'm evil, that's why. No, seriously, I did it because there will be objects to hack where the point of alteration will not be so obvious — so right under your nose. Also, Maxis sometimes sticks relative code in the strangest places. The knowledge you (hopefully) acquired during the preceding exercise will then be of great help to you, when you come across one of those difficult objects. Trust me. You'll thank me in the end. Note: This week we will have an additional assignment on GUIDs. The "my person data route entry flags" are nothing more than bits of code the chair has to let the Sims know how and where to approach the chair so they can sit in it, or leave it. We will not go into entry flags until a much more advanced class.
|