Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_ch5_LW20W_handoff_Create_0

(view raw script w/o annotations or w/e)
1
depth = -500;
2
drownindex = 14;
3
con = 0;
4
timer = 0;
5
actor = -4;
6
submergeactor = instance_create(0, 0, obj_ch5_LW20W_submerge);
7
submergeactor.image_alpha = 0;
8
actorhandoff = 0;
9
debugskip = 0;
10
camxoff = -1;
11
handoff = 0;
12
global.flag[1742] = 0;
13
textind = 0;
14
endind = 74;
15
c_border = 16777215;
16
c_inner = 0;
17
heartCol = 255;
18
highlightCol = 65535;
19
skip = false;
20
startX = 0;
21
endX = 0;
22
moveamount = 32;
23
movetime = 30;
24
noellewatersound = 0;
25
kriswatersound = 0;
26
failed = false;
27
failwhite = 
scr_marker_ext
scr_marker_ext

function
scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1, arg12 = false)
{ var objinst = 1238; if (arg12) objinst = 1496; var thismarker = instance_create(arg0, arg1, objinst); with (thismarker) { depth = arg8; sprite_index = arg2; image_speed = arg5; image_xscale = arg3; image_yscale = arg4; image_index = arg6; image_blend = arg7; image_alpha = arg11; if (arg9)
scr_depth_alt();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; } function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false, arg3 = false) { if (is_undefined(arg0)) { debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist"); return -4; } var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var imagespeed = layer_sprite_get_speed(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var markertype = 1238; if (arg3) markertype = 1496; var thismarker = instance_create_depth(xloc, yloc, arg1, markertype); with (thismarker) { sprite_index = sprite; image_index = index; image_speed = imagespeed; image_xscale = xscale; image_yscale = yscale; image_angle = angle; image_blend = blend; image_alpha = alpha; if (arg2)
scr_depth_alt(id, arg2);
} return thismarker; } function scr_assetgetinfo(arg0) { var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var imagespeed = layer_sprite_get_speed(arg0); return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed]; }
(0, -120, spr_pxwhite, 640, 480, 0, 0, c_white, -1001);
28
failwhite.image_alpha = 0;
29
failwhite.visible = false;
30
failtimer = 0;
31
faillimit = 240;
32
bgwhite = 
scr_marker_ext
scr_marker_ext

