1 |
if (scr_debug()) |
2 |
{ |
3 |
if (keyboard_check_pressed(ord("2"))) |
4 |
{ |
5 |
if (mergecon == 0 && cno < cmax) |
6 |
{ |
7 |
mergecon = 1; |
8 |
newcno = cno + 1; |
9 |
} |
10 |
} |
11 |
if (keyboard_check_pressed(ord("0"))) |
12 |
{ |
13 |
if (global.interact == 0) |
14 |
{ |
15 |
global.interact = 1; |
16 |
if (movecon == 0) |
17 |
movecon = 1; |
18 |
if (mergecon == 0 && cno > 0) |
19 |
newcno = cno - 1; |
20 |
} |
21 |
} |
22 |
if (keyboard_check_pressed(ord("1"))) |
23 |
{ |
24 |
if (movecon == 4) |
25 |
movecon = 2; |
26 |
if (movecon == 0) |
27 |
{ |
28 |
movecon = 3; |
29 |
if (cno > 0) |
30 |
newcno = cno - 1; |
31 |
} |
32 |
} |
33 |
} |
34 |
if (movecon == 1) |
35 |
{ |
36 |
with (obj_mainchara) |
37 |
cutscene = 1; |
38 |
maxrectspeed = 14; |
39 |
movetimer = 0; |
40 |
movecon = 2; |
41 |
doorcon = 2; |
42 |
charadjustcon = 1; |
43 |
rectspacing = 120; |
44 |
shakecon = 1; |
45 |
rectcon = 1; |
46 |
} |
47 |
if (movecon == 2) |
48 |
{ |
49 |
movetimer += 1; |
50 |
if (movetimer == 10) |
51 |
{ |
52 |
mergecon = 1; |
53 |
mergespeed = 0.05; |
54 |
} |
55 |
if (movetimer == 30) |
56 |
{ |
57 |
if (charadjustcon >= 2) |
58 |
charadjustcon = 3; |
59 |
cno = newcno; |
60 |
doorcon = 1; |
61 |
shakecon = 3; |
62 |
rectcon = 3; |
63 |
} |
64 |
if (movetimer >= 40) |
65 |
{ |
66 |
movecon = 0; |
67 |
if (global.interact == 1) |
68 |
global.interact = 0; |
69 |
charadjustcon = 0; |
70 |
} |
71 |
} |
72 |
if (movecon == 3) |
73 |
{ |
74 |
with (obj_mainchara) |
75 |
cutscene = 1; |
76 |
doorcon = 2; |
77 |
maxrectspeed = 10; |
78 |
movetimer = 0; |
79 |
movecon = 4; |
80 |
rectspacing = 240; |
81 |
shakecon = 1; |
82 |
rectcon = 1; |
83 |
} |
84 |
if (mergecon == 1) |
85 |
{ |
86 |
prev_bg_c = bg_c[cno]; |
87 |
ideal_bg_c = bg_c[newcno]; |
88 |
if (movecon == 0) |
89 |
cno = newcno; |
90 |
mergecon = 2; |
91 |
mergetimer = 0; |
92 |
merge_amt = 0; |
93 |
} |
94 |
if (mergecon == 2) |
95 |
{ |
96 |
merge_amt += mergespeed; |
97 |
if (merge_amt >= 1) |
98 |
{ |
99 |
merge_amt = 1; |
100 |
mergecon = 3; |
101 |
} |
102 |
cur_bg_c = merge_color(prev_bg_c, ideal_bg_c, merge_amt); |
103 |
} |
104 |
if (mergecon == 3) |
105 |
mergecon = 0; |
106 |
if (shakecon == 1) |
107 |
{ |
108 |
shakeamt = 0; |
109 |
shaketimer = 0; |
110 |
shakecon = 2; |
111 |
} |
112 |
if (shakecon == 2) |
113 |
{ |
114 |
if (abs(__view_get(e__VW.YView, 0)) < 4) |
115 |
__view_set(e__VW.YView, 0, __view_get(e__VW.YView, 0) - (dir * 0.5)); |
116 |
} |
117 |
if (shakecon == 3) |
118 |
{ |
119 |
snd_play(snd_screenshake); |
120 |
shakeamt = 4; |
121 |
shakecon = 4; |
122 |
} |
123 |
if (shakecon == 4) |
124 |
{ |
125 |
if (shakeamt >= 0) |
126 |
{ |
127 |
__view_set(e__VW.XView, 0, (0 - random(shakeamt)) + random(shakeamt)); |
128 |
__view_set(e__VW.YView, 0, (0 - random(shakeamt)) + random(shakeamt)); |
129 |
shakeamt -= 0.5; |
130 |
} |
131 |
else |
132 |
{ |
133 |
__view_set(e__VW.XView, 0, 0); |
134 |
__view_set(e__VW.YView, 0, 0); |
135 |
shakecon = 0; |
136 |
} |
137 |
} |
138 |
if (rectcon == 1) |
139 |
{ |
140 |
rectcon = 0; |
141 |
rectspeed = 0; |
142 |
rect_alpha = 0; |
143 |
recty = 0; |
144 |
rectcon = 2; |
145 |
} |
146 |
if (rectcon == 2) |
147 |
{ |
148 |
if (dir == 1) |
149 |
{ |
150 |
if (rectspeed < maxrectspeed) |
151 |
rectspeed += 1; |
152 |
} |
153 |
if (dir == -1) |
154 |
{ |
155 |
if (rectspeed > -maxrectspeed) |
156 |
rectspeed -= 1; |
157 |
} |
158 |
if (rect_alpha < 0.2) |
159 |
rect_alpha += 0.02; |
160 |
recty += rectspeed; |
161 |
if (recty >= rectspacing) |
162 |
recty -= rectspacing; |
163 |
if (recty <= -rectspacing) |
164 |
recty += rectspacing; |
165 |
} |
166 |
if (rectcon == 3) |
167 |
{ |
168 |
if (rectspeed >= 6) |
169 |
rectspeed = 6; |
170 |
if (rectspeed <= -6) |
171 |
rectspeed = -6; |
172 |
if (rectspeed > 0) |
173 |
rectspeed -= 0.5; |
174 |
if (rectspeed < 0) |
175 |
rectspeed += 0.5; |
176 |
if (rect_alpha > 0) |
177 |
rect_alpha -= 0.02; |
178 |
recty += rectspeed; |
179 |
if (recty >= rectspacing) |
180 |
recty -= rectspacing; |
181 |
if (recty <= -rectspacing) |
182 |
recty += rectspacing; |
183 |
if (rectspeed == 0 && rect_alpha == 0) |
184 |
rectcon = 0; |
185 |
} |
186 |
if (doorcon == 1) |
187 |
{ |
188 |
if (doorx <= 40) |
189 |
doorx += 5; |
190 |
} |
191 |
if (doorcon == 2) |
192 |
{ |
193 |
if (doorx >= 0) |
194 |
doorx -= 5; |
195 |
if (doorx <= 0) |
196 |
{ |
197 |
doorx = 0; |
198 |
doorcon = 0; |
199 |
} |
200 |
} |
201 |
if (charadjustcon == 1) |
202 |
{ |
203 |
ccount = 0; |
204 |
exist[0] = 0; |
205 |
exist[1] = 0; |
206 |
charremy[0] = 0; |
207 |
charremy[1] = 0; |
208 |
if (instance_exists(global.cinstance[0])) |
209 |
{ |
210 |
exist[0] = 1; |
211 |
charremy[0] = global.cinstance[0].y; |
212 |
} |
213 |
if (instance_exists(global.cinstance[1])) |
214 |
{ |
215 |
exist[1] = 1; |
216 |
charremy[1] = global.cinstance[1].y; |
217 |
} |
218 |
charadjustcon = 2; |
219 |
} |
220 |
if (charadjustcon == 2) |
221 |
{ |
222 |
for (i = 0; i < 2; i += 1) |
223 |
{ |
224 |
if (exist[i] == 1) |
225 |
{ |
226 |
with (global.cinstance[i]) |
227 |
{ |
228 |
if (y >= 260) |
229 |
y -= 10; |
230 |
} |
231 |
} |
232 |
} |
233 |
} |
234 |
if (charadjustcon == 3) |
235 |
{ |
236 |
ok[0] = 0; |
237 |
ok[1] = 0; |
238 |
for (i = 0; i < 2; i += 1) |
239 |
{ |
240 |
if (exist[i] == 1) |
241 |
{ |
242 |
if (global.cinstance[i].y < charremy[i]) |
243 |
{ |
244 |
with (global.cinstance[i]) |
245 |
y += 10; |
246 |
} |
247 |
if (global.cinstance[i].y >= charremy[i]) |
248 |
ok[i] = 1; |
249 |
} |
250 |
else |
251 |
{ |
252 |
ok[i] = 1; |
253 |
} |
254 |
} |
255 |
if (ok[0] == 1 && ok[1] == 1) |
256 |
charadjustcon = 0; |
257 |
} |
258 |
if (con >= 1) |
259 |
{ |
260 |
if (con == 1) |
261 |
{ |
262 |
with (obj_caterpillarchara) |
263 |
instance_destroy(); |
264 |
with (obj_mainchara) |
265 |
visible = 0; |
266 |
global.interact = 1; |
267 |
k = scr_dark_markerscr_dark_markerfunction 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;
} (300, 420, spr_krisu_dark); |
268 |
s = scr_dark_markerscr_dark_markerfunction 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;
} (300, 460, spr_susieu_dark); |
269 |
r = scr_dark_markerscr_dark_markerfunction 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;
} (300, 500, spr_ralseiu); |
270 |
cc[0] = k; |
271 |
cc[1] = s; |
272 |
cc[2] = r; |
273 |
for (i = 0; i < 3; i += 1) |
274 |
{ |
275 |
with (cc[i]) |
276 |
{ |
277 |
scr_depth(); |
278 |
vspeed = -4; |
279 |
image_speed = 0.25; |
280 |
} |
281 |
} |
282 |
con = 2; |
283 |
} |
284 |
if (con == 2) |
285 |
{ |
286 |
global.interact = 1; |
287 |
if (k.y <= 200) |
288 |
{ |
289 |
with (k) |
290 |
{ |
291 |
scr_halt(); |
292 |
sprite_index = spr_krisd_dark; |
293 |
} |
294 |
} |
295 |
if (s.y <= 200 && s.x == s.xstart) |
296 |
{ |
297 |
with (s) |
298 |
{ |
299 |
scr_halt(); |
300 |
x -= 1; |
301 |
hspeed = -4; |
302 |
image_speed = 0.25; |
303 |
sprite_index = spr_susiel_dark; |
304 |
} |
305 |
} |
306 |
if (s.x <= 240) |
307 |
{ |
308 |
with (s) |
309 |
{ |
310 |
scr_halt(); |
311 |
x = 240; |
312 |
sprite_index = spr_susier_dark; |
313 |
} |
314 |
} |
315 |
if (r.y <= 275 && r.x == r.xstart) |
316 |
{ |
317 |
jup = 1; |
318 |
with (r) |
319 |
{ |
320 |
hspeed = 1.25; |
321 |
vspeed = -2.25; |
322 |
} |
323 |
} |
324 |
if (jup == 1) |
325 |
a_timer += 1; |
326 |
if (a_timer >= 48) |
327 |
{ |
328 |
with (r) |
329 |
scr_halt(); |
330 |
con = 3; |
331 |
} |
332 |
} |
333 |
if (con == 3) |
334 |
{ |
335 |
with (k) |
336 |
scr_halt(); |
337 |
with (r) |
338 |
scr_halt(); |
339 |
with (s) |
340 |
scr_halt(); |
341 |
con = 4; |
342 |
alarm[4] = 30; |
343 |
} |
344 |
if (con == 5) |
345 |
{ |
346 |
with (r) |
347 |
sprite_index = spr_ralseid; |
348 |
global.fc = 2; |
349 |
global.typer = 31; |
350 |
global.fe = 11; |
351 |
global.msg[0] = \EB* Alright,Delay 11 this lift should take us out of here.Wait for inputClose Message ; |
352 |
instance_create(0, 0, obj_dialoguer); |
353 |
con = 6; |
354 |
} |
355 |
if (con == 6 && !d_ex()) |
356 |
{ |
357 |
ele_noise = snd_init("elevator.ogg"); |
358 |
ele_noise_ind = snd_loop(ele_noise); |
359 |
snd_volume(ele_noise_ind, 0.6, 0); |
360 |
with (r) |
361 |
sprite_index = spr_ralseiu; |
362 |
snd_play(snd_item); |
363 |
movecon = 3; |
364 |
newcno = 2; |
365 |
con = 7; |
366 |
pitchcount = 0.1; |
367 |
snd_pitch(ele_noise_ind, pitchcount); |
368 |
alarm[4] = 45; |
369 |
} |
370 |
if (con == 7) |
371 |
{ |
372 |
pitchcount += 0.015; |
373 |
snd_pitch(ele_noise_ind, pitchcount); |
374 |
} |
375 |
if (con == 8) |
376 |
{ |
377 |
with (r) |
378 |
sprite_index = spr_ralseid; |
379 |
global.msg[0] = * Now,Delay 11 it might take a while,Delay 11 so...Wait for inputClose Message ; |
380 |
instance_create(0, 0, obj_dialoguer); |
381 |
con = 9; |
382 |
} |
383 |
if (con == 9 && !d_ex()) |
384 |
{ |
385 |
with (r) |
386 |
{ |
387 |
vspeed = 2; |
388 |
image_speed = 0.2; |
389 |
} |
390 |
con = 10; |
391 |
alarm[4] = 15; |
392 |
} |
393 |
if (con == 11) |
394 |
{ |
395 |
with (r) |
396 |
scr_halt(); |
397 |
with (r) |
398 |
{ |
399 |
sprite_index = spr_ralsei_sit; |
400 |
image_speed = 0.25; |
401 |
} |
402 |
con = 12; |
403 |
snd_play(snd_wing); |
404 |
alarm[4] = 12; |
405 |
} |
406 |
if (con == 13) |
407 |
{ |
408 |
with (r) |
409 |
{ |
410 |
image_speed = 0; |
411 |
image_index = 2; |
412 |
} |
413 |
con = 15; |
414 |
alarm[4] = 20; |
415 |
} |
416 |
if (con == 16) |
417 |
{ |
418 |
global.fe = 0; |
419 |
global.msg[0] = \E0* Get comfy,Delay 11 everyone!Wait for inputClose Message ; |
420 |
con = 17; |
421 |
instance_create(0, 0, obj_dialoguer); |
422 |
} |
423 |
if (con == 17 && !d_ex()) |
424 |
{ |
425 |
with (s) |
426 |
{ |
427 |
hspeed = -4; |
428 |
image_speed = 0.2; |
429 |
} |
430 |
with (k) |
431 |
sprite_index = spr_kris_fallen_dark; |
432 |
snd_play(snd_wing); |
433 |
con = 18; |
434 |
alarm[4] = 10; |
435 |
} |
436 |
if (con == 19) |
437 |
{ |
438 |
with (s) |
439 |
{ |
440 |
scr_halt(); |
441 |
sprite_index = spr_susier_wall; |
442 |
} |
443 |
con = 20; |
444 |
alarm[4] = 120; |
445 |
} |
446 |
if (con == 21) |
447 |
{ |
448 |
global.fc = 1; |
449 |
global.typer = 30; |
450 |
global.fe = 0; |
451 |
global.msg[0] = * ... Hey.Delay 11 Ralsei.Delay 11Wait for input ; |
452 |
global.msg[1] = * Y'know Lancer's dad...Delay 11 The King?Wait for input ; |
453 |
scr_ralface(2, "B"); |
454 |
global.msg[3] = ; |
455 |
scr_susface(4, 0); |
456 |
global.msg[5] = * When we meet him...Delay 11 You think we'll have to...Wait for input ; |
457 |
global.msg[6] = \EC* ... hurt him?Wait for input ; |
458 |
scr_ralface(7, "B"); |
459 |
global.msg[8] = * Susie...?Wait for input ; |
460 |
scr_susface(9, 7); |
461 |
global.msg[10] = \E7* I mean, I could EASILY smash him,Delay 11 but...Wait for input ; |
462 |
global.msg[11] = \E0* You guys,Delay 11 I know that's not really your thing.Wait for input ; |
463 |
global.msg[12] = \E2* You're more about,Delay 11 uh,Delay 11 grovelling like total losers.Wait for inputClose Message ; |
464 |
instance_create(0, 0, obj_dialoguer); |
465 |
con = 22; |
466 |
} |
467 |
if (con == 22 && !d_ex()) |
468 |
{ |
469 |
con = 23; |
470 |
alarm[4] = 90; |
471 |
} |
472 |
if (con == 24) |
473 |
{ |
474 |
global.fe = 0; |
475 |
global.msg[0] = \E0* And I was thinking...Delay 11 maybe...Wait for input ; |
476 |
global.msg[1] = \E6* I could...Delay 11 do that too?Wait for input ; |
477 |
scr_ralface(2, 3); |
478 |
global.msg[3] = * Susie!?Delay 11 You mean you want to try ACTing...?Wait for input ; |
479 |
scr_susface(4, 6); |
480 |
global.msg[5] = * Uh, well,Wait for input ; |
481 |
scr_ralface(6, 6); |
482 |
global.msg[7] = * Susie...Delay 11 We'd be happy if you ACTed with us!Wait for input ; |
483 |
global.msg[8] = \E0* And don't worry,Delay 11 we'll be there to help you!Wait for input ; |
484 |
global.msg[9] = \E6* You won't have to figure it out by yourself.Wait for input ; |
485 |
scr_susface(10, 0); |
486 |
global.msg[11] = ; |
487 |
global.msg[12] = \EC* ... sure,Delay 11 alright.Wait for inputClose Message ; |
488 |
con = 25; |
489 |
instance_create(0, 0, obj_dialoguer); |
490 |
} |
491 |
if (con == 25 && !d_ex()) |
492 |
{ |
493 |
con = 26; |
494 |
alarm[4] = 90; |
495 |
} |
496 |
if (con == 27) |
497 |
{ |
498 |
global.msg[0] = ; |
499 |
global.msg[1] = \E0* Hey.Delay 11 Ralsei.Wait for input ; |
500 |
scr_ralface(2, 0); |
501 |
global.msg[3] = ; |
502 |
scr_susface(4, 0); |
503 |
global.msg[5] = * Are you...Wait for input ; |
504 |
global.msg[6] = \E6* Still gonna make those,Delay 11 uh,Delay 11 cakes...?Wait for input ; |
505 |
scr_ralface(7, 6); |
506 |
global.msg[8] = * Well,Delay 11 will you stop making fun of me?Wait for input ; |
507 |
scr_susface(9, 0); |
508 |
global.msg[10] = ; |
509 |
global.msg[11] = \E2* Well,Delay 11 if I HAVE TO,Delay 11 I guess.Wait for input ; |
510 |
scr_ralface(12, 8); |
511 |
global.msg[13] = * Then I'll bake you as many as you like,Delay 11 alright?Wait for input ; |
512 |
scr_susface(14, 2); |
513 |
global.msg[15] = * Yeah,Delay 11 like you can make that many,Delay 11 dude.Wait for inputClose Message ; |
514 |
instance_create(0, 0, obj_dialoguer); |
515 |
con = 28; |
516 |
} |
517 |
if (con == 28 && !d_ex()) |
518 |
{ |
519 |
con = 29; |
520 |
alarm[4] = 45; |
521 |
} |
522 |
if (con == 30) |
523 |
{ |
524 |
movecon = 2; |
525 |
con = 31; |
526 |
snd_volume(ele_noise_ind, 0, 60); |
527 |
alarm[4] = 60; |
528 |
} |
529 |
if (con == 31) |
530 |
{ |
531 |
if (pitchcount > 0.1) |
532 |
pitchcount -= 0.015; |
533 |
snd_pitch(ele_noise_ind, pitchcount); |
534 |
global.interact = 1; |
535 |
} |
536 |
if (con == 32) |
537 |
{ |
538 |
snd_free(ele_noise); |
539 |
with (r) |
540 |
image_speed = -0.25; |
541 |
con = 33; |
542 |
alarm[4] = 7; |
543 |
} |
544 |
if (con == 34) |
545 |
{ |
546 |
with (r) |
547 |
{ |
548 |
sprite_index = spr_ralseid; |
549 |
image_index = 0; |
550 |
vspeed = 4; |
551 |
image_speed = 0.25; |
552 |
} |
553 |
con = 35; |
554 |
} |
555 |
if (con == 35) |
556 |
{ |
557 |
if (r.y >= 270) |
558 |
{ |
559 |
with (r) |
560 |
{ |
561 |
vspeed = 0; |
562 |
hspeed = -6; |
563 |
sprite_index = spr_ralseil; |
564 |
} |
565 |
con = 36; |
566 |
} |
567 |
} |
568 |
if (con == 36) |
569 |
{ |
570 |
if (r.x <= 300) |
571 |
{ |
572 |
with (r) |
573 |
{ |
574 |
scr_halt(); |
575 |
sprite_index = spr_ralseiu; |
576 |
} |
577 |
con = 37; |
578 |
alarm[4] = 20; |
579 |
} |
580 |
} |
581 |
if (con == 38) |
582 |
{ |
583 |
global.fc = 2; |
584 |
global.typer = 31; |
585 |
global.fe = 0; |
586 |
global.msg[0] = \E0* Well,Delay 11 this is our stop!Wait for inputClose Message ; |
587 |
d = instance_create(0, 0, obj_dialoguer); |
588 |
d.side = 0; |
589 |
con = 39; |
590 |
} |
591 |
if (con == 39 && !d_ex()) |
592 |
{ |
593 |
with (r) |
594 |
{ |
595 |
sprite_index = spr_ralseid; |
596 |
vspeed = 4; |
597 |
image_speed = 0.25; |
598 |
} |
599 |
global.interact = 0; |
600 |
con = 40; |
601 |
kremx = k.x; |
602 |
kremy = k.y; |
603 |
snd_play(snd_wing); |
604 |
with (k) |
605 |
instance_destroy(); |
606 |
obj_mainchara.x = kremx; |
607 |
obj_mainchara.y = kremy; |
608 |
global.facing = 0; |
609 |
with (obj_mainchara) |
610 |
visible = 1; |
611 |
movecounter = 0; |
612 |
} |
613 |
if (con == 40) |
614 |
{ |
615 |
if (obj_mainchara.x != kremx || obj_mainchara.y != kremy) |
616 |
movecounter += 1; |
617 |
if (movecounter >= 3) |
618 |
{ |
619 |
con = 41; |
620 |
global.interact = 1; |
621 |
global.fc = 1; |
622 |
global.typer = 30; |
623 |
global.fe = 0; |
624 |
global.msg[0] = \E0* Hey, Kris.Delay 11 Wait a sec.Wait for inputClose Message ; |
625 |
instance_create(0, 0, obj_dialoguer); |
626 |
} |
627 |
} |
628 |
if (con == 41 && !d_ex()) |
629 |
{ |
630 |
with (s) |
631 |
{ |
632 |
sprite_index = spr_susier_dark_unhappy; |
633 |
image_speed = 0.1; |
634 |
hspeed = 2; |
635 |
} |
636 |
global.facing = 3; |
637 |
con = 43; |
638 |
alarm[4] = 15; |
639 |
} |
640 |
if (con == 44) |
641 |
{ |
642 |
with (s) |
643 |
scr_halt(); |
644 |
con = 45; |
645 |
alarm[4] = 30; |
646 |
} |
647 |
if (con == 46) |
648 |
{ |
649 |
global.msg[0] = * Y'know,Delay 11 I'm starting to realize.Wait for input ; |
650 |
global.msg[1] = * It'll be easier for us to get out of here...Wait for input ; |
651 |
global.msg[2] = * If we all,Delay 11 uh,Delay 11 "get along" a little more.Wait for input ; |
652 |
global.msg[3] = * So, next time we fight an enemy...Wait for inputClose Message ; |
653 |
instance_create(0, 0, obj_dialoguer); |
654 |
con = 47; |
655 |
} |
656 |
if (con == 47 && !d_ex()) |
657 |
{ |
658 |
with (s) |
659 |
sprite_index = spr_susieu_dark; |
660 |
con = 48; |
661 |
alarm[4] = 30; |
662 |
} |
663 |
if (con == 49) |
664 |
{ |
665 |
global.msg[0] = \EC* If you tell me what to do... I'll listen to you.Wait for inputClose Message ; |
666 |
instance_create(0, 0, obj_dialoguer); |
667 |
con = 50; |
668 |
} |
669 |
if (con == 50 && !d_ex()) |
670 |
{ |
671 |
with (s) |
672 |
sprite_index = spr_susiel_dark_unhappy; |
673 |
con = 51; |
674 |
alarm[4] = 60; |
675 |
} |
676 |
if (con == 52) |
677 |
{ |
678 |
with (s) |
679 |
sprite_index = spr_susier_dark; |
680 |
global.fe = 1; |
681 |
global.msg[0] = \E1* ... but, y'know, don't tell me anything STUPID,Wait for input ; |
682 |
global.msg[1] = \E2* Or I'll go back to smashing heads, alright!?Wait for inputClose Message ; |
683 |
instance_create(0, 0, obj_dialoguer); |
684 |
con = 53; |
685 |
} |
686 |
if (con == 53 && !d_ex()) |
687 |
{ |
688 |
with (s) |
689 |
{ |
690 |
sprite_index = spr_susied_dark; |
691 |
vspeed = 4; |
692 |
image_speed = 0.25; |
693 |
} |
694 |
con = 54; |
695 |
} |
696 |
if (con == 54) |
697 |
{ |
698 |
if (s.y >= 260) |
699 |
{ |
700 |
global.facing = 0; |
701 |
with (s) |
702 |
{ |
703 |
scr_halt(); |
704 |
hspeed = 4; |
705 |
sprite_index = spr_susier_dark; |
706 |
image_speed = 0.25; |
707 |
} |
708 |
con = 55; |
709 |
} |
710 |
} |
711 |
if (con == 55) |
712 |
{ |
713 |
if (s.x >= 300) |
714 |
{ |
715 |
with (s) |
716 |
{ |
717 |
scr_halt(); |
718 |
vspeed = 3; |
719 |
sprite_index = spr_susied_dark_unhappy; |
720 |
image_speed = 0.125; |
721 |
} |
722 |
con = 56; |
723 |
} |
724 |
} |
725 |
if (con == 56) |
726 |
{ |
727 |
snd_free_all(); |
728 |
if (s.y >= 320) |
729 |
{ |
730 |
with (s) |
731 |
scr_halt(); |
732 |
con = 57; |
733 |
alarm[4] = 30; |
734 |
} |
735 |
} |
736 |
if (con == 58) |
737 |
{ |
738 |
global.currentsong[0] = snd_init("charjoined.ogg"); |
739 |
global.fe = 0; |
740 |
global.msg[0] = \E0* Kris...Wait for input ; |
741 |
global.msg[1] = \EC* I'm counting on you,Delay 11 OK?Wait for inputClose Message ; |
742 |
d = instance_create(0, 0, obj_dialoguer); |
743 |
d.side = 0; |
744 |
con = 59; |
745 |
} |
746 |
if (con == 59 && !d_ex()) |
747 |
{ |
748 |
with (s) |
749 |
{ |
750 |
vspeed = 6; |
751 |
image_speed = 0.25; |
752 |
} |
753 |
con = 60; |
754 |
alarm[4] = 50; |
755 |
} |
756 |
if (con == 61) |
757 |
{ |
758 |
global.currentsong[1] = mus_play(global.currentsong[0]); |
759 |
snd_volume(global.currentsong[1], 0.8, 0); |
760 |
global.typer = 6; |
761 |
global.fc = 0; |
762 |
global.msg[0] = * (Susie joined the party for real.) ; |
763 |
d = instance_create(0, 0, obj_dialoguer); |
764 |
d.side = 0; |
765 |
con = 62; |
766 |
alarm[4] = 110; |
767 |
} |
768 |
if (con == 63) |
769 |
{ |
770 |
if (global.plot < 165) |
771 |
global.plot = 165; |
772 |
with (obj_dialoguer) |
773 |
instance_destroy(); |
774 |
with (obj_writer) |
775 |
instance_destroy(); |
776 |
snd_free_all(); |
777 |
global.interact = 0; |
778 |
global.flag[239 elevator_floor] = 1; |
779 |
con = 64; |
780 |
} |
781 |
if (con == 100) |
782 |
{ |
783 |
global.interact = 1; |
784 |
if (movecon == 0) |
785 |
movecon = 1; |
786 |
con = 101; |
787 |
snd_play(snd_spearappear); |
788 |
ele_noise = snd_init("elevator.ogg"); |
789 |
ele_noise_ind = snd_loop(ele_noise); |
790 |
pitchcount = 0.5; |
791 |
volcount = 0.7; |
792 |
snd_volume(ele_noise_ind, volcount, 0); |
793 |
snd_pitch(ele_noise_ind, pitchcount); |
794 |
pitchtimer = 0; |
795 |
alarm[4] = 40; |
796 |
} |
797 |
if (con == 101) |
798 |
{ |
799 |
global.interact = 1; |
800 |
pitchtimer += 1; |
801 |
if (pitchtimer < 10) |
802 |
pitchcount += 0.04; |
803 |
if (pitchtimer >= 30) |
804 |
{ |
805 |
if (pitchcount > 0) |
806 |
pitchcount -= 0.08; |
807 |
volcount -= 0.05; |
808 |
} |
809 |
snd_pitch(ele_noise_ind, pitchcount); |
810 |
snd_volume(ele_noise_ind, volcount, 0); |
811 |
} |
812 |
if (con == 102) |
813 |
{ |
814 |
snd_free(ele_noise); |
815 |
con = 0; |
816 |
global.flag[239 elevator_floor] = cno; |
817 |
global.interact = 0; |
818 |
global.facing = 0; |
819 |
} |
820 |
} |
821 |
|
822 |
enum e__VW |
823 |
{ |
824 |
XView, |
825 |
YView, |
826 |
WView, |
827 |
HView, |
828 |
Angle, |
829 |
HBorder, |
830 |
VBorder, |
831 |
HSpeed, |
832 |
VSpeed, |
833 |
Object, |
834 |
Visible, |
835 |
XPort, |
836 |
YPort, |
837 |
WPort, |
838 |
HPort, |
839 |
Camera, |
840 |
SurfaceID |
841 |
} |