Anonymous

Changes

From Final Fantasy Inside

FF8/Field/Script/Opcodes/021 EFFECTPLAY2

694 bytes added, 05:23, 23 May 2019
m
10 revisions imported
* Long name: Play sound effect
==== Argument ====
Field SFIDSFXID (in the SFX list for that field)
==== Stack ====:''(volume related?)'':''(volume related? usually 127)'':''(?)'':'''EFFECTPLAY2'''
: ''Pan (0=left, 255=== Description ====right)'': ''Volume (0-127)'': ''Channel (must be a power of 2)'': '''EFFECTPLAY2'''
==== Description ==== Plays a sound effectthrough the given sound channel. The channel is important because it's the parameter used in [[FF8/Field/Script/Opcodes/0CD_SESTOP|SESTOP]] to halt a specific sound effect (and to prevent multiple counds from silencing each other). AFAIK Channels go up to 2^20 (which is 1048576), so you can theoretically have 20 sounds playing at once. 0 doesn't seem like it's a usable channel, but this is untested. Note: It seems each area can have a maximum of 32 sounds predefined (meaning sound ID 31 is the highest you can play with this). You have to use [[FF8/Field/Script/Opcodes/0BC_EFFECTPLAY|EFFECTPLAY]] to use more than 32 sounds.