Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/22 BTMD2

2,065 bytes added, 18:24, 16 March 2007
no edit summary
* Opcode: '''0x22'''
* Short name: '''BTMD2'''
* Long name: Battle Mode

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x22
! width="160" | ''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 ====

===== First Byte (MSB) =====

{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" | Bit
! style="background:rgb(204,204,204)" | 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,<br />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,<br />or the battle exits, with no AP/EXP/Gil/items received screens displayed.
|-
|}

===== Second Byte =====

{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" | Bit
! style="background:rgb(204,204,204)" | Description (Bit set to 1)
|-
| 0x01 (00000001)
| The party members do not perform their victory celebrations at the end of battle.
|-
|}

===== Third Byte =====

{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" | Bit
! style="background:rgb(204,204,204)" | Description (Bit set to 1)
|-
| 0x80 (10000000)
| Disable game over. After a party defeat, the game returns to the previous field.
|-
|}