Difference between revisions of "FF7/Field/Script/Opcodes/E1 BGOFF"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
m (3 revisions imported)
 
(2 intermediate revisions by 2 users not shown)
Line 13: Line 13:
 
==== Arguments ====
 
==== Arguments ====
  
* '''const Bit[4]''' ''B1'': Bank to retrieve ''L'', or zero if ''L'' is specified as a literal.
+
* '''const Bit[4]''' ''B1'': Bank to retrieve ''A'', or zero if ''A'' is specified as a literal.
* '''const Bit[4]''' ''B2'': Bank to retrieve ''S'', or zero if ''S'' is specified as a literal.
+
* '''const Bit[4]''' ''B2'': Bank to retrieve ''L'', or zero if ''L'' is specified as a literal.
 
* '''const UByte''' ''A'': The ID of the background area to manipulate, as specified in the background's sprite.
 
* '''const UByte''' ''A'': The ID of the background area to manipulate, as specified in the background's sprite.
 
* '''const UByte''' ''L'': The ID of the layer of ''L'' to hide (turn off), as specified in the background's sprite.
 
* '''const UByte''' ''L'': The ID of the layer of ''L'' to hide (turn off), as specified in the background's sprite.

Latest revision as of 05:19, 23 May 2019

  • Opcode: 0xE1
  • Short name: BGOFF
  • Long name: Background Off

Memory layout

0xE1 B1 / B2 A L

Arguments

  • const Bit[4] B1: Bank to retrieve A, or zero if A is specified as a literal.
  • const Bit[4] B2: Bank to retrieve L, or zero if L is specified as a literal.
  • const UByte A: The ID of the background area to manipulate, as specified in the background's sprite.
  • const UByte L: The ID of the layer of L to hide (turn off), as specified in the background's sprite.

Description

Similar to BGON, only this opcode turns off the portion of background whose background sprite specifies it as belonging to the scripted area and layer specified.