function
scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1, arg12 = false)
{ var objinst = 1238; if (arg12) objinst = 1496; var thismarker = instance_create(arg0, arg1, objinst); with (thismarker) { depth = arg8; sprite_index = arg2; image_speed = arg5; image_xscale = arg3; image_yscale = arg4; image_index = arg6; image_blend = arg7; image_alpha = arg11; if (arg9)
scr_depth_alt();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; } function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false, arg3 = false) { if (is_undefined(arg0)) { debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist"); return -4; } var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var imagespeed = layer_sprite_get_speed(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var markertype = 1238; if (arg3) markertype = 1496; var thismarker = instance_create_depth(xloc, yloc, arg1, markertype); with (thismarker) { sprite_index = sprite; image_index = index; image_speed = imagespeed; image_xscale = xscale; image_yscale = yscale; image_angle = angle; image_blend = blend; image_alpha = alpha; if (arg2)
scr_depth_alt(id, arg2);
} return thismarker; } function scr_assetgetinfo(arg0) { var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var imagespeed = layer_sprite_get_speed(arg0); return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed]; }
(0, -120, spr_pxwhite, 640, 480, 0, 0, c_white, 500);
33
bgwhite.image_alpha = 0;
34
snd_stop(snd_static_loop);
35
staticinit = 0;
36
staticsnd = -4;
37
staticvol = 0;
38
staticpitch = 0.7;
39
blurstrength = 0;
40
blur = instance_create(0, 0, obj_ch5_LW20W_blur2);
41
sinkSpr = findspriteinfo_layer("WEIRD");
42
array_sort(sinkSpr, function(arg0, arg1)
43
{
44
    return arg1.x - arg0.x;
45
});
46
sinkSprCount = array_length(sinkSpr);
47
hurtsound = -4;
48
hurtsoundtimer = 0;
49
hurtsoundreset = 60;
50
hurtsound2 = -4;
51
hurtsoundtimer2 = 0;
52
hurtsoundreset2 = -1;
53
_bgm_track = [-4];
54
_bgm_pitch = 0.6;
55
_bgm_volume = 0;
56
bgm_submerge = false;
57
lowpitch = 1;
58
highpitch = 1;
59
water = scr_marker_fancy(710, -120, 5717);
60
with (water)
61
{
62
    depth = 1100000;
63
    image_yscale = 480;
64
    image_xscale = 80;
65
}
66
siner = 0;
67
str_stop = stringsetloc(
Stop
"Stop", "obj_ch5_LW20W_handoff_slash_Create_0_gml_80_0"
);
68
str_proceed = stringsetloc(
Proceed
"Proceed", "obj_ch5_LW20W_handoff_slash_Create_0_gml_81_0"
);
69
musicstart = 0;
70
71
wprog = function(arg0, arg1)
72
{
73
    var _range = arg1 - arg0;
74
    var _progress = 0;
75
    if (_range != 0)
76
        _progress = (textind - arg0) / _range;
77
    else if (textind >= arg0)
78
        _progress = 1;
79
    return clamp(_progress, 0, 1);
80
};
81
82
xprog = function(arg0, arg1, arg2)
83
{
84
    var _range = arg2 - arg1;
85
    var _progress = 0;
86
    if (_range != 0)
87
        _progress = (arg0 - arg1) / _range;
88
    return _progress;
89
};
90
91
stopActions = [function()
92
{
93
    msgsetloc(0, 
Face W* No...Wait for input
"\\EW* No.../", "obj_ch5_LW20W_handoff_slash_Create_0_gml_105_0"
);
94
    msgnextloc(
Face i* You're supposed to say "Proceed,\Delay 11" right?Wait for input
"\\Ei* You're supposed to say \"Proceed,^1\" right?/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_106_0"
);
95
    msgnextloc(
Face l* Just like all the other times.Wait for inputClose Message
"\\El* Just like all the other times./%", "obj_ch5_LW20W_handoff_slash_Create_0_gml_107_0"
);
96
}, function()
97
{
98
    msgsetloc(0, 
Face m* Stop pretending.Wait for input
"\\Em* Stop pretending./", "obj_ch5_LW20W_handoff_slash_Create_0_gml_111_0"
);
99
    msgnextloc(
Face p* I know you remember,Delay 11 too!Wait for inputClose Message
"\\Ep* I know you remember^1, too!/%", "obj_ch5_LW20W_handoff_slash_Create_0_gml_112_0"
);
100
}, function()
101
{
102
    msgsetloc(0, 
Face r* Why...Delay 11 are your hands trembling...?Wait for input
"\\Er* Why..^1. are your hands trembling...?/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_116_0"
);
103
    msgnextloc(
Face m* Kris,Delay 11 you're the one that wanted this,Delay 11 aren't you?Wait for inputClose Message
"\\Em* Kris^1, you're the one that wanted this^1, aren't you?/%", "obj_ch5_LW20W_handoff_slash_Create_0_gml_117_0"
);
104
}, function()
105
{
106
    msgsetloc(0, 
Face o* Stop pretending you're still the old Kris.Wait for input
"\\Eo* Stop pretending you're still the old Kris./", "obj_ch5_LW20W_handoff_slash_Create_0_gml_121_0"
);
107
    msgnextloc(
Face i* You can't even say "stop" like you used to.Wait for inputClose Message
"\\Ei* You can't even say \"stop\" like you used to./%", "obj_ch5_LW20W_handoff_slash_Create_0_gml_122_0"
);
108
}, function()
109
{
110
    msgsetloc(0, 
Face d* Proceed.Wait for inputClose Message
"\\Ed* Proceed./%", "obj_ch5_LW20W_handoff_slash_Create_0_gml_126_0"
);
111
}];
112
proceedActions = [function()
113
{
114
    skip = true;
115
}, function()
116
{
117
    skip = true;
118
}, function()
119
{
120
    msgsetloc(0, 
Face d* The water's...Delay 11 nice,Delay 11 isn't it,Delay 11 Kris?Wait for input
"\\Ed* The water's..^1. nice^1, isn't it^1, Kris?/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_134_0"
);
121
}, function()
122
{
123
    skip = true;
124
}, function()
125
{
126
    msgsetloc(0, 
Face b* Kris,Delay 11 don't hesitate.Wait for input
"\\Eb* Kris^1, don't hesitate./", "obj_ch5_LW20W_handoff_slash_Create_0_gml_136_0"
);
127
}, function()
128
{
129
    skip = true;
130
}, function()
131
{
132
    msgsetloc(0, 
Face Z* Haha...Delay 11 it's...Delay 11 colder than I thought.Wait for input
"\\EZ* Haha..^1. it's..^1. colder than I thought./", "obj_ch5_LW20W_handoff_slash_Create_0_gml_138_0"
);
133
}, function()
134
{
135
    skip = true;
136
}, function()
137
{
138
    msgsetloc(0, 
Face W* Kris,Delay 11 don't let go of my hands.Wait for input
"\\EW* Kris^1, don't let go of my hands./", "obj_ch5_LW20W_handoff_slash_Create_0_gml_141_0"
);
139
    msgnextloc(
Face j* Just keep walking.Wait for input
"\\Ej* Just keep walking./", "obj_ch5_LW20W_handoff_slash_Create_0_gml_142_0"
);
140
}, function()
141
{
142
    msgsetloc(0, 
Face j* Kris,Delay 11 just...Delay 11 keep walking.Wait for input
"\\Ej* Kris^1, just..^1. keep walking./", "obj_ch5_LW20W_handoff_slash_Create_0_gml_144_0"
);
143
}, function()
144
{
145
    msgsetloc(0, 
Face l* Kris...Wait for input
"\\El* Kris.../", "obj_ch5_LW20W_handoff_slash_Create_0_gml_145_0"
);
146
}, function()
147
{
148
    msgsetloc(0, 
Face W* Kris......Wait for input
"\\EW* Kris....../", "obj_ch5_LW20W_handoff_slash_Create_0_gml_146_0"
);
149
}, function()
150
{
151
    msgsetloc(0, 
Face W* ...Wait for input
"\\EW* .../", "obj_ch5_LW20W_handoff_slash_Create_0_gml_147_0"
);
152
}, function()
153
{
154
    msgsetloc(0, 
Face r* ...Wait for input
"\\Er* .../", "obj_ch5_LW20W_handoff_slash_Create_0_gml_148_0"
);
155
}, function()
156
{
157
    skip = true;
158
}, function()
159
{
160
    skip = true;
161
}, function()
162
{
163
    msgsetloc(0, 
Face s* (Kris,Delay 11 you can still hear me,Delay 11 can't you!?)Wait for input
"\\Es* (Kris^1, you can still hear me^1, can't you!?)/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_151_0"
);
164
}, function()
165
{
166
    skip = true;
167
}, function()
168
{
169
    msgsetloc(0, 
Face s* (Kris...Delay 11 keep...Delay 11 saying it...!)Wait for input
"\\Es* (Kris..^1. keep..^1. saying it...!)/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_153_0"
);
170
}, function()
171
{
172
    skip = true;
173
}, function()
174
{
175
    msgsetloc(0, 
Face s* (K...Delay 11 Kris...!)Wait for input
"\\Es* (K..^1. Kris...!)/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_155_0"
);
176
}, function()
177
{
178
    skip = true;
179
}, function()
180
{
181
    skip = true;
182
}, function()
183
{
184
    msgsetloc(0, 
Face s* (KRIS!!!)Wait for input
"\\Es* (KRIS!!!)/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_158_0"
);
185
}, function()
186
{
187
    skip = true;
188
}, function()
189
{
190
    skip = true;
191
}, function()
192
{
193
    skip = true;
194
}, function()
195
{
196
    skip = true;
197
}, function()
198
{
199
    msgsetloc(0, 
Face s* (SAY IT!!!!!!)Wait for input
"\\Es* (SAY IT!!!!!!)/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_163_0"
);
200
}, function()
201
{
202
    skip = true;
203
}, function()
204
{
205
    skip = true;
206
}, function()
207
{
208
    skip = true;
209
}, function()
210
{
211
    skip = true;
212
}, function()
213
{
214
    skip = true;
215
}, function()
216
{
217
    msgsetloc(0, 
Face s* (KRIS!!!!!!!!!)Wait for input
"\\Es* (KRIS!!!!!!!!!)/", "obj_ch5_LW20W_handoff_slash_Create_0_gml_169_0"
);
218
}, function()
219
{
220
    skip = true;
221
}];
222
223
makeEnd = function()
224
{
225
    instance_create_depth(0, 0, depth - 1, obj_ch5_LW20W_end);
226
};