Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_date_controller_Step_0

(view raw script w/o annotations or w/e)
1
global.turntimer = 999;
2
var _questioncorrectcount = questioncorrectcount;
3
if (_questioncorrectcount > heartcount)
4
    _questioncorrectcount = heartcount;
5
bgrectangle1colorcurrent = merge_color(bgrectangle1colorstart, lightpink, _questioncorrectcount / heartcount);
6
bgrectangle2colorcurrent = merge_color(bgrectangle2colorstart, medpink, _questioncorrectcount / heartcount);
7
dialogueboxcolorcurrent = merge_color(dialogueboxcolorstart, darkpink, _questioncorrectcount / heartcount);
8
dialogueboxghostcolorcurrent = merge_color(dialogueboxghostcolorstart, darkpink, _questioncorrectcount / heartcount);
9
choiceselectioncolorcurrent = merge_color(choiceselectioncolorstart, darkpink, _questioncorrectcount / heartcount);
10
diamondbg_alpha_current = merge_color(c_black, #010000, _questioncorrectcount / heartcount);
11
if (con == 0)
12
{
13
    surface1_x -= grav;
14
    surface2_x += grav;
15
    if (con == 0)
16
        grav -= 1;
17
    if (surface1_x >= camx && con == 0)
18
    {
19
        con = 1;
20
        grav = 0;
21
        surface1_x = camx;
22
        surface2_x = camx + 320;
23
        with (obj_pink_enemy)
24
            dateflashcon = 0;
25
        with (obj_writer)
26
            instance_destroy();
27
        
scr_shakescreen
scr_shakescreen

function
scr_shakescreen(arg0 = 4)
{ with (instance_create(x, y, obj_shake)) { shakex = arg0; shakey = arg0; } }
();
28
        snd_play(snd_impact);
29
        snd_stop(snd_rumble);
30
        if (obj_pink_enemy.datecount > 1)
31
        {
32
            for (var i = 0; i < 15; i++)
33
            {
34
                with (instance_create_depth(camx + 320, camy + 20 + (28 * i), depth - 2, obj_shinobeetle_smokecloud))
35
                {
36
                    image_xscale = 0.75;
37
                    image_yscale = 0.75;
38
                    image_index = choose(0, 1, 2, 3);
39
                    image_speed = 0;
40
                    direction = choose(0, 180);
41
                    speed = 1 + random(1);
42
                    image_alpha -= random(0.07);
43
                    sprite_index = spr_shinobeetle_ow_dustcloud;
44
                    fadespeed = 0.1;
45
                }
46
                if ((i % 2) == 0)
47
                {
48
                    with (instance_create_depth(camx + 320, camy + 20 + (28 * i), depth - 1, obj_shinobeetle_smokecloud))
49
                    {
50
                        image_xscale = 0.5;
51
                        image_yscale = 0.5;
52
                        image_index = choose(0, 1);
53
                        image_speed = 0;
54
                        direction = choose(0, 180);
55
                        speed = 2 + random(3);
56
                        image_alpha = 1;
57
                        image_angle = -30 + random(60);
58
                        sprite_index = spr_shinobeetle_ow_dustcloud_mew;
59
                        image_blend = make_color_rgb(255, 138, 144);
60
                        friction = 0.2;
61
                        fadespeed = 0.06;
62
                    }
63
                }
64
            }
65
            show_intro_outro_surfaces = false;
66
        }
67
    }
68
}
69
if (con == 1 && i_ex(obj_pink_enemy))
70
{
71
    draw_box_selected = 0;
72
    show_circle1timer = 0;
73
    show_circle2timer = 0;
74
    if (obj_pink_enemy.datecount == 1)
75
    {
76
        draw_box_timer++;
77
        if (questioncount == 0)
78
        {
79
            if (draw_box_timer > 0 && draw_box_timer <= 20)
80
                pinkportraitalpha += 0.05;
81
            if (draw_box_timer > 0 && intro_outro_surfaces_whiteness_alpha < 1)
82
                intro_outro_surfaces_whiteness_alpha -= 0.1;
83
            if (draw_box_timer > 0 && ui_alpha < 1)
84
                ui_alpha += 0.1;
85
            if (draw_box_timer == 60)
86
            {
87
                pinkportrait = 200;
88
                sweatcon = 1;
89
                date_text_char_number = 0;
90
                date_text2_char_number = 0;
91
                snd_play_x(snd_pink_gasp, 1, 1);
92
                talktimer = -5;
93
                show_intro_outro_surfaces = false;
94
                if (global.flag[1706] == 1)
95
                {
96
                    draw_box_timer = 222;
97
                    first_text = stringsetloc(
What is this... a date!?
"What is this... a date!?", "obj_date_controller_slash_Step_0_gml_74_0_b"
);
98
                }
99
                else
100
                {
101
                    first_text = stringsetloc(
Wh-what's going on!?\nSchool!?
"Wh-what's going on!?\nSchool!?", "obj_date_controller_slash_Step_0_gml_78_0"
);
102
                }
103
            }
104
            if (draw_box_timer >= 66 && draw_box_timer < 151 && (button1_h() || button3_h()) && can_skip_timer > 10)
105
            {
106
                draw_box_timer = 151;
107
                can_skip_timer = 0;
108
            }
109
            if (draw_box_timer == 151)
110
            {
111
                portraitshakecon = 1;
112
                pinkportrait = 5428;
113
                date_text_char_number = 0;
114
                date_text2_char_number = 0;
115
                first_text = stringsetloc(
I don't... I don't even go to school anymore...
"I don't... I don't even go to school anymore...", "obj_date_controller_slash_Step_0_gml_74_0"
);
116
                snd_play(snd_pink_throw);
117
                talktimer = 5;
118
            }
119
            if (draw_box_timer >= 151 && draw_box_timer < 221 && (button1_h() || button3_h()) && can_skip_timer > 10)
120
            {
121
                draw_box_timer = 221;
122
                can_skip_timer = 0;
123
            }
124
            if (draw_box_timer >= 221 && draw_box_timer < 232)
125
            {
126
                with (obj_date_heart)
127
                    image_alpha += 0.1;
128
            }
129
            if (draw_box_timer == 221)
130
            {
131
                pinkportrait = 7004;
132
                date_text_char_number = 0;
133
                date_text2_char_number = 0;
134
                first_text = stringsetloc(
And you wanna WALK\nME HOME!?
"And you wanna WALK\nME HOME!?", "obj_date_controller_slash_Step_0_gml_83_0"
);
135
                snd_play_x(snd_pink_mew, 1, 1);
136
                talktimer = 0;
137
            }
138
            if (draw_box_timer >= 232)
139
            {
140
                con = 2;
141
                datetimeleftmax = 240;
142
                datetimeleft = datetimeleftmax;
143
            }
144
        }
145
        if (questioncount == 1 && global.flag[1706] == 1)
146
        {
147
            if (draw_box_timer == 1)
148
            {
149
                portraitshakecon = 1;
150
                pinkportrait = 2687;
151
                snd_play_x(snd_pink_gasp, 1, 1);
152
                first_text = "";
153
            }
154
            if (draw_box_timer > 1 && draw_box_timer < 61 && (button1_h() || button3_h()) && can_skip_timer > 10)
155
            {
156
                draw_box_timer = 61;
157
                can_skip_timer = 0;
158
            }
159
            if (draw_box_timer == 61)
160
            {
161
                portraitshakecon = 1;
162
                pinkportrait = 1018;
163
                date_text_char_number = 0;
164
                date_text2_char_number = 0;
165
                first_text = stringsetloc(
Shut up!!!
"Shut up!!!", "obj_date_controller_slash_Step_0_gml_124_0"
);
166
                snd_play_x(snd_pink_gasp, 1, 1);
167
                talktimer = 0;
168
            }
169
            if (draw_box_timer > 61 && draw_box_timer < 121 && (button1_h() || button3_h()) && can_skip_timer > 10)
170
            {
171
                draw_box_timer = 121;
172
                can_skip_timer = 0;
173
            }
174
            if (draw_box_timer == 121)
175
            {
176
                snd_play(snd_boost);
177
                minigame_won = true;
178
                minigame_con = 1;
179
                with (obj_pink_enemy)
180
                    explode_after_date = true;
181
            }
182
        }
183
        if (questioncount == 1 && global.flag[1706] == 0)
184
        {
185
            if (draw_box_timer >= 1 && draw_box_timer < 18 && pinkindex < 6)
186
                pinkindex += (1/3);
187
            if (draw_box_timer >= 1)
188
            {
189
                con = 2;
190
                datetimeleftmax = 240;
191
                datetimeleft = datetimeleftmax;
192
                sweatcon = 1;
193
                havent_moved_left_or_right = true;
194
                pinkportrait = 200;
195
                first_text = stringsetloc(
It's... because you think this body's CUTE, right!?
"It's... because you think this body's CUTE, right!?", "obj_date_controller_slash_Step_0_gml_107_0"
);
196
                snd_play(snd_pink_throw);
197
                snd_play_delayed(722, 8, 1, 0.8);
198
                talktimer = 0;
199
                pinkindex = 0;
200
            }
201
        }
202
        if (questioncount == 2)
203
        {
204
            con = 2;
205
            datetimeleftmax = 240;
206
            datetimeleft = datetimeleftmax;
207
            portraitshakecon = 1;
208
            pinkportrait = 7004;
209
            first_text = stringsetloc(
You... wish you never met me, right...?
"You... wish you never met me, right...?", "obj_date_controller_slash_Step_0_gml_121_0"
);
210
            snd_play(snd_pink_throw);
211
            talktimer = 0;
212
        }
213
        if (questioncount == 3)
214
        {
215
            if (draw_box_timer == 1)
216
            {
217
                portraitshakecon = 1;
218
                pinkportrait = 1018;
219
                date_text_char_number = 0;
220
                date_text2_char_number = 0;
221
                first_text = stringsetloc(
ARRRGH, enough already! This is OVER!\t
"ARRRGH, enough already! This is OVER!\t", "obj_date_controller_slash_Step_0_gml_141_0"
);
222
                snd_play_x(snd_pink_gasp, 1, 1);
223
                talktimer = 0;
224
            }
225
            if (draw_box_timer > 1 && draw_box_timer < 41 && (button1_h() || button3_h()) && can_skip_timer > 10)
226
            {
227
                draw_box_timer = 41;
228
                can_skip_timer = 0;
229
            }
230
            if (draw_box_timer == 41)
231
            {
232
                snd_play(snd_boost);
233
                minigame_won = true;
234
                minigame_con = 1;
235
                with (obj_pink_enemy)
236
                    explode_after_date = true;
237
            }
238
        }
239
    }
240
    if (obj_pink_enemy.datecount == 2)
241
    {
242
        with (obj_date_heart)
243
            image_alpha += 0.1;
244
        if (rr == 0)
245
        {
246
            draw_box_timer++;
247
            if (draw_box_timer < 11)
248
                pinkportraitalpha += 0.1;
249
            if (draw_box_timer == 12)
250
                draw_box_timer = 81;
251
            if (draw_box_timer == 100 && global.flag[1707] == 1)
252
                draw_box_timer = 500;
253
            if (draw_box_timer == 101)
254
            {
255
                pinkportrait = 200;
256
                date_text_char_number = 0;
257
                date_text_char_number = 0;
258
                first_text = stringsetloc(
Let's date, mew!
"Let's date, mew!", "obj_date_controller_slash_Step_0_gml_164_0"
);
259
                talktimer = 0;
260
                snd_stop(snd_pink_mew);
261
                snd_stop(snd_pink_throw);
262
                snd_play_delayed(71, 1, 1, 1);
263
                snd_play_delayed(71, 15, 1, 1.3);
264
                draw_box_timer = 111;
265
            }
266
            if (draw_box_timer > 126 && draw_box_timer < 171 && (button1_h() || button3_h()) && can_skip_timer > 10)
267
            {
268
                draw_box_timer = 171;
269
                can_skip_timer = 0;
270
            }
271
            if (draw_box_timer == 171)
272
            {
273
                portraitshakecon = 1;
274
                pinkportrait = 1018;
275
                date_text_char_number = 0;
276
                date_text_char_number = 0;
277
                first_text = stringsetloc(
I'M NOT DOING THIS!!
"I'M NOT DOING THIS!!", "obj_date_controller_slash_Step_0_gml_177_0"
);
278
                talktimer = 6;
279
                portrait1_talkspeed = 0.2;
280
                shaketext_x = -4 + random(8);
281
                snd_stop(snd_pink_mew);
282
                snd_stop(snd_pink_throw);
283
                snd_play(snd_pink_throw);
284
                snd_play_delayed(722, 8, 1, 0.8);
285
                draw_box_timer = 181;
286
            }
287
            if (draw_box_timer > 189 && draw_box_timer < 231 && (button1_h() || button3_h()) && can_skip_timer > 10)
288
            {
289
                draw_box_timer = 231;
290
                can_skip_timer = 0;
291
            }
292
            if (draw_box_timer == 231)
293
            {
294
                portraitshakecon = 1;
295
                pinkportrait = 6742;
296
                date_text_char_number = 0;
297
                date_text_char_number = 0;
298
                first_text = stringsetloc(
Let's date, mew!!!
"Let's date, mew!!!", "obj_date_controller_slash_Step_0_gml_192_0"
);
299
                talktimer = 5;
300
                portrait1_talkspeed = 0.2;
301
                snd_stop(snd_pink_mew);
302
                snd_stop(snd_pink_throw);
303
                snd_play(snd_pink_mew, 1, 1.1);
304
                snd_play_delayed(71, 12, 1, 1.4);
305
                draw_box_timer = 251;
306
            }
307
            if (draw_box_timer > 263 && draw_box_timer < 291 && (button1_h() || button3_h()) && can_skip_timer > 10)
308
            {
309
                draw_box_timer = 291;
310
                can_skip_timer = 0;
311
            }
312
            if (draw_box_timer == 291)
313
            {
314
                portraitshakecon = 1;
315
                pinkportrait = 1018;
316
                date_text_char_number = 0;
317
                date_text_char_number = 0;
318
                first_text = stringsetloc(
I'M! NOT! DOING! THIS!!!
"I'M! NOT! DOING! THIS!!!", "obj_date_controller_slash_Step_0_gml_206_0"
);
319
                talktimer = 10;
320
                portrait1_talkspeed = 0.25;
321
                snd_stop(snd_pink_mew);
322
                snd_stop(snd_pink_throw);
323
                snd_play(snd_pink_throw);
324
                snd_play_delayed(722, 6, 1, 0.6);
325
            }
326
            if (draw_box_timer > 297 && draw_box_timer < 321 && (button1_h() || button3_h()) && can_skip_timer > 10)
327
            {
328
                draw_box_timer = 321;
329
                can_skip_timer = 0;
330
            }
331
            if (draw_box_timer >= 321 && draw_box_timer < 500)
332
            {
333
                portrait_change_timer++;
334
                if (portrait_change_timer >= portrait_change_timer_max)
335
                {
336
                    talktimer = 10;
337
                    portrait1_talkspeed = 1/3;
338
                    if (pinkportrait != 1018)
339
                    {
340
                        pinkportrait = 1018;
341
                        snd_stop(snd_pink_mew);
342
                        snd_stop(snd_pink_throw);
343
                        snd_play(snd_pink_throw);
344
                        date_text_char_number = 0;
345
                        date_text_char_number = 0;
346
                        first_text = stringsetloc(
I'M! NOT! DOING! THIS!!!
"I'M! NOT! DOING! THIS!!!", "obj_date_controller_slash_Step_0_gml_227_0"
);
347
                    }
348
                    else
349
                    {
350
                        pinkportrait = 5218;
351
                        snd_stop(snd_pink_mew);
352
                        snd_stop(snd_pink_throw);
353
                        snd_play(snd_pink_mew);
354
                        date_text_char_number = 0;
355
                        date_text_char_number = 0;
356
                        first_text = stringsetloc(
Let's date, mew!!!
"Let's date, mew!!!", "obj_date_controller_slash_Step_0_gml_235_0"
);
357
                    }
358
                    if (portrait_change_timer_max <= 3)
359
                        shaketext_x = -4 + random(8);
360
                    portrait_change_timer = 0;
361
                    if (portrait_change_timer_max > 3)
362
                        portrait_change_timer_max -= 1;
363
                }
364
            }
365
            if (draw_box_timer == 500)
366
            {
367
                shaketext_x = 0;
368
                first_text = "";
369
                pinkportrait = 6552;
370
                pinkportrait2 = 7274;
371
                portraitscon = 1;
372
                pinkportraitalpha = 0.5;
373
                pinkportraitalpha2 = 0.5;
374
                if (global.is_console)
375
                {
376
                    with (obj_border_controller)
377
                        set_border(border_dw_pink_alt);
378
                }
379
            }
380
            if (draw_box_timer >= 500 && draw_box_timer < 511)
381
                pinkportraitalpha += 0.05;
382
            if (draw_box_timer >= 500 && draw_box_timer < 511)
383
                pinkportraitalpha2 += 0.05;
384
            if (draw_box_timer == 530 && global.flag[1707] == 1)
385
                draw_box_timer = 911;
386
            if (draw_box_timer == 530)
387
            {
388
                portraitshakecon = 1;
389
                portraitshakecon2 = 1;
390
                sprite_set_offset(spr_pinkghost_shock_full, 31, 0);
391
                sprite_set_offset(spr_pinkspeaker_shocked_origin_adjusted, 33, 10);
392
                pinkportrait = 982;
393
                pinkportrait2 = 5407;
394
                date_text_char_number = 0;
395
                date_text2_char_number = 0;
396
                first_text = stringsetloc(
H-Hey, we\nsplit!!
"H-Hey, we\nsplit!!", "obj_date_controller_slash_Step_0_gml_271_0"
);
397
                second_text = stringsetloc(
H-Hey, we\nsplit!!
"H-Hey, we\nsplit!!", "obj_date_controller_slash_Step_0_gml_272_0"
);
398
                talktimer = -20;
399
                snd_play(snd_pink_trip, 1, 1.1);
400
                snd_play(snd_pink_trip, 1, 1.2);
401
            }
402
            if (draw_box_timer > 535 && draw_box_timer < 610 && (button1_h() || button3_h()) && can_skip_timer > 10)
403
                draw_box_timer = 610;
404
            if (draw_box_timer == 610)
405
            {
406
                sprite_set_offset(spr_pinkspeaker_shocked_origin_adjusted, 26, 10);
407
                portraitshakecon = 1;
408
                pinkportrait = 8327;
409
                pinkportrait2 = 7274;
410
                date_text_char_number = 0;
411
                date_text2_char_number = 0;
412
                first_text = stringsetloc(
Now we can BOTH\ndate, mew!
"Now we can BOTH\ndate, mew!", "obj_date_controller_slash_Step_0_gml_283_0"
);
413
                second_text = "";
414
                talktimer = -10;
415
                portrait1_talkspeed = 0.2;
416
                snd_play(snd_pink_gasp, 1, 1.2);
417
                snd_play_delayed(722, 6, 1, 0.6);
418
            }
419
            if (draw_box_timer > 617 && draw_box_timer < 670 && (button1_h() || button3_h()) && can_skip_timer > 10)
420
                draw_box_timer = 670;
421
            if (draw_box_timer == 670)
422
            {
423
                portraitshakecon = 1;
424
                pinkportrait = 6742;
425
                date_text_char_number = 0;
426
                date_text2_char_number = 0;
427
                first_text = stringsetloc(
Will you say something\nnice to us?
"Will you say something\nnice to us?", "obj_date_controller_slash_Step_0_gml_295_0"
);
428
                talktimer = 0;
429
                snd_stop(snd_pink_mew);
430
                snd_stop(snd_pink_throw);
431
                snd_play_delayed(71, 1, 1, 1);
432
                snd_play_delayed(71, 15, 1, 1.3);
433
            }
434
            if (draw_box_timer > 685 && draw_box_timer < 730 && (button1_h() || button3_h()) && can_skip_timer > 10)
435
                draw_box_timer = 730;
436
            if (draw_box_timer == 730)
437
            {
438
                portraitshakecon2 = 1;
439
                pinkportrait2 = 7504;
440
                date_text_char_number = 0;
441
                date_text2_char_number = 0;
442
                first_text = "";
443
                second_text = stringsetloc(
NO, say something\nNASTY to us!!
"NO, say something\nNASTY to us!!", "obj_date_controller_slash_Step_0_gml_308_0"
);
444
                talktimer2 = 10;
445
                portrait2_talkspeed = 1/3;
446
                shaketext_x = -4 + random(8);
447
                snd_stop(snd_pink_mew);
448
                snd_stop(snd_pink_throw);
449
                snd_play(snd_pink_throw);
450
                snd_play_delayed(722, 8, 1, 0.8);
451
                draw_box_timer = 768;
452
            }
453
            if (draw_box_timer > 776 && draw_box_timer < 821 && (button1_h() || button3_h()) && can_skip_timer > 10)
454
                draw_box_timer = 821;
455
            if (draw_box_timer == 821)
456
            {
457
                portraitshakecon = 1;
458
                portraitshakecon2 = 1;
459
                pinkportrait = 200;
460
                pinkportrait2 = 7274;
461
                first_text = "";
462
                second_text = "";
463
                multi_color_text_con = 1;
464
                talktimer = -20;
465
                talktimer2 = -20;
466
                snd_play_delayed(71, 1, 1, 1);
467
                snd_play_delayed(71, 15, 1, 1.3);
468
                snd_play(snd_pink_throw);
469
                snd_play_delayed(722, 8, 1, 0.8);
470
            }
471
            if (draw_box_timer > 821 && draw_box_timer < 911 && (button1_h() || button3_h()) && can_skip_timer > 10)
472
                draw_box_timer = 911;
473
            if (draw_box_timer >= 911)
474
            {
475
                multi_color_text_con = 0;
476
                event_user(1);
477
                con = 2;
478
                datetimeleftmax = 240;
479
                datetimeleft = datetimeleftmax;
480
                rr = 1;
481
            }
482
        }
483
        else if (rr >= 1)
484
        {
485
            con = 2;
486
            datetimeleftmax = 240;
487
            datetimeleft = datetimeleftmax;
488
            talktimer = 0;
489
        }
490
    }
491
    if (obj_pink_enemy.datecount == 3)
492
    {
493
        with (obj_date_heart)
494
            image_alpha += 0.1;
495
        if (rr == 0)
496
        {
497
            draw_box_timer++;
498
            if (draw_box_timer < 11)
499
                pinkportraitalpha += 0.1;
500
            if (draw_box_timer < 11)
501
                portrait_xscale = 2;
502
            if (draw_box_timer >= 12 && pinkportraitalpha < 1)
503
                pinkportraitalpha += 0.05;
504
            if (draw_box_timer == 12)
505
            {
506
                date3con = 1;
507
                first_text = clutching_head_string;
508
                multi_color_text_con = 1;
509
                draw_box_timer = 42;
510
                snd_stop(snd_pink_mew);
511
                snd_play(snd_pink_mew);
512
            }
513
            if (draw_box_timer == 82)
514
                first_text = "";
515
            if (draw_box_timer == 102)
516
            {
517
                draw_box_timer = 132;
518
                date3con = 2;
519
                first_text = clutching_head_string2;
520
                multi_color_text_con = 1;
521
                snd_stop(snd_pink_mew);
522
                snd_play_x(snd_pink_mew, 1, 1.2);
523
            }
524
            if (draw_box_timer == 172)
525
                first_text = "";
526
            if (draw_box_timer >= 12 && draw_box_timer <= 222)
527
            {
528
                if (invertbgalpha < 1)
529
                    invertbgalpha += 0.007;
530
            }
531
            if (draw_box_timer >= 12 && draw_box_timer <= 102)
532
                pinkportrait_x = (230 + irandom(4)) - 2;
533
            if (draw_box_timer >= 102 && draw_box_timer <= 222)
534
                pinkportrait_x = (230 + irandom(8)) - 4;
535
            if (draw_box_timer >= 222 && draw_box_timer <= 312)
536
                pinkportrait_x = (230 + irandom(12)) - 6;
537
            if (draw_box_timer == 222)
538
            {
539
                for (var i = 1; i < 5; i++)
540
                {
541
                    var ai = instance_create_depth(camx + (camerawidth() / 2), camy + (camheight / 2), -100000, obj_afterimage_screen);
542
                    with (ai)
543
                    {
544
                        xscale = 1;
545
                        yscale = 1;
546
                        alpha = 0.3;
547
                        xrate = 0.03 * i;
548
                        yrate = 0.03 * i;
549
                        faderate = 0.025;
550
                    }
551
                }
552
                first_text = "";
553
                snd_stop(snd_pink_mew);
554
                snd_play_x(snd_pink_mew, 1, 1.4);
555
                snd_stop(snd_rumble);
556
                snd_play(snd_explosion);
557
                inst = 
scr_fadeout
scr_fadeout

function
scr_fadeout(arg0)
{ __fadeouter = instance_create(camerax() - 200, cameray() - 200, obj_fadeout); __fadeouter.fadespeed = 1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(60);
558
                inst.image_blend = c_white;
559
                inst.depth = -999999999;
560
                with (obj_pink_enemy)
561
                    playheartbeatsfx = false;
562
            }
563
            if (draw_box_timer == 342)
564
            {
565
                pinkportrait = 1103;
566
                pinkportrait2 = 5450;
567
                snd_play_x(snd_ghostappear, 1, 0.6);
568
                portrait2_xscale = -2;
569
                pinkportrait_x = 100;
570
                pinkportrait2_x = -1;
571
                with (obj_fadeout)
572
                    instance_destroy();
573
                inst = 
scr_fadein
scr_fadein

function
scr_fadein(arg0)
{ __fadeouter = instance_create(0, 0, obj_fadein); __fadeouter.fadespeed = -1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(60);
574
                inst.image_blend = c_white;
575
                inst.depth = -999999999;
576
                date3con = 0;
577
                first_text = goawaystring;
578
                multi_color_text_con = 1;
579
                snd_loop(snd_pink_stretch_2_troubled);
580
                snd_volume(snd_pink_stretch_2_troubled, 0, 0);
581
                snd_volume(snd_pink_stretch_2_troubled, 1, 90);
582
            }
583
            if (draw_box_timer >= 340 && finalattackcon == 0 && i_ex(obj_pink_enemy))
584
            {
585
                instance_create(camx - 40, camy - 40, obj_heart);
586
                with (obj_heart)
587
                {
588
                    sprite_index = spr_purpleheart;
589
                    canmove = 0;
590
                }
591
                first_text = "";
592
                global.monsterattackname[obj_pink_enemy.myself] = "pink final attack";
593
                __dc = instance_create_depth(x, y, depth - 20, obj_dbulletcontroller);
594
                __dc.creator = obj_pink_enemy.myself;
595
                __dc.creatorid = obj_pink_enemy.id;
596
                __dc.target = obj_pink_enemy.mytarget;
597
                __dc.damage = global.monsterat[obj_pink_enemy.myself] * 5;
598
                __dc.type = 210;
599
                __dc.difficulty = 0;
600
                finalattackcon = 1;
601
                date4darknessalpha = 0.2;
602
            }
603
            if (draw_box_timer >= 12 && portraitscon == 0 && minigame_won == false && i_ex(obj_purplecontrols) && obj_purplecontrols.difficulty == 4)
604
            {
605
                date3endingcon = 1;
606
                date3endingtimer = 0;
607
                inst = 
scr_fadeout
scr_fadeout

function
scr_fadeout(arg0)
{ __fadeouter = instance_create(camerax() - 200, cameray() - 200, obj_fadeout); __fadeouter.fadespeed = 1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(30);
608
                inst.image_blend = c_white;
609
                inst.depth = -999999999;
610
                with (obj_heart)
611
                    instance_destroy();
612
                with (obj_purplecontrols)
613
                    instance_destroy();
614
                with (obj_date_heart)
615
                    instance_destroy();
616
                snd_play(snd_boost);
617
                with (obj_pink_enemy)
618
                    explode_after_date = true;
619
                snd_volume(snd_pink_stretch_2_troubled, 0, 90);
620
                snd_loop(snd_pink_stretch_2_fixed);
621
                snd_volume(snd_pink_stretch_2_fixed, 0, 0);
622
                snd_volume(snd_pink_stretch_2_fixed, 1, 90);
623
            }
624
        }
625
    }
626
    if (date3endingcon == 1)
627
    {
628
        date3endingtimer++;
629
        if (date3endingtimer == 30)
630
        {
631
            minigame_won = true;
632
            minigame_con = 1;
633
            date3endingcon = 2;
634
            with (obj_date_ui)
635
            {
636
                con = 3;
637
                timer = 0;
638
            }
639
            with (obj_pink_enemy)
640
                idlesprite = spr_pink_very_hurt;
641
        }
642
    }
643
    if (obj_pink_enemy.datecount == 4)
644
    {
645
        with (obj_date_heart)
646
            image_alpha += 0.1;
647
        draw_box_timer++;
648
        if (questioncount == 0)
649
        {
650
            if (rr == 0)
651
            {
652
                if (draw_box_timer < 11)
653
                    pinkportraitalpha += 0.1;
654
                if (draw_box_timer == 12)
655
                    portraitscon = 1;
656
            }
657
            else if (draw_box_timer < 43)
658
            {
659
                draw_box_timer = 43;
660
            }
661
            if (draw_box_timer == 43)
662
            {
663
                pinkportrait = 2588;
664
                pinkportrait2 = 3412;
665
                date_text_char_number = 0;
666
                date_text2_char_number = 0;
667
                second_text = stringsetloc(
Body! I...\nI admit it.
"Body! I...\nI admit it.", "obj_date_controller_slash_Step_0_gml_422_0"
);
668
                talktimer = 0;
669
                talktimer = -20;
670
                portraitshakecon2 = 1;
671
                snd_play_delayed(71, 1, 1, 1);
672
                snd_play_delayed(71, 15, 1, 1.3);
673
            }
674
            if (draw_box_timer > 47 && draw_box_timer < 133 && (button1_h() || button3_h()) && can_skip_timer > 10)
675
                draw_box_timer = 133;
676
            if (draw_box_timer == 133)
677
            {
678
                pinkportrait2 = 3412;
679
                with (obj_writer)
680
                    instance_destroy();
681
                date_text_char_number = 0;
682
                date_text2_char_number = 0;
683
                second_text = stringsetloc(
My heart really\nWAS beating...!
"My heart really\nWAS beating...!", "obj_date_controller_slash_Step_0_gml_432_0"
);
684
                talktimer = 0;
685
                talktimer = -20;
686
                portraitshakecon2 = 1;
687
                snd_play_delayed(71, 1, 1, 1);
688
                snd_play_delayed(71, 15, 1, 1.3);
689
            }
690
            if (draw_box_timer > 137 && draw_box_timer < 223 && (button1_h() || button3_h()) && can_skip_timer > 10)
691
                draw_box_timer = 223;
692
            if (draw_box_timer == 223)
693
            {
694
                with (obj_writer)
695
                    instance_destroy();
696
                date_text_char_number = 0;
697
                date_text2_char_number = 0;
698
                second_text = stringsetloc(
But, it was\nonly because...
"But, it was\nonly because...", "obj_date_controller_slash_Step_0_gml_441_0"
);
699
                talktimer = 0;
700
                talktimer = -20;
701
                portraitshakecon2 = 1;
702
                snd_play_delayed(71, 1, 1, 1);
703
                snd_play_delayed(71, 15, 1, 1.3);
704
            }
705
            if (draw_box_timer > 227 && draw_box_timer < 313 && (button1_h() || button3_h()) && can_skip_timer > 10)
706
                draw_box_timer = 313;
707
            if (draw_box_timer == 313)
708
            {
709
                with (obj_writer)
710
                    instance_destroy();
711
                date_text_char_number = 0;
712
                date_text2_char_number = 0;
713
                second_text = stringsetloc(
When they flirted\nwith you...
"When they flirted\nwith you...", "obj_date_controller_slash_Other_11_gml_583_0"
);
714
                talktimer = 0;
715
                talktimer = -20;
716
                portraitshakecon2 = 1;
717
                snd_play_delayed(71, 1, 1, 1);
718
                snd_play_delayed(71, 15, 1, 1.3);
719
            }
720
            if (draw_box_timer > 318 && draw_box_timer < 403 && (button1_h() || button3_h()) && can_skip_timer > 10)
721
                draw_box_timer = 403;
722
            if (draw_box_timer >= 403)
723
            {
724
                datetimeleftmax = 240;
725
                datetimeleft = datetimeleftmax;
726
                event_user(1);
727
                con = 2;
728
            }
729
        }
730
        else if (questioncount == 1)
731
        {
732
            if (draw_box_timer == 1)
733
            {
734
                pinkportrait = 2588;
735
                portraitshakecon = 1;
736
                pinkportrait2 = 3412;
737
                portraitshakecon2 = 1;
738
                date_text_char_number = 0;
739
                date_text2_char_number = 0;
740
                second_text = stringsetloc(
I was scared!
"I was scared!", "obj_date_controller_slash_Step_0_gml_460_0"
);
741
                talktimer = 0;
742
                talktimer2 = -20;
743
                snd_play_delayed(71, 1, 1, 1);
744
            }
745
            if (draw_box_timer > 5 && draw_box_timer < 90 && (button1_h() || button3_h()) && can_skip_timer > 10)
746
                draw_box_timer = 90;
747
            if (draw_box_timer == 90)
748
            {
749
                pinkportrait2 = 3412;
750
                portraitshakecon2 = 1;
751
                date_text_char_number = 0;
752
                date_text2_char_number = 0;
753
                second_text = stringsetloc(
After finally\n"finding myself"...
"After finally\n\"finding myself\"...", "obj_date_controller_slash_Step_0_gml_470_0"
);
754
                talktimer2 = -20;
755
                snd_play_delayed(71, 1, 1, 1);
756
                snd_play_delayed(71, 15, 1, 1.3);
757
            }
758
            if (draw_box_timer > 90 && draw_box_timer < 180 && (button1_h() || button3_h()) && can_skip_timer > 10)
759
                draw_box_timer = 180;
760
            if (draw_box_timer == 180)
761
            {
762
                pinkportrait2 = 3412;
763
                portraitshakecon2 = 1;
764
                date_text_char_number = 0;
765
                date_text2_char_number = 0;
766
                second_text = stringsetloc(
I felt like I was...\nLOSING myself.
"I felt like I was...\nLOSING myself.", "obj_date_controller_slash_Step_0_gml_479_0"
);
767
                talktimer2 = -20;
768
                snd_play_delayed(71, 1, 1, 1);
769
                snd_play_delayed(71, 15, 1, 0.8);
770
            }
771
            if (draw_box_timer > 180 && draw_box_timer < 270 && (button1_h() || button3_h()) && can_skip_timer > 10)
772
                draw_box_timer = 270;
773
            if (draw_box_timer == 270)
774
            {
775
                pinkportrait2 = 3412;
776
                portraitshakecon2 = 1;
777
                date_text_char_number = 0;
778
                date_text2_char_number = 0;
779
                second_text = stringsetloc(
I... I didn't want\nyou to be...
"I... I didn't want\nyou to be...", "obj_date_controller_slash_Other_11_gml_601_0"
);
780
                talktimer2 = -20;
781
                snd_play_delayed(71, 1, 1, 1);
782
                snd_play_delayed(71, 15, 1, 0.9);
783
            }
784
            if (draw_box_timer > 270 && draw_box_timer < 360 && (button1_h() || button3_h()) && can_skip_timer > 10)
785
                draw_box_timer = 360;
786
            if (draw_box_timer == 360)
787
            {
788
                datetimeleftmax = 240;
789
                datetimeleft = datetimeleftmax;
790
                event_user(1);
791
                con = 2;
792
            }
793
        }
794
        else if (questioncount == 2)
795
        {
796
            if (draw_box_timer == 1)
797
            {
798
                pinkportrait = 2588;
799
                portraitshakecon = 1;
800
                pinkportrait2 = 6060;
801
                portraitshakecon2 = 1;
802
                date_text_char_number = 0;
803
                date_text2_char_number = 0;
804
                second_text = stringsetloc(
I only wanted you\nto be mine! To be ME!
"I only wanted you\nto be mine! To be ME!", "obj_date_controller_slash_Step_0_gml_497_0"
);
805
                talktimer = -20;
806
                snd_play(snd_pink_throw);
807
                snd_play_delayed(722, 8, 1, 0.8);
808
            }
809
            if (draw_box_timer > 5 && draw_box_timer < 91 && (button1_h() || button3_h()) && can_skip_timer > 10)
810
                draw_box_timer = 90;
811
            if (draw_box_timer == 90)
812
            {
813
                pinkportrait2 = 6060;
814
                portraitshakecon2 = 1;
815
                date_text_char_number = 0;
816
                date_text2_char_number = 0;
817
                second_text = stringsetloc(
Because...\nI HATE me!
"Because...\nI HATE me!", "obj_date_controller_slash_Step_0_gml_507_0"
);
818
                talktimer2 = -20;
819
                snd_play_delayed(71, 1, 1, 1);
820
                snd_play_delayed(71, 15, 1, 1.5);
821
            }
822
            if (draw_box_timer > 90 && draw_box_timer < 180 && (button1_h() || button3_h()) && can_skip_timer > 10)
823
                draw_box_timer = 180;
824
            if (draw_box_timer == 180)
825
            {
826
                pinkportrait2 = 6060;
827
                portraitshakecon2 = 1;
828
                date_text_char_number = 0;
829
                date_text2_char_number = 0;
830
                second_text = stringsetloc(
And If I became\nsomething I loved...
"And If I became\nsomething I loved...", "obj_date_controller_slash_Step_0_gml_516_0"
);
831
                talktimer2 = -20;
832
                snd_play_delayed(71, 1, 1, 1);
833
                snd_play_delayed(71, 15, 1, 1.3);
834
            }
835
            if (draw_box_timer > 180 && draw_box_timer < 270 && (button1_h() || button3_h()) && can_skip_timer > 10)
836
                draw_box_timer = 270;
837
            if (draw_box_timer == 270)
838
            {
839
                pinkportrait2 = 6060;
840
                portraitshakecon2 = 1;
841
                date_text_char_number = 0;
842
                date_text2_char_number = 0;
843
                second_text = stringsetloc(
Wouldn't that\nFIX it!?
"Wouldn't that\nFIX it!?", "obj_date_controller_slash_Step_0_gml_525_0"
);
844
                talktimer2 = -20;
845
                snd_play_delayed(71, 1, 1, 1);
846
                snd_play_delayed(71, 22, 1, 1.1);
847
            }
848
            if (draw_box_timer > 270 && draw_box_timer < 360 && (button1_h() || button3_h()) && can_skip_timer > 10)
849
                draw_box_timer = 360;
850
            if (draw_box_timer == 360)
851
            {
852
                pinkportrait2 = 3412;
853
                portraitshakecon2 = 1;
854
                date_text_char_number = 0;
855
                date_text2_char_number = 0;
856
                second_text = stringsetloc(
But... just puppeting\nyou around...
"But... just puppeting\nyou around...", "obj_date_controller_slash_Step_0_gml_534_0"
);
857
                talktimer2 = -20;
858
                snd_play_delayed(71, 1, 1, 1);
859
                snd_play_delayed(71, 15, 1, 1.3);
860
            }
861
            if (draw_box_timer > 360 && draw_box_timer < 450 && (button1_h() || button3_h()) && can_skip_timer > 10)
862
                draw_box_timer = 450;
863
            if (draw_box_timer == 450)
864
            {
865
                pinkportrait2 = 3412;
866
                portraitshakecon2 = 1;
867
                date_text_char_number = 0;
868
                date_text2_char_number = 0;
869
                second_text = stringsetloc(
That's... only hurting\nyou, isn't it?
"That's... only hurting\nyou, isn't it?", "obj_date_controller_slash_Step_0_gml_543_0"
);
870
                talktimer2 = -20;
871
                snd_play_delayed(71, 1, 1, 1);
872
                snd_play_delayed(71, 15, 1, 0.8);
873
            }
874
            if (draw_box_timer > 450 && draw_box_timer < 540 && (button1_h() || button3_h()) && can_skip_timer > 10)
875
                draw_box_timer = 540;
876
            if (draw_box_timer == 540)
877
            {
878
                pinkportrait2 = 8463;
879
                portraitshakecon2 = 1;
880
                date_text_char_number = 0;
881
                date_text2_char_number = 0;
882
                second_text = stringsetloc(
If... I want us\nto be together...
"If... I want us\nto be together...", "obj_date_controller_slash_Step_0_gml_552_0"
);
883
                talktimer2 = -20;
884
                snd_play_delayed(71, 1, 1, 1);
885
                snd_play_delayed(71, 15, 1, 0.9);
886
            }
887
            if (draw_box_timer > 540 && draw_box_timer < 630 && (button1_h() || button3_h()) && can_skip_timer > 10)
888
                draw_box_timer = 630;
889
            if (draw_box_timer == 630)
890
            {
891
                pinkportrait2 = 8463;
892
                portraitshakecon2 = 1;
893
                date_text_char_number = 0;
894
                date_text2_char_number = 0;
895
                second_text = stringsetloc(
Then...\nI have to...
"Then...\nI have to...", "obj_date_controller_slash_Other_11_gml_620_0"
);
896
                talktimer2 = -20;
897
                snd_play_delayed(71, 1, 1, 1);
898
                snd_play_delayed(71, 15, 1, 1.3);
899
            }
900
            if (draw_box_timer > 630 && draw_box_timer < 720 && (button1_h() || button3_h()) && can_skip_timer > 10)
901
                draw_box_timer = 720;
902
            if (draw_box_timer == 720)
903
            {
904
                datetimeleftmax = 240;
905
                datetimeleft = datetimeleftmax;
906
                pinkportrait2 = 8463;
907
                event_user(1);
908
                con = 2;
909
            }
910
        }
911
        else if (questioncount == 3)
912
        {
913
            if (draw_box_timer == 1)
914
            {
915
                ghost_fade_con = 1;
916
                pinkportrait = 7435;
917
                date_text_char_number = 0;
918
                date_text2_char_number = 0;
919
                first_text = stringsetloc(
I want to be with\nyou too, mew!
"I want to be with\nyou too, mew!", "obj_date_controller_slash_Step_0_gml_575_0"
);
920
                talktimer = 0;
921
                snd_play_delayed(71, 5, 1, 1);
922
                snd_play_delayed(71, 15, 1, 1.2);
923
                snd_play_delayed(71, 25, 1);
924
            }
925
            if (draw_box_timer > 5 && draw_box_timer < 90 && (button1_h() || button3_h()) && can_skip_timer > 10)
926
                draw_box_timer = 90;
927
            if (draw_box_timer == 90)
928
            {
929
                date_text_char_number = 0;
930
                date_text2_char_number = 0;
931
                first_text = stringsetloc(
If we just listen\nto each other...
"If we just listen\nto each other...", "obj_date_controller_slash_Step_0_gml_581_0"
);
932
                talktimer = 0;
933
                snd_play_delayed(71, 1, 1, 1);
934
                snd_play_delayed(71, 15, 1, 1.3);
935
            }
936
            if (draw_box_timer > 90 && draw_box_timer < 180 && (button1_h() || button3_h()) && can_skip_timer > 10)
937
                draw_box_timer = 180;
938
            if (draw_box_timer == 180)
939
            {
940
                date_text_char_number = 0;
941
                date_text2_char_number = 0;
942
                pinkportrait2 = 1692;
943
                first_text = stringsetloc(
I know we can balance\nbeing together!
"I know we can balance\nbeing together!", "obj_date_controller_slash_Step_0_gml_587_0"
);
944
                second_text = "";
945
                talktimer = 10;
946
                snd_play_delayed(71, 1, 1, 1);
947
                snd_play_delayed(71, 15, 1, 1.4);
948
            }
949
            if (draw_box_timer > 180 && draw_box_timer < 270 && (button1_h() || button3_h()) && can_skip_timer > 10)
950
                draw_box_timer = 270;
951
            if (draw_box_timer == 270)
952
            {
953
                date_text2_char_number = 0;
954
                first_text = "";
955
                second_text = stringsetloc(
Oh, me! Let's never\nbe apart again!
"Oh, me! Let's never\nbe apart again!", "obj_date_controller_slash_Step_0_gml_593_0"
);
956
                talktimer = 10;
957
                portraitshakecon2 = 1;
958
                snd_play_delayed(71, 1, 1, 1);
959
                snd_play_delayed(71, 15, 1, 1.4);
960
            }
961
            if (draw_box_timer > 270 && draw_box_timer < 360 && (button1_h() || button3_h()) && can_skip_timer > 10)
962
                draw_box_timer = 360;
963
            if (draw_box_timer == 360)
964
            {
965
                snd_free_all();
966
                datetimeleftmax = 240;
967
                datetimeleft = datetimeleftmax;
968
                event_user(1);
969
                con = 8;
970
            }
971
        }
972
        else
973
        {
974
            datetimeleftmax = 240;
975
            datetimeleft = datetimeleftmax;
976
            event_user(1);
977
            second_text = questiontext;
978
            con = 2;
979
            stoptimer = false;
980
        }
981
    }
982
}
983
if (con == 2)
984
{
985
    if ((draw_box_con == 0 && boxalpha == 1) || (obj_pink_enemy.datecount == 4 && draw_box_con == -1))
986
    {
987
        var disable_left_right = false;
988
        if ((questioncount == 0 && obj_pink_enemy.datecount == 1) || obj_pink_enemy.datecount == 4)
989
            disable_left_right = true;
990
        if (obj_pink_enemy.datecount == 4 && draw_box_con == 0)
991
            draw_box_timer++;
992
        if (i_ex(obj_pink_enemy) && obj_pink_enemy.datecount == 2 && questioncount == 3)
993
        {
994
        }
995
        else
996
        {
997
            if ((left_h() && disable_left_right == false) || (obj_pink_enemy.datecount == 4 && draw_box_timer >= 30))
998
            {
999
                draw_box_con = -1;
1000
                snd_play_x(snd_menumove, 1, 0.8);
1001
                draw_box_timer = 0;
1002
                havent_moved_left_or_right = false;
1003
            }
1004
            if (right_h() && disable_left_right == false)
1005
            {
1006
                draw_box_con = 1;
1007
                snd_play_x(snd_menumove, 1, 0.8);
1008
                draw_box_timer = 0;
1009
                havent_moved_left_or_right = false;
1010
            }
1011
            if (up_h())
1012
            {
1013
                draw_box_con = 2;
1014
                if (obj_pink_enemy.datecount == 4)
1015
                    draw_box_con = 3;
1016
                else
1017
                    draw_box_timer = 0;
1018
                with (obj_marker)
1019
                {
1020
                    if (sprite_index == spr_pink_purple_arrow)
1021
                        instance_destroy();
1022
                }
1023
            }
1024
        }
1025
    }
1026
    if (draw_box_con == -1)
1027
    {
1028
        draw_box_timer++;
1029
        if (obj_pink_enemy.datecount == 4)
1030
        {
1031
            drawn_box_x_offset = lerp(0, -200, draw_box_timer / 30);
1032
            if (draw_box_timer >= 30)
1033
            {
1034
                draw_box_con = 0;
1035
                draw_box_timer = 29;
1036
                drawn_box_x_offset = 0;
1037
                draw_box_selected++;
1038
                if (draw_box_selected == boxcount)
1039
                    draw_box_selected = 0;
1040
            }
1041
        }
1042
        else
1043
        {
1044
            drawn_box_x_offset = lerp(0, -200, draw_box_timer / 5);
1045
            if (draw_box_timer == 5)
1046
            {
1047
                draw_box_con = 0;
1048
                draw_box_timer = 0;
1049
                drawn_box_x_offset = 0;
1050
                draw_box_selected++;
1051
                if (draw_box_selected == boxcount)
1052
                    draw_box_selected = 0;
1053
            }
1054
        }
1055
    }
1056
    if (draw_box_con == 1)
1057
    {
1058
        draw_box_timer++;
1059
        drawn_box_x_offset = lerp(0, 200, draw_box_timer / 5);
1060
        if (draw_box_timer == 5)
1061
        {
1062
            draw_box_con = 0;
1063
            draw_box_timer = 0;
1064
            drawn_box_x_offset = 0;
1065
            draw_box_selected--;
1066
            if (draw_box_selected == -1)
1067
                draw_box_selected = boxcount - 1;
1068
        }
1069
    }
1070
    if (draw_box_con == 2)
1071
    {
1072
        draw_box_timer++;
1073
        heart.y = lerp(390, 319, draw_box_timer / 3);
1074
        if (draw_box_timer >= 3)
1075
        {
1076
            draw_box_con = 0;
1077
            draw_box_timer = 0;
1078
            drawn_box_x_offset = 0;
1079
            choiceselected = draw_box_selected;
1080
        }
1081
    }
1082
    if (draw_box_con == 3)
1083
    {
1084
        if (draw_box_timer >= 15)
1085
            draw_box_con = 4;
1086
        else
1087
            draw_box_con = 5;
1088
    }
1089
    repeat (3)
1090
    {
1091
        if (draw_box_con == 4)
1092
        {
1093
            draw_box_timer++;
1094
            drawn_box_x_offset = lerp(0, -200, draw_box_timer / 30);
1095
            if (draw_box_timer >= 30)
1096
            {
1097
                drawn_box_x_offset = 0;
1098
                draw_box_timer = 0;
1099
                draw_box_selected++;
1100
                if (draw_box_selected == boxcount)
1101
                    draw_box_selected = 0;
1102
                draw_box_con = 2;
1103
            }
1104
        }
1105
        if (draw_box_con == 5)
1106
        {
1107
            draw_box_timer--;
1108
            drawn_box_x_offset = lerp(0, -200, draw_box_timer / 30);
1109
            if (draw_box_timer <= 0)
1110
            {
1111
                drawn_box_x_offset = 0;
1112
                draw_box_con = 2;
1113
            }
1114
        }
1115
    }
1116
    if (choiceselected > -1)
1117
    {
1118
        with (obj_marker)
1119
        {
1120
            if (sprite_index == spr_pink_purple_arrow)
1121
                instance_destroy();
1122
        }
1123
        if (choiceiscorrect[choiceselected] == 1)
1124
        {
1125
            con = 3;
1126
            timer = 0;
1127
            pinkportrait = choose(6742, 677, 2036);
1128
            pinkportrait2 = choose(4851, 2077);
1129
            if (obj_pink_enemy.datecount == 4)
1130
            {
1131
                sprite_set_offset(spr_pinkspeaker_shocked_origin_adjusted, 33, 10);
1132
                pinkportrait = 1086;
1133
                pinkportrait2 = 8463;
1134
            }
1135
            heartpathpos = 0;
1136
            sideselected = -1;
1137
            snd_stop(snd_coin);
1138
            snd_stop(snd_error);
1139
            snd_play(snd_coin);
1140
        }
1141
        else if (choiceiscorrect[choiceselected] == 2)
1142
        {
1143
            con = 5;
1144
            timer = 0;
1145
            pinkportrait = choose(6742, 677, 2036);
1146
            portraitshakecon = 1;
1147
            heartpathpos = 0;
1148
            sideselected = -1;
1149
            snd_stop(snd_coin);
1150
            snd_stop(snd_error);
1151
            snd_play(snd_error);
1152
        }
1153
        else if (choiceiscorrect[choiceselected] == 3)
1154
        {
1155
            con = 6;
1156
            timer = 0;
1157
            pinkportrait2 = choose(4851, 2077);
1158
            portraitshakecon2 = 1;
1159
            heartpathpos = 0;
1160
            sideselected = -1;
1161
            snd_stop(snd_coin);
1162
            snd_stop(snd_error);
1163
            snd_play(snd_error);
1164
        }
1165
        else
1166
        {
1167
            con = 4;
1168
            timer = 0;
1169
            heartpathpos = 0;
1170
            sideselected = -1;
1171
            snd_stop(snd_coin);
1172
            snd_stop(snd_error);
1173
            snd_stop(snd_mercyadd);
1174
            snd_play(snd_error);
1175
        }
1176
    }
1177
    if (questioncount == 0 && obj_pink_enemy.datecount == 1 && datetimeleft == 100 && rr == 0)
1178
    {
1179
        rr = 1;
1180
        with (obj_writer)
1181
            instance_destroy();
1182
        portraitshakecon = 1;
1183
        pinkportrait = 5428;
1184
        date_text_char_number = 0;
1185
        date_text2_char_number = 0;
1186
        snd_play_x(snd_pink_throw, 1, 1);
1187
        first_text = stringsetloc(
Hey, you aren't even gonna press UP!?
"Hey, you aren't even gonna press UP!?", "obj_date_controller_slash_Step_0_gml_800_0"
);
1188
    }
1189
    if ((questioncount == 1 || questioncount == 2) && obj_pink_enemy.datecount == 1 && havent_moved_left_or_right == true && datetimeleft == 90)
1190
    {
1191
        with (obj_writer)
1192
            instance_destroy();
1193
        portraitshakecon = 1;
1194
        pinkportrait = 5428;
1195
        date_text_char_number = 0;
1196
        date_text2_char_number = 0;
1197
        snd_play_x(snd_pink_throw, 1, 1);
1198
        first_text = stringsetloc(
PRESS RIGHT AND CHOOSE SOMETHING ELSE!
"PRESS RIGHT AND CHOOSE SOMETHING ELSE!", "obj_date_controller_slash_Step_0_gml_808_0"
);
1199
    }
1200
}
1201
if (con == 3)
1202
{
1203
    timer++;
1204
    if (timer == 1)
1205
    {
1206
        with (obj_dmgwriter)
1207
        {
1208
            if (type == 5)
1209
            {
1210
                x = camx + 320;
1211
                y = camy + 100;
1212
                ystart = camy + 100;
1213
                depth = other.depth - 120;
1214
            }
1215
        }
1216
        if (obj_pink_enemy.datecount > 1)
1217
            show_circle2 = 1;
1218
        show_circle1 = 1;
1219
        hero_state = "choose";
1220
    }
1221
    var c_lime2 = merge_color(darkpink, c_white, 0.5);
1222
    if (timer < 4)
1223
    {
1224
        bgrectangle1color = merge_color(bgrectangle1colorcurrent, lightpink, timer / 4);
1225
        bgrectangle2color = merge_color(bgrectangle2colorcurrent, medpink, timer / 4);
1226
        dialogueboxcolor = merge_color(dialogueboxcolorcurrent, c_lime2, timer / 4);
1227
        dialogueboxghostcolor = merge_color(dialogueboxcolorcurrent, darkpink, timer / 4);
1228
        choiceselectioncolor = merge_color(choiceselectioncolorcurrent, darkpink, timer / 4);
1229
        diamondbg_alpha = merge_color(diamondbg_alpha_current, #010000, timer / 4);
1230
    }
1231
    if (timer >= 4 && timer < 8)
1232
    {
1233
        bgrectangle1color = merge_color(lightpink, bgrectangle1colorcurrent, (timer - 3) / 4);
1234
        bgrectangle2color = merge_color(medpink, bgrectangle2colorcurrent, (timer - 3) / 4);
1235
        dialogueboxcolor = merge_color(c_lime2, dialogueboxcolorcurrent, (timer - 3) / 4);
1236
        dialogueboxghostcolor = merge_color(darkpink, dialogueboxghostcolorcurrent, (timer - 3) / 4);
1237
        choiceselectioncolor = merge_color(darkpink, choiceselectioncolorcurrent, (timer - 3) / 4);
1238
        diamondbg_alpha = merge_color(#010000, diamondbg_alpha_current, (timer - 3) / 4);
1239
    }
1240
    if (timer == (10 + questiondowntime))
1241
    {
1242
        pinkportrait = 5218;
1243
        pinkportrait2 = 7274;
1244
        timer = 0;
1245
        con = 1;
1246
        questioncount++;
1247
        questioncorrectcount++;
1248
        choiceselected = -1;
1249
        if (questiondowntime > 0)
1250
            questiondowntime--;
1251
        datetimeleft = datetimeleftmax;
1252
        if ((questioncount == 1 && obj_pink_enemy.datecount == 1 && global.flag[1706] == 0) || (questioncount == 2 && obj_pink_enemy.datecount == 1 && global.flag[1706] == 0))
1253
        {
1254
            date_text_char_number = 0;
1255
            date_text2_char_number = 0;
1256
        }
1257
        if (obj_pink_enemy.datecount == 1 && questioncount == 1 && global.flag[1706] == 1)
1258
            pinkportrait = 2687;
1259
        if (obj_pink_enemy.datecount == 4)
1260
        {
1261
            pinkportrait = 2588;
1262
            pinkportrait2 = 3412;
1263
            if (questioncount == 3)
1264
                pinkportrait2 = 6060;
1265
        }
1266
        heart.x = 319;
1267
        heart.y = 385;
1268
        first_text = "";
1269
        second_text = "";
1270
        event_user(1);
1271
        show_circle1 = 0;
1272
        show_circle2 = 0;
1273
    }
1274
}
1275
else if (con == 4)
1276
{
1277
    timer++;
1278
    if (timer == 1)
1279
    {
1280
        show_circle1 = 2;
1281
        if (obj_pink_enemy.datecount > 1)
1282
            show_circle2 = 2;
1283
        hero_state = "choose";
1284
    }
1285
    if (timer < 4)
1286
    {
1287
        bgrectangle1color = merge_color(bgrectangle1colorcurrent, c_orange, timer / 4);
1288
        bgrectangle2color = merge_color(bgrectangle2colorcurrent, c_orange, timer / 4);
1289
        dialogueboxcolor = merge_color(dialogueboxcolorcurrent, c_red, timer / 4);
1290
        dialogueboxghostcolor = merge_color(dialogueboxghostcolorcurrent, c_red, timer / 4);
1291
        choiceselectioncolor = merge_color(choiceselectioncolorcurrent, c_red, timer / 4);
1292
        diamondbg_red_alpha = merge_color(c_black, #010000, timer / 4);
1293
    }
1294
    if (timer >= 4 && timer < 7)
1295
    {
1296
        bgrectangle1color = merge_color(c_orange, bgrectangle1colorcurrent, (timer - 3) / 4);
1297
        bgrectangle2color = merge_color(c_orange, bgrectangle2colorcurrent, (timer - 3) / 4);
1298
        dialogueboxcolor = merge_color(c_red, dialogueboxcolorcurrent, (timer - 3) / 4);
1299
        dialogueboxghostcolor = merge_color(c_red, dialogueboxghostcolorcurrent, (timer - 3) / 4);
1300
        choiceselectioncolor = merge_color(c_red, choiceselectioncolorcurrent, (timer - 3) / 4);
1301
        diamondbg_red_alpha = merge_color(#010000, c_black, (timer - 3) / 4);
1302
    }
1303
    if (timer == 10)
1304
        snd_play(snd_pink_throw2);
1305
    if (timer == 10)
1306
        pinkportrait = 5428;
1307
    if (timer == 10)
1308
        pinkportrait2 = 7504;
1309
    if (timer == 10 && obj_pink_enemy.datecount >= 2)
1310
        pinkportrait = 5428;
1311
    if (timer == 10 && obj_pink_enemy.datecount >= 2)
1312
        pinkportrait2 = 7504;
1313
    if (timer == 10)
1314
    {
1315
        portraitshakecon = 1;
1316
        portraitshaketimer = 0;
1317
        snd_stop(snd_awkward);
1318
        snd_play(snd_awkward);
1319
    }
1320
    if (timer >= 10 && timer < 16)
1321
    {
1322
        if (obj_pink_enemy.datecount == 1)
1323
        {
1324
            idiottext_x = lerp(camx + 320, camx + 320, (timer - 10) / 5);
1325
            idiottext_y = lerp(camy + 160, camy + 190, (timer - 10) / 5);
1326
        }
1327
        else
1328
        {
1329
            idiottext_x = lerp(camx + 220, camx + 220, (timer - 10) / 5);
1330
            idiottext_y = lerp(camy + 160, camy + 190, (timer - 10) / 5);
1331
        }
1332
        if (obj_pink_enemy.datecount != 1)
1333
        {
1334
            idiottext2_x = lerp(camx + 420, camx + 420, (timer - 10) / 5);
1335
            idiottext2_y = lerp(camy + 160, camy + 190, (timer - 10) / 5);
1336
        }
1337
    }
1338
    if (timer >= 36 && timer < 41)
1339
    {
1340
        if (obj_pink_enemy.datecount == 1)
1341
        {
1342
            idiottext_x = lerp(camx + 320, heart.x + 10, (timer - 36) / 5);
1343
            idiottext_y = lerp(camy + 190, heart.y + 10, (timer - 36) / 5);
1344
        }
1345
        else
1346
        {
1347
            idiottext_x = lerp(camx + 220, heart.x + 10, (timer - 36) / 5);
1348
            idiottext_y = lerp(camy + 190, heart.y + 10, (timer - 36) / 5);
1349
        }
1350
        if (obj_pink_enemy.datecount != 1)
1351
        {
1352
            idiottext2_x = lerp(camx + 420, heart.x + 10, (timer - 36) / 5);
1353
            idiottext2_y = lerp(camy + 190, heart.y + 10, (timer - 36) / 5);
1354
        }
1355
    }
1356
    if (timer == 41)
1357
    {
1358
        heartstatus[questioncount] = 1;
1359
        timer = 0;
1360
        con = 1;
1361
        choiceselected = -1;
1362
        pinkportrait = 5218;
1363
        pinkportrait2 = 7274;
1364
        datetimeleft = datetimeleftmax;
1365
        if (obj_pink_enemy.datecount == 4)
1366
        {
1367
            pinkportrait = saveportrait1;
1368
            pinkportrait2 = saveportrait2;
1369
        }
1370
        idiottext_x = camx + 320;
1371
        idiottext_y = camy + 140;
1372
        heart.x = 319;
1373
        heart.y = 385;
1374
        event_user(0);
1375
        show_circle1 = 0;
1376
        show_circle2 = 0;
1377
    }
1378
}
1379
else if (con == 5)
1380
{
1381
    timer++;
1382
    if (timer == 1)
1383
    {
1384
        with (obj_dmgwriter)
1385
        {
1386
            if (type == 5)
1387
            {
1388
                x = camx + 320;
1389
                y = camy + 100;
1390
                ystart = camy + 100;
1391
                depth = other.depth - 120;
1392
            }
1393
        }
1394
        show_circle1 = 1;
1395
        show_circle2 = 2;
1396
        hero_state = "choose";
1397
    }
1398
    if (timer < 4)
1399
    {
1400
        bgrectangle1color = merge_color(bgrectangle1colorcurrent, c_orange, timer / 4);
1401
        bgrectangle2color = merge_color(bgrectangle2colorcurrent, c_orange, timer / 4);
1402
        dialogueboxcolor = merge_color(choiceselectioncolorcurrent, darkpink, timer / 4);
1403
        dialogueboxghostcolor = merge_color(choiceselectioncolorcurrent, c_red, timer / 4);
1404
        choiceselectioncolor = merge_color(choiceselectioncolorcurrent, c_red, timer / 4);
1405
        diamondbg_alpha = merge_color(diamondbg_alpha_current, #010000, timer / 4);
1406
    }
1407
    if (timer >= 4 && timer < 7)
1408
    {
1409
        bgrectangle1color = merge_color(c_orange, bgrectangle1colorcurrent, (timer - 3) / 4);
1410
        bgrectangle2color = merge_color(c_orange, bgrectangle2colorcurrent, (timer - 3) / 4);
1411
        dialogueboxcolor = merge_color(darkpink, dialogueboxcolorcurrent, (timer - 3) / 4);
1412
        dialogueboxghostcolor = merge_color(c_red, dialogueboxcolorcurrent, (timer - 3) / 4);
1413
        choiceselectioncolor = merge_color(c_red, choiceselectioncolorcurrent, (timer - 3) / 4);
1414
        diamondbg_alpha = merge_color(#010000, diamondbg_alpha_current, (timer - 3) / 4);
1415
    }
1416
    if (timer == 10)
1417
        snd_play(snd_pink_throw2);
1418
    if (timer == 10)
1419
        pinkportrait2 = 7504;
1420
    if (timer == 10)
1421
    {
1422
        portraitshakecon2 = 1;
1423
        portraitshaketimer2 = 0;
1424
        snd_stop(snd_awkward);
1425
        snd_play(snd_awkward);
1426
    }
1427
    if (timer >= 10 && timer < 16)
1428
    {
1429
        idiottext_x = lerp(camx + 420, camx + 420, (timer - 10) / 5);
1430
        idiottext_y = lerp(camy + 160, camy + 190, (timer - 10) / 5);
1431
    }
1432
    if (timer >= 36 && timer < 41)
1433
    {
1434
        idiottext_x = lerp(camx + 420, heart.x + 10, (timer - 36) / 5);
1435
        idiottext_y = lerp(camy + 190, heart.y + 10, (timer - 36) / 5);
1436
    }
1437
    if (timer == 41)
1438
    {
1439
        heartstatus[questioncount] = 6;
1440
        timer = 0;
1441
        con = 1;
1442
        choiceselected = -1;
1443
        pinkportrait = 5218;
1444
        pinkportrait2 = 7504;
1445
        idiottext_x = camx + 320;
1446
        idiottext_y = camy + 140;
1447
        if (obj_pink_enemy.datecount == 4)
1448
        {
1449
            pinkportrait = saveportrait1;
1450
            pinkportrait2 = saveportrait2;
1451
        }
1452
        heart.x = 319;
1453
        heart.y = 385;
1454
        event_user(0);
1455
        if (questiondowntime > 0)
1456
            questiondowntime--;
1457
        datetimeleft = datetimeleftmax;
1458
        show_circle1 = 0;
1459
        show_circle2 = 0;
1460
        with (obj_writer)
1461
            instance_destroy();
1462
    }
1463
}
1464
else if (con == 6)
1465
{
1466
    timer++;
1467
    if (timer == 1)
1468
    {
1469
        show_circle1 = 2;
1470
        show_circle2 = 1;
1471
        with (obj_dmgwriter)
1472
        {
1473
            if (type == 5)
1474
            {
1475
                x = camx + 320;
1476
                y = camy + 100;
1477
                ystart = camy + 100;
1478
                depth = other.depth - 120;
1479
            }
1480
        }
1481
        hero_state = "choose";
1482
    }
1483
    if (timer < 4)
1484
    {
1485
        bgrectangle1color = merge_color(bgrectangle1colorcurrent, c_orange, timer / 4);
1486
        bgrectangle2color = merge_color(bgrectangle2colorcurrent, c_orange, timer / 4);
1487
        dialogueboxcolor = merge_color(choiceselectioncolorcurrent, c_red, timer / 4);
1488
        dialogueboxghostcolor = merge_color(choiceselectioncolorcurrent, darkpink, timer / 4);
1489
        choiceselectioncolor = merge_color(choiceselectioncolorcurrent, c_red, timer / 4);
1490
        diamondbg_alpha = merge_color(diamondbg_alpha_current, #010000, timer / 4);
1491
    }
1492
    if (timer >= 4 && timer < 7)
1493
    {
1494
        bgrectangle1color = merge_color(c_orange, bgrectangle1colorcurrent, (timer - 3) / 4);
1495
        bgrectangle2color = merge_color(c_orange, bgrectangle2colorcurrent, (timer - 3) / 4);
1496
        dialogueboxcolor = merge_color(c_red, dialogueboxcolorcurrent, (timer - 3) / 4);
1497
        dialogueboxghostcolor = merge_color(darkpink, dialogueboxcolorcurrent, (timer - 3) / 4);
1498
        choiceselectioncolor = merge_color(c_red, choiceselectioncolorcurrent, (timer - 3) / 4);
1499
        diamondbg_alpha = merge_color(#010000, diamondbg_alpha_current, (timer - 3) / 4);
1500
    }
1501
    if (timer == 10)
1502
        snd_play(snd_pink_throw2);
1503
    if (timer == 10)
1504
        pinkportrait = 5428;
1505
    if (timer == 10)
1506
    {
1507
        portraitshakecon = 1;
1508
        portraitshaketimer = 0;
1509
        snd_stop(snd_awkward);
1510
        snd_play(snd_awkward);
1511
    }
1512
    if (timer >= 10 && timer < 16)
1513
    {
1514
        idiottext2_x = lerp(camx + 220, camx + 220, (timer - 10) / 5);
1515
        idiottext2_y = lerp(camy + 160, camy + 190, (timer - 10) / 5);
1516
    }
1517
    if (timer >= 36 && timer < 41)
1518
    {
1519
        idiottext2_x = lerp(camx + 220, heart.x + 10, (timer - 36) / 5);
1520
        idiottext2_y = lerp(camy + 190, heart.y + 10, (timer - 36) / 5);
1521
    }
1522
    if (timer == 41)
1523
    {
1524
        heartstatus[questioncount] = 7;
1525
        timer = 0;
1526
        con = 1;
1527
        choiceselected = -1;
1528
        pinkportrait = 5218;
1529
        pinkportrait2 = 7274;
1530
        idiottext2_x = camx + 320;
1531
        idiottext2_y = camy + 140;
1532
        if (obj_pink_enemy.datecount == 4)
1533
        {
1534
            pinkportrait = saveportrait1;
1535
            pinkportrait2 = saveportrait2;
1536
        }
1537
        heart.x = 319;
1538
        heart.y = 385;
1539
        event_user(0);
1540
        if (questiondowntime > 0)
1541
            questiondowntime--;
1542
        datetimeleft = datetimeleftmax;
1543
        show_circle1 = 0;
1544
        show_circle2 = 0;
1545
        with (obj_writer)
1546
            instance_destroy();
1547
    }
1548
}
1549
else if (con == 7)
1550
{
1551
    if (minigame_con == 0)
1552
    {
1553
        surface1_x -= grav;
1554
        surface2_x += grav;
1555
        grav += 4;
1556
    }
1557
    with (obj_marker)
1558
    {
1559
        if (sprite_index == spr_pink_purple_arrow)
1560
            image_alpha -= 0.2;
1561
        if (sprite_index == spr_pink_purple_arrow && image_alpha < 0)
1562
            instance_destroy();
1563
    }
1564
    with (obj_pink_enemy)
1565
    {
1566
        x = xstart;
1567
        y = ystart;
1568
    }
1569
    if ((surface1_x + grav) <= (camx - 320))
1570
    {
1571
        timer++;
1572
        if (timer == 1 && minigame_won == true)
1573
        {
1574
            with (obj_pink_enemy)
1575
                doki = 0;
1576
            with (obj_pink_enemy)
1577
                explosioncon = 1;
1578
            with (obj_pink_enemy)
1579
                idlesprite = spr_pink_shocked;
1580
            with (obj_tensionbar)
1581
            {
1582
                if (i_ex(obj_pink_enemy) && obj_pink_enemy.datecount != 3)
1583
                {
1584
                    maxtensionlimitpercent = 8;
1585
                    maxtensionlimit = 20;
1586
                    global.tension = 0;
1587
                    current = 0;
1588
                    apparent = 0;
1589
                }
1590
            }
1591
        }
1592
        if (timer >= 20)
1593
        {
1594
            if (minigame_won == true)
1595
            {
1596
                with (obj_pink_enemy)
1597
                    phaseturns = 0;
1598
                with (obj_pink_enemy)
1599
                    looping = false;
1600
            }
1601
            else
1602
            {
1603
                if (i_ex(obj_pink_enemy))
1604
                {
1605
                    if (obj_pink_enemy.datecount == 0)
1606
                        
scr_tensionheal
scr_tensionheal

function
scr_tensionheal(arg0)
{ global.tension += arg0; if (global.tension > global.maxtension) global.tension = global.maxtension; if (global.chapter == 5 && i_ex(obj_tensionbar) && global.tension > obj_tensionbar.maxtensionlimit) global.tension = obj_tensionbar.maxtensionlimit; }
(round(lerp(0, 125, questioncorrectcount / 15)));
1607
                    if (obj_pink_enemy.datecount == 1)
1608
                        
scr_tensionheal
scr_tensionheal

function
scr_tensionheal(arg0)
{ global.tension += arg0; if (global.tension > global.maxtension) global.tension = global.maxtension; if (global.chapter == 5 && i_ex(obj_tensionbar) && global.tension > obj_tensionbar.maxtensionlimit) global.tension = obj_tensionbar.maxtensionlimit; }
(round(lerp(0, 125, questioncorrectcount / 13)));
1609
                    if (obj_pink_enemy.datecount == 2)
1610
                        
scr_tensionheal
scr_tensionheal

function
scr_tensionheal(arg0)
{ global.tension += arg0; if (global.tension > global.maxtension) global.tension = global.maxtension; if (global.chapter == 5 && i_ex(obj_tensionbar) && global.tension > obj_tensionbar.maxtensionlimit) global.tension = obj_tensionbar.maxtensionlimit; }
(round(lerp(0, 125, questioncorrectcount / 15)));
1611
                    if (obj_pink_enemy.datecount == 3)
1612
                        
scr_tensionheal
scr_tensionheal

function
scr_tensionheal(arg0)
{ global.tension += arg0; if (global.tension > global.maxtension) global.tension = global.maxtension; if (global.chapter == 5 && i_ex(obj_tensionbar) && global.tension > obj_tensionbar.maxtensionlimit) global.tension = obj_tensionbar.maxtensionlimit; }
(round(lerp(0, 125, questioncorrectcount / 10)));
1613
                }
1614
                with (obj_pink_enemy)
1615
                    datecount--;
1616
            }
1617
        }
1618
        if (timer >= 40)
1619
            instance_destroy();
1620
    }
1621
}
1622
else if (con == 8)
1623
{
1624
    timer++;
1625
    if (timer == 1)
1626
        snd_play(snd_cymbal_reverse);
1627
    if (timer == 10)
1628
    {
1629
        first_text = "";
1630
        second_text = "";
1631
    }
1632
    if (timer == 30)
1633
    {
1634
        with (obj_writer)
1635
            instance_destroy();
1636
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("pinkportrait2_x", pinkportrait2_x, 210, 150, 1, "in");
1637
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("pinkportrait_x", pinkportrait_x, 434, 374, 1, "in");
1638
        __fadeouter = instance_create(camx - 200, camy - 200, obj_fadeout);
1639
        __fadeouter.fadespeed = 0.006666666666666667;
1640
        if (i_ex(obj_date_heart))
1641
            __fadeouter.depth = obj_date_heart.depth - 9999;
1642
        __fadeouter.image_blend = c_white;
1643
    }
1644
    if (timer == 132)
1645
        snd_play_x(snd_boost, 1, 0.9);
1646
    if (timer == 144)
1647
        snd_play_x(snd_boost, 0.6, 0.9);
1648
    if (timer == 156)
1649
        snd_play_x(snd_boost, 0.3, 0.9);
1650
    if (timer == 168)
1651
        snd_play_x(snd_boost, 0.1, 0.9);
1652
    if (timer == 180)
1653
        snd_play_x(snd_boost, 0.05, 0.9);
1654
    if (timer == 211)
1655
    {
1656
        with (obj_darkener)
1657
            instance_destroy();
1658
        with (obj_battlecontroller)
1659
            skipvictory = 1;
1660
        
scr_wincombat
scr_wincombat

function
scr_wincombat()
{ if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1) { global.myfight = 7; global.mnfight = -1; with (obj_battlecontroller) victory = 1; for (i = 0; i < 3; i += 1) { if (global.monster[i] == 1 && i_ex(global.monsterinstance[i])) { with (global.monsterinstance[i])
scr_monsterdefeat();
} } } else { for (i = 0; i < 3; i += 1) { if (global.monster[i] == 1 && i_ex(global.monsterinstance[i])) { with (global.monsterinstance[i])
scr_monsterdefeat();
} } global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0; for (__j = 0; __j < 3; __j++) { if (global.monstertype[__j] != 0(None)) { _newmonster =
scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800; global.monsterinstance[_newmonster].y = global.monstermakey[__j]; with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
} } global.myfight = 5; myfightreturntimer = 15; global.mnfight = -1; } }
();
1661
        instance_destroy();
1662
        __fadeouter = instance_create(camx - 200, camy - 200, obj_fadein);
1663
        if (i_ex(obj_date_heart))
1664
            __fadeouter.depth = obj_date_heart.depth - 9999;
1665
        __fadeouter.image_blend = c_white;
1666
        __fadeouter.image_alpha = 3.1;
1667
        __fadeouter.fadespeed = -0.04;
1668
        with (obj_fadeout)
1669
            instance_destroy();
1670
        with (obj_date_heart)
1671
            instance_destroy();
1672
        with (obj_writer)
1673
            instance_destroy();
1674
    }
1675
}
1676
else
1677
{
1678
    bgrectangle1color = bgrectangle1colorcurrent;
1679
    bgrectangle2color = bgrectangle2colorcurrent;
1680
    dialogueboxcolor = dialogueboxcolorcurrent;
1681
    choiceselectioncolor = choiceselectioncolorcurrent;
1682
}
1683
if (portraitshakecon == 1 && portraitscon == 0)
1684
{
1685
    if (portraitscon > 0 || con == 0 || con == 7)
1686
    {
1687
        portraitshakecon = 0;
1688
        portraitshaketimer = 0;
1689
    }
1690
    else
1691
    {
1692
        if (portraitshaketimer == 0)
1693
            pinkportrait_x += 4;
1694
        if (portraitshaketimer == 1)
1695
            pinkportrait_x -= 7;
1696
        if (portraitshaketimer == 2)
1697
            pinkportrait_x += 5;
1698
        if (portraitshaketimer == 3)
1699
            pinkportrait_x -= 3;
1700
        if (portraitshaketimer == 4)
1701
            pinkportrait_x += 1;
1702
        portraitshaketimer++;
1703
        if (portraitshaketimer == 4)
1704
        {
1705
            if (obj_pink_enemy.datecount == 1)
1706
                pinkportrait_x = 210;
1707
            if (obj_pink_enemy.datecount == 2)
1708
            {
1709
                if (pinkportraitalpha2 == 0)
1710
                    pinkportrait_x = 210;
1711
                else
1712
                    pinkportrait_x = 99;
1713
            }
1714
            if (obj_pink_enemy.datecount == 3)
1715
                pinkportrait_x = 99;
1716
            if (obj_pink_enemy.datecount == 4)
1717
                pinkportrait_x = 99;
1718
            portraitshaketimer = 0;
1719
            portraitshakecon = 0;
1720
        }
1721
    }
1722
}
1723
if (portraitshakecon2 == 1 && portraitscon == 0)
1724
{
1725
    if (portraitscon > 0 || con == 0 || con == 7)
1726
    {
1727
        portraitshakecon2 = 0;
1728
        portraitshaketimer2 = 0;
1729
    }
1730
    else
1731
    {
1732
        if (portraitshaketimer2 == 0)
1733
            pinkportrait2_x += 4;
1734
        if (portraitshaketimer2 == 1)
1735
            pinkportrait2_x -= 7;
1736
        if (portraitshaketimer2 == 2)
1737
            pinkportrait2_x += 5;
1738
        if (portraitshaketimer2 == 3)
1739
            pinkportrait2_x -= 3;
1740
        if (portraitshaketimer2 == 4)
1741
            pinkportrait2_x += 1;
1742
        portraitshaketimer2++;
1743
        if (portraitshaketimer2 == 4)
1744
        {
1745
            if (obj_pink_enemy.datecount == 4)
1746
                pinkportrait2_x = camx + 300;
1747
            portraitshaketimer2 = 0;
1748
            portraitshakecon2 = 0;
1749
        }
1750
    }
1751
}
1752
if (portraitscon == 1)
1753
{
1754
    portraitstimer++;
1755
    if (portraitstimer == 1)
1756
        snd_play(snd_ghostappear);
1757
    if (portraitstimer == 1)
1758
        snd_play(snd_ghostappear);
1759
    if (portraitstimer == 1)
1760
        snd_play(snd_ghostappear);
1761
    if (obj_pink_enemy.datecount == 3 || obj_pink_enemy.datecount == 4)
1762
    {
1763
        if (portraitstimer == 1)
1764
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("pinkportrait_x", 200, 100, 20, -1, "out");
1765
        if (portraitstimer == 1)
1766
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("pinkportrait2_x", 414, 524, 20, -1, "out");
1767
        if (obj_pink_enemy.datecount == 4)
1768
            pinkportraitalpha2 += 0.2;
1769
    }
1770
    else
1771
    {
1772
        if (portraitstimer == 1)
1773
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("pinkportrait_x", 210, 100, 20, -1, "out");
1774
        if (portraitstimer == 1)
1775
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("pinkportrait2_x", 210, 300, 20, -1, "out");
1776
    }
1777
    if ((portraitstimer % 2) == 0)
1778
    {
1779
        portraitvisibility = true;
1780
        portrait2visibility = false;
1781
    }
1782
    else
1783
    {
1784
        portrait2visibility = true;
1785
        portraitvisibility = false;
1786
    }
1787
    if (obj_pink_enemy.datecount == 3 && portraitstimer == 22)
1788
    {
1789
        portrait2_xscale = 2;
1790
        pinkportrait2_x -= 224;
1791
    }
1792
    if (obj_pink_enemy.datecount == 4 && portraitstimer == 22)
1793
    {
1794
        portrait2_xscale = 2;
1795
        pinkportrait2_x -= 224;
1796
        global.currentsong[0] = snd_init("mus_confession.ogg");
1797
        global.currentsong[1] = mus_loop(global.currentsong[0]);
1798
    }
1799
    if (portraitstimer == 31)
1800
    {
1801
        portraitvisibility = true;
1802
        portrait2visibility = true;
1803
        portraitstimer = 0;
1804
        portraitscon = 0;
1805
    }
1806
}
1807
if (sweatcon == 1)
1808
{
1809
    sweattimer++;
1810
    if (sweattimer == 3)
1811
        sweatindex = 1;
1812
    if (sweattimer == 6)
1813
        sweatindex = 2;
1814
    if (sweattimer == 80)
1815
    {
1816
        sweattimer = 0;
1817
        sweatcon = 0;
1818
    }
1819
}
1820
if (sweatcon2 == 1)
1821
{
1822
    sweattimer2++;
1823
    if (sweattimer2 == 3)
1824
        sweatindex2 = 1;
1825
    if (sweattimer2 == 6)
1826
        sweatindex2 = 2;
1827
    if (sweattimer2 == 80)
1828
    {
1829
        sweattimer2 = 0;
1830
        sweatcon2 = 0;
1831
    }
1832
}
1833
if (datetimeleft > 0)
1834
{
1835
    if (con == 2 && draw_box_con == 0 && obj_pink_enemy.datecount != 3 && obj_pink_enemy.datecount != 4)
1836
        datetimeleft -= 1;
1837
    if (
scr_debug
scr_debug

function
scr_debug()
{ return global.debug == 1; }
() && sunkus_kb_check_pressed(ord("V")))
1838
        minigame_won = true;
1839
    if (datetimeleft < 0)
1840
        datetimeleft = 0;
1841
}
1842
if (minigame_won == true)
1843
{
1844
    if (dialoguebox_alpha > 0)
1845
    {
1846
        dialoguebox_alpha -= 0.2;
1847
        with (obj_tensionbar)
1848
        {
1849
            if (i_ex(obj_pink_enemy) && obj_pink_enemy.datecount != 3)
1850
            {
1851
                maxtensionlimitpercent = 8;
1852
                maxtensionlimit = 20;
1853
                global.tension = 0;
1854
                current = 0;
1855
                apparent = 0;
1856
            }
1857
        }
1858
    }
1859
    else if (con != 7)
1860
    {
1861
        con = 7;
1862
        timer = 0;
1863
        with (obj_date_heart)
1864
            instance_destroy();
1865
        with (obj_writer)
1866
            instance_destroy();
1867
        first_text = "";
1868
        second_text = "";
1869
    }
1870
}
1871
if (datetimeleft <= 0 && con == 2)
1872
{
1873
    if (questioncount == 1 && obj_pink_enemy.datecount == 1 && global.flag[1706] == 0)
1874
        first_text = "";
1875
    con = 4;
1876
    timer = 0;
1877
    heartpathpos = 0;
1878
    sideselected = -1;
1879
    snd_stop(snd_coin);
1880
    snd_stop(snd_error);
1881
    snd_stop(snd_mercyadd);
1882
    snd_play(snd_error);
1883
    with (obj_marker)
1884
    {
1885
        if (sprite_index == spr_pink_purple_arrow)
1886
            instance_destroy();
1887
    }
1888
}