Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/30 IFKEY

1,491 bytes added, 00:20, 3 September 2006
no edit summary
* Opcode: '''0x30'''
* Short name: '''IFKEY'''
* Long name: If Key is pressed.

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x30
! width="40" | ''B''
! width="40" | ''C''
! width="40" | ''A''
|}

==== Arguments ====

* '''const UByte''' ''B'': Which button to check for.
* '''const UByte''' ''C'': Condition of button.
* '''const UByte''' ''A'': Amount to jump if comparison is false.

==== Description ====

Checks the status of a button being pressed. If the checked button fails the condition check, then the code jumps ahead ''A'' amount of bytes.

==== Conditions ====

{| 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="100" | Button
|-
| align="center" | 0
| Pressed
|-
| align="center" | 1
| Not Pressed
|-
|}

==== 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="100" | Button
|-
| align="center" | 0
| []
|-
| align="center" | 1
| []
|-
| align="center" | 2
| []
|-
| align="center" | 3
| []
|-
| align="center" | 4
| []
|-
| align="center" | 5
| []
|-
| align="center" | 6
| []
|-
| align="center" | 7
| []
|-
| align="center" | 8
| Square [EXT]
|-
|}
Anonymous user