Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b1push2_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    if (i_ex(obj_board_tree_static))
4
    {
5
        var image_ind = obj_board_tree_static.image_index;
6
        hazard[0] = instance_create(x + 320, y + 64, obj_board_tree_static);
7
        hazard[1] = instance_create(x + 320, y + 96, obj_board_tree_static);
8
        hazard[0].image_index = image_ind;
9
        hazard[1].image_index = image_ind;
10
        init = 1;
11
    }
12
}
13
if (kr == 0)
14
{
15
    with (obj_mainchara_board)
16
    {
17
        if (name == "kris")
18
            other.kr = id;
19
    }
20
}
21
if (su == 0)
22
{
23
    with (obj_mainchara_board)
24
    {
25
        if (name == "susie")
26
            other.su = id;
27
    }
28
}
29
if (ra == 0)
30
{
31
    with (obj_mainchara_board)
32
    {
33
        if (name == "ralsei")
34
            other.ra = id;
35
    }
36
}
37
kris = kr;
38
susie = su;
39
ralsei = ra;
40
if (tenna == 0)
41
{
42
    with (obj_actor_tenna)
43
        other.tenna = id;
44
}
45
if (susiereal == 0)
46
{
47
    with (obj_caterpillarchara)
48
    {
49
        if (name == "susie")
50
            other.susiereal = id;
51
    }
52
}
53
if (ralseireal == 0)
54
{
55
    with (obj_caterpillarchara)
56
    {
57
        if (name == "ralsei")
58
            other.ralseireal = id;
59
    }
60
}
61
if (krisreal == 0)
62
{
63
    with (obj_mainchara)
64
        other.krisreal = id;
65
}
66
ra_real = ralseireal;
67
su_real = susiereal;
68
kr_real = krisreal;
69
if (active == 1)
70
{
71
    if (wither == 0)
72
    {
73
        if (obj_board_oasis.wither)
74
        {
75
            wither = 1;
76
            debug_print("withercheck");
77
            if (i_ex(hazard[0]))
78
                hazard[0].sprite_index = spr_board_tree_withered;
79
            if (i_ex(hazard[1]))
80
                hazard[1].sprite_index = spr_board_tree_withered;
81
        }
82
    }
83
    maketimer = 0;
84
    if (solved == 0)
85
    {
86
        if (stucktrigger == 1)
87
        {
88
            if (!i_ex(obj_bpush2_stucktrigger))
89
            {
90
                stucktrigger = 2;
91
                stucktriggertimer = 0;
92
            }
93
        }
94
        if (stucktrigger == 2)
95
        {
96
            stucktriggertimer++;
97
            if (stucktriggertimer == 1)
98
                snd_play(snd_error);
99
            if (stucktriggertimer == 30)
100
            {
101
                tenna.bounce = 1;
102
                var tetalk = stringsetloc(
Ooh, that's gotta hurt, folks!
"Ooh, that's gotta hurt, folks!", "obj_b1push2_slash_Step_0_gml_57_0"
);
103
                if (obj_bpush1.timeresult == 1)
104
                    tetalk = stringsetloc(
Child's play!? I meant baby's work! This is bad, folks!
"Child's play!? I meant baby's work! This is bad, folks!", "obj_b1push2_slash_Step_0_gml_58_0"
);
105
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 120);
106
                snd_play_delay(snd_laughtrack_short_temp, 10);
107
                stucktrigger = 0;
108
                stucktriggertimer = 0;
109
            }
110
        }
111
        if (stucktrigger == 0)
112
            stucktriggertimer++;
113
        if (con == 0 && obj_board_camera.con == 0)
114
        {
115
            ra.follow = 1;
116
            var letsstart = 0;
117
            with (kr)
118
            {
119
                if (place_meeting(x, y, obj_board_trigger))
120
                {
121
                    var trig = instance_place(x, y, obj_board_trigger);
122
                    if (trig.extflag == "push2")
123
                        letsstart = 1;
124
                }
125
            }
126
            if (letsstart == 1)
127
            {
128
                global.interact = 1;
129
                with (obj_board_trigger)
130
                {
131
                    if (extflag == "push2")
132
                        instance_destroy();
133
                }
134
                with (su)
135
                {
136
                    
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("susie");
137
                    if (y < 80)
138
                        y = 80;
139
                    if (x < 160)
140
                        x = 160;
141
                }
142
                with (ra)
143
                {
144
                    if (y < 80)
145
                        y = 80;
146
                    if (x < 160)
147
                        x = 160;
148
                    
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("ralsei");
149
                    follow = 0;
150
                }
151
                hazard[2] = instance_create(x + 128, y - 32, obj_board_tree_static);
152
                hazard[3] = instance_create(x + 160, y - 32, obj_board_tree_static);
153
                hazard[4] = instance_create(x + -32, y + 64, obj_board_tree_static);
154
                hazard[5] = instance_create(x + -32, y + 96, obj_board_tree_static);
155
                hazard[6] = instance_create(x + 128, y + 192, obj_board_tree_static);
156
                hazard[7] = instance_create(x + 160, y + 192, obj_board_tree_static);
157
                for (var i = 4; i < 8; i++)
158
                {
159
                    with (hazard[i])
160
                    {
161
                        with (instance_create(x, y, obj_board_smokepuff))
162
                            
scr_depth_board
scr_depth_board

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
163
                    }
164
                }
165
                hazard[2].image_index = hazard[0].image_index;
166
                hazard[3].image_index = hazard[0].image_index;
167
                hazard[4].image_index = hazard[0].image_index;
168
                hazard[5].image_index = hazard[0].image_index;
169
                hazard[6].image_index = hazard[0].image_index;
170
                hazard[7].image_index = hazard[0].image_index;
171
                if (wither)
172
                {
173
                    for (var i = 0; i < array_length(hazard); i++)
174
                        hazard[i].sprite_index = spr_board_tree_withered;
175
                }
176
                snd_play_pitch(snd_impact_bc, 0.6);
177
                snd_play_pitch(snd_impact_bc, 1.2);
178
                timer = 0;
179
                con = 1;
180
            }
181
        }
182
        if (con == 1)
183
        {
184
            timer++;
185
            if (timer == 5)
186
            {
187
                global.interact = 0;
188
                timer = 0;
189
                con = 2;
190
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("ralsei", 5, 4, 0);
191
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("susie", 8, 4, 0);
192
            }
193
        }
194
        if (con == 2)
195
        {
196
            timer++;
197
            if (timer == 1)
198
            {
199
                tenna.bounce = 1;
200
                var tetalk = stringsetloc(
Another puzzle! Child's play for our heroes!
"Another puzzle! Child's play for our heroes!", "obj_b1push2_slash_Step_0_gml_162_0"
);
201
                if (obj_bpush1.timeresult == 2)
202
                    tetalk = stringsetloc(
Puzzle two!! Get ready for a long one, folks!
"Puzzle two!! Get ready for a long one, folks!", "obj_b1push2_slash_Step_0_gml_164_0"
);
203
                if (obj_bpush1.timeresult == 3)
204
                    tetalk = stringsetloc(
Puzzle two!? Can they finish it within the episode!?
"Puzzle two!? Can they finish it within the episode!?", "obj_b1push2_slash_Step_0_gml_166_0"
);
205
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 160);
206
            }
207
        }
