Undertale script viewer

← back to main script listing

gml_Object_obj_amalgam_exc_Step_0

(view raw script w/o annotations or w/e)
1
if (con == -1)
2
{
3
    if (obj_mainchara.x > x && global.interact == 0)
4
    {
5
        global.facing = 2;
6
        caster_pause(global.currentsong);
7
        global.interact = 1;
8
        visible = true;
9
        snd_play(snd_b);
10
        x = obj_mainchara.x + 6;
11
        y = obj_mainchara.y - 16;
12
        con = 0;
13
    }
14
}
15
if (con == 0)
16
{
17
    global.facing = 2;
18
    tr = caster_load("music/sfx_generate.ogg");
19
    con = 0.9;
20
    alarm[4] = 55;
21
}
22
if (con == 0.9)
23
    global.facing = 2;
24
if (con == 1.9)
25
{
26
    caster_play(tr, 0.8, 1.2);
27
    con = 2;
28
}
29
if (con == 2)
30
{
31
    image_speed = 0.25;
32
    if (image_index >= 3)
33
    {
34
        image_speed = 0;
35
        con = 2.9;
36
        alarm[4] = 40;
37
    }
38
}
39
if (con == 3.9)
40
{
41
    caster_play(tr, 0.9, 0.7);
42
    con = 4;
43
}
44
if (con == 4)
45
{
46
    image_speed = 0.5;
47
    if (image_index >= 11)
48
    {
49
        image_speed = 0;
50
        con = 5;
51
        alarm[4] = 50;
52
    }
53
}
54
if (con == 6)
55
{
56
    caster_free(tr);
57
    global.battlegroup = 83;
58
    global.mercy = 1;
59
    global.border = 0;
60
    global.flag[16 type_heart_transition] = 0;
61
    instance_create(0, 0, obj_battler);
62
    con = 7;
63
    alarm[4] = 32;
64
}
65
if (con == 8)
66
{
67
    global.interact = 0;
68
    global.mercy = 0;
69
    caster_resume(global.currentsong);
70
    myinteract = 0;
71
    global.flag[488 truelab_spared_reaperbird] = 1;
72
    scr_tempsave
scr_tempsave

filechoicebk2 = global.filechoice; global.filechoice = 9; script_execute(scr_saveprocess); global.filechoice = filechoicebk2;
();
73
    instance_destroy();
74
}