Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/23 BTRLD

1,007 bytes added, 14:06, 6 February 2007
no edit summary
* Opcode: '''0x23'''
* Short name: '''BTRLD'''
* Long name: Battle Result Load

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

==== Arguments ====

* '''const UByte''' ''B'': Bank to store result.
* '''const UByte''' ''A'': Address to store result.

==== Description ====

Stores the result of a previous [[FF7/Field/Script/Opcodes/70_BATTLE|BATTLE]] to an address in memory. The resulting value can then be examined to see what the outcome of the battle was.

==== Results ====

{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" | Bit to AND
! style="background:rgb(204,204,204)" | Bit Result & Description
|-
| rowspan="2" align="center" | 1
| 1: The party defeated all enemies.
|-
| 0: The party was defeated (correct BTLMD must be set to avoid GAMEOVER).
|-
|}