208
        if (wrongwaycon == 0)
209
        {
210
            with (obj_bpush2_stucktrigger_alt)
211
            {
212
                if (place_meeting(x, y, obj_pushableblock_board))
213
                    other.wrongwaycon = 1;
214
            }
215
            wrongwaytimer = 0;
216
        }
217
        if (wrongwaycon == 1)
218
        {
219
            wrongwaytimer++;
220
            if (wrongwaytimer == 1)
221
                snd_play(snd_error);
222
            if (wrongwaytimer == 35)
223
            {
224
                tenna.bounce = 1;
225
                var tetalk = stringsetloc(
Whoops! Not that way!!!
"Whoops! Not that way!!!", "obj_b1push2_slash_Step_0_gml_192_0"
);
226
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 90);
227
                snd_play(snd_slidewhistle);
228
                snd_play_delay(snd_laughtrack_short_temp, 10);
229
                wrongwaytimer = 0;
230
                wrongwaycon = 2;
231
            }
232
        }
233
        if (wrongwaycon == 2)
234
        {
235
            var wrongcount = 0;
236
            with (obj_bpush2_stucktrigger_alt)
237
            {
238
                if (place_meeting(x, y, obj_pushableblock_board))
239
                    wrongcount++;
240
            }
241
            if (wrongcount == 0)
242
                wrongwaycon = 3;
243
        }
