Deltarune (Chapter 3) 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 (room == room_town_krisyard_dark)
12
    global.darkzone = 0;
13
if (global.darkzone == 1)
14
    
scr_darksize
scr_darksize

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

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
83
depth += depthbonus;