0x001A

From SimsWiki
Jump to: navigation, search
Relationship
OpCode:0x001A
Game Version:The Sims 2


Contents

Overview

This primitive provides a way to discover or set the various relationships between two objects.

Use

There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands.

Operand editing

Node Version 0x00

Operand Description Operand Values
0 Type of relationship being inquired upon 00: "STR"
01: "UI Flags/Ownership Value"
02: "LTR"
03: "Familial Relationship"
04: "Sync People"
05: "Childhood UIFlags"
06: "Teen UIFlags"
07: "Adult UIFlags"
08: "Attraction Score"
09: "UI Flags 2"
1 - bits 1&2 Controls variables between which relationship is to be found 00: me to stack object
01: stack object to me
02: stack obj to obj in stack param 0
03: obj in stack param 0 to stack obj
1 - bit 3 Controls assignment to or from relationship off: variable := relationship
on: relationship := variable
2 - bit 1 Controls "fail if too small" off: False
on: True
2 - bit 2 Controls "use neighbor IDs" off: False
on: True
3 Unused
4 Variable containing the relationship value, either filled in when inquired, or set, depending on the value of operand 1 - bit 3. The choices are any of the many variables and attributes that are part of SimAntics. Where the variable type can have many of them, e.g. Local variables, operands 6 and 7 give the low and high order byte respectively.
5 Unused
6 & 7 qualifiers on the variable in operand 4.
8 thru 15 Unused

Node Version 0x01

Operand Description Operand Values
0 Type of relationship being inquired upon exactly as for Node Version 0x00
1 - bit 1 Controls "fail if too small" off: False
on: True
1 - bit 2 Controls "use neighbor IDs" off: False
on: True
1 - bit 3 Controls assignment to or from relationship off: variable := relationship
on: relationship := variable
1 - bit 4 Controls "don't check presence of second object" off: False
on: True
2 Variable containing the first of the two objects to find the relationship between. The choices are any of the many variables and attributes that are part of SimAntics. Where the variable type can have many of them, e.g. Local variables, operands 3 and 4 give the low and high order byte respectively.
3 & 4 qualifiers on the variable in operand 2.
5 Variable containing the second of the two objects to find the relationship between. The choices are any of the many variables and attributes that are part of SimAntics. Where the variable type can have many of them, e.g. Local variables, operands 6 and 7 give the low and high order byte respectively.
6 & 7 qualifiers on the variable in operand 5.
8 Variable containing the relationship value, either filled in when inquired, or set, depending on the value of operand 1 - bit 3. The choices are any of the many variables and attributes that are part of SimAntics. Where the variable type can have many of them, e.g. Local variables, operands 9 and 10 give the low and high order byte respectively.
9 & 10 qualifiers on the variable in operand 8.

See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox