Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_musicer_green_room_Create_0

(view raw script w/o annotations or w/e)
1
if (global.plot < 121)
2
    exit;
3
if (global.plot >= 150 && global.plot < 160)
4
    exit;
5
var _track_id = "greenroom_detune.ogg";
6
var _pitch = 1;
7
if (global.plot >= 280 && room == room_dw_green_room)
8
{
9
    _track_id = "tv_results_screen.ogg";
10
    _pitch = 0.4;
11
}
12
if (!snd_is_playing(global.currentsong[1]))
13
{
14
    global.currentsong[0] = snd_init(_track_id);
15
    global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.7, _pitch);
16
}