Difference between revisions of "FF7/Field/Script/Opcodes/23 BTRLD"
Jump to navigation
Jump to search
my_wiki>Synergy Blades m |
my_wiki>Synergy Blades m (→Results) |
||
Line 33: | Line 33: | ||
| 1: The party defeated all enemies. | | 1: The party defeated all enemies. | ||
|- | |- | ||
− | | 0: The party was defeated (correct | + | | 0: The party was defeated (correct [[FF7/Field/Script/Opcodes/22 BTMD2|battle mode]] must be set to avoid [[FF7/Field/Script/Opcodes/FF GAMEOVER|game over]]). |
|- | |- | ||
|} | |} |
Revision as of 14:38, 6 February 2007
- Opcode: 0x23
- Short name: BTRLD
- Long name: Battle Result Load
Contents
Memory layout
0x23 | B | A |
---|
Arguments
- const UByte B: Bank to store result.
- const UByte A: Address to store result.
Description
Stores the result of the last BATTLE to an address in memory. The resulting value can then be examined to see what the outcome of the battle was.
Results
Bit to AND | Bit Result & Description |
---|---|
8 | 1: The party escaped the battle. |
0: The party did not escape. | |
1 | 1: The party defeated all enemies. |
0: The party was defeated (correct battle mode must be set to avoid game over). |