Deltarune script viewer

← back to main script listing

gml_Object_obj_npc_sign_ch1_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_ch1)
11
{
12
    sprite_index = spr_ironshackle_ch1;
13
    image_index = 0;
14
    if (global.flag[105 got_iron_shackle] == 1)
15
        image_index = 1;
16
}
17
if (room == room_cc_prison2_ch1)
18
{
19
    sprite_index = spr_npc_originalstarwalker_ch1;
20
    if (global.flag[254 starwalker] == 0)
21
        instance_destroy();
22
}
23
if (room == room_cc_throneroom_ch1)
24
{
25
    if (x >= 220 && x <= 400)
26
        sprite_index = spr_darkthrone_ch1;
27
    else
28
        sprite_index = spr_darkmoney_ch1;
29
}
30
if (room == room_flowershop_2f_ch1)
31
{
32
    sprite_index = spr_flowercontainer_ch1;
33
    num = 0;
34
    colortxt = 
a golden
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(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_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(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_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(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_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(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_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(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_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(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_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(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_ch1)
68
{
69
    sprite_index = spr_npc_asgoretruck_ch1;
70
    setdepth = 0;
71
    depth = 700000;
72
}
73
if (room == room_beach_ch1)
74
    sprite_index = spr_npc_beachtable_ch1;
75
if (room == room_town_krisyard_ch1)
76
    sprite_index = spr_torcar_u_ch1;
77
if (setdepth == 1)
78
    scr_depth_ch1
scr_depth_ch1

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