Difference between revisions of "FF7/Field/Script/Opcodes/A6 XYI"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
m (3 revisions imported)
 
(2 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
* '''const Short''' ''X'': X-coordinate of the field object, or address of X-coordinate if ''B1'' is non-zero.
 
* '''const Short''' ''X'': X-coordinate of the field object, or address of X-coordinate if ''B1'' is non-zero.
 
* '''const Short''' ''Y'': Y-coordinate of the field object, or address of Y-coordinate if ''B2'' is non-zero.
 
* '''const Short''' ''Y'': Y-coordinate of the field object, or address of Y-coordinate if ''B2'' is non-zero.
* '''const Short''' ''Z'': Triangle ID, or address of ID if ''B3'' is non-zero.
+
* '''const UShort''' ''Z'': Triangle ID, or address of ID if ''B3'' is non-zero.
  
 
==== Description ====
 
==== Description ====
  
 
Similar to [[FF7/Field/Script/Opcodes/A5 XYZI|XYZI]], but does not specify a Z-coordinate. This lack of Z-coordinate may be a problem when placing the object on a mesh that has multiple Z-levels on the same X- and Y-coordinates.
 
Similar to [[FF7/Field/Script/Opcodes/A5 XYZI|XYZI]], but does not specify a Z-coordinate. This lack of Z-coordinate may be a problem when placing the object on a mesh that has multiple Z-levels on the same X- and Y-coordinates.

Latest revision as of 05:18, 23 May 2019

  • Opcode: 0xA6
  • Short name: XYI
  • Long name: Place Object (No Z)

Memory layout

0xA6 B1 / B2 B3 / 0 X Y I

Arguments

  • const Bit[4] B1: Bank to retrieve X, or zero if X is specified as a literal value.
  • const Bit[4] B2: Bank to retrieve Y, or zero if Y is specified as a literal value.
  • const Bit[4] B3: Bank to retrieve I, or zero if I is specified as a literal value.
  • const Bit[4] 0: Zero.
  • const Short X: X-coordinate of the field object, or address of X-coordinate if B1 is non-zero.
  • const Short Y: Y-coordinate of the field object, or address of Y-coordinate if B2 is non-zero.
  • const UShort Z: Triangle ID, or address of ID if B3 is non-zero.

Description

Similar to XYZI, but does not specify a Z-coordinate. This lack of Z-coordinate may be a problem when placing the object on a mesh that has multiple Z-levels on the same X- and Y-coordinates.