Difference between revisions of "FF7/Field/Script/Opcodes/22 BTMD2"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
m (Bit Tables)
my_wiki>Synergy Blades
m (Third Byte)
Line 68: Line 68:
 
|-
 
|-
 
| 0x01 (00000001)
 
| 0x01 (00000001)
| ''Unknown''
+
| ''Unknown, but used by some fields''
 
|-
 
|-
 
|}
 
|}

Revision as of 18:29, 16 March 2007

  • Opcode: 0x22
  • Short name: BTMD2
  • Long name: Battle Mode

Memory layout

0x22 B

Arguments

  • const ULong 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 chosen encounter instead takes place in the arena,
with the "keep going/no way" interface 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) The party members do not perform their victory celebrations at the end of battle.
Third Byte
Bit Description (Bit set to 1)
0x80 (10000000) Disable game over. After a party defeat, the game returns to the previous field.
0x01 (00000001) Unknown, but used by some fields