ILH :: LESSON 2 - Personalities, Skills & Interests

Personality (continued)

Next, we fill statement 13 with our ADD 1 NICE point script. Do it now:

Function:  2
Param 1:  2
Param 2:  100
Param 3:  768
Param 4:  1810

Statement 13 of course, will look like this:


Fig. 1.15

The final step here is to link the statements together, so let's determine how this will go.

0 goes to 1 and 3
1 goes to 2 and Error
2 goes to True and Error. [Which means "give the Sim comfort and end, or fail the routine and don't do anything at all (Error)]

Change your returns to read as follows:

0 goes to 13 and 3
13 goes to 1 and 1 (we are forcing it to go there)
1 goes to 2 and Error
2 goes to True and Error.

Rewrite the behavior. Does it now look like this?


Fig. 1.16