Difference between revisions of "FF7/Field/Script/Opcodes/F6 BMUSC"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
m (4 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
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" | 0xF6
 
! width="40" | 0xF6
! width="80" | ''I''
+
! width="40" | ''I''
 
|}
 
|}
  
Line 15: Line 15:
 
==== Description ====
 
==== Description ====
  
Sets the [[FF7/Field/Script/Opcodes/F0 MUSIC|MUSIC]] that will play when the next [[FF7/Field/Script/Opcodes/70 BATTLE|BATTLE]] is issued. As with the MUSIC opcode, the ID represents an offset into the list of music files that have been set by the field file. Hence, provided the field file has the correct music file(s) set, this opcode can be used to set regular or boss battle music for the current field, or even switched between in the script.
+
Sets the [[FF7/Field/Script/Opcodes/F0 MUSIC|MUSIC]] that will play when the next [[FF7/Field/Script/Opcodes/70 BATTLE|BATTLE]] is issued. As with the MUSIC opcode, the ID represents an offset into the list of music files that have been set by the field file. Hence, provided the field file has the correct music file(s) set, this opcode can be used to set regular or boss battle music for the current field's encounters, or even switched between in the script.

Latest revision as of 05:19, 23 May 2019

  • Opcode: 0xF6
  • Short name: BMUSC
  • Long name: Battle Music

Memory layout

0xF6 I

Arguments

  • const UByte I: ID of the music file to play, as set in the field file.

Description

Sets the MUSIC that will play when the next BATTLE is issued. As with the MUSIC opcode, the ID represents an offset into the list of music files that have been set by the field file. Hence, provided the field file has the correct music file(s) set, this opcode can be used to set regular or boss battle music for the current field's encounters, or even switched between in the script.