Undertale script viewer

← back to main script listing

gml_Object_obj_dogpillarparent_Create_0

(view raw script w/o annotations or w/e)
1
g = 0;
2
myinteract = 0;
3
image_xscale = 1;
4
image_yscale = 1;
5
if (object_index == obj_dogpillar2)
6
{
7
    if (global.flag[55 status_lesserdog] == 1)
8
    {
9
        g = 1;
10
        sprite_index = spr_dogmush;
11
        y += 20;
12
    }
13
    if (global.flag[55 status_lesserdog] == 0 && global.plot < 67)
14
    {
15
        g = 2;
16
        sprite_index = spr_lessdogsnow;
17
        y += 30;
18
    }
19
}
20
else if (global.flag[55 status_lesserdog] == 1 || global.flag[55 status_lesserdog] == 0)
21
{
22
    instance_destroy();
23
}
24
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);