Difference between revisions of "FF8/Field/Script/Opcodes/021 EFFECTPLAY2"
Jump to navigation
Jump to search
my_wiki>Shard m (→Argument) |
my_wiki>Shard |
||
Line 5: | Line 5: | ||
==== Argument ==== | ==== Argument ==== | ||
− | Field SFXID | + | Field SFXID (in the SFX list for that field) |
==== Stack ==== | ==== Stack ==== | ||
Line 15: | Line 15: | ||
==== Description ==== | ==== Description ==== | ||
− | Plays a sound effect through 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. 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. | + | Plays a sound effect through 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. |
Revision as of 09:48, 31 January 2014
- Opcode: 0x021
- Short name: EFFECTPLAY2
- Long name: Play sound effect
Argument
Field SFXID (in the SFX list for that field)
Stack
- (volume related?)
- (volume related? usually 127)
- Channel (must be a power of 2)
- EFFECTPLAY2
Description
Plays a sound effect through the given sound channel. The channel is important because it's the parameter used in 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.