Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_npc_sign_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
mydialoguer = 0;
3
image_speed = 0;
4
setdepth = 1;
5
read = 0;
6
depthbonus = 0;
7
skip = 0;
8
extflag = 0;
9
doafter = 0;
10
docon = 0;
11
if (global.darkzone == 1)
12
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(id);
13
if (room == room_flowershop_2f)
14
{
15
    sprite_index = spr_flowercontainer;
16
    num = 0;
17
    colortxt = "a golden";
18
    if (x > 170)
19
    {
20
        num = 1;
21
        colortxt = "a yellow";
22
        if (y > 110)
23
        {
24
            num = 5;
25
            colortxt = "an orange";
26
        }
27
        if (y > 130)
28
        {
29
            num = 6;
30
            colortxt = "a green";
31
        }
32
    }
33
    if (x < 140)
34
    {
35
        num = 2;
36
        colortxt = "a cyan";
37
        if (y > 110)
38
        {
39
            num = 3;
40
            colortxt = "a blue";
41
        }
42
        if (y > 130)
43
        {
44
            num = 4;
45
            colortxt = "a purple";
46
        }
47
    }
48
    image_index = num;
49
}
50
if (room == room_town_north)
51
{
52
    sprite_index = spr_npc_asgoretruck;
53
    setdepth = 0;
54
    depth = 100000;
55
}
56
if (room == room_beach)
57
{
58
    sprite_index = spr_npc_beachtable;
59
    if (global.chapter == 4 && global.plot >= 290)
60
        visible = 0;
61
}
62
if (room == room_town_krisyard)
63
    sprite_index = spr_torcar_u;
64
if (room == room_lw_police)
65
{
66
    if (x > 180 && y > 50)
67
    {
68
        sprite_index = spr_npc_prisoner_dog_eye;
69
        depthcancel = 1;
70
    }
71
    if (x > 230)
72
    {
73
        sprite_index = spr_npc_prisoner_dog_lesser;
74
        depthcancel = 1;
75
    }
76
}
77
if (setdepth == 1)
78
    
scr_depth
scr_depth

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