Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shootout_big_tenna_Draw_0

(view raw script w/o annotations or w/e)
1
if (!i_ex(obj_shootout_controller))
2
{
3
    instance_destroy();
4
    exit;
5
}
6
var chosen_window = obj_shootout_controller.windows[0][0];
7
var shoot = 0;
8
var a = 3;
9
var patternreset = 0;
10
timer++;
11
if (pattern == -1)
12
{
13
    pattern = irandom(9);
14
    if (difficulty == 2)
15
        pattern = choose(13, 14, 15, 16, 17, 18, 19, 20, 21);
16
    patternprev = pattern;
17
}
18
if ((difficulty == 0 || difficulty == 1) && timer == 39)
19
{
20
    if (obj_shootout_controller.current_window_column == 0 && obj_shootout_controller.current_window_row == 0)
21
        pattern = choose(0, 1, 9);
22
    if (obj_shootout_controller.current_window_column == 1 && obj_shootout_controller.current_window_row == 0)
23
        pattern = choose(2, 5, 8);
24
    if (obj_shootout_controller.current_window_column == 2 && obj_shootout_controller.current_window_row == 0)
25
        pattern = choose(3, 4, 5, 6);
26
    if (obj_shootout_controller.current_window_column == 0 && obj_shootout_controller.current_window_row == 1)
27
        pattern = choose(1, 6, 8);
28
    if (obj_shootout_controller.current_window_column == 1 && obj_shootout_controller.current_window_row == 1)
29
        pattern = choose(0, 2, 4, 6, 8, 9);
30
    if (obj_shootout_controller.current_window_column == 2 && obj_shootout_controller.current_window_row == 1)
31
        pattern = choose(3, 6, 8);
32
    if (obj_shootout_controller.current_window_column == 0 && obj_shootout_controller.current_window_row == 2)
33
        pattern = choose(1, 4, 7, 9);
34
    if (obj_shootout_controller.current_window_column == 1 && obj_shootout_controller.current_window_row == 2)
35
        pattern = choose(2, 7, 8);
36
    if (obj_shootout_controller.current_window_column == 2 && obj_shootout_controller.current_window_row == 2)
37
        pattern = choose(0, 3, 7, 9);
38
}
39
if (pattern == 0)
40
{
41
    if (timer == 40)
42
    {
43
        chosen_window = obj_shootout_controller.windows[0][0];
44
        shoot = 1;
45
    }
46
    if (timer == (40 + (a * 1)))
47
    {
48
        chosen_window = obj_shootout_controller.windows[1][1];
49
        shoot = 1;
50
    }
51
    if (timer == (40 + (a * 2)))
52
    {
53
        chosen_window = obj_shootout_controller.windows[2][2];
54
        shoot = 1;
55
        patternreset = 1;
56
    }
57
}
58
if (pattern == 1)
59
{
60
    if (timer == 40)
61
    {
62
        chosen_window = obj_shootout_controller.windows[0][0];
63
        shoot = 1;
64
    }
65
    if (timer == (40 + (a * 1)))
66
    {
67
        chosen_window = obj_shootout_controller.windows[0][1];
68
        shoot = 1;
69
    }
70
    if (timer == (40 + (a * 2)))
71
    {
72
        chosen_window = obj_shootout_controller.windows[0][2];
73
        shoot = 1;
74
        patternreset = 1;
75
    }
76
}
77
if (pattern == 2)
78
{
79
    if (timer == 40)
80
    {
81
        chosen_window = obj_shootout_controller.windows[1][0];
82
        shoot = 1;
83
    }
84
    if (timer == (40 + (a * 1)))
85
    {
86
        chosen_window = obj_shootout_controller.windows[1][1];
87
        shoot = 1;
88
    }
89
    if (timer == (40 + (a * 2)))
90
    {
91
        chosen_window = obj_shootout_controller.windows[1][2];
92
        shoot = 1;
93
        patternreset = 1;
94
    }
95
}
96
if (pattern == 3)
97
{
98
    if (timer == 40)
99
    {
100
        chosen_window = obj_shootout_controller.windows[2][0];
101
        shoot = 1;
102
    }
103
    if (timer == (40 + (a * 1)))
104
    {
105
        chosen_window = obj_shootout_controller.windows[2][1];
106
        shoot = 1;
107
    }
108
    if (timer == (40 + (a * 2)))
109
    {
110
        chosen_window = obj_shootout_controller.windows[2][2];
111
        shoot = 1;
112
        patternreset = 1;
113
    }
114
}
115
if (pattern == 4)
116
{
117
    if (timer == 40)
118
    {
119
        chosen_window = obj_shootout_controller.windows[2][0];
120
        shoot = 1;
121
    }
122
    if (timer == (40 + (a * 1)))
123
    {
124
        chosen_window = obj_shootout_controller.windows[1][1];
125
        shoot = 1;
126
    }
127
    if (timer == (40 + (a * 2)))
128
    {
129
        chosen_window = obj_shootout_controller.windows[0][2];
130
        shoot = 1;
131
        patternreset = 1;
132
    }
133
}
134
if (pattern == 5)
135
{
136
    if (timer == 40)
137
    {
138
        chosen_window = obj_shootout_controller.windows[0][0];
139
        shoot = 1;
140
    }
141
    if (timer == (40 + (a * 1)))
142
    {
143
        chosen_window = obj_shootout_controller.windows[1][0];
144
        shoot = 1;
145
    }
146
    if (timer == (40 + (a * 2)))
147
    {
148
        chosen_window = obj_shootout_controller.windows[2][0];
149
        shoot = 1;
150
        patternreset = 1;
151
    }
152
}
153
if (pattern == 6)
154
{
155
    if (timer == 40)
156
    {
157
        chosen_window = obj_shootout_controller.windows[0][1];
158
        shoot = 1;
159
    }
160
    if (timer == (40 + (a * 1)))
161
    {
162
        chosen_window = obj_shootout_controller.windows[1][1];
163
        shoot = 1;
164
    }
165
    if (timer == (40 + (a * 2)))
166
    {
167
        chosen_window = obj_shootout_controller.windows[2][1];
168
        shoot = 1;
169
        patternreset = 1;
170
    }
171
}
172
if (pattern == 7)
173
{
174
    if (timer == 40)
175
    {
176
        chosen_window = obj_shootout_controller.windows[0][2];
177
        shoot = 1;
178
    }
179
    if (timer == (40 + (a * 1)))
180
    {
181
        chosen_window = obj_shootout_controller.windows[1][2];
182
        shoot = 1;
183
    }
184
    if (timer == (40 + (a * 2)))
185
    {
186
        chosen_window = obj_shootout_controller.windows[2][2];
187
        shoot = 1;
188
        patternreset = 1;
189
    }
190
}
191
if (pattern == 8)
192
{
193
    if (timer == 40)
194
    {
195
        chosen_window = obj_shootout_controller.windows[1][0];
196
        shoot = 1;
197
    }
198
    if (timer == (40 + (a * 1)))
199
    {
200
        chosen_window = obj_shootout_controller.windows[0][1];
201
        shoot = 1;
202
    }
203
    if (timer == (40 + (a * 2)))
204
    {
205
        chosen_window = obj_shootout_controller.windows[1][1];
206
        shoot = 1;
207
    }
208
    if (timer == (40 + (a * 3)))
209
    {
210
        chosen_window = obj_shootout_controller.windows[2][1];
211
        shoot = 1;
212
    }
213
    if (timer == (40 + (a * 4)))
214
    {
215
        chosen_window = obj_shootout_controller.windows[1][2];
216
        shoot = 1;
217
        patternreset = 1;
218
    }
219
}
220
if (pattern == 9)
221
{
222
    if (timer == 40)
223
    {
224
        chosen_window = obj_shootout_controller.windows[0][0];
225
        shoot = 1;
226
    }
227
    if (timer == (40 + (a * 1)))
228
    {
229
        chosen_window = obj_shootout_controller.windows[2][0];
230
        shoot = 1;
231
    }
232
    if (timer == (40 + (a * 2)))
233
    {
234
        chosen_window = obj_shootout_controller.windows[1][1];
235
        shoot = 1;
236
    }
237
    if (timer == (40 + (a * 3)))
238
    {
239
        chosen_window = obj_shootout_controller.windows[0][2];
240
        shoot = 1;
241
    }
242
    if (timer == (40 + (a * 4)))
243
    {
244
        chosen_window = obj_shootout_controller.windows[2][2];
245
        shoot = 1;
246
        patternreset = 1;
247
    }
248
}
249
if (pattern == 10)
250
{
251
    if (timer == 40)
252
    {
253
        chosen_window = obj_shootout_controller.windows[0][0];
254
        shoot = 1;
255
    }
256
    if (timer == (40 + (a * 1)))
257
    {
258
        chosen_window = obj_shootout_controller.windows[1][0];
259
        shoot = 1;
260
    }
261
    if (timer == (40 + (a * 2)))
262
    {
263
        chosen_window = obj_shootout_controller.windows[2][0];
264
        shoot = 1;
265
    }
266
    if (timer == (40 + (a * 3)))
267
    {
268
        chosen_window = obj_shootout_controller.windows[0][1];
269
        shoot = 1;
270
    }
271
    if (timer == (40 + (a * 4)))
272
    {
273
        chosen_window = obj_shootout_controller.windows[1][1];
274
        shoot = 1;
275
    }
276
    if (timer == (40 + (a * 5)))
277
    {
278
        chosen_window = obj_shootout_controller.windows[2][1];
279
        shoot = 1;
280
    }
281
    if (timer == (40 + (a * 6)))
282
    {
283
        chosen_window = obj_shootout_controller.windows[0][2];
284
        shoot = 1;
285
    }
286
    if (timer == (40 + (a * 7)))
287
    {
288
        chosen_window = obj_shootout_controller.windows[1][2];
289
        shoot = 1;
290
    }
291
    if (timer == (40 + (a * 8)))
292
    {
293
        chosen_window = obj_shootout_controller.windows[2][2];
294
        shoot = 1;
295
        patternreset = 1;
296
    }
297
}
298
if (pattern == 11)
299
{
300
    if (timer == 40)
301
    {
302
        chosen_window = obj_shootout_controller.windows[2][2];
303
        shoot = 1;
304
    }
305
    if (timer == (40 + (a * 1)))
306
    {
307
        chosen_window = obj_shootout_controller.windows[1][2];
308
        shoot = 1;
309
    }
310
    if (timer == (40 + (a * 2)))
311
    {
312
        chosen_window = obj_shootout_controller.windows[0][2];
313
        shoot = 1;
314
    }
315
    if (timer == (40 + (a * 3)))
316
    {
317
        chosen_window = obj_shootout_controller.windows[2][1];
318
        shoot = 1;
319
    }
320
    if (timer == (40 + (a * 4)))
321
    {
322
        chosen_window = obj_shootout_controller.windows[1][1];
323
        shoot = 1;
324
    }
325
    if (timer == (40 + (a * 5)))
326
    {
327
        chosen_window = obj_shootout_controller.windows[0][1];
328
        shoot = 1;
329
    }
330
    if (timer == (40 + (a * 6)))
331
    {
332
        chosen_window = obj_shootout_controller.windows[2][0];
333
        shoot = 1;
334
    }
335
    if (timer == (40 + (a * 7)))
336
    {
337
        chosen_window = obj_shootout_controller.windows[1][0];
338
        shoot = 1;
339
    }
340
    if (timer == (40 + (a * 8)))
341
    {
342
        chosen_window = obj_shootout_controller.windows[0][0];
343
        shoot = 1;
344
        patternreset = 1;
345
    }
346
}
347
if (pattern == 12)
348
{
349
    if (timer == 40)
350
    {
351
        chosen_window = obj_shootout_controller.windows[2][2];
352
        shoot = 1;
353
    }
354
    if (timer == (40 + (a * 1)))
355
    {
356
        chosen_window = obj_shootout_controller.windows[1][2];
357
        shoot = 1;
358
    }
359
    if (timer == (40 + (a * 2)))
360
    {
361
        chosen_window = obj_shootout_controller.windows[0][2];
362
        shoot = 1;
363
    }
364
    if (timer == (40 + (a * 3)))
365
    {
366
        chosen_window = obj_shootout_controller.windows[2][1];
367
        shoot = 1;
368
    }
369
    if (timer == (40 + (a * 4)))
370
    {
371
        chosen_window = obj_shootout_controller.windows[1][1];
372
        shoot = 1;
373
    }
374
    if (timer == (40 + (a * 5)))
375
    {
376
        chosen_window = obj_shootout_controller.windows[0][1];
377
        shoot = 1;
378
    }
379
    if (timer == (40 + (a * 6)))
380
    {
381
        chosen_window = obj_shootout_controller.windows[2][0];
382
        shoot = 1;
383
    }
384
    if (timer == (40 + (a * 7)))
385
    {
386
        chosen_window = obj_shootout_controller.windows[1][0];
387
        shoot = 1;
388
    }
389
    if (timer == (40 + (a * 8)))
390
    {
391
        chosen_window = obj_shootout_controller.windows[0][0];
392
        shoot = 1;
393
        patternreset = 1;
394
    }
395
}
396
if (pattern == 13)
397
{
398
    if (timer == 40)
399
    {
400
        chosen_window = obj_shootout_controller.windows[2][0];
401
        shoot = 1;
402
    }
403
    if (timer == (40 + (a * 1)))
404
    {
405
        chosen_window = obj_shootout_controller.windows[2][1];
406
        shoot = 1;
407
    }
408
    if (timer == (40 + (a * 2)))
409
    {
410
        chosen_window = obj_shootout_controller.windows[2][2];
411
        shoot = 1;
412
    }
413
    if (timer == (40 + (a * 3)))
414
    {
415
        chosen_window = obj_shootout_controller.windows[0][0];
416
        shoot = 1;
417
    }
418
    if (timer == (40 + (a * 4)))
419
    {
420
        chosen_window = obj_shootout_controller.windows[0][1];
421
        shoot = 1;
422
    }
423
    if (timer == (40 + (a * 5)))
424
    {
425
        chosen_window = obj_shootout_controller.windows[0][2];
426
        shoot = 1;
427
    }
428
    if (timer == (40 + (a * 6)))
429
    {
430
        chosen_window = obj_shootout_controller.windows[1][0];
431
        shoot = 1;
432
    }
433
    if (timer == (40 + (a * 7)))
434
    {
435
        chosen_window = obj_shootout_controller.windows[1][1];
436
        shoot = 1;
437
    }
438
    if (timer == (40 + (a * 8)))
439
    {
440
        chosen_window = obj_shootout_controller.windows[1][2];
441
        shoot = 1;
442
        patternreset = 1;
443
    }
444
}
445
if (pattern == 14)
446
{
447
    if (timer == 40)
448
    {
449
        chosen_window = obj_shootout_controller.windows[0][1];
450
        shoot = 1;
451
    }
452
    if (timer == (40 + (a * 1)))
453
    {
454
        chosen_window = obj_shootout_controller.windows[1][1];
455
        shoot = 1;
456
    }
457
    if (timer == (40 + (a * 2)))
458
    {
459
        chosen_window = obj_shootout_controller.windows[2][1];
460
        shoot = 1;
461
    }
462
    if (timer == (40 + (a * 3)))
463
    {
464
        chosen_window = obj_shootout_controller.windows[0][0];
465
        shoot = 1;
466
    }
467
    if (timer == (40 + (a * 4)))
468
    {
469
        chosen_window = obj_shootout_controller.windows[1][0];
470
        shoot = 1;
471
    }
472
    if (timer == (40 + (a * 5)))
473
    {
474
        chosen_window = obj_shootout_controller.windows[2][0];
475
        shoot = 1;
476
    }
477
    if (timer == (40 + (a * 6)))
478
    {
479
        chosen_window = obj_shootout_controller.windows[0][2];
480
        shoot = 1;
481
    }
482
    if (timer == (40 + (a * 7)))
483
    {
484
        chosen_window = obj_shootout_controller.windows[1][2];
485
        shoot = 1;
486
    }
487
    if (timer == (40 + (a * 8)))
488
    {
489
        chosen_window = obj_shootout_controller.windows[2][2];
490
        shoot = 1;
491
        patternreset = 1;
492
    }
493
}
494
if (pattern == 15)
495
{
496
    if (timer == 40)
497
    {
498
        chosen_window = obj_shootout_controller.windows[0][1];
499
        shoot = 1;
500
    }
501
    if (timer == (40 + (a * 1)))
502
    {
503
        chosen_window = obj_shootout_controller.windows[1][1];
504
        shoot = 1;
505
    }
506
    if (timer == (40 + (a * 2)))
507
    {
508
        chosen_window = obj_shootout_controller.windows[2][1];
509
        shoot = 1;
510
    }
511
    if (timer == (40 + (a * 3)))
512
    {
513
        chosen_window = obj_shootout_controller.windows[0][0];
514
        shoot = 1;
515
    }
516
    if (timer == (40 + (a * 4)))
517
    {
518
        chosen_window = obj_shootout_controller.windows[1][0];
519
        shoot = 1;
520
    }
521
    if (timer == (40 + (a * 5)))
522
    {
523
        chosen_window = obj_shootout_controller.windows[2][0];
524
        shoot = 1;
525
    }
526
    if (timer == (40 + (a * 6)))
527
    {
528
        chosen_window = obj_shootout_controller.windows[0][2];
529
        shoot = 1;
530
    }
531
    if (timer == (40 + (a * 7)))
532
    {
533
        chosen_window = obj_shootout_controller.windows[1][2];
534
        shoot = 1;
535
    }
536
    if (timer == (40 + (a * 8)))
537
    {
538
        chosen_window = obj_shootout_controller.windows[2][2];
539
        shoot = 1;
540
        patternreset = 1;
541
    }
542
}
543
if (pattern == 16)
544
{
545
    if (timer == 40)
546
    {
547
        chosen_window = obj_shootout_controller.windows[0][0];
548
        shoot = 1;
549
    }
550
    if (timer == (40 + (a * 1)))
551
    {
552
        chosen_window = obj_shootout_controller.windows[1][0];
553
        shoot = 1;
554
    }
555
    if (timer == (40 + (a * 2)))
556
    {
557
        chosen_window = obj_shootout_controller.windows[2][0];
558
        shoot = 1;
559
    }
560
    if (timer == (40 + (a * 3)))
561
    {
562
        chosen_window = obj_shootout_controller.windows[0][2];
563
        shoot = 1;
564
    }
565
    if (timer == (40 + (a * 4)))
566
    {
567
        chosen_window = obj_shootout_controller.windows[1][2];
568
        shoot = 1;
569
    }
570
    if (timer == (40 + (a * 5)))
571
    {
572
        chosen_window = obj_shootout_controller.windows[2][2];
573
        shoot = 1;
574
    }
575
    if (timer == (40 + (a * 6)))
576
    {
577
        chosen_window = obj_shootout_controller.windows[0][1];
578
        shoot = 1;
579
    }
580
    if (timer == (40 + (a * 7)))
581
    {
582
        chosen_window = obj_shootout_controller.windows[1][1];
583
        shoot = 1;
584
    }
585
    if (timer == (40 + (a * 8)))
586
    {
587
        chosen_window = obj_shootout_controller.windows[2][1];
588
        shoot = 1;
589
        patternreset = 1;
590
    }
591
}
592
if (pattern == 17)
593
{
594
    if (timer == 40)
595
    {
596
        chosen_window = obj_shootout_controller.windows[1][1];
597
        shoot = 1;
598
    }
599
    if (timer == (40 + (a * 1)))
600
    {
601
        chosen_window = obj_shootout_controller.windows[2][1];
602
        shoot = 1;
603
    }
604
    if (timer == (40 + (a * 2)))
605
    {
606
        chosen_window = obj_shootout_controller.windows[2][2];
607
        shoot = 1;
608
    }
609
    if (timer == (40 + (a * 3)))
610
    {
611
        chosen_window = obj_shootout_controller.windows[1][2];
612
        shoot = 1;
613
    }
614
    if (timer == (40 + (a * 4)))
615
    {
616
        chosen_window = obj_shootout_controller.windows[0][2];
617
        shoot = 1;
618
    }
619
    if (timer == (40 + (a * 5)))
620
    {
621
        chosen_window = obj_shootout_controller.windows[0][1];
622
        shoot = 1;
623
    }
624
    if (timer == (40 + (a * 6)))
625
    {
626
        chosen_window = obj_shootout_controller.windows[0][0];
627
        shoot = 1;
628
    }
629
    if (timer == (40 + (a * 7)))
630
    {
631
        chosen_window = obj_shootout_controller.windows[1][0];
632
        shoot = 1;
633
    }
634
    if (timer == (40 + (a * 8)))
635
    {
636
        chosen_window = obj_shootout_controller.windows[2][0];
637
        shoot = 1;
638
        patternreset = 1;
639
    }
640
}
641
if (pattern == 18)
642
{
643
    if (timer == 40)
644
    {
645
        chosen_window = obj_shootout_controller.windows[2][0];
646
        shoot = 1;
647
    }
648
    if (timer == (40 + (a * 1)))
649
    {
650
        chosen_window = obj_shootout_controller.windows[1][0];
651
        shoot = 1;
652
    }
653
    if (timer == (40 + (a * 2)))
654
    {
655
        chosen_window = obj_shootout_controller.windows[0][0];
656
        shoot = 1;
657
    }
658
    if (timer == (40 + (a * 3)))
659
    {
660
        chosen_window = obj_shootout_controller.windows[0][1];
661
        shoot = 1;
662
    }
663
    if (timer == (40 + (a * 4)))
664
    {
665
        chosen_window = obj_shootout_controller.windows[0][2];
666
        shoot = 1;
667
    }
668
    if (timer == (40 + (a * 5)))
669
    {
670
        chosen_window = obj_shootout_controller.windows[1][2];
671
        shoot = 1;
672
    }
673
    if (timer == (40 + (a * 6)))
674
    {
675
        chosen_window = obj_shootout_controller.windows[2][2];
676
        shoot = 1;
677
    }
678
    if (timer == (40 + (a * 7)))
679
    {
680
        chosen_window = obj_shootout_controller.windows[2][1];
681
        shoot = 1;
682
    }
683
    if (timer == (40 + (a * 8)))
684
    {
685
        chosen_window = obj_shootout_controller.windows[1][1];
686
        shoot = 1;
687
        patternreset = 1;
688
    }
689
}
690
if (pattern == 19)
691
{
692
    if (timer == 40)
693
    {
694
        chosen_window = obj_shootout_controller.windows[1][1];
695
        shoot = 1;
696
    }
697
    if (timer == (40 + (a * 1)))
698
    {
699
        chosen_window = obj_shootout_controller.windows[0][1];
700
        shoot = 1;
701
    }
702
    if (timer == (40 + (a * 2)))
703
    {
704
        chosen_window = obj_shootout_controller.windows[0][0];
705
        shoot = 1;
706
    }
707
    if (timer == (40 + (a * 3)))
708
    {
709
        chosen_window = obj_shootout_controller.windows[1][0];
710
        shoot = 1;
711
    }
712
    if (timer == (40 + (a * 4)))
713
    {
714
        chosen_window = obj_shootout_controller.windows[2][0];
715
        shoot = 1;
716
    }
717
    if (timer == (40 + (a * 5)))
718
    {
719
        chosen_window = obj_shootout_controller.windows[2][1];
720
        shoot = 1;
721
    }
722
    if (timer == (40 + (a * 6)))
723
    {
724
        chosen_window = obj_shootout_controller.windows[2][2];
725
        shoot = 1;
726
    }
727
    if (timer == (40 + (a * 7)))
728
    {
729
        chosen_window = obj_shootout_controller.windows[1][2];
730
        shoot = 1;
731
    }
732
    if (timer == (40 + (a * 8)))
733
    {
734
        chosen_window = obj_shootout_controller.windows[0][2];
735
        shoot = 1;
736
        patternreset = 1;
737
    }
738
}
739
if (pattern == 20)
740
{
741
    if (timer == 40)
742
    {
743
        chosen_window = obj_shootout_controller.windows[0][1];
744
        shoot = 1;
745
    }
746
    if (timer == (40 + (a * 1)))
747
    {
748
        chosen_window = obj_shootout_controller.windows[1][1];
749
        shoot = 1;
750
    }
751
    if (timer == (40 + (a * 2)))
752
    {
753
        chosen_window = obj_shootout_controller.windows[2][1];
754
        shoot = 1;
755
    }
756
    if (timer == (40 + (a * 3)))
757
    {
758
        chosen_window = obj_shootout_controller.windows[0][0];
759
        shoot = 1;
760
    }
761
    if (timer == (40 + (a * 4)))
762
    {
763
        chosen_window = obj_shootout_controller.windows[1][0];
764
        shoot = 1;
765
    }
766
    if (timer == (40 + (a * 5)))
767
    {
768
        chosen_window = obj_shootout_controller.windows[2][0];
769
        shoot = 1;
770
    }
771
    if (timer == (40 + (a * 6)))
772
    {
773
        chosen_window = obj_shootout_controller.windows[0][2];
774
        shoot = 1;
775
    }
776
    if (timer == (40 + (a * 7)))
777
    {
778
        chosen_window = obj_shootout_controller.windows[1][2];
779
        shoot = 1;
780
    }
781
    if (timer == (40 + (a * 8)))
782
    {
783
        chosen_window = obj_shootout_controller.windows[2][2];
784
        shoot = 1;
785
        patternreset = 1;
786
    }
787
}
788
if (pattern == 21)
789
{
790
    if (timer == 40)
791
    {
792
        chosen_window = obj_shootout_controller.windows[0][2];
793
        shoot = 1;
794
    }
795
    if (timer == (40 + (a * 1)))
796
    {
797
        chosen_window = obj_shootout_controller.windows[1][2];
798
        shoot = 1;
799
    }
800
    if (timer == (40 + (a * 2)))
801
    {
802
        chosen_window = obj_shootout_controller.windows[2][2];
803
        shoot = 1;
804
    }
805
    if (timer == (40 + (a * 3)))
806
    {
807
        chosen_window = obj_shootout_controller.windows[0][0];
808
        shoot = 1;
809
    }
810
    if (timer == (40 + (a * 4)))
811
    {
812
        chosen_window = obj_shootout_controller.windows[1][0];
813
        shoot = 1;
814
    }
815
    if (timer == (40 + (a * 5)))
816
    {
817
        chosen_window = obj_shootout_controller.windows[2][0];
818
        shoot = 1;
819
    }
820
    if (timer == (40 + (a * 6)))
821
    {
822
        chosen_window = obj_shootout_controller.windows[0][1];
823
        shoot = 1;
824
    }
825
    if (timer == (40 + (a * 7)))
826
    {
827
        chosen_window = obj_shootout_controller.windows[1][1];
828
        shoot = 1;
829
    }
830
    if (timer == (40 + (a * 8)))
831
    {
832
        chosen_window = obj_shootout_controller.windows[2][1];
833
        shoot = 1;
834
        patternreset = 1;
835
    }
836
}
837
if (pattern == -2)
838
{
839
    a = 1;
840
    if (timer == 39)
841
        con = irandom(8);
842
    if (timer == 40 && con != 0)
843
    {
844
        chosen_window = obj_shootout_controller.windows[2][2];
845
        shoot = 1;
846
    }
847
    if (timer == (40 + (a * 1)) && con != 1)
848
    {
849
        chosen_window = obj_shootout_controller.windows[1][2];
850
        shoot = 1;
851
    }
852
    if (timer == (40 + (a * 2)) && con != 2)
853
    {
854
        chosen_window = obj_shootout_controller.windows[0][2];
855
        shoot = 1;
856
    }
857
    if (timer == (40 + (a * 3)) && con != 3)
858
    {
859
        chosen_window = obj_shootout_controller.windows[2][1];
860
        shoot = 1;
861
    }
862
    if (timer == (40 + (a * 4)) && con != 4)
863
    {
864
        chosen_window = obj_shootout_controller.windows[1][1];
865
        shoot = 1;
866
    }
867
    if (timer == (40 + (a * 5)) && con != 5)
868
    {
869
        chosen_window = obj_shootout_controller.windows[0][1];
870
        shoot = 1;
871
    }
872
    if (timer == (40 + (a * 6)) && con != 6)
873
    {
874
        chosen_window = obj_shootout_controller.windows[2][0];
875
        shoot = 1;
876
    }
877
    if (timer == (40 + (a * 7)) && con != 7)
878
    {
879
        chosen_window = obj_shootout_controller.windows[1][0];
880
        shoot = 1;
881
    }
882
    if (timer == (40 + (a * 8)) && con != 8)
883
    {
884
        chosen_window = obj_shootout_controller.windows[0][0];
885
        shoot = 1;
886
    }
887
    if (timer == (40 + (a * 8)))
888
        patternreset = 1;
889
}
890
if (i_ex(obj_tenna_minigame_ui) && obj_tenna_minigame_ui.timer > 190)
891
    difficulty = 1;
