Difference between revisions of "0x001A"

From SimsWiki
Jump to: navigation, search
(Use)
 
Line 29: Line 29:
 
|3||colspan="2"|Unused
 
|3||colspan="2"|Unused
 
|-
 
|-
|4||colspan="2"|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 [[Sims 2 Variables|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.
+
|4||colspan="2"|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 [[Sims 2 Variables|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 [[Byte Order|low and high order byte]] respectively.
 
|-
 
|-
 
|5||colspan="2"|Unused
 
|5||colspan="2"|Unused
Line 53: Line 53:
 
|1 - bit 4||Controls "don't check presence of second object"||off: False<br>on: True
 
|1 - bit 4||Controls "don't check presence of second object"||off: False<br>on: True
 
|-
 
|-
|2||colspan="2"|Variable containing the first of the two objects to find the relationship between. The choices are any of the many [[Sims 2 Variables|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.
+
|2||colspan="2"|Variable containing the first of the two objects to find the relationship between. The choices are any of the many [[Sims 2 Variables|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 [[Byte Order|low and high order byte]] respectively.
 
|-
 
|-
 
|3 & 4||colspan="2"|qualifiers on the variable in operand 2.
 
|3 & 4||colspan="2"|qualifiers on the variable in operand 2.
 
|-
 
|-
|5||colspan="2"|Variable containing the second of the two objects to find the relationship between. The choices are any of the many [[Sims 2 Variables|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||colspan="2"|Variable containing the second of the two objects to find the relationship between. The choices are any of the many [[Sims 2 Variables|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 [[Byte Order|low and high order byte]] respectively.
 
|-
 
|-
 
|6 & 7||colspan="2"|qualifiers on the variable in operand 5.
 
|6 & 7||colspan="2"|qualifiers on the variable in operand 5.
 
|-
 
|-
|8||colspan="2"|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 [[Sims 2 Variables|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.
+
|8||colspan="2"|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 [[Sims 2 Variables|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 [[Byte Order|low and high order byte]] respectively.
 
|-
 
|-
 
|9 & 10||colspan="2"|qualifiers on the variable in operand 8.
 
|9 & 10||colspan="2"|qualifiers on the variable in operand 8.

Latest revision as of 15:43, 24 April 2011

Relationship
OpCode:0x001A
Game Version:The Sims 2


Contents

[edit] Overview

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

[edit] Use

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

Operand editing

[edit] 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

[edit] 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.

[edit] See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox