WEEK 3: Object Behavior Modification and Adding Motives

ADDING MOTIVES (continued)

Click to select Line 20, and in the Data box, change Parameter 1 to the number 7 for hunger.


Fig. 1.6

Next, select Line 21, and change the number 6 in parameter 1 to a 7. Your screen should look like this:


Fig. 1.7

It's time to redirect the lines to tie them neatly into the existing code. Before we added the hunger motives, our lines followed this route:

Line 2 goes to Line 3
Line 3 goes to Line 4
Line 4 ends the script

 

Continued on Next Page . . .