Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/D3 SLINE

2,123 bytes added, 16:33, 6 February 2007
no edit summary
* Opcode: '''0xD3'''
* Short name: '''SLINE'''
* Long name: Set Line

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xD3
! width="50" | ''B1 / B2''
! width="50" | ''B3 / B4''
! width="50" | ''B5 / B6''
! width="80" | ''XA''
! width="80" | ''YA''
! width="80" | ''ZA''
! width="80" | ''XB''
! width="80" | ''YB''
! width="80" | ''ZB''
|}

==== Arguments ====

* '''const Bit[4]''' ''B1'': Bank for ''XA'', or zero if ''XA'' is specified as a literal value.
* '''const Bit[4]''' ''B2'': Bank for ''YA'', or zero if ''YA'' is specified as a literal value.
* '''const Bit[4]''' ''B3'': Bank for ''ZA'', or zero if ''ZA'' is specified as a literal value.
* '''const Bit[4]''' ''B4'': Bank for ''XB'', or zero if ''XB'' is specified as a literal value.
* '''const Bit[4]''' ''B5'': Bank for ''YB'', or zero if ''YB'' is specified as a literal value.
* '''const Bit[4]''' ''B6'': Bank for ''ZB'', or zero if ''ZB'' is specified as a literal value.
* '''const Short''' ''XA'': X-coordinate of the first point of the line, or address to find value if ''B1'' is non-zero.
* '''const Short''' ''YA'': Y-coordinate of the first point of the line, or address to find value if ''B2'' is non-zero.
* '''const Short''' ''ZA'': Z-coordinate of the first point of the line, or address to find value if ''B3'' is non-zero.
* '''const Short''' ''XB'': X-coordinate of the second point of the line, or address to find value if ''B4'' is non-zero.
* '''const Short''' ''YB'': Y-coordinate of the second point of the line, or address to find value if ''B5'' is non-zero.
* '''const Short''' ''ZB'': Z-coordinate of the second point of the line, or address to find value if ''B6'' is non-zero.

==== Description ====

Alters the two points of a previously defined [[FF7/Field/Script/Opcodes/D0_LINE|LINE]]. In addition to allowing a line to be adjusted after creation, this opcode also provides the ability to retrieve line end-point values from memory.

If two or more lines are defined in one entity, SLINE only updates the first LINE definition.

Navigation menu