Age - Is Sim Young Adult?
From SimsWiki
Age - Is Sim Young Adult? | ||
---|---|---|
Instance: | 0x03C7 | |
Game Version: | University |
Contents |
Code
### # Group = 0x7FD46CD0, Instance = 0x3C7 # Title = Age - Is Sim Young Adult? # # Format = 8009, Params = 1, Locals = 0 # Tree type = 0, Header flag = 10, Tree version = FFFF800A (-32758), Cache flags = 0 0: Stack Object := Param 0; true: 1, false: error 1: neighbor in stack object person instance id (0x0) == 0; true: 8, false: 3 2: neighbor's person data Person Age (0x3A) == Const 0x110(Person Ages):0x3(19 (0x13)); true: 6, false: false 3: Stack Object := neighbor in stack object person instance id (0x0); true: 7, false: error 4: stack obj's person data Person Age (0x3A) == Const 0x110(Person Ages):0x3(19 (0x13)); true: 5, false: false 5: stack obj's person data kEP1 - Young Adult( 0=no, 1=yes ) (0xAF) == 1; true: true, false: false 6: neighbor's person data kEP1 - Young Adult( 0=no, 1=yes ) (0xAF) == 1; true: true, false: false 7: Verify - Person ID(Stack Object); true: 4, false: false 8: Verify - Neighbor ID(Stack Object); true: 2, false: false
Purpose
Unlike the other age testing functions, this one actually requires you to feed in an arguement to test if a specific sim is a young adult or not.
Usage
There is only one argument to this Global.
Argument 1 (Parameter 0): The object ID of the Sim you want to test to see if they are a young adult or not.
Here's an example:
04 0B 00 00 00 00 00 00 00 00 00 00 01 00 00 00
Which should yield this from SimPE's BHAV editor:
[global 0x03C7] Age - Is Sim Young Adult? (1 arg: Stack Object's 0x000B (object id))
For more information on how arguments work, refer to this page: Using BHAVs With Arguments.
Examples
You can see the various age testing functions in many, many Maxis objects. Just browsing through various objects should yield you some examples.