Difference between revisions of "FF7/Field/Script/Opcodes/30 IFKEY"
Jump to navigation
Jump to search
my_wiki>Halkun (→Button IDs) |
my_wiki>Halkun (→Button IDs) |
||
Line 39: | Line 39: | ||
{| 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;" | ||
! style="background:rgb(204,204,204)" width="40" | ID | ! style="background:rgb(204,204,204)" width="40" | ID | ||
− | ! style="background:rgb(204,204,204)" width=" | + | ! style="background:rgb(204,204,204)" width="120" | Button |
|- | |- | ||
| align="center" | 5 | | align="center" | 5 | ||
Line 45: | Line 45: | ||
|- | |- | ||
| align="center" | 6 | | align="center" | 6 | ||
− | | | + | | Cross [Cancel] |
|- | |- | ||
| align="center" | 7 | | align="center" | 7 |
Revision as of 00:41, 3 September 2006
- Opcode: 0x30
- Short name: IFKEY
- Long name: If Key is pressed.
Memory layout
0x30 | B | C | 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
ID | Button |
---|---|
0 | Pressed |
1 | Not Pressed |
Button IDs
ID | Button |
---|---|
5 | Triangle [Menu] |
6 | Cross [Cancel] |
7 | Circle [OK] |
8 | Square [EXT] |