Additional Interests
Next, I want you to compare the Returns for each statement. They all return
the same way. The statement numbers to return to are of course different because
they are on different lines. In other words, if:
The statement you copied from returns 13/14, then your new copied one should
return 58/59.
The statement you copied from returns True/Error, then your new copied one
should also return True/Error. Got that? Good. Keep the printed routines in front
of you while we work.
I apologize ahead of time for the tediousness of this exercise,
but I really feel this is something you need to learn because try as you might
to avoid it, you will encounter the same problem in the future, in other
objects. Understanding what we are doing right now will separate you from all
the wanna-be's out there who only want to be told step by step what to do. So
let's quit wasting time and get busy. No talking, and all eyes to the front and
on the blackboard.
Another problem area we'll encounter is Behavior #4108: "store original
points". This is the stuff we talked about earlier. Open up that
behavior and rewrite it. Notice that Cooking and Mechanical are mentioned in here?
Fig. 1.39
We didn't bother with this behavior previously because we were only dealing
with two interests, and although these here are labeled for Cooking and Mechanical,
the data was being stored properly regardless of what the labels were. As we add
more routines, however, we'll also need to make more room for storage. AND...
we also have a global call here to #286 for the skill bar and this one is still
saying 768 in Parameter 3 because it is located inside the global.
|