Skip to content
vince94 edited this page Sep 18, 2019 · 1 revision

While CoilSnake does not allow you to actually edit the music in EarthBound (see the next section), it does allow you to select what music will be played and when.

Each block in map_music.yml represents a set of background music tracks which can be played back by EarthBound at certain locations. The IDs for these entries are used in map_sectors.yml (which you should not edit manually, but instead use the EB Project Editor to edit). Let's look at map music entry 35:

35:
- Event Flag: 0x8216
  Music: 87
- Event Flag: 0x8049
  Music: 93
- Event Flag: 0x8217
  Music: 77
- Event Flag: 0x8047
  Music: 129
- Event Flag: 0x0
  Music: 45

This is a list of possible background tracks. The one which is actually played will depend on the Event Flags which are currently set in the game. EarthBound checks them in order: if it is set, play the specified Music (as listed in the Music Editor); otherwise, go to the next one. The last option should always have Event Flag: 0x0, so that it is always true if all others are false.

Note: 0x8___ flags are the reverse of 0x___ flags; if one is set, the other is unset.

Clone this wiki locally