Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/F2 AKAO

1,751 bytes added, 05:19, 23 May 2019
m
80 revisions imported
Perform an operation described by ''Op'', and uses the parameters depending on the operation.
===== Operation list (by [[user:aali|Aali]], amendments by and [[user:DLPB2|DLPB]]) =====
<ul>
<li>'''10''' Play music [param1=Music ID]</li>
<li>'''14''' Same as 10</li>
<li>'''15''' ''Unknown''Serves no significant function</li>
<li>'''18''' Play music and resume from last position [param1=Music ID]</li>
<li>'''19''' Same as 18</li>
----
<li>'''20''' Play a one sound effect (will be terminated if another effect is played on channel 1-4) [param1=Panning, param2=Effect IDon channel #1]</li><li>'''21''' Same as 20 (but allows for Play two sound effects [param1=Panning, param2=Effect ID on channel #1, param3 input - unknown use)=Effect ID on channel #2]</li><li>'''22''' Same as 20 (but allows for Play three sound effects [param1=Panning, param2=Effect ID on channel #1, param3/=Effect ID on channel #2, param4 input - unknown use)=Effect ID on channel #3]</li><li>'''23''' Same as 20 (but allows for Play four sound effects [param1=Panning, param2=Effect ID on channel #1, param3/=Effect ID on channel #2, param4/=Effect ID on channel #3, param5 input - unknown use)=Effect ID on channel #4]</li>
<li>'''24''' Same as 20</li>
<li>'''25''' Same as 21</li>
<li>'''2A''' Play a sound effect on channel #3 [param1=Panning, param2=Effect ID]</li>
<li>'''2B''' Play a sound effect on channel #4 [param1=Panning, param2=Effect ID]</li>
<li>'''30''' Play a sound effect (it does not use on channel 1-4 and cannot be stopped) [param1=Effect ID]#5 with centre panning</li>
----
<li>'''98''' Resumes music and sound effects</li>
<li>'''A2''' Volume control (channel #3) [param1=Volume]</li>
<li>'''A3''' Volume control (channel #4) [param1=Volume]</li>
<li>'''A4''' Volume transitions transition (channel #1) [param1=Transition time, param2=Target volume]</li><li>'''A5''' Volume transitions transition (channel #2) [param1=Transition time, param2=Target volume]</li><li>'''A6''' Volume transitions transition (channel #3) [param1=Transition time, param2=Target volume]</li><li>'''A7''' Volume transitions transition (channel #4) [param1=Transition time, param2=Target volume]</li><li>'''A8''' Pan control (channel #1)[param1=Panning]</li><li>'''A9''' Pan control (channel #2)[param1=Panning]</li><li>'''AA''' Pan control (channel #3)[param1=Panning]</li><li>'''AB''' Pan control (channel #4)[param1=Panning]</li><li>'''AC''' Pan transitions transition (channel #1)[param1=Transition time, param2=Target panning]</li><li>'''AD''' Pan transitions transition (channel #2)[param1=Transition time, param2=Target panning]</li><li>'''AE''' Pan transitions transition (channel #3)[param1=Transition time, param2=Target panning]</li><li>'''AF''' Pan transitions transition (channel #4)[param1=Transition time, param2=Target panning]</li>
----
<li>'''B0''' Tempo control (channel #1)[param1=Tempo]</li><li>'''B1''' Tempo control (channel #2)[param1=Tempo]</li><li>'''B2''' Tempo control (channel #3)[param1=Tempo]</li><li>'''B3''' Tempo control (channel #4)[param1=Tempo]</li><li>'''B4''' Tempo transitions transition (channel #1)[param1=Transition time, param2=Target tempo]</li><li>'''B5''' Tempo transitions transition (channel #2)[param1=Transition time, param2=Target tempo]</li><li>'''B6''' Tempo transitions transition (channel #3)[param1=Transition time, param2=Target tempo]</li><li>'''B7''' Tempo transitions transition (channel #4)[param1=Transition time, param2=Target tempo]</li><li>'''B8''' Volume control for all channels channel #1 to #4 [param1=Volume]</li><li>'''B9''' Volume transitions transition for all channels channel #1 to #4 [param1=Transition time, param2=Target volume]</li><li>'''BA''' Pan control for all channelschannel #1 to #4 [param1=Panning]</li><li>'''BB''' Pan transitions transition for all channelschannel #1 to #4 [param1=Transition time, param2=Target panning]</li><li>'''BC''' Tempo control for all channelschannel #1 to #4 [param1=Tempo]</li><li>'''BD''' Tempo transitions transition for all channelschannel #1 to #4 [param1=Transition time, param2=Target tempo]</li>
----
<li>'''C0''' Set music Music volume [param1=Volume level]</li>
<li>'''C1''' Music volume transition [param1=Transition time, param2=Target volume]</li>
<li>'''C2''' Music From-To volume fade</li><li>'''C8''' Set music pan? (noop in PC version)</li><li>'''C9''' Music pan transition? (noop in PC version)</li><li>'''CA''' Music pan fade? (noop in PC version)[param1=Transition time, param2=Starting volume, param3=Ending volume]</li>
----
<li>'''C8''' Music balance [param1=balance]</li><li>'''C9''' Music balance transition [param1=Transition time, param2=Target balance]</li><li>'''CA''' Music From-To balance transition [param1=Transition time, param2=Starting balance, param3=Ending balance]</li>----<li>'''D0''' Set music Music tempo[param1=Tempo]</li><li>'''D1''' Music tempo transition[param1=Transition time, param2=Target tempo]</li><li>'''D2''' Music From-To tempo transition [param1=Transition time, param2=Starting tempo, param3=Ending tempo fade] </li>
----
<li>'''F0''' Stop music</li>
<li>'''F1''' Stop sound effects (this will not affect 0x30channel #1 to #4)</li> 
</ul>
 
==== Please Note ====
 
Channel #5 (used from operation 0x30) is dedicated to the menu and should not be used for anything else.<br>
All transitions use the formula Transition_time (in seconds) = param1 / 60.<br>
The pan (audio L/R balance) value range is 0 to 127, where 0 is fully left, 64 is centre, and 127 is fully right.<br>
The maximum volume is 127.<br>
The tempo value range is 0 to 127. The normal tempo is 0.<br>
Operations 0x10/14/18/19 do not work on the PSX game from field script [CURRENTLY CHECKING THIS].<br>
Operations 0xC8/C9/CA are not implemented in the PSX version or PC version despite the field script calling them.<br>

Navigation menu