Undertale script viewer

← back to main script listing

gml_Object_obj_underground_exit_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 1)
2
{
3
    global.interact = 1;
4
    con = 2;
5
    global.msc = 812;
6
    global.typer = 5;
7
    global.facechoice = 0;
8
    instance_create(0, 0, obj_dialoguer);
9
}
10
if (con == 2 && instance_exists(OBJ_WRITER) == 0)
11
{
12
    obj_mainchara.y += 5;
13
    global.facing = 0;
14
    global.interact = 0;
15
    con = 0;
16
}
17
if (con == 10 && instance_exists(OBJ_WRITER) == 0)
18
{
19
    con = 11;
20
    vol = caster_get_volume(global.currentsong);
21
}
22
if (con == 11)
23
{
24
    vol -= 0.02;
25
    caster_set_volume(global.currentsong, vol);
26
    if (vol <= 0.02)
27
    {
28
        caster_free(all);
29
        con = 12;
30
        cym = caster_load("music/cymbal.ogg");
31
        caster_play(cym, 1, 1);
32
        zr = 0;
33
    }
34
}
35
if (con == 12)
36
{
37
    z = instance_create(0, 0, obj_screenwhiter);
38
    z.ex = 2;
39
    con = 13;
40
}
41
if (con == 13)
42
{
43
    zr += 1;
44
    if (zr >= 136)
45
    {
46
        room_goto(room_outsideworld Outside [Dogchecked]);
47
        con = 14;
48
    }
49
}