Difference between revisions of "FF7/Field/Script/Opcodes/70 BATTLE"
Jump to navigation
Jump to search
my_wiki>Synergy Blades m |
my_wiki>Synergy Blades m |
||
Line 6: | Line 6: | ||
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;" | {| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;" | ||
! width="40" | 0x70 | ! width="40" | 0x70 | ||
− | ! width="40" | '' | + | ! width="40" | ''B'' |
− | ! width="80" | '' | + | ! width="80" | ''N'' |
|} | |} | ||
==== Arguments ==== | ==== Arguments ==== | ||
− | * '''const UByte''' '' | + | * '''const UByte''' ''B'': Bank to retrieve the address of the battle ID, or zero if it is given as a literal value. |
− | * '''const UWord''' '' | + | * '''const UWord''' ''N'': Battle ID, or address to find ID if ''B'' is non-zero. |
==== Description ==== | ==== Description ==== | ||
− | This launches the battle module with whatever battle number is used in the argument. Battle 1, 2, and 999 (0x03E7) are debug battles. | + | |
+ | This launches the battle module with whatever battle number is used in the argument, or the value retrieved from memory location ''N'' if ''B'' is non-zero. Battle 1, 2, and 999 (0x03E7) are debug battles. |
Revision as of 14:34, 10 October 2006
- Opcode: 0x70
- Short name: BATTLE
- Long name: Start Battle
Memory layout
0x70 | B | N |
---|
Arguments
- const UByte B: Bank to retrieve the address of the battle ID, or zero if it is given as a literal value.
- const UWord N: Battle ID, or address to find ID if B is non-zero.
Description
This launches the battle module with whatever battle number is used in the argument, or the value retrieved from memory location N if B is non-zero. Battle 1, 2, and 999 (0x03E7) are debug battles.