244
        if (wrongwaycon == 3)
245
        {
246
            with (obj_bpush2_stucktrigger_alt)
247
            {
248
                if (place_meeting(x, y, obj_pushableblock_board))
249
                    other.wrongwaycon = 4;
250
            }
251
        }
252
        if (wrongwaycon == 4)
253
        {
254
            wrongwaytimer++;
255
            if (wrongwaytimer == 1)
256
                snd_play(snd_error);
257
            if (wrongwaytimer == 25)
258
            {
259
                tenna.bounce = 1;
260
                var tetalk = stringsetloc(
Talk about a BLOCK head!!
"Talk about a BLOCK head!!", "obj_b1push2_slash_Step_0_gml_230_0"
);
261
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 90);
262
                snd_play(snd_splat);
263
                snd_play_delay(snd_laughtrack_short_temp, 10);
264
                wrongwaycon = 5;
265
            }
266
        }
267
        if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
268
        {
269
            if (ralcon == 0 && keyboard_check_pressed(vk_f5))
270
            {
271
                with (ralsei)
272
                {
273
                    
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
(name);
274
                    setxy(288, 192);
275
                    follow = 0;
276
                }
277
                with (susie)
278
                {
279
                    
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
(name);
280
                    setxy(384, 192);
281
                }
282
                with (obj_pushableblock_board)
283
                {
284
                    if (extflag == "push2")
285
                        instance_destroy();
286
                }
287
                with (instance_create(x, y, obj_pushableblock_board))
288
                {
289
                    extflag = "push2";
290
                    setxy_board(1344, 1248);
291
                }
292
                with (instance_create(x, y, obj_pushableblock_board))
293
                {
294
                    extflag = "push2";
295
                    setxy_board(1568, 1184);
296
                }
297
            }
298
        }
299
        var halfsolved = 0;
300
        if (instance_number(obj_board_event_push2_blocktrigger) == 1)
301
            halfsolved = true;
302
        if (halfsolved && stucktrigger == 0 && ralcon == 0 && !i_ex(obj_couchwriter))
303
        {
304
            mus_volume(global.currentsong[1], 0, 30);
305
            ralcon = 1;
306
            raltimer = 0;
307
        }
308
        if (ralcon == 1)
309
        {
310
            raltimer++;
311
            var talktimer = 75;
312
            if (raltimer == 1)
313
            {
314
                
scr_board_gridreset
scr_board_gridreset

function
scr_board_gridreset()
{ with (obj_board_controller) grid_reset = true; }
();
315
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("ralsei", 2, 3, 0);
316
            }
317
            if (raltimer == 2)
318
            {
319
                tempstop = instance_create(x, y, obj_board_solid);
320
                with (tempstop)
321
                    setxy_board(1344, 1184);
322
                tempstop.image_xscale = 1;
323
                with (tempstop)
324
                {
325
                    if (place_meeting(x, y, obj_mainchara_board))
326
                    {
327
                    }
328
                }
329
            }
330
            if (raltimer == 15)
331
            {
332
                ralcon = 1.01;
333
                raltimer = 0;
334
            }
335
        }
