Undertale script viewer

← back to main script listing

gml_Object_obj_mettdestroyed_event_Create_0

(view raw script w/o annotations or w/e)
1
con = 1;
2
if (global.plot > 193)
3
{
4
    instance_destroy();
5
    exit;
6
}
7
if (global.plot >= 192)
8
{
9
    sl = instance_create(140, 840, obj_solidwide);
10
    sl2 = instance_create(145, 710, obj_solidwide);
11
    brokemett = scr_marker
scr_marker

thismarker = instance_create(argument0, argument1, obj_npc_marker); thismarker.visible = true; thismarker.image_speed = 0; thismarker.sprite_index = argument2; return thismarker;
(140, 700, spr_mettaton_shattered);
12
    with (brokemett)
13
        scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
();
14
    if (global.flag[425 killed_mettaton] == 0)
15
    {
16
        brokemett.sprite_index = spr_mett_o_upperbody_light;
17
        brokemett.x += 6;
18
        brokemett.y -= 3;
19
    }
20
    ii = instance_create(140, 700, obj_readable_room1);
21
    ii = instance_create(160, 700, obj_readable_room1);
22
    al2 = instance_create(150, 710, obj_alphys_npc);
23
    al2.sprite_index = al2.utsprite;
24
    al2.fun = 1;
25
    con = 587458478547;
26
}
27
else
28
{
29
    sl = instance_create(140, 840, obj_solidwide);
30
    brokemett = scr_marker
scr_marker

thismarker = instance_create(argument0, argument1, obj_npc_marker); thismarker.visible = true; thismarker.image_speed = 0; thismarker.sprite_index = argument2; return thismarker;
(140, 700, spr_mettaton_shattered);
31
    with (brokemett)
32
        scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
();
33
    if (global.flag[425 killed_mettaton] == 0)
34
    {
35
        brokemett.sprite_index = spr_mett_o_upperbody_light;
36
        brokemett.x += 6;
37
        brokemett.y -= 3;
38
    }
39
    ii = instance_create(140, 700, obj_readable_room1);
40
    ii = instance_create(160, 700, obj_readable_room1);
41
    sl2 = instance_create(145, 710, obj_solidwide);
42
    obj_mainchara.x = 150;
43
    obj_mainchara.y = 750;
44
    global.facing = 2;
45
    global.interact = 1;
46
    obj_mainchara.cutscene = 1;
47
    view_object[0] = obj_mainchara;
48
}
49
x_maroon = merge_color(c_black, c_maroon, 0.35);