Deltarune (Chapter 1) 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
image_speed = 0;
3
setdepth = 1;
4
read = 0;
5
if (global.darkzone == 1)
6
{
7
    image_xscale = 2;
8
    image_yscale = 2;
9
}
10
if (room == room_cc_prison_cells)
11
{
12
    sprite_index = spr_ironshackle;
13
    image_index = 0;
14
    if (global.flag[105 got_iron_shackle] == 1)
15
        image_index = 1;
16
}
17
if (room == room_cc_prison2)
18
{
19
    sprite_index = spr_npc_originalstarwalker;
20
    if (global.flag[254 starwalker] == 0)
21
        instance_destroy();
22
}
23
if (room == room_cc_throneroom)
24
{
25
    if (x >= 220 && x <= 400)
26
        sprite_index = spr_darkthrone;
27
    else
28
        sprite_index = spr_darkmoney;
29
}
30
if (room == room_flowershop_2f)
31
{
32
    sprite_index = spr_flowercontainer;
33
    num = 0;
34
    colortxt = 
a golden
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_npc_sign_slash_Create_0_gml_45_0")
;
35
    if (x > 170)
36
    {
37
        num = 1;
38
        colortxt = 
a yellow
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_npc_sign_slash_Create_0_gml_50_0")
;
39
        if (y > 110)
40
        {
41
            num = 5;
42
            colortxt = 
an orange
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_npc_sign_slash_Create_0_gml_51_0")
;
43
        }
44
        if (y > 130)
45
        {
46
            num = 6;
47
            colortxt = 
a green
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_npc_sign_slash_Create_0_gml_52_0")
;
48
        }
49
    }
50
    if (x < 140)
51
    {
52
        num = 2;
53
        colortxt = 
a cyan
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_npc_sign_slash_Create_0_gml_57_0")
;
54
        if (y > 110)
55
        {
56
            num = 3;
57
            colortxt = 
a blue
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_npc_sign_slash_Create_0_gml_58_0")
;
58
        }
59
        if (y > 130)
60
        {
61
            num = 4;
62
            colortxt = 
a purple
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_npc_sign_slash_Create_0_gml_59_0")
;
63
        }
64
    }
65
    image_index = num;
66
}
67
if (room == room_town_north)
68
{
69
    sprite_index = spr_npc_asgoretruck;
70
    setdepth = 0;
71
    depth = 700000;
72
}
73
if (room == room_beach)
74
    sprite_index = spr_npc_beachtable;
75
if (room == room_town_krisyard)
76
    sprite_index = spr_torcar_u;
77
if (setdepth == 1)
78
    scr_depth
scr_depth

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