336
        if (ralcon == 1.01)
337
        {
338
            raltimer++;
339
            if (raltimer == 1)
340
            {
341
                kris.canfreemove = false;
342
                kr_real.sprite_index = kr_real.rsprite;
343
                su_real.sprite_index = spr_susie_walk_right_dw;
344
                ra_real.sprite_index = spr_ralsei_walk_left_unhappy;
345
                var ratalk = stringsetloc(
Don't worry, Kris!
"Don't worry, Kris!", "obj_b1push2_slash_Step_0_gml_323_0"
);
346
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 60);
347
            }
348
            var skip = false;
349
            if (raltimer > 6 && (button1_p() || button3_h()))
350
                skip = true;
351
            if (raltimer == 60 || skip == true)
352
            {
353
                ralcon = 1.02;
354
                raltimer = 0;
355
            }
356
        }
357
        if (ralcon == 1.02)
358
        {
359
            raltimer++;
360
            if (raltimer == 1)
361
            {
362
                ra_real.sprite_index = spr_ralsei_walk_left;
363
                var ratalk = stringsetloc(
According to the manual...
"According to the manual...", "obj_b1push2_slash_Step_0_gml_329_0"
);
364
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 60);
365
            }
366
            var skip = false;
367
            if (raltimer > 6 && (button1_p() || button3_h()))
368
                skip = true;
369
            if (raltimer == 60 || skip == true)
370
            {
371
                ralcon = 1.03;
372
                raltimer = 0;
373
            }
374
        }
375
        if (ralcon == 1.03)
376
        {
377
            raltimer++;
378
            if (raltimer == 1)
379
            {
380
                ra_real.sprite_index = spr_ralsei_smile_up;
381
                su_real.sprite_index = spr_susie_walk_right_dw_unhappy;
382
                var ratalk = stringsetloc(
I have a special ability!
"I have a special ability!", "obj_b1push2_slash_Step_0_gml_336_0"
);
383
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 60);
384
            }
385
            var skip = false;
386
            if (raltimer > 6 && (button1_p() || button3_h()))
387
                skip = true;
388
            if (raltimer == 60 || skip == true)
389
            {
390
                ralcon = 1.04;
391
                raltimer = 0;
392
            }
393
        }
394
        if (ralcon == 1.04)
395
        {
396
            raltimer++;
397
            if (raltimer == 1)
398
            {
399
                
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("kris");
400
                
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("susie");
401
                
scr_board_flash
scr_board_flash

function
scr_board_flash()
{ var starttime = 15; var fadetime = 6; ____flash =
scr_marker(0, 0, spr_whitepx);
____flash.image_xscale = 640; ____flash.image_yscale = 480; ____flash.depth = 99996; with (____flash) { scr_delay_var("image_alpha", 0.8, starttime + (fadetime * 0)); scr_delay_var("image_alpha", 0.6, starttime + (fadetime * 1)); scr_delay_var("image_alpha", 0.4, starttime + (fadetime * 2)); scr_delay_var("image_alpha", 0.2, starttime + (fadetime * 3));
scr_doom(id, starttime + (fadetime * 4));
} }
();
402
                snd_play(snd_explosion);
403
                stoolralsei = instance_create_board(2, 3, obj_pushableblock_board);
404
                stoolralsei.sprite_index = spr_ralsei_board_stoolforme;
405
                ralsei.visible = false;
406
                ralsei.canfreemove = false;
407
                safe_delete(tempstop);
408
                tempstop = 999;
409
                kris.canfreemove = true;
410
                ra_real.sprite_index = spr_ralsei_walk_left;
411
                var ratalk = stringsetloc(
If there's no BLOCKs to push... then...
"If there's no BLOCKs to push... then...", "obj_b1push2_slash_Step_0_gml_342_0"
);
412
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 60);
413
            }
414
            var skip = false;
415
            if (raltimer > 6 && (button1_p() || button3_h()))
