Undertale script viewer

← back to main script listing

gml_Object_obj_npc_room_Step_1

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

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

tt = 0; if (myinteract == 3) { if (instance_exists(OBJ_WRITER)) { image_speed = 0.2; if (OBJ_WRITER.halt != 0) tt = 1; } else { tt = 1; } } if (tt == 1) { image_speed = 0; image_index = 0; }
();
3
if (room == room_water3A && instance_exists(OBJ_WRITER) == 0)
4
{
5
    if (global.flag[105 got_tutu] == 1)
6
    {
7
        global.interact = 0;
8
        instance_destroy();
9
    }
10
}
11
if (room == room_water_shoe && instance_exists(OBJ_WRITER) == 0)
12
{
13
    if (global.flag[106 got_ballet_shoes] == 1)
14
    {
15
        global.interact = 0;
16
        instance_destroy();
17
    }
18
}
19
if (room == room_fire6A && instance_exists(OBJ_WRITER) == 0)
20
{
21
    if (global.flag[110 got_frying_pan] == 1)
22
    {
23
        global.interact = 0;
24
        instance_destroy();
25
    }
26
}
27
if (room == room_fire_apron && instance_exists(OBJ_WRITER) == 0)
28
{
29
    if (global.flag[111 got_apron] == 1)
30
    {
31
        global.interact = 0;
32
        instance_destroy();
33
    }
34
}
35
if (room == room_asrielroom_final)
36
{
37
    if (x < (-10 + (room_width / 2)))
38
    {
39
        if (global.flag[114 got_dagger] == 1)
40
            image_index = 1;
41
        else
42
            image_index = 0;
43
    }
44
    if (x >= (-10 + (room_width / 2)))
45
    {
46
        if (global.flag[115 got_locket] == 1)
47
            image_index = 1;
48
        else
49
            image_index = 0;
50
    }
51
}
52
if (sprite_index == spr_fukufire)
53
    image_speed = 0.2;
54
if (sprite_index == spr_hotdog_harpy)
55
    image_speed = 0.2;