Deltarune (Chapter 4) 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
extflag = 0;
6
extTrig = 0;
7
if (global.darkzone == 1)
8
{
9
    image_xscale = 2;
10
    image_yscale = 2;
11
}
12
if (room == room_town_mid)
13
{
14
    if (x >= 320)
15
        sprite_index = spr_npc_icemascot_fake;
16
    else
17
        sprite_index = spr_npc_icemascot2;
18
}
19
if (room == room_diner)
20
{
21
    sprite_index = spr_npc_greenfire;
22
    depth = 4000;
23
    depthcancel = 1;
24
}
25
if (room == room_cc_clover)
26
    sprite_index = spr_cc_boombox;
27
if (room == room_townhall)
28
    sprite_index = spr_npc_icee_suit;
29
if (room == room_lw_icee_pizza)
30
{
31
    if (x > 110)
32
        sprite_index = spr_npc_warrior;
33
}
34
if (room == room_dw_ralsei_castle_1f)
35
    sprite_index = spr_castle_cauldron;
36
if (room == room_town_church)
37
    sprite_index = spr_npc_rainykid;
38
if (room == room_darkness_example)
39
    sprite_index = spr_npc_rainykid;
40
if (depthcancel == 0)
41
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();