416
                skip = true;
417
            if (raltimer == 60 || skip == true)
418
            {
419
                ralcon = 1.05;
420
                raltimer = 0;
421
            }
422
        }
423
        if (ralcon == 1.05)
424
        {
425
            raltimer++;
426
            if (raltimer == 1)
427
            {
428
                ra_real.sprite_index = spr_ralsei_walk_up;
429
                var ratalk2 = stringsetloc(
Push... me.
"Push... me.", "obj_b1push2_slash_Step_0_gml_351_0_b"
);
430
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk2, "ralsei", 2, 60);
431
            }
432
            var skip = false;
433
            if (raltimer > 6 && (button1_p() || button3_h()))
434
                skip = true;
435
            if (raltimer == 60 || skip == true)
436
            {
437
                ralcon = 2;
438
                raltimer = 0;
439
            }
440
        }
441
        if (ralcon == 2)
442
        {
443
            raltimer++;
444
            if (raltimer == 15)
445
            {
446
                tenna.bounce = 1;
447
                var tetalk = stringsetloc(
Aww, it's beautiful folks!!!
"Aww, it's beautiful folks!!!", "obj_b1push2_slash_Step_0_gml_306_0"
);
448
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 60);
449
            }
450
            if (raltimer == 35)
451
            {
452
                var pushsong_snd = snd_init("tvromance.ogg");
453
                pushsong = mus_loop(pushsong_snd);
454
            }
455
            if (raltimer == 37)
456
            {
457
                lovewall = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(0, 0, spr_gameshow_pushoflove);
458
                lovewall.image_alpha = 0;
459
                lovewall.depth = 89999;
460
                
scr_lerpvar_instance
scr_lerpvar_instance

function
scr_lerpvar_instance()
{ __lerpvar = instance_create(0, 0, obj_lerpvar); __lerpvar.target = argument[0]; __lerpvar.varname = argument[1]; __lerpvar.pointa = argument[2]; __lerpvar.pointb = argument[3]; __lerpvar.maxtime = argument[4]; if (argument_count >= 6) __lerpvar.easetype = argument[5]; if (argument_count >= 7) __lerpvar.easeinout = argument[6]; return __lerpvar; } function scr_lerp_var_instance() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} function scr_lerp_instance_var() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
(lovewall, "image_alpha", 0, 1, 30);
461
                snd_play_delay(snd_audience_aww, 30);
462
            }
463
            if (raltimer == 39)
464
            {
465
                var pushsprite = 
scr_84_get_sprite
scr_84_get_sprite

function
scr_84_get_sprite(arg0)
{ return ds_map_find_value(global.chemg_sprite_map, arg0); }
("spr_gameshow_pushingbuddies");
466
                pushingbuddiessign = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(320, -64, pushsprite);
467
                pushingbuddiessign.depth = 89990;
468
                
scr_lerpvar_instance
scr_lerpvar_instance

function
scr_lerpvar_instance()
{ __lerpvar = instance_create(0, 0, obj_lerpvar); __lerpvar.target = argument[0]; __lerpvar.varname = argument[1]; __lerpvar.pointa = argument[2]; __lerpvar.pointb = argument[3]; __lerpvar.maxtime = argument[4]; if (argument_count >= 6) __lerpvar.easetype = argument[5]; if (argument_count >= 7) __lerpvar.easeinout = argument[6]; return __lerpvar; } function scr_lerp_var_instance() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} function scr_lerp_instance_var() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
(pushingbuddiessign, "y", -64, 0, 30, -2, "out");
469
            }
470
            if (raltimer == 75)
471
            {
472
                var raltalk = stringsetloc(
W-wait,#what the...!?
"W-wait,#what the...!?", "obj_b1push2_slash_Step_0_gml_346_0"
);
473
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(raltalk, "ralsei", 2, 60);
474
                snd_play(snd_wing);
475
                with (ra_real)
476
                    setxy(x + 10, y - 6);
477
                ra_real.sprite_index = spr_ralsei_shocked_behind;
478
                
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(ra_real);
479
            }
