< FF7 | Field | Script | OpcodesRevision as of 00:20, 3 September 2006 by my_wiki>Halkun
- Opcode: 0x30
- Short name: IFKEY
- Long name: If Key is pressed.
Memory layout
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
ID
|
Button
|
0
|
Pressed
|
1
|
Not Pressed
|
Button IDs
ID
|
Button
|
0
|
[]
|
1
|
[]
|
2
|
[]
|
3
|
[]
|
4
|
[]
|
5
|
[]
|
6
|
[]
|
7
|
[]
|
8
|
Square [EXT]
|