Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/2C BGPDH

913 bytes added, 02:43, 6 February 2007
no edit summary
* Opcode: '''0x2C'''
* Short name: '''BGPDH'''
* Long name: Background Depth

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x2C
! width="50" | ''B / 0''
! width="40" | ''L''
! width="80" | ''D''
|}

==== Arguments ====

* '''const Bit[4]''' ''B'': Bank to retrieve value for ''D'', or zero if ''D'' is specified as a literal.
* '''const Bit[4]''' ''0'': Four zero bits.
* '''const UByte''' ''L'': ID number of the layer to manipulate.
* '''const Short''' ''D'': Z-depth of the specified layer, or the address to find ''D'' if ''B'' is non-zero.

==== Description ====

Sets the Z-depth for the extra background layer specified by ''L''. This opcode will only set the depth of those extra layers above the standard background and foreground layers (0/1, respectively), and so should be an argument of 2 or greater.