Changes
Jump to navigation
Jump to search
no edit summary
* Opcode: '''0xD0'''
* Short name: '''LINE'''
* Long name: Line Definition
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xD0
! width="40" | ''XA''
! width="40" | ''YA''
! width="40" | ''ZA''
! width="40" | ''XB''
! width="40" | ''YB''
! width="40" | ''ZB''
|}
==== Arguments ====
* '''const Short''' ''XA'': X-coordinate of the first point of the line.
* '''const Short''' ''YA'': Y-coordinate of the first point of the line.
* '''const Short''' ''ZA'': Z-coordinate of the first point of the line.
* '''const Short''' ''XB'': X-coordinate of the second point of the line.
* '''const Short''' ''YB'': Y-coordinate of the second point of the line.
* '''const Short''' ''ZB'': Z-coordinate of the second point of the line.
==== Description ====
Defines a line on the walkmesh that, when crossed by a playable character, causes one of the entity's scripts to be executed. These are similar to the triggers in [[FF7/Field/3D Related|Section 8]], with the added bonus that (all) lines can be turned on or off in a script by using the [[FF7/Field/Script/Opcodes/D1 LINON|LINON]] opcode.
* Short name: '''LINE'''
* Long name: Line Definition
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xD0
! width="40" | ''XA''
! width="40" | ''YA''
! width="40" | ''ZA''
! width="40" | ''XB''
! width="40" | ''YB''
! width="40" | ''ZB''
|}
==== Arguments ====
* '''const Short''' ''XA'': X-coordinate of the first point of the line.
* '''const Short''' ''YA'': Y-coordinate of the first point of the line.
* '''const Short''' ''ZA'': Z-coordinate of the first point of the line.
* '''const Short''' ''XB'': X-coordinate of the second point of the line.
* '''const Short''' ''YB'': Y-coordinate of the second point of the line.
* '''const Short''' ''ZB'': Z-coordinate of the second point of the line.
==== Description ====
Defines a line on the walkmesh that, when crossed by a playable character, causes one of the entity's scripts to be executed. These are similar to the triggers in [[FF7/Field/3D Related|Section 8]], with the added bonus that (all) lines can be turned on or off in a script by using the [[FF7/Field/Script/Opcodes/D1 LINON|LINON]] opcode.