LESSON 1 - Part B:  Person Type, Gender & Globals

The Global (continued)

Double click it and let's see how children are defined in a statement.


Fig. 1.24

Adults are defined by "more than 17" (> 17) and children by "less than 18" (< 18). Simple enough, right? Click OK to exit the behavior.

Scroll until you find #467 "Am I a Dog?" and #468 "Am I a Cat?". You're going to find this very hard to believe, but it's true. These two define dogs and cats. No, really, they do!


Fig. 1.25

Double click #467 to open it.


Fig. 1.26

Dogs are defined by the "my person data gender" statement with a value of "2". Get out of this behavior and double click #468 for cats.


Fig. 1.27

Cats have a value of "3". It is also interesting to note at this time that in the game, males are given a gender of "0" and females "1". If you scroll to #393 and open it, you will find the code to kill a person permanently. That is what should be used on those objects that kill Sims.