480
            if (raltimer == 105)
481
            {
482
                kris.canfreemove = true;
483
                stoolralsei.blocked = false;
484
                
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("kris");
485
                raltimer = 0;
486
                ralcon++;
487
                kris.facing = 0;
488
            }
489
        }
490
        if (ralcon < 100)
491
        {
492
            if (!i_ex(obj_board_event_push2_blocktrigger))
493
            {
494
                finishtimer = 0;
495
                ralcon = 100;
496
            }
497
        }
498
        if (ralcon == 3)
499
        {
500
            raltimer++;
501
            if (raltimer == 60)
502
            {
503
                
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("ralsei");
504
                ra_real.sprite_index = spr_ralsei_walk_left_blush;
505
                
scr_resetgameshowcharacter_delay
scr_resetgameshowcharacter_delay

function
scr_resetgameshowcharacter_delay()
{ var _x_smooth = 0; if (argument_count == 3) _x_smooth = 1; return
scr_script_delayed(scr_resetgameshowcharacter, argument1, argument0, _x_smooth);
}
("ralsei", 120);
506
                var raltalk = stringsetloc(
Umm, j-just, ignore all that and push me, Kris...
"Umm, j-just, ignore all that and push me, Kris...", "obj_b1push2_slash_Step_0_gml_390_0"
);
507
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(raltalk, "ralsei", 2, 120);
508
            }
509
            var pushed = false;
510
            if (stoolralsei.pushcount > 0)
511
            {
512
                ralseihasbeenpushed = true;
513
                pushed = true;
514
            }
515
            if (pushtoomuch == 0 && stoolralsei.pushcount == 9)
516
            {
517
                
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("ralsei");
518
                ra_real.sprite_index = spr_ralsei_walk_left_blush;
519
                
scr_resetgameshowcharacter_delay
scr_resetgameshowcharacter_delay

function
scr_resetgameshowcharacter_delay()
{ var _x_smooth = 0; if (argument_count == 3) _x_smooth = 1; return
scr_script_delayed(scr_resetgameshowcharacter, argument1, argument0, _x_smooth);
}
("ralsei", 120);
520
                snd_play(snd_wing);
521
                
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(ra_real);
522
                var raltalk = stringsetloc(
K... Kris??? Why are you... pushing me so much?
"K... Kris??? Why are you... pushing me so much?", "obj_b1push2_slash_Step_0_gml_377_0"
);
523
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(raltalk, "ralsei", 2, 120);
524
                pushtoomuch = 1;
525
            }
526
            if (!ralseihasbeenpushed)
527
            {
528
                if (raltimer == 300 && !ralseihasbeenpushed)
529
                {
530
                    var raltalk = stringsetloc(
K... Kris?
"K... Kris?", "obj_b1push2_slash_Step_0_gml_395_0"
);
531
                    
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(raltalk, "ralsei", 2, 90);
532
                    ra_real.sprite_index = spr_ralsei_walk_left_unhappy;
533
                    snd_play(snd_laughtrack_short_temp);
534
                    mus_volume(pushsong, 0, 30);
535
                }
536
                if (raltimer == 450 && !ralseihasbeenpushed)
537
                {
538
                    tenna.bounce = 1;
539
                    snd_play(snd_laughtrack_short_temp);
540
                    var tetalk = stringsetloc(
This is getting awkward kid just push him
"This is getting awkward kid just push him", "obj_b1push2_slash_Step_0_gml_410_0"
);
541
                    
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 120);
542
                }
543
                if (raltimer == 600 && !ralseihasbeenpushed)
544
                {
545
                    stoolralsei.con = -2;
546
                    tenna.bounce = 1;
547
                    ra_real.sprite_index = spr_ralsei_walk_left_blush;
548
                    var tetalk = stringsetloc(
Okay, let's go to a commercial break!
"Okay, let's go to a commercial break!", "obj_b1push2_slash_Step_0_gml_417_0"
);
549
                    
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 120);
550
                }
