FF7/Field/Script/Opcodes/72 BTLMD

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
  • Opcode: 0x72
  • Short name: BTLMD
  • Long name: Battle Mode

Memory layout

0x72 B

Arguments

  • const UShort B: Bit field representing battle modes.

Description

Sets properties for the battle module. The argument is a bit field with bits that can be ORd together to set multiple battle properties.

Bit Tables

All the bytes used by the game are listed here, along with some that are not used but still have an effect on the battle module. The purpose of the bits not listed in the tables is not yet known, but they likely affect the battle module in an as-yet unseen way.

First Byte (MSB)
Bit Description (Bit set to 1)
0x80 (10000000) Do not display the AP/EXP/Gil/items received screens.
0x40 (01000000) Activates the battle arena. The next chosen BATTLE instead takes place in the arena,
but keeping the same enemy formation. The "keep going/no way" interface is enabled.
0x20 (00100000) Do not play the battle victory music.
0x08 (00001000) The party cannot escape the battle.
0x04 (00000100) Pre-emptive attack.
0x02 (00000010) The battle is timed; the player must complete the battle before the timer reaches zero,
or the battle exits, with no AP/EXP/Gil/items received screens displayed.
Second Byte
Bit Description (Bit set to 1)
0x01 (00000001) Disable game over. After a party defeat, the game returns to the previous field.