Changes
From Final Fantasy Inside
m
no edit summary
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xC3
! width="4050" | ''0B1 / B2''! width="4050" | ''0B3 / B4''
! width="40" | ''T''
! width="40" | ''X''
==== Arguments ====
* '''const UShortBit[4]''' ''0B1'': ZeroBank to retrieve X offset, or zero if ''X'' is specified as a literal. Has an unusual effect on co-ordinates * '''const Bit[4]''' ''B2'': Bank to retrieve Y offset, or zero if non-''Y'' is specified as a literal.* '''const Bit[4]''' ''B3'': Bank to retrieve Z offset, or zero if ''Z'' is specified as a literal.* '''const Bit[4]''' ''B4'': Bank to retrieve speed, or zeroif ''S'' is specified as a literal.
* '''const UByte''' ''T'': Type of movement.
* '''const Short''' ''X'': X offset amount, relative to current position, or address to find X offset, if ''B1'' is non-zero.* '''const Short''' ''Y'': Y offset amount, relative to current position, or address to find Y offset, if ''B2'' is non-zero.* '''const Short''' ''Z'': Z offset amount, relative to current position, or address to find Z offset, if ''B3'' is non-zero.* '''const UShort''' ''S'': Speed of the offset movement, if type is non-zero, or address to find speed, if ''B4'' is non-zero.
==== Description ====
Offsets the field object, belonging to the entity whose script this opcode resides in, by a certain amount. After being offset, the character moves on the walkmesh continues to be constrained in movement as per defined by the walkmesh's shape, but at a certain distance away from the normal walkmesh position. Other field objects are unaffected, and their position or movements are maintained on the walkmesh's original position. If B1, B2, B3 or B4 is non-zero, then the value for that particular component is taken from memory using the corresponding bank and address specified, rather than as a literal value. Both retrieved values and literals can be used for different components. If using ''T'', ''X'', ''Y'' or ''S'' as addresses, the lower byte should hold the address whilst the higher byte should be zero.
The amount to offset is specified relative to the current position. If '''T'''ype is specified, the object moves gradually from its current point to the offset position; this can be used to simulate movements such as elevators. Any type outside the range in the table will cause the offset not to occur. If the object is set to move gradually, then the speed of offset can be set; the greater the number, the slower the object moves to its target offset.