- Opcode: 0x0B4
- Short name: MUSICCHANGE
- Long name: Start music
Argument
none
Stack
none
Description
Starts playing the music track preloaded by MUSICLOAD, replacing the current field music. Takes no arguments and pops nothing. If nothing has been loaded (the load flag unk_1D9CDE0 is 0) it does nothing and returns 2. Otherwise it clears the load flag, plays the loaded track, applies the saved music volume and returns 3 (yield).
PC handler: SCRIPT_MUSICCHANGE.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_MUSICCHANGE | 0x51F7F0 | Field script opcode handler (verified IDA function) |