Group 2 - Cooking Skill (continued)
Select behavior #4111: "sit core2" (the big one), open it up, but
DO NOT rewrite! Instead I want
you to first look at something. Scroll until you see statements 7 through 10.
Fig. 1.50
All of the above statements bounded by the red box are the sitting animations
for the chair (i.e., comfy, relaxed, etc.). If you'll remember back to our last
exercise, we only picked up Animate Sim (id 1 from object). Consequently, the
Sim had to actually sit comfy in the chair in order to acquire the skill point.
Not good in this case where we have so many to include.
OK, without rewriting, ADD two new statements to this behavior so that you
end up with a total of 41 statements.
Next, scroll down and select your new statement #40. This is going to be our
skill adding statement. Go to the Data box and fill it out with this information.
Keep one eye on the actual statement so you can see what is happening as you enter
the info.
Function: 2
Param 1: 10 [cooking code]
Param 2: 100 [# of points to add/subtract]
Param 3: 768 [add]
Param 4: 1810 [my person data]
#40 should look like this:
Fig. 1.51
|