if (global.chapter <= 1) { if (global.plot <= 30) { if (!snd_is_playing(global.currentsong[1])) { global.currentsong[0] = snd_init("creepydoor.ogg"); global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1); } } if (global.plot > 30) { global.currentsong[0] = snd_init("castletown_empty.ogg"); global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1); } } if (global.chapter == 2) { if (!snd_is_playing(global.currentsong[1])) { if (global.plot == 8) global.currentsong[0] = snd_init("castletown_empty.ogg"); if (global.plot >= 12 && global.plot < 200) global.currentsong[0] = snd_init("castletown.ogg"); if (global.plot >= 200) { var mySong = "castletown.ogg"; if (is_string(global.tempflag[11])) mySong = global.tempflag[11]; global.currentsong[0] = snd_init(mySong); } if (global.plot == 8 || global.plot >= 12) global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1); } }