Adult Types (continued)
Let's check to make sure that your statements 3 and 4 look like mine:
Fig. 1.10
Are we in sync? If so, then the next step is to link the statements correctly,
but before we go into that, let's take a minute to go over what it is we want
this behavior to do. It is always important to understand what you are doing and
even more important that you know why you are doing it.
As you know, doors can be flipped. If you take two doors with handles and place
them side by side, you can manipulate the doors so that the doorknobs are side
by side. Can you picture what I'm talking about?
If you do that, then the door naturally has two points of entry. These points
can also be thought of as a "registration" point (the doorknobs). The
doorknobs can either be on the right or left side, hence, two points of entry.
Two points of entry means that we need two "Go To Routing Slot" statements,
and looking above at Fig. 1.10 we see that we indeed have them.
Two Routing Slots and two points of entry calls for two CHECK POINTS (our global,
Am I an Adult - twice). So, to make a long story short, we have check points in
place to catch our non-adult Sims regardless of which way they try to enter through
the door.
Note: We could get by with only one
check point, but we will not do so in this lesson.
Let's link our statements. We want statement 0 to do the checking. That way,
when the door tests to see which way it has been placed, it will immediately after
go and check to see if the Sim trying to pass is an adult. Select statement 0,
and in the Data Box enter 3 and 4 for the True and False lines, respectively.
Fig. 1.11
|