Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/30 IFKEY

52 bytes added, 18:36, 19 January 2007
Corrected
* Opcode: '''0x30'''
* Short name: '''IFKEY'''
* Long name: If Key is pressed.Pressed
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x30
! width="40" | ''B/0''! width="40" | ''C''
! width="40" | ''A''
|}
==== Arguments ====
* '''const UShort (Bit[4]field)''' ''B'': Which button Button ID to check for.* '''const Bit[4]''' ''0'': Zero.* '''const UByte''' ''C'': Condition of button.* '''const UByte''' ''A'': Amount to jump if comparison is falsebutton not pressed.
==== Description ====
Checks the status of a button being pressed; if pressed, the "if" body executes (that is, the script pointer is moved to the opcode after the current IFKEY). If the checked button fails the condition check, then the code jumps script pointer moves ahead ''A'' amount of bytes.
==== Conditions Button IDs ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" width="40" | ID
! style="background:rgb(204,204,204)" width="100120" | Button|-| align="center" | 0x0001| Assist|-| align="center" | 0x0008| Start|-| align="center" | 0x0010| Up|-| align="center" | 0x0020| Right|-| align="center" | 0x0040| Down|-| align="center" | 0x0080| Left|-| align="center" | 0x0100| Camera
|-
| align="center" | 00x0200| PressedTarget
|-
| align="center" | 10x0400| Not PressedPage Up
|-
|} ==== Button IDs ==== {| borderalign="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"! style="background:rgb(204,204,204)" width="40center" | ID0x0800! style="background:rgb(204,204,204)" width="120" | ButtonPage Down
|-
| align="center" | 50x1000| Triangle [Menu]
|-
| align="center" | 60x2000| Cross [Cancel]OK
|-
| align="center" | 70x4000| Circle [OK]Cancel
|-
| align="center" | 80x8000| Square [EXT]Switch
|-
|}

Navigation menu