Operand
From SimsWiki
This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/Operand
Here is a table for decoding Data Owners (aka Operands) in 42484156 BHAVs and their Data Labels (aka Operand Arguments). They are mainly used for the Expression Expression primitive (0x0002) but also in other places.
The Data Label references 0x000000?? can be found in objects.package, TGI TGI 0x53545223 0x7FE59FD0 0x000000??. Besides here, the Data Owners are also listed in 0x00000084.
As an example, here comes a decoded Expression Expression line with operands 22 00 01 00 00 0A 04 07, using the following table. Stack Object's Hidden Flags Clear Flag Literal Value 0x0001 (Hidden Flags 0x0001 is labeled Hide Model(s), but that is not explained here.)
0x## Data Owner Data Labels --------------------------------------------------------------- 0x00 My Attribute Literal Value 0x01 Stack Obj's Attribute Literal Value 0x02 My Semi Attribute Literal Value 0x03 My 0x0000008D 0x04 Stack Object's 0x0000008D 0x05 Stack Objects Semi Attribute Literal Value 0x06 Global ( from Simulation ) 0x00000081 0x07 Literal Value Literal Value 0x08 Temporary Storage Literal Value 0x09 Parameters Literal Value 0x0A Stack Object ID Always zero? 0x0B Temporary Storage[temp] Unknown 0x0C check tree ad range 0x00000086 0x0D stack obj's Temporary Storage Literal Value 0x0E my motives 0x00000086 0x0F stack obj's motives 0x00000086 0x10 stack object's slot Literal Value? 0x11 stack obj's motive[temp] Unknown 0x12 my person data 0x000000C8 0x13 stack obj's person data 0x000000C8 0x14 my slot Literal Value? 0x15 stack object's definition 0x000000CC 0x16 stack obj attr[stack param] Unknown 0x17 room [temp 0] Unknown 0x18 neighbor in stack object 0x000000DD 0x19 Local Variable Literal Value 0x1A Constant Value Special 0x1B ~Unused ~Unused 0x1C check tree ad personality var 0x00000086 0x1D check tree ad min 0x00000086 0x1E my person data [temp] Unknown 0x1F stack obj's person data [temp] Unknown 0x20 neighbor's person data 0x000000C8 0x21 job data [temp 0,1] 0x000000F3 0x22 neighborhood data 0x000000F9 0x23 stack object's function 0x000000C9 0x24 my type attr Literal Value? 0x25 stack obj's type attr Literal Value? 0x26 Neighbor's Object Definition 0x000000CC 0x27 Temporary Token Unknown 0x28 Stack Object's Temporary Token Unknown 0x29 My Object Array Iterator Index Literal Value? 0x2A Stack Object's Object Array Iterator Index Literal Value? 0x2B My Object Array Iterator Data Literal Value? 0x2C Stack Object's Object Array Iterator Data Literal Value? 0x2D My Object Array Element At Temp Unknown 0x2E Stack Object's Object Array Element At Temp Unknown 0x2F Constants [temp] Unknown 0x30 My Slot [temp] Unknown 0x31 Stack Objects Slot [temp] Unknown 0x32 stack obj Semi attr[stack param] Unknown 0x33 Stack Object's Master Definition 0x000000CC