551
                if (raltimer == 720 && !ralseihasbeenpushed)
552
                {
553
                    safe_delete(obj_couchwriter);
554
                    global.interact = 1;
555
                    ralcon = 91;
556
                    instance_create(0, 0, obj_gameshow_ralseistoolcommercial);
557
                }
558
            }
559
        }
560
        if (ralcon == 91)
561
        {
562
            safe_delete(pushingbuddiessign);
563
            safe_delete(lovewall);
564
            safe_delete(obj_board_event_push2_blocktrigger);
565
            with (stoolralsei)
566
                setxy(board_tilex(4), board_tiley(3));
567
            for (var i = 0; i < 8; i++)
568
            {
569
                with (hazard[i])
570
                    instance_destroy();
571
            }
572
        }
573
        if (ralcon == 100)
574
        {
575
            finishtimer++;
576
            if (finishtimer >= 30 && !i_ex(obj_gameshow_ralseistoolcommercial))
577
            {
578
                raltimer = 0;
579
                mus_volume(pushsong, 0, 10);
580
                for (var i = 0; i < array_length(hazard); i++)
581
                {
582
                    with (hazard[i])
583
                    {
584
                        var puff = instance_create(x, y, obj_board_smokepuff);
585
                        with (puff)
586
                            
scr_depth_board
scr_depth_board

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
587
                        instance_destroy();
588
                    }
589
                }
590
                snd_play_pitch(snd_impact_bc, 1.2);
591
                snd_play_pitch(snd_impact_bc, 0.6);
592
                if (i_ex(lovewall) && i_ex(pushingbuddiessign))
593
                {
594
                    with (obj_lerpvar)
595
                    {
596
                        if (target == other.pushingbuddiessign || target == other.lovewall)
597
                            instance_destroy();
598
                    }
599
                }
600
                if (i_ex(pushingbuddiessign))
601
                {
602
                    
scr_lerpvar_instance
scr_lerpvar_instance

function
scr_lerpvar_instance()
{ __lerpvar = instance_create(0, 0, obj_lerpvar); __lerpvar.target = argument[0]; __lerpvar.varname = argument[1]; __lerpvar.pointa = argument[2]; __lerpvar.pointb = argument[3]; __lerpvar.maxtime = argument[4]; if (argument_count >= 6) __lerpvar.easetype = argument[5]; if (argument_count >= 7) __lerpvar.easeinout = argument[6]; return __lerpvar; } function scr_lerp_var_instance() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} function scr_lerp_instance_var() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
(pushingbuddiessign, "y", pushingbuddiessign.y, -64, 30);
603
                    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(pushingbuddiessign, 31);
604
                }
605
                if (i_ex(lovewall))
606
                {
607
                    
scr_lerpvar_instance
scr_lerpvar_instance

function
scr_lerpvar_instance()
{ __lerpvar = instance_create(0, 0, obj_lerpvar); __lerpvar.target = argument[0]; __lerpvar.varname = argument[1]; __lerpvar.pointa = argument[2]; __lerpvar.pointb = argument[3]; __lerpvar.maxtime = argument[4]; if (argument_count >= 6) __lerpvar.easetype = argument[5]; if (argument_count >= 7) __lerpvar.easeinout = argument[6]; return __lerpvar; } function scr_lerp_var_instance() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} function scr_lerp_instance_var() { if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
(lovewall, "image_alpha", lovewall.image_alpha, 0, 30);
608
                    
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(lovewall, 31);
609
                }
610
                ralcon = 101;
611
                with (obj_event_manager)
612
                    trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_18);
613
            }
614
        }
615
        if (ralcon == 101)
