< FF7 | Field | Script | OpcodesRevision as of 18:24, 16 March 2007 by my_wiki>Synergy Blades
- Opcode: 0x22
- Short name: BTMD2
- Long name: Battle Mode
Memory layout
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
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.
|