|
1
|
siner++;
|
|
2
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
3
|
{
|
|
4
|
if (keyboard_check(ord("W")))
|
|
5
|
{
|
|
6
|
if (keyboard_check_pressed(ord("2")))
|
|
7
|
{
|
|
8
|
var pos = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} ("kr", "debugwarp2");
|
|
9
|
setxy(pos[0], pos[1], 1049);
|
|
10
|
with (obj_caterpillarchara)
|
|
11
|
setxy(pos[0], pos[1]);
|
|
12
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate(arg0 = "none")
{
if (arg0 == "all")
{
with (obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else if (arg0 == "none")
{
if (object_index == obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else
{
with (obj_caterpillarchara)
{
if (name == arg0)
scr_caterpillar_interpolate_old();
}
}
}
function scr_caterinterp(arg0 = "none")
{
scr_caterpillar_interpolate(arg0);
}
function scr_caterpillar_interpolate_old()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ("all");
|
|
13
|
global.flag[1524] = 999;
|
|
14
|
global.flag[1525] = 999;
|
|
15
|
event_user(1);
|
|
16
|
}
|
|
17
|
}
|
|
18
|
if (keyboard_check(ord("W")))
|
|
19
|
{
|
|
20
|
if (keyboard_check_pressed(ord("3")))
|
|
21
|
{
|
|
22
|
var pos = scr_heromarkerscr_heromarker
function scr_heromarker(arg0 = "", arg1 = "")
{
var ____foundmarker = -4;
var xpos = -1;
var ypos = -1;
var objindextocheck = 1365;
if (string_pos("kr", arg0) != 0)
objindextocheck = 544;
if (string_pos("su", arg0) != 0)
objindextocheck = 522;
if (string_pos("ra", arg0) != 0)
objindextocheck = 75;
if (string_pos("no", arg0) != 0)
objindextocheck = 933;
if (string_pos("gen", arg0) != 0)
objindextocheck = 1365;
with (objindextocheck)
{
if (variable_instance_exists(id, "extflag"))
{
if (extflag == arg1)
____foundmarker = id;
}
}
if (instance_exists(____foundmarker))
{
xpos = ____foundmarker.x;
ypos = ____foundmarker.y;
}
if (____foundmarker == -4)
{
debug_message("scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4];
}
return [xpos, ypos, ____foundmarker];
}
function scr_genmarker(arg0 = "")
{
var marker = -4;
with (obj_genmarker)
{
if (extflag == arg0)
marker = id;
}
return marker;
} ("kr", "debugwarp3");
|
|
23
|
setxy(pos[0], pos[1], 1049);
|
|
24
|
with (obj_caterpillarchara)
|
|
25
|
setxy(pos[0], pos[1]);
|
|
26
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate(arg0 = "none")
{
if (arg0 == "all")
{
with (obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else if (arg0 == "none")
{
if (object_index == obj_caterpillarchara)
scr_caterpillar_interpolate_old();
}
else
{
with (obj_caterpillarchara)
{
if (name == arg0)
scr_caterpillar_interpolate_old();
}
}
}
function scr_caterinterp(arg0 = "none")
{
scr_caterpillar_interpolate(arg0);
}
function scr_caterpillar_interpolate_old()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ("all");
|
|
27
|
global.flag[1524] = 999;
|
|
28
|
global.flag[1525] = 999;
|
|
29
|
event_user(1);
|
|
30
|
defendercon = 6;
|
|
31
|
}
|
|
32
|
}
|
|
33
|
}
|
|
34
|
var time1 = 300;
|
|
35
|
var time2 = 415;
|
|
36
|
if (init == 0)
|
|
37
|
{
|
|
38
|
for (var i = 0; i < array_length(stufftomove); i++)
|
|
39
|
{
|
|
40
|
with (all)
|
|
41
|
{
|
|
42
|
if (object_index == other.stufftomove[i])
|
|
43
|
{
|
|
44
|
var domove = true;
|
|
45
|
if (variable_instance_exists(id, "dontmove"))
|
|
46
|
{
|
|
47
|
if (dontmove)
|
|
48
|
domove = false;
|
|
49
|
}
|
|
50
|
if (domove)
|
|
51
|
x += (room_width * 4);
|
|
52
|
}
|
|
53
|
}
|
|
54
|
}
|
|
55
|
init = 1;
|
|
56
|
}
|
|
57
|
var playswitchsnd = false;
|
|
58
|
if (con == 0)
|
|
59
|
{
|
|
60
|
var trig = 0;
|
|
61
|
if (i_ex(obj_climb_kris) && obj_climb_kris.fallingcon == 0)
|
|
62
|
{
|
|
63
|
with (obj_trigger)
|
|
64
|
{
|
|
65
|
if (place_meeting(x, y, obj_climb_kris))
|
|
66
|
{
|
|
67
|
if (extflag == "starttrig")
|
|
68
|
trig = 1;
|
|
69
|
if (extflag == "starttrig2")
|
|
70
|
trig = 2;
|
|
71
|
}
|
|
72
|
}
|
|
73
|
}
|
|
74
|
if (trig)
|
|
75
|
{
|
|
76
|
for (var i = 0; i < array_length(stufftomove); i++)
|
|
77
|
{
|
|
78
|
with (all)
|
|
79
|
{
|
|
80
|
if (object_index == other.stufftomove[i])
|
|
81
|
x = xstart;
|
|
82
|
}
|
|
83
|
}
|
|
84
|
if (trig == 1)
|
|
85
|
{
|
|
86
|
playswitchsnd = true;
|
|
87
|
timber = time1;
|
|
88
|
canceltimer = 0;
|
|
89
|
}
|
|
90
|
if (trig == 2)
|
|
91
|
{
|
|
92
|
playswitchsnd = true;
|
|
93
|
timber = time2;
|
|
94
|
canceltimer = 0;
|
|
95
|
}
|
|
96
|
with (obj_lerpvar)
|
|
97
|
{
|
|
98
|
if (variable_instance_exists(id, "fadeout"))
|
|
99
|
instance_destroy();
|
|
100
|
}
|
|
101
|
with (obj_dw_church_sideclimb_glowclimb)
|
|
102
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0, 1, 5 + irandom(5), 2, "out");
|
|
103
|
var snd = snd_play_complex(0, 0, -1);
|
|
104
|
snd_add_complex(snd, 0, 410, 1.4, 0.7, 0, -1, 0);
|
|
105
|
snd_add_complex(snd, 1, 410, 1.6, 0.7, 0, -1, 0);
|
|
106
|
canceltimer = 0;
|
|
107
|
con = 1;
|
|
108
|
}
|
|
109
|
}
|
|
110
|
wallswitch[0].image_index = 0;
|
|
111
|
wallswitch[1].image_index = 0;
|
|
112
|
if (con == 1)
|
|
113
|
{
|
|
114
|
wallswitch[0].image_index = 1;
|
|
115
|
wallswitch[1].image_index = 1;
|
|
116
|
timber--;
|
|
117
|
if (global.flag[1524] != 0 && global.flag[1525] != 0)
|
|
118
|
{
|
|
119
|
if (!instance_exists(obj_tutorial_text))
|
|
120
|
instance_create(0, 0, obj_tutorial_text);
|
|
121
|
if (button2_h())
|
|
122
|
canceltimer++;
|
|
123
|
else
|
|
124
|
canceltimer = 0;
|
|
125
|
if (scr_trigcheck_ext("nohud", 27))
|
|
126
|
canceltimer = 0;
|
|
127
|
if (canceltimer == 30 || !instance_exists(obj_climb_kris))
|
|
128
|
timber = 0;
|
|
129
|
}
|
|
130
|
var trig = 0;
|
|
131
|
with (obj_trigger)
|
|
132
|
{
|
|
133
|
if (extflag == "starttrig" || extflag == "starttrig2")
|
|
134
|
{
|
|
135
|
if (place_meeting(x, y, obj_climb_kris))
|
|
136
|
{
|
|
137
|
if (extflag == "starttrig")
|
|
138
|
trig = 1;
|
|
139
|
if (extflag == "starttrig2")
|
|
140
|
trig = 2;
|
|
141
|
}
|
|
142
|
}
|
|
143
|
}
|
|
144
|
if (trig == 1)
|
|
145
|
{
|
|
146
|
if (timber < (time1 - 1))
|
|
147
|
playswitchsnd = true;
|
|
148
|
timber = time1;
|
|
149
|
}
|
|
150
|
if (trig == 2)
|
|
151
|
{
|
|
152
|
if (timber < (time2 - 1))
|
|
153
|
playswitchsnd = true;
|
|
154
|
timber = time2;
|
|
155
|
}
|
|
156
|
with (obj_trigger)
|
|
157
|
{
|
|
158
|
if (extflag == "r1end")
|
|
159
|
{
|
|
160
|
if (place_meeting(x, y, obj_climb_kris))
|
|
161
|
{
|
|
162
|
var newtime = time1 - other.timber;
|
|
163
|
debug_print("climb 1 Time Taken = " + string(newtime));
|
|
164
|
var writetime = false;
|
|
165
|
if (global.flag[1524] == 0)
|
|
166
|
{
|
|
167
|
writetime = true;
|
|
168
|
with (other)
|
|
169
|
event_user(1);
|
|
170
|
}
|
|
171
|
if (!writetime)
|
|
172
|
{
|
|
173
|
if (global.flag[1524] > newtime)
|
|
174
|
writetime = true;
|
|
175
|
}
|
|
176
|
if (writetime == true)
|
|
177
|
{
|
|
178
|
debug_print("climb 1 new highscore: " + string(newtime));
|
|
179
|
snd_play(snd_won);
|
|
180
|
global.flag[1524] = newtime;
|
|
181
|
}
|
|
182
|
other.timber = 0;
|
|
183
|
other.forcefall = 1;
|
|
184
|
}
|
|
185
|
}
|
|
186
|
if (extflag == "r2end")
|
|
187
|
{
|
|
188
|
if (place_meeting(x, y, obj_climb_kris))
|
|
189
|
{
|
|
190
|
var newtime = time2 - other.timber;
|
|
191
|
debug_print("climb 2 Time Taken = " + string(newtime));
|
|
192
|
var writetime = false;
|
|
193
|
if (global.flag[1525] == 0)
|
|
194
|
writetime = true;
|
|
195
|
if (!writetime)
|
|
196
|
{
|
|
197
|
if (global.flag[1525] > newtime)
|
|
198
|
writetime = true;
|
|
199
|
}
|
|
200
|
if (writetime == true)
|
|
201
|
{
|
|
202
|
debug_print("climb 2 new highscore: " + string(newtime));
|
|
203
|
snd_play(snd_won);
|
|
204
|
global.flag[1525] = newtime;
|
|
205
|
}
|
|
206
|
other.timber = 0;
|
|
207
|
other.forcefall = 1;
|
|
208
|
}
|
|
209
|
}
|
|
210
|
}
|
|
211
|
var tickrate = 10;
|
|
212
|
if (timber < 320)
|
|
213
|
tickrate = 8;
|
|
214
|
if (timber < 160)
|
|
215
|
tickrate = 6;
|
|
216
|
if (timber < 80)
|
|
217
|
tickrate = 4;
|
|
218
|
if (timber < 40)
|
|
219
|
tickrate = 2;
|
|
220
|
if (timber < 15)
|
|
221
|
tickrate = 1;
|
|
222
|
if (((timber - 1) % tickrate) == 0)
|
|
223
|
{
|
|
224
|
tickcount++;
|
|
225
|
var pitch = 0.75;
|
|
226
|
if ((tickcount % 2) == 0)
|
|
227
|
pitch = 1;
|
|
228
|
snd_play(snd_menumove, 0.7, pitch);
|
|
229
|
}
|
|
230
|
if (timber <= 0)
|
|
231
|
{
|
|
232
|
con = 2;
|
|
233
|
var snd = snd_play_complex(0, 0, -1);
|
|
234
|
snd_add_complex(snd, 0, 410, 0.9, 0.7, 0, -1, 0);
|
|
235
|
snd_add_complex(snd, 1, 410, 1.3, 0.7, 0, -1, 0);
|
|
236
|
var dofall = false;
|
|
237
|
with (obj_climb_kris)
|
|
238
|
{
|
|
239
|
var climber = instance_place(x, y, obj_climb_climbable);
|
|
240
|
if (!i_ex(climber))
|
|
241
|
dofall = true;
|
|
242
|
else if (climber.dontmove == false)
|
|
243
|
dofall = true;
|
|
244
|
}
|
|
245
|
with (obj_dw_church_sideclimb_glowclimb)
|
|
246
|
{
|
|
247
|
with (scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 1, 0, 30 + irandom(30), -1, "out"))
|
|
248
|
fadeout = true;
|
|
249
|
}
|
|
250
|
if (dofall)
|
|
251
|
forcefall = 1;
|
|
252
|
}
|
|
253
|
}
|
|
254
|
if (playswitchsnd == true)
|
|
255
|
{
|
|
256
|
var snd = snd_play_complex(0, 0, -1);
|
|
257
|
snd_add_complex(snd, 0, 267, 0.85, 1, 0, -1, 0);
|
|
258
|
snd_add_complex(snd, 1, 336, 1.3, 1, 0, -1, 0);
|
|
259
|
}
|
|
260
|
if (con == 2)
|
|
261
|
{
|
|
262
|
var trig = 0;
|
|
263
|
with (obj_climb_kris)
|
|
264
|
{
|
|
265
|
if (climbcon == 0)
|
|
266
|
trig = 1;
|
|
267
|
}
|
|
268
|
if (!i_ex(obj_climb_kris))
|
|
269
|
trig = 1;
|
|
270
|
if (trig)
|
|
271
|
{
|
|
272
|
init = 0;
|
|
273
|
with (obj_climb_kris)
|
|
274
|
{
|
|
275
|
if (fallingcon == 0)
|
|
276
|
{
|
|
277
|
if (other.forcefall == 1)
|
|
278
|
{
|
|
279
|
other.forcefall = 0;
|
|
280
|
neutralcon = 999;
|
|
281
|
fallingcon = 1;
|
|
282
|
fallingtimer = 99999;
|
|
283
|
jumpchargecon = 0;
|
|
284
|
jumpchargeamount = 0;
|
|
285
|
jumpchargetimer = 0;
|
|
286
|
snd_stop(snd_chargeshot_charge);
|
|
287
|
jumping = 0;
|
|
288
|
climbcon = 0;
|
|
289
|
neutralcon = 0;
|
|
290
|
slipcon = 0;
|
|
291
|
image_blend = c_white;
|
|
292
|
}
|
|
293
|
}
|
|
294
|
}
|
|
295
|
con = 0;
|
|
296
|
}
|
|
297
|
}
|
|
298
|
if (defendercon == 0)
|
|
299
|
{
|
|
300
|
var trig = 0;
|
|
301
|
with (obj_trigger)
|
|
302
|
{
|
|
303
|
if (extflag == "defender1" && place_meeting(x, y, obj_mainchara))
|
|
304
|
trig = 1;
|
|
305
|
}
|
|
306
|
if (trig == 1)
|
|
307
|
{
|
|
308
|
global.interact = 1;
|
|
309
|
global.facing = 1;
|
|
310
|
defendercon = 1;
|
|
311
|
gentimer = 0;
|
|
312
|
}
|
|
313
|
}
|
|
314
|
if (defendercon == 1)
|
|
315
|
{
|
|
316
|
gentimer++;
|
|
317
|
if (gentimer == 1)
|
|
318
|
{
|
|
319
|
defender1 = scr_marker_extscr_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)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
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)
{
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 thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker);
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];
} (camerax() + 640 + 40, 446, spr_npc_cup_walk, -2, 2, 0.2);
|
|
320
|
var targtime;
|
|
321
|
with (defender1)
|
|
322
|
{
|
|
323
|
targtime = round((((x - camerax()) + 640) - 120) / 30);
|
|
324
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, (camerax() + 640) - 120, targtime);
|
|
325
|
scr_delay_var("image_speed", 0, targtime + 1);
|
|
326
|
with (other)
|
|
327
|
scr_delay_var("defendercon", 2, targtime + 1);
|
|
328
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
329
|
}
|
|
330
|
mus_volume(global.currentsong[1], 0, targtime + 1);
|
|
331
|
}
|
|
332
|
}
|
|
333
|
if (defendercon == 2)
|
|
334
|
{
|
|
335
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
336
|
msgsetloc(0, * You dare awaken m'lady from her peaceful slumber...!?Wait for input"* You dare awaken m'lady from her peaceful slumber...!?/", "obj_dw_church_sideclimb_slash_Step_0_gml_359_0" );
|
|
337
|
msgnextloc(* If you shall press further...Delay 11 then we shall have no choice...Wait for inputWait for input"* If you shall press further..^1. then we shall have no choice...//", "obj_dw_church_sideclimb_slash_Step_0_gml_360_0" );
|
|
338
|
msgnextloc(* ...Delay 11 but to duel for her honor!Wait for input"* ..^1. but to duel for her honor!/", "obj_dw_church_sideclimb_slash_Step_0_gml_361_0" );
|
|
339
|
msgnextloc(* En-guarde!Wait for inputClose Message"* En-guarde!/%", "obj_dw_church_sideclimb_slash_Step_0_gml_362_0" );
|
|
340
|
d_make();
|
|
341
|
global.flag[1526] = 1;
|
|
342
|
defendercon++;
|
|
343
|
}
|
|
344
|
if (defendercon == 3 && !d_ex())
|
|
345
|
{
|
|
346
|
global.interact = 0;
|
|
347
|
defender1.hspeed = -4;
|
|
348
|
defender1.image_speed = 0.25;
|
|
349
|
defendercon = 4;
|
|
350
|
snd_free_all();
|
|
351
|
global.currentsong[0] = snd_songpreview_knockdown;
|
|
352
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 0.5);
|
|
353
|
}
|
|
354
|
if (defendercon == 4)
|
|
355
|
{
|
|
356
|
var docontinue = false;
|
|
357
|
with (defender1)
|
|
358
|
{
|
|
359
|
if (place_meeting(x + 14, y, obj_mainchara))
|
|
360
|
{
|
|
361
|
with (scr_marker_extscr_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)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
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)
{
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 thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker);
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];
} (x, y, sprite_index, -2, 2, 0, undefined, undefined, undefined, 1))
|
|
362
|
{
|
|
363
|
hspeed = 12;
|
|
364
|
gravity = 1;
|
|
365
|
vspeed = -8 - random(8);
|
|
366
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", image_alpha, 0, 30, 2, "in");
|
|
367
|
scr_doomscr_doom
function scr_doom(arg0 = id, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
persistent = arg0.persistent;
}
} (id, 30);
|
|
368
|
snd_play(snd_smallcar_yelp, 0.75, 0.6);
|
|
369
|
}
|
|
370
|
docontinue = true;
|
|
371
|
instance_destroy();
|
|
372
|
}
|
|
373
|
}
|
|
374
|
if (docontinue == true)
|
|
375
|
{
|
|
376
|
defendercon = 4.9;
|
|
377
|
snd_volume(global.currentsong[1], 0, 45);
|
|
378
|
}
|
|
379
|
}
|
|
380
|
if (defendercon == 4.9)
|
|
381
|
{
|
|
382
|
var trig = 0;
|
|
383
|
with (obj_trigger)
|
|
384
|
{
|
|
385
|
if (extflag == "startmusicbackup")
|
|
386
|
{
|
|
387
|
if (place_meeting(x, y, obj_mainchara))
|
|
388
|
trig = 1;
|
|
389
|
}
|
|
390
|
}
|
|
391
|
if (trig)
|
|
392
|
{
|
|
393
|
snd_free_all();
|
|
394
|
global.currentsong[0] = snd_init(music);
|
|
395
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.7, 1);
|
|
396
|
snd_volume(global.currentsong[1], 0, 0);
|
|
397
|
snd_volume(global.currentsong[1], 0.7, 40);
|
|
398
|
defendercon = 5;
|
|
399
|
}
|
|
400
|
}
|
|
401
|
if (defendercon == 5)
|
|
402
|
{
|
|
403
|
var trig = 0;
|
|
404
|
with (obj_trigger)
|
|
405
|
{
|
|
406
|
if (extflag == "defender2" && place_meeting(x, y, obj_mainchara))
|
|
407
|
trig = 1;
|
|
408
|
}
|
|
409
|
if (trig)
|
|
410
|
{
|
|
411
|
snd_volume(global.currentsong[1], 0, 15);
|
|
412
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
413
|
msgsetloc(0, * Our lady...!!!Wait for inputClose Message"* Our lady...!!!/%", "obj_dw_church_sideclimb_slash_Step_0_gml_437_0" );
|
|
414
|
d_make();
|
|
415
|
defendercon = 5.5;
|
|
416
|
global.interact = 1;
|
|
417
|
}
|
|
418
|
}
|
|
419
|
if (defendercon == 5.5 && !d_ex())
|
|
420
|
{
|
|
421
|
snd_free_all();
|
|
422
|
global.currentsong[0] = snd_songpreview_knockdown;
|
|
423
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 0.6);
|
|
424
|
global.interact = 0;
|
|
425
|
defendercon = 6;
|
|
426
|
gentimer = 3;
|
|
427
|
}
|
|
428
|
if (defendercon == 6)
|
|
429
|
{
|
|
430
|
var trig = 0;
|
|
431
|
with (obj_trigger)
|
|
432
|
{
|
|
433
|
if (extflag == "defender3" && place_meeting(x, y, obj_mainchara))
|
|
434
|
{
|
|
435
|
trig = 2;
|
|
436
|
debug_print("hi");
|
|
437
|
}
|
|
438
|
if (trig == 0)
|
|
439
|
{
|
|
440
|
if (extflag == "defender2" && place_meeting(x, y, obj_mainchara))
|
|
441
|
trig = 1;
|
|
442
|
}
|
|
443
|
}
|
|
444
|
if (trig == 1)
|
|
445
|
{
|
|
446
|
gentimer++;
|
|
447
|
if ((gentimer % 2) == 0 && choose(0, 1) == 1)
|
|
448
|
{
|
|
449
|
var xloc = 0;
|
|
450
|
var xwid = 0;
|
|
451
|
with (obj_trigger)
|
|
452
|
{
|
|
453
|
if (extflag == "defender2")
|
|
454
|
{
|
|
455
|
xloc = x;
|
|
456
|
xwid = sprite_width;
|
|
457
|
}
|
|
458
|
}
|
|
459
|
var spawnx = clamp((camerax() - 20) + random(60), xloc, xloc + xwid) + scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (random_range(-80, 30));
|
|
460
|
instance_create(spawnx, y, obj_dw_church_bravewarrior);
|
|
461
|
}
|
|
462
|
}
|
|
463
|
if (trig == 2)
|
|
464
|
{
|
|
465
|
debug_print("hi");
|
|
466
|
defendercon = 7;
|
|
467
|
global.interact = 1;
|
|
468
|
gentimer = 0;
|
|
469
|
global.facing = 3;
|
|
470
|
}
|
|
471
|
}
|
|
472
|
if (defendercon < 7)
|
|
473
|
{
|
|
474
|
with (mizzle)
|
|
475
|
y = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (ystart + (sin(other.siner / 15) * 8));
|
|
476
|
}
|
|
477
|
if (defendercon == 7)
|
|
478
|
{
|
|
479
|
with (mizzle)
|
|
480
|
y = lerp(y, ystart, 0.125);
|
|
481
|
global.interact = 1;
|
|
482
|
obj_mainchara.cutscene = 1;
|
|
483
|
camx = camerax();
|
|
484
|
camy = cameray();
|
|
485
|
camcontrol = true;
|
|
486
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("camx", camx, 1080, 30);
|
|
487
|
var trig = 0;
|
|
488
|
defendercon = 7.01;
|
|
489
|
scr_delay_var("defendercon", 7.05, 30);
|
|
490
|
mus_volume(global.currentsong[1], 0, 30);
|
|
491
|
failsafetime = 0;
|
|
492
|
}
|
|
493
|
if (defendercon == 7.05)
|
|
494
|
{
|
|
495
|
var trig;
|
|
496
|
with (obj_dw_church_bravewarrior)
|
|
497
|
{
|
|
498
|
if (con != 99)
|
|
499
|
trig = 1;
|
|
500
|
}
|
|
501
|
failsafetime++;
|
|
502
|
if (failsafetime >= 5)
|
|
503
|
{
|
|
504
|
trig = 0;
|
|
505
|
with (obj_dw_church_bravewarrior)
|
|
506
|
{
|
|
507
|
if (con != 99)
|
|
508
|
instance_destroy();
|
|
509
|
}
|
|
510
|
}
|
|
511
|
if (trig == 0)
|
|
512
|
{
|
|
513
|
defendercon = 7.1;
|
|
514
|
gentimer = 0;
|
|
515
|
}
|
|
516
|
}
|
|
517
|
if (defendercon == 7.1)
|
|
518
|
{
|
|
519
|
gentimer++;
|
|
520
|
if (gentimer == 1)
|
|
521
|
{
|
|
522
|
with (obj_dw_church_bravewarrior)
|
|
523
|
{
|
|
524
|
image_xscale = -2;
|
|
525
|
x += 58;
|
|
526
|
x = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (x);
|
|
527
|
y = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (y);
|
|
528
|
}
|
|
529
|
}
|
|
530
|
if (gentimer == 10)
|
|
531
|
{
|
|
532
|
snd_play(snd_wing);
|
|
533
|
mizzle.sprite_index = spr_holywater_alarm;
|
|
534
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} (mizzle);
|
|
535
|
with (obj_dw_church_bravewarrior)
|
|
536
|
{
|
|
537
|
}
|
|
538
|
}
|
|
539
|
if (gentimer == 15)
|
|
540
|
{
|
|
541
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
542
|
msgsetloc(0, * Water you guys doing? You woke me up!Wait for inputClose Message"* Water you guys doing? You woke me up!/%", "obj_dw_church_sideclimb_slash_Step_0_gml_564_0" );
|
|
543
|
d_make();
|
|
544
|
defendercon = 8;
|
|
545
|
gentimer = 0;
|
|
546
|
}
|
|
547
|
}
|
|
548
|
if (defendercon == 8 && !d_ex())
|
|
549
|
{
|
|
550
|
gentimer++;
|
|
551
|
if (gentimer == 4)
|
|
552
|
{
|
|
553
|
snd_play(snd_wing, undefined, 1.2);
|
|
554
|
with (obj_dw_church_bravewarrior)
|
|
555
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
556
|
}
|
|
557
|
if (gentimer == 15)
|
|
558
|
{
|
|
559
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
560
|
msgsetloc(0, * Well,Delay 11 we...Wait for inputClose Message"* Well^1, we.../%", "obj_dw_church_sideclimb_slash_Step_0_gml_585_0" );
|
|
561
|
d_make(undefined, undefined, 2);
|
|
562
|
defendercon = 9;
|
|
563
|
gentimer = 0;
|
|
564
|
}
|
|
565
|
}
|
|
566
|
if (defendercon == 9 && !d_ex())
|
|
567
|
{
|
|
568
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} (mizzle);
|
|
569
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
570
|
msgsetloc(0, * I told you not to wake me up!Delay 11 What is this,Delay 11 the fifth time?!Wait for inputClose Message"* I told you not to wake me up^1! What is this^1, the fifth time?!/%", "obj_dw_church_sideclimb_slash_Step_0_gml_596_0" );
|
|
571
|
d_make();
|
|
572
|
defendercon = 10;
|
|
573
|
gentimer = 0;
|
|
574
|
}
|
|
575
|
if (defendercon == 10 && !d_ex())
|
|
576
|
{
|
|
577
|
gentimer++;
|
|
578
|
if (gentimer == 15)
|
|
579
|
{
|
|
580
|
with (obj_dw_church_bravewarrior)
|
|
581
|
{
|
|
582
|
sprite_index = spr_npc_cup_climb;
|
|
583
|
scr_delay_var("con", 2, 1 + irandom(30));
|
|
584
|
}
|
|
585
|
}
|
|
586
|
if (gentimer > 15 && !i_ex(obj_dw_church_bravewarrior))
|
|
587
|
{
|
|
588
|
defendercon = 11;
|
|
589
|
gentimer = 0;
|
|
590
|
}
|
|
591
|
}
|
|
592
|
if (defendercon == 11)
|
|
593
|
{
|
|
594
|
mizzle.image_xscale = 2;
|
|
595
|
mizzle.x -= 102;
|
|
596
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
597
|
msgsetloc(0, * ...Ahh,Delay 11 I can't stand this place...Wait for inputClose Message"* ...Ahh^1, I can't stand this place.../%", "obj_dw_church_sideclimb_slash_Step_0_gml_624_0" );
|
|
598
|
d_make();
|
|
599
|
defendercon = 12;
|
|
600
|
}
|
|
601
|
if (defendercon == 12 && !d_ex())
|
|
602
|
{
|
|
603
|
with (mizzle)
|
|
604
|
{
|
|
605
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 1, 0, 30);
|
|
606
|
gravity = -0.35;
|
|
607
|
scr_doomscr_doom
function scr_doom(arg0 = id, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
persistent = arg0.persistent;
}
} (id, 40);
|
|
608
|
}
|
|
609
|
var roomw = room_width;
|
|
610
|
var roomh = room_height;
|
|
611
|
var vieww = view_wport[0];
|
|
612
|
var viewh = view_hport[0];
|
|
613
|
var camx1 = clamp((obj_mainchara.x - floor((vieww / 2) - (obj_mainchara.initwd / 2))) + obj_mainchara.nudgex, 0, roomw - vieww);
|
|
614
|
var camy1 = clamp((obj_mainchara.y - floor((viewh / 2) - (obj_mainchara.initht / 2))) + obj_mainchara.nudgey, 0, roomh - viewh);
|
|
615
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("camx", camx, camx1, 40);
|
|
616
|
defendercon = 99;
|
|
617
|
scr_delay_var("defendercon", 13, 41);
|
|
618
|
snd_stop_all();
|
|
619
|
snd_free_all();
|
|
620
|
global.currentsong[0] = snd_init(music);
|
|
621
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.7, 1);
|
|
622
|
snd_volume(global.currentsong[1], 0, 0);
|
|
623
|
snd_volume(global.currentsong[1], 0.7, 41);
|
|
624
|
event_user(2);
|
|
625
|
}
|
|
626
|
if (defendercon == 13)
|
|
627
|
{
|
|
628
|
obj_mainchara.cutscene = false;
|
|
629
|
camcontrol = false;
|
|
630
|
global.interact = 0;
|
|
631
|
global.facing = 0;
|
|
632
|
global.flag[1526] = 2;
|
|
633
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
634
|
defendercon = 14;
|
|
635
|
}
|
|
636
|
if (global.flag[1526] == 2)
|
|
637
|
{
|
|
638
|
var trig = 0;
|
|
639
|
if (camerax() >= 1216)
|
|
640
|
trig = 1;
|
|
641
|
if (trig)
|
|
642
|
{
|
|
643
|
global.flag[1526] = 3;
|
|
644
|
event_user(4);
|
|
645
|
}
|
|
646
|
}
|
|
647
|
if (camcontrol)
|
|
648
|
{
|
|
649
|
camerax_set(camx);
|
|
650
|
cameray_set(camy);
|
|
651
|
}
|
|
652
|
with (npc1)
|
|
653
|
{
|
|
654
|
marker.image_index += 0.125;
|
|
655
|
if (myinteract == 3)
|
|
656
|
{
|
|
657
|
global.interact = 1;
|
|
658
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
659
|
msgsetloc(0, * Charging up the biggest jump...Delay 11 That's the secret to going the fastest!Wait for input"* Charging up the biggest jump..^1. That's the secret to going the fastest!/", "obj_dw_church_sideclimb_slash_Step_0_gml_705_0" );
|
|
660
|
msgnextloc(* But I keep...Delay 11 bumping...!Delay 11 I must not...Delay 11 Bump!Delay 11 For my lady!Wait for inputClose Message"* But I keep..^1. bumping...^1! I must not..^1. Bump^1! For my lady!/%", "obj_dw_church_sideclimb_slash_Step_0_gml_706_0" );
|
|
661
|
if (global.flag[1526] >= 2)
|
|
662
|
{
|
|
663
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
664
|
msgsetloc(0, * I heard some noise up there...Delay 11 My lady,Delay 11 is she in trouble?Wait for input"* I heard some noise up there..^1. My lady^1, is she in trouble?/", "obj_dw_church_sideclimb_slash_Step_0_gml_711_0" );
|
|
665
|
msgnextloc(* I must hasten to climb up...Delay 11 I must charge my jump...Wait for inputClose Message"* I must hasten to climb up..^1. I must charge my jump.../%", "obj_dw_church_sideclimb_slash_Step_0_gml_712_0" );
|
|
666
|
}
|
|
667
|
d_make();
|
|
668
|
myinteract = 999;
|
|
669
|
talked++;
|
|
670
|
}
|
|
671
|
if (myinteract == 999 && !d_ex())
|
|
672
|
{
|
|
673
|
myinteract = 0;
|
|
674
|
global.interact = 0;
|
|
675
|
}
|
|
676
|
}
|
|
677
|
with (npc2)
|
|
678
|
{
|
|
679
|
marker.image_index += 0.125;
|
|
680
|
if (myinteract == 3)
|
|
681
|
{
|
|
682
|
global.interact = 1;
|
|
683
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
684
|
debug_print(string(global.flag[1524]));
|
|
685
|
var timeFrames = global.flag[1524];
|
|
686
|
var seconds = timeFrames / 30;
|
|
687
|
var milliseconds = (timeFrames % 30) / 3;
|
|
688
|
var secstring = string(floor(seconds));
|
|
689
|
speedtime = secstring + "." + string(floor(milliseconds));
|
|
690
|
msgsetsubloc(0, "* Incredible climbing speed^1! Your fastest time for the first lap is ~1 seconds!/%", speedtime, "obj_dw_church_sideclimb_slash_Step_0_gml_746_0");
|
|
691
|
d_make();
|
|
692
|
myinteract = 999;
|
|
693
|
talked++;
|
|
694
|
}
|
|
695
|
if (myinteract == 999 && !d_ex())
|
|
696
|
{
|
|
697
|
myinteract = 0;
|
|
698
|
global.interact = 0;
|
|
699
|
}
|
|
700
|
}
|
|
701
|
with (npc3)
|
|
702
|
{
|
|
703
|
marker.image_index += 0.125;
|
|
704
|
if (myinteract == 3)
|
|
705
|
{
|
|
706
|
global.interact = 1;
|
|
707
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
708
|
debug_print(string(global.flag[1525]));
|
|
709
|
var timeFrames = global.flag[1525];
|
|
710
|
var seconds = timeFrames / 30;
|
|
711
|
var milliseconds = (timeFrames % 30) / 3;
|
|
712
|
var secstring = string(floor(seconds));
|
|
713
|
speedtime = secstring + "." + string(floor(milliseconds));
|
|
714
|
msgsetsubloc(0, "* Incredible climbing speed^1! Your fastest time for the second lap is ~1 seconds!/%", speedtime, "obj_dw_church_sideclimb_slash_Step_0_gml_779_0");
|
|
715
|
d_make();
|
|
716
|
myinteract = 999;
|
|
717
|
talked++;
|
|
718
|
}
|
|
719
|
if (myinteract == 999 && !d_ex())
|
|
720
|
{
|
|
721
|
myinteract = 0;
|
|
722
|
global.interact = 0;
|
|
723
|
}
|
|
724
|
}
|
|
725
|
with (obj_trigger)
|
|
726
|
{
|
|
727
|
if (extflag == "shoveright")
|
|
728
|
{
|
|
729
|
var su = instance_place(x, y, obj_caterpillarchara);
|
|
730
|
if (i_ex(su))
|
|
731
|
{
|
|
732
|
su.x = x + 26;
|
|
733
|
su.y -= 18;
|
|
734
|
with (su)
|
|
735
|
scr_caterpillar_interpolate_old();
|
|
736
|
}
|
|
737
|
}
|
|
738
|
}
|
|
739
|
with (_trophy)
|
|
740
|
{
|
|
741
|
if (!variable_instance_exists(id, "setinplace"))
|
|
742
|
{
|
|
743
|
setinplace = true;
|
|
744
|
xstart = x;
|
|
745
|
}
|
|
746
|
var won = false;
|
|
747
|
if (global.flag[1524] <= 182 && global.flag[1524] != 0 && global.flag[1525] <= 302 && global.flag[1525] != 0)
|
|
748
|
won = true;
|
|
749
|
x = (xstart + room_width) - (won * room_width);
|
|
750
|
if (myinteract == 3)
|
|
751
|
{
|
|
752
|
global.interact = 1;
|
|
753
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("no_name");
|
|
754
|
msgsetloc(0, * (It's an exclusive trophy. You feel a sense of achievement.)Wait for input"* (It's an exclusive trophy. You feel a sense of \\cYachievement\\cW.)/", "obj_dw_church_sideclimb_slash_Step_0_gml_829_0" );
|
|
755
|
msgnextloc(* (...)Wait for input"* (...)/", "obj_dw_church_sideclimb_slash_Step_0_gml_830_0" );
|
|
756
|
msgnextloc(* (But...Delay 11 it wasn't actually an achievement.)Wait for inputClose Message"* (But..^1. it wasn't actually an \\cYachievement\\cW.)/%", "obj_dw_church_sideclimb_slash_Step_0_gml_831_0" );
|
|
757
|
d_make();
|
|
758
|
myinteract = 999;
|
|
759
|
}
|
|
760
|
if (myinteract == 999 && !d_ex())
|
|
761
|
{
|
|
762
|
myinteract = 0;
|
|
763
|
global.interact = 0;
|
|
764
|
}
|
|
765
|
}
|