Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/09 SPLIT

1,979 bytes added, 00:01, 18 August 2006
no edit summary
* Opcode: '''0x09'''
* Short name: '''SPLIT'''
* Long name: Party Field Split

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x20
! width="40" | ''0''
! width="40" | ''0''
! width="40" | ''0''
! width="40" | ''XA''
! width="40" | ''YA''
! width="40" | ''DA''
! width="40" | ''XB''
! width="40" | ''YB''
! width="40" | ''DB''
! width="40" | ''S''
|}

==== Arguments ====

* '''const UByte[3]''' ''0'': Three zero bytes.
* '''const Short''' ''XA'': X-coordinate of the second character in the party after the split.
* '''const Short''' ''YA'': Y-coordinate of the second character in the party after the split.
* '''const UByte''' ''DA'': Direction the second character faces after the split.
* '''const Short''' ''XB'': X-coordinate of the third character in the party after the split.
* '''const Short''' ''YB'': Y-coordinate of the third character in the party after the split.
* '''const UByte''' ''DB'': Direction the third character faces after the split.
* '''const UByte''' ''S'': Speed that the characters split.

==== Description ====

Causes the common 'split effect' whereby the second and third characters in the current party 'come out' from the party leader. That is, they become visible in the field, starting from the centre of the party leader, and move out to the coordinates specified in the argument list. This is commonly used when the other characters in the current party have an action or dialog to perform and must be individually visible in the field. As well as specifying final coordinates for the two other party characters, the directions each character faces after the split are specified as a byte, using the common direction values found throughout the game. Speed is also given and is used to specify the rate at which the characters leave the party leader, using a scale from 1 (almost instant) to FF (extremely slow walk); this must be non-zero.

Navigation menu