Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/72 BTLMD

2,052 bytes added, 22:51, 2 September 2012
no edit summary
* Opcode: '''0x72'''
* Short name: '''BTLMD'''
* Long name: Battle Mode

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

{| 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 next chosen [[FF7/Field/Script/Opcodes/70 BATTLE|BATTLE]] instead takes place in the arena,<br />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,<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)
| Disable game over. After a party defeat, the game returns to the previous field.
|-
|}
Anonymous user