892
if (i_ex(obj_tenna_minigame_ui) && obj_tenna_minigame_ui.timer > 220)
893
{
894
}
895
else if (patternreset == 1)
896
{
897
    timer = 16;
898
    if (difficulty == 0)
899
    {
900
        pattern = irandom(9);
901
        if (patternprev == pattern)
902
        {
903
            pattern++;
904
            if (pattern > 9)
905
                pattern = 0;
906
        }
907
    }
908
    if (difficulty == 1)
909
    {
910
        timer = 16;
911
        pattern = irandom(9);
912
        if (patternprev == pattern)
913
        {
914
            pattern++;
915
            if (pattern > 9)
916
                pattern = 0;
917
        }
918
        con++;
919
        if (con == 4)
920
            difficulty = 2;
921
    }
922
    if (difficulty == 2)
923
    {
924
        pattern = choose(13, 14, 15, 16, 17, 18, 19, 20, 21);
925
        if (patternprev == pattern)
926
        {
927
            pattern++;
928
            if (pattern > 21)
929
                pattern = 13;
930
        }
931
        timer = 16;
932
        con++;
933
        if (con == 6)
934
        {
935
            difficulty = 1;
936
            con = 2;
937
        }
938
    }
939
    patternprev = pattern;
940
}
941
if (shoot == 1)
942
{
943
    reticle = instance_create_depth(chosen_window.x, chosen_window.y, depth + 1, obj_shootout_tenna_reticle);
944
    reticle.window = chosen_window;
945
    if (difficulty == 1)
946
        reticle.duration = 18;
947
    if (difficulty == 2)
948
        reticle.duration = 18;
949
}
950
with (obj_tenna_enemy_minigametext)
951
    depth = obj_shootout_big_tenna.depth - 10;
952
siner++;
953
if (!i_ex(obj_shakeobj))
954
    x = camerax() + 20;
955
y = ystart + (sin(siner / 6) * 3);
956
if (firefx > 0)
957
{
958
    draw_sprite_ext(spr_tenna_shooutout2, 0, x + 260, y + 150, 2, 2, image_angle, c_white, 0.8);
959
    firefx--;
960
}
961
draw_self();