616
        {
617
            with (obj_pushableblock_board)
618
            {
619
                if (extflag == "push2")
620
                {
621
                    var replacementblock = instance_create(x, y, obj_board_solid);
622
                    replacementblock.sprite_index = sprite_index;
623
                    replacementblock.image_index = image_index;
624
                    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(replacementblock);
625
                    replacementblock.visible = true;
626
                    replacementblock.depth = depth;
627
                    instance_destroy();
628
                }
629
            }
630
            ralsei.x = stoolralsei.x;
631
            ralsei.y = stoolralsei.y;
632
            ralsei.visible = true;
633
            safe_delete(stoolralsei);
634
            with (ralsei)
635
            {
636
                var puff = instance_create(x, y, obj_board_smokepuff);
637
                puff.image_blend = #13D26F;
638
                
scr_board_caterpillar_interpolate_ralsei
scr_board_caterpillar_interpolate_ralsei

function
scr_board_caterpillar_interpolate_ralsei()
{ var _ralsei = obj_board_controller.ralsei_object; if (_ralsei != -1) { with (_ralsei) { for (i = 0; i < 75; i += 1) { remx[i] = x; remy[i] = y; facing[i] = 0; } } var _a = 0; var _dir = point_direction(_ralsei.x, _ralsei.y, x, y); repeat (_ralsei.ralsei_target) { _ralsei.remx[_a] = lerp(obj_board_controller.kris_object.x, _ralsei.x, _a / _ralsei.ralsei_target); _ralsei.remy[_a] = lerp(obj_board_controller.kris_object.y, _ralsei.y, _a / _ralsei.ralsei_target); if (_dir >= 45 && _dir < 135) _ralsei.facingdir[_a] = 2; else if (_dir >= 135 && _dir < 225) _ralsei.facingdir[_a] = 3; else if (_dir >= 225 && _dir < 315) _ralsei.facingdir[_a] = 0; else if (_dir >= 315 || _dir < 45) _ralsei.facingdir[_a] = 1; _a++; } } }
();
639
                canfreemove = true;
640
                follow = true;
641
            }
642
            
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("susie");
643
            
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("ralsei");
644
            
scr_board_gridreset
scr_board_gridreset

function
scr_board_gridreset()
{ with (obj_board_controller) grid_reset = true; }
();
645
            with (obj_actor_tenna)
646
                bounce = 1;
647
            var tetalk = stringsetloc(
What a great puzzle, folks!
"What a great puzzle, folks!", "obj_b1push2_slash_Step_0_gml_496_0"
);
648
            
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(tetalk, "tenna", 2, 90);
649
            ra.follow = 0;
650
            kr.canfreemove = true;
651
            global.interact = 0;
652
            solved = 1;
653
            ralcon = 102;
654
            mus_volume(global.currentsong[1], 1, 30);
655
            snd_stop(pushsong);
656
            visited = 1;
657
            
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("susie");
658
        }
659
    }
660
    if (solved)
661
    {
662
        if (visited == 0)
663
        {
664
            con++;
665
            visited = 1;
666
            ra.follow = true;
667
        }
668
        if (suwalkcon == 0 && obj_board_camera.con == 0 && !i_ex(obj_chaseenemy_board))
669
        {
670
            with (obj_mainchara_board)
671
            {
672
                if (name == "susie")
673
                    sleepy = true;
674
            }
675
            
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("susie", 8, choose(3, 4), 0);
676
            suwalkcon = 1;
677
        }
678
    }
679
}
680
else
681
{
682
    suwalkcon = 0;
683
    if (solved == 1 && made == 0)
684
    {
685
        maketimer++;
686
        if (maketimer > 30)
687
        {
688
            made = 1;
689
            chaseenemy = instance_create(x + 160, y + 64, obj_chaseenemy_board_spawner);
690
            chaseenemy.encounterno = 132;
691
            chaseenemy.encounterflag = 581;
692
        }
693
    }
694
    if (solved && visited)
695
        visited = 0;
696
}
697
698
enum UnknownEnum
699
{
700
    Value_0,
701
    Value_18 = 18
702
}