Undertale script viewer

← back to main script listing

gml_Object_obj_tundramusicspecial1_Alarm_0

(view raw script w/o annotations or w/e)
1
if (global.flag[47 status_creepy_tundra] == -1)
2
{
3
    caster_free(global.currentsong2);
4
    exit;
5
}
6
if (global.flag[47 status_creepy_tundra] > 0 && played == 0 && obj_mainchara.x > 660)
7
{
8
    caster_loop(global.currentsong2, 0.2, 1.58);
9
    played = 1;
10
}
11
if (global.flag[47 status_creepy_tundra] > 0 && played == 1 && obj_mainchara.x > 1350)
12
{
13
    caster_loop(global.currentsong2, 0.2, 1.68);
14
    played = 2;
15
}
16
if (global.flag[47 status_creepy_tundra] > 2 && played == 2 && obj_mainchara.x > 1600)
17
{
18
    ex2 = caster_loop(global.currentsong2, 0.1, 2.12);
19
    played = 3;
20
}
21
alarm[0] = 5;
gml_Object_obj_tundramusicspecial1_Alarm_0.gml

if (global.flag[47 status_creepy_tundra] == -1) { caster_free(global.currentsong2); exit; } if (global.flag[47 status_creepy_tundra] > 0 && played == 0 && obj_mainchara.x > 660) { caster_loop(global.currentsong2, 0.2, 1.58); played = 1; } if (global.flag[47 status_creepy_tundra] > 0 && played == 1 && obj_mainchara.x > 1350) { caster_loop(global.currentsong2, 0.2, 1.68); played = 2; } if (global.flag[47 status_creepy_tundra] > 2 && played == 2 && obj_mainchara.x > 1600) { ex2 = caster_loop(global.currentsong2, 0.1, 2.12); played = 3; } alarm[0] = 5; if (global.flag[47 status_creepy_tundra] > 2 && played == 3 && obj_mainchara.x > 1610) { alarm[0] = 3; caster_set_volume(global.currentsong2, 0.2 + ((obj_mainchara.x - 1610) / 860)); caster_set_volume(ex2, 0.1 + ((obj_mainchara.x - 1610) / 860)); }
22
if (global.flag[47 status_creepy_tundra] > 2 && played == 3 && obj_mainchara.x > 1610)
23
{
24
    alarm[0] = 3;
gml_Object_obj_tundramusicspecial1_Alarm_0.gml

if (global.flag[47 status_creepy_tundra] == -1) { caster_free(global.currentsong2); exit; } if (global.flag[47 status_creepy_tundra] > 0 && played == 0 && obj_mainchara.x > 660) { caster_loop(global.currentsong2, 0.2, 1.58); played = 1; } if (global.flag[47 status_creepy_tundra] > 0 && played == 1 && obj_mainchara.x > 1350) { caster_loop(global.currentsong2, 0.2, 1.68); played = 2; } if (global.flag[47 status_creepy_tundra] > 2 && played == 2 && obj_mainchara.x > 1600) { ex2 = caster_loop(global.currentsong2, 0.1, 2.12); played = 3; } alarm[0] = 5; if (global.flag[47 status_creepy_tundra] > 2 && played == 3 && obj_mainchara.x > 1610) { alarm[0] = 3; caster_set_volume(global.currentsong2, 0.2 + ((obj_mainchara.x - 1610) / 860)); caster_set_volume(ex2, 0.1 + ((obj_mainchara.x - 1610) / 860)); }
25
    caster_set_volume(global.currentsong2, 0.2 + ((obj_mainchara.x - 1610) / 860));
26
    caster_set_volume(ex2, 0.1 + ((obj_mainchara.x - 1610) / 860));
27
}