Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b3bs_watercooler_Create_0

(view raw script w/o annotations or w/e)
1
timer = 0;
2
con = 0;
3
watercooler = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(1242, 936, spr_watercooler);
4
with (watercooler)
5
    
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)); } }
();
6
watercon = 0;
7
watertimer = 0;
8
watertrig = instance_create(1236, 996, obj_trigger_interact);
9
with (watertrig)
10
{
11
    visible = false;
12
    image_alpha = 0.2;
13
    image_xscale = 4;
14
    image_yscale = 2;
15
}
16
wcamx = 0;
17
wcamy = 0;
18
camcontrol = false;
19
treasure = instance_create(1146, 980, obj_treasure_room);
20
stealthend = 0;
21
if (global.flag[1138 got_nothing] == 1)
22
    stealthend = 1;
23
stealth = instance_create(0, 0, obj_b3bs_stealth);
24
gouldenson = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(884, 684, spr_dw_ch3_gouldenson);
25
with (gouldenson)
26
    
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)); } }
();
27
sonread = instance_create(884, 684, obj_readable_room1);
28
with (sonread)
29
{
30
    extflag = "sam";
31
    image_yscale = 2;
32
    image_xscale = 1.5;
33
}
34
block = 0;
35
black = 0;
36
doorcon = 99;
37
if (global.flag[1103 ice_key_fail] == 0)
38
{
39
    doorcon = 0;
40
    block = instance_create(0, 40, obj_solidblocksized);
41
    with (block)
42
    {
43
        image_xscale = 2;
44
        image_yscale = 6;
45
    }
46
    black = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(0, 40, spr_pxwhite);
47
    with (black)
48
    {
49
        image_blend = c_black;
50
        image_xscale = 80;
51
        image_yscale = 240;
52
        depth = 1000049;
53
    }
54
}
55
zone = "";
56
for (var i = 0; i < 5; i++)
57
{
58
    h1[i] = instance_create(1476, 600, obj_dw__backstagelight);
59
    with (h1[i])
60
    {
61
        wally = 600;
62
        type = 1;
63
        movetype = 4;
64
        range = 140;
65
        xrange = 170;
66
        if (obj_mainchara.x > 2100)
67
            xrange = -170;
68
        amplitude = 28;
69
        timer = i * amplitude;
70
        detecttype = 2;
71
    }
72
}
73
h1[5] = instance_create(1852, 560, obj_dw__backstagelight);
74
with (h1[5])
75
{
76
    wally = 600;
77
    type = 1;
78
    movetype = 4;
79
    xrange = 0;
80
    range = 140;
81
    amplitude = 60;
82
    detecttype = 2;
83
}
84
for (var i = 0; i < 4; i++)
85
{
86
    h2[i] = instance_create(1436 + (i * 120), 972, obj_dw__backstagelight);
87
    with (h2[i])
88
    {
89
        type = 1;
90
        movetype = 4;
91
        range = 120;
92
        xrange = 0;
93
        range = 146;
94
        amplitude = 36;
95
        detecttype = 2;
96
        timer = i * 12;
97
        wally = 1040;
98
    }
99
}
100
for (var i = 1; i < 2; i++)
101
{
102
    tl_light[i] = instance_create(296 + (i * 170), 136, obj_dw__backstagelight);
103
    with (tl_light[i])
104
    {
105
        wally = 200;
106
        type = 1;
107
        movetype = 4;
108
        range = 120;
109
        xrange = 0;
110
        range = 120;
111
        amplitude = 15;
112
        detecttype = 2;
113
        timer = i * 12;
114
    }
115
}
116
bl_light[1] = instance_create(526, 688, obj_dw__backstagelight);
117
bl_light[2] = instance_create(406, 688, obj_dw__backstagelight);
118
for (var i = 1; i < 3; i++)
119
{
120
    with (bl_light[i])
121
    {
122
        wally = 720;
123
        type = 1;
124
        movetype = 4;
125
        range = 120;
126
        xrange = 0;
127
        range = 160;
128
        amplitude = 20;
129
        detecttype = 2;
130
        timer -= (4 + i);
131
        timerrate = 1.5;
132
    }
133
}
134
for (var i = 0; i < 1; i++)
135
{
136
    tr_light[i] = instance_create(1484, 136, obj_dw__backstagelight);
137
    with (tr_light[i])
138
    {
139
        type = 1;
140
        wally = 200;
141
        movetype = 4;
142
        range = 140;
143
        xrange = 170;
144
        amplitude = 28;
145
        timer = (i * xrange) / 2;
146
        detecttype = 2;
147
    }
148
}
149
with (obj_dw__backstagelight)
150
    drawlamp = false;
151
if (stealthend == 1)
152
{
153
    with (obj_b3bs_stealtharea)
154
        instance_destroy();
155
    with (obj_b3bs_stealthSolid)
156
        instance_destroy();
157
    with (obj_dw__backstagelight)
158
        instance_destroy();
159
    stealthend = 2;
160
}
161
scr_stealth_drawmarkers
scr_stealth_drawmarkers

function
scr_stealth_drawmarkers()
{ var footcolor = #412311; var arrowcolor = #884823; var thedepth = 1000050; var aryoff = 0; if (room == room_dw_teevie_stealth_d) { footcolor = #A20B0D; arrowcolor = #FF946F; aryoff = -6; thedepth = 999999; } with (obj_b3bs_stealtharea) { mark[0] =
scr_dark_marker(x - 4, ((10 + y) - 40) + aryoff, spr_dw_ch3_b3bs_stealth_downarrow);
mark[1] =
scr_marker_ext(x + 4 + sprite_width + 4, ((10 + y) - 40) + aryoff, spr_dw_ch3_b3bs_stealth_downarrow, -2, 2);
for (var i = 0; i < ((sprite_width - 36) / 8); i++) { var xpos = 18 + (i * 8); mark[i + 2] =
scr_dark_marker(x + xpos, (y - 40) + 12 + aryoff, spr_pxwhite);
mark[i + 2].image_xscale = 8; mark[i + 2].image_yscale = 4; if ((xpos % 3) == 0) mark[i + 2].y -= 2; } for (var i = 0; i < array_length(mark); i++) { mark[i].depth = thedepth; mark[i].image_blend = arrowcolor; } for (var i = 0; i < (image_xscale / 40); i++) { var xpos = x + (i * 40); if ((i % 3) == 0) xpos += 4; var ypos = y + 4; if ((i % 2) == 0) ypos += 6; with (
scr_dark_marker(xpos, ypos, spr_dw_ch3_b3bs_stealth_footprint))
{ depth = thedepth; image_blend = footcolor; } } } }
();