Difference between revisions of "FF7/Field/Script/Opcodes/32 IFKEYOFF"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
my_wiki>Synergy Blades
m
Line 6: Line 6:
 
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
 
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
 
! width="40" | 0x32
 
! width="40" | 0x32
! width="40" | ''B''
+
! width="80" | ''B''
 
! width="40" | ''A''
 
! width="40" | ''A''
 
|}
 
|}

Revision as of 20:43, 19 January 2007

  • Opcode: 0x32
  • Short name: IFKEYOFF
  • Long name: If Key Lifted

Memory layout

0x32 B A

Arguments

  • const UShort (Bit field) B: Button ID to check for.
  • const UByte A: Amount to jump if condition is false.

Description

Similar to IFKEYON. Rather than check if this is the first time the user has pressed the button with the given ID, IFKEYOFF will not execute the body of the "if" statement until the user has lifted the key that was previously held down or pressed. This way, the body of the statement will only be executed once, when the key is no longer pressed.