Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_shop_ch5_Step_0

related scripts: Alarm_3Alarm_5Create_0Draw_0Other_11Other_5Step_0

(view raw script w/o annotations or w/e)
1
if (_music_fade)
2
{
3
    if (global.flag[20 other_text_command] == 1)
4
    {
5
        if (_music_alt[0] == -4)
6
        {
7
            _music_alt[0] = snd_init("shop_3.ogg");
8
            _music_alt[1] = mus_loop_ext(_music_alt[0], global.flag[17 audio_volume], 0.5);
9
        }
10
    }
11
    else if (global.flag[20 other_text_command] == 2)
12
    {
13
        if (!_music_fade_out)
14
        {
15
            _music_fade_out = true;
16
            mus_volume(_music_alt[1], 0, 30);
17
        }
18
    }
19
    else if (global.flag[20 other_text_command] == 3)
20
    {
21
        _music_fade = false;
22
        mus_volume(global.currentsong[1], 1, 30);
23
    }
24
}