Difference between revisions of "FF7/Field/Script/Opcodes/23 BTRLD"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
my_wiki>Synergy Blades
(Results)
Line 24: Line 24:
 
! style="background:rgb(204,204,204)" | Bit to AND
 
! style="background:rgb(204,204,204)" | Bit to AND
 
! style="background:rgb(204,204,204)" | Bit Result & Description
 
! style="background:rgb(204,204,204)" | Bit Result & Description
 +
|-
 +
| rowspan="2" align="center" | 8
 +
| 1: The party escaped the battle.
 +
|-
 +
| 0: The party did not escape.
 
|-
 
|-
 
| rowspan="2" align="center" | 1
 
| rowspan="2" align="center" | 1

Revision as of 14:22, 6 February 2007

  • Opcode: 0x23
  • Short name: BTRLD
  • Long name: Battle Result Load

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 a previous 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 BTLMD must be set to avoid GAMEOVER).