Undertale script viewer

← back to main script listing

gml_Object_obj_nicesnowman_Step_2

(view raw script w/o annotations or w/e)
1
if (dt == 1 && instance_exists(OBJ_WRITER) == 0)
2
{
3
    dt = 0;
4
    global.flag[253 killed_snowman] += 1;
5
}
6
if (global.flag[253 killed_snowman] == 1)
7
{
8
    sprite_index = spr_sadsnowman_d1;
9
    image_index = 0;
10
}
11
if (global.flag[253 killed_snowman] == 2)
12
{
13
    sprite_index = spr_sadsnowman_d1;
14
    image_index = 1;
15
}
16
if (global.flag[253 killed_snowman] >= 3)
17
{
18
    sprite_index = spr_sadsnowman_d1;
19
    image_index = 2;
20
}