Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_npc_room_animated_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
talked = 0;
3
image_speed = 0.2;
4
depthcancel = 0;
5
if (global.darkzone == 1)
6
{
7
    image_xscale = 2;
8
    image_yscale = 2;
9
}
10
if (room == room_dark1)
11
{
12
    sprite_index = spr_shine;
13
    if (global.time > 14400 || global.flag[10 wrist_protector] == 1)
14
        instance_destroy();
15
}
16
if (room == room_town_mid)
17
{
18
    if (x >= 320)
19
        sprite_index = spr_npc_icemascot_fake;
20
    else
21
        sprite_index = spr_npc_icemascot2;
22
}
23
if (room == room_diner)
24
{
25
    sprite_index = spr_npc_greenfire;
26
    depth = 4000;
27
    depthcancel = 1;
28
}
29
if (room == room_cc_clover)
30
    sprite_index = spr_cc_boombox;
31
if (room == room_cc_6f)
32
    sprite_index = spr_smallchecker_front;
33
if (room == room_cc_throneroom)
34
{
35
    if (global.plot < 240)
36
        instance_destroy();
37
    sprite_index = spr_smallchecker_front;
38
}
39
if (room == room_field_maze)
40
{
41
    sprite_index = spr_jigsawry_clobbered;
42
    if (global.plot >= 150)
43
        instance_destroy();
44
}
45
if (room == room_forest_savepoint_relax)
46
{
47
    image_speed = 0.1;
48
    sprite_index = spr_diamond_fan;
49
}
50
if (depthcancel == 0)
51
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();