0x001A

From SimsWiki
Revision as of 17:20, 16 August 2010 by MogHughson (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Relationship
OpCode:0x001A
Game Version:The Sims 2


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
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 - 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 2.
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 2.

See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox