Difference between revisions of "0x001A"
From SimsWiki
MogHughson (Talk | contribs) |
MogHughson (Talk | contribs) |
||
Line 12: | Line 12: | ||
[[Image:BHAVoperands.JPG|thumb|300px|right|Operand editing]] | [[Image:BHAVoperands.JPG|thumb|300px|right|Operand editing]] | ||
− | + | ===Node Version 0x00=== | |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 18: | Line 18: | ||
|- | |- | ||
|0||Type of relationship being inquired upon||00: "STR"<br>01: "UI Flags/Ownership Value"<br>02: "LTR"<br>03: "Familial Relationship"<br>04: "Sync People"<br>05: "Childhood UIFlags"<br>06: "Teen UIFlags"<br>07: "Adult UIFlags"<br>08: "Attraction Score"<br>09: "UI Flags 2" | |0||Type of relationship being inquired upon||00: "STR"<br>01: "UI Flags/Ownership Value"<br>02: "LTR"<br>03: "Familial Relationship"<br>04: "Sync People"<br>05: "Childhood UIFlags"<br>06: "Teen UIFlags"<br>07: "Adult UIFlags"<br>08: "Attraction Score"<br>09: "UI Flags 2" | ||
+ | |- | ||
+ | |1 - bits 1&2||Controls variables between which relationship is to be found||00: me to stack object<br>01: stack object to me<br>02: stack obj to obj in stack param 0<br>03: obj in stack param 0 to stack obj | ||
+ | |- | ||
+ | |1 - bit 3||Controls assignment to or from relationship||off: ''variable'' := ''relationship''<br>on: ''relationship'' := ''variable | ||
+ | |- | ||
+ | |2 - bit 1||Controls "fail if too small"||off: False<br>on: True | ||
+ | |- | ||
+ | |2 - bit 2||Controls "use neighbor IDs"||off: False<br>on: True | ||
+ | |- | ||
+ | |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. | ||
+ | |- | ||
+ | |5||colspan="2"|Unused | ||
+ | |- | ||
+ | |6 & 7||colspan="2"|qualifiers on the variable in operand 4. | ||
+ | |- | ||
+ | |8 thru 15||colspan="2"|Unused | ||
+ | |} | ||
+ | |||
+ | ===Node Version 0x01=== | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | !Operand!!Description!!Operand Values | ||
+ | |- | ||
+ | |0||colspan="2"|Type of relationship being inquired upon exactly as for Node Version 0x00 | ||
|- | |- | ||
|1 - bit 1||Controls "fail if too small"||off: False<br>on: True | |1 - bit 1||Controls "fail if too small"||off: False<br>on: True | ||
Line 33: | Line 59: | ||
|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 low and high order byte respectively. | ||
|- | |- | ||
− | |6 & 7||colspan="2"|qualifiers on the variable in operand | + | |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 low and high order byte respectively. | ||
|- | |- | ||
− | |9 & 10||colspan="2"|qualifiers on the variable in operand | + | |9 & 10||colspan="2"|qualifiers on the variable in operand 8. |
|} | |} | ||
Revision as of 22:09, 16 August 2010
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.
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. |