Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b1lancer_Step_0

related scripts: Create_0Draw_0Step_0

(view raw script w/o annotations or w/e)
1
if (kris == 0)
2
{
3
    with (obj_mainchara_board)
4
    {
5
        if (name == "kris")
6
            other.kris = id;
7
    }
8
}
9
if (ralsei == 0)
10
{
11
    with (obj_mainchara_board)
12
    {
13
        if (name == "ralsei")
14
            other.ralsei = id;
15
    }
16
}
17
if (susie == 0)
18
{
19
    with (obj_mainchara_board)
20
    {
21
        if (name == "susie")
22
            other.susie = id;
23
    }
24
}
25
if (moat == 0)
26
{
27
    with (obj_board_lancermoat)
28
        other.moat = id;
29
}
30
if (button == 0)
31
{
32
    with (obj_board_lancerswitch)
33
        other.button = id;
34
}
35
if (cactus == 0)
36
{
37
    with (obj_board_lancercactus)
38
        other.cactus = id;
39
}
40
everythingIhaveline1 = stringsetloc(
I WILL GIVE YOU EVERYTHING I HAVE!.....Wait for input
"I WILL GIVE YOU EVERYTHING I HAVE!...../", "obj_b1lancer_slash_Step_0_gml_12_0"
);
41
everythingIhaveline2 = stringsetloc(
AND,Delay 11 ALL I HAVE,Delay 11 IS MYSELF!Wait for inputClose Message
"AND^1, ALL I HAVE^1, IS MYSELF!/%", "obj_b1lancer_slash_Step_0_gml_13_0"
);
42
if (loadline == 0)
43
{
44
    if (i_ex(obj_b1spring))
45
    {
46
        howislancerinthegame = obj_b1spring.howislancerinthegame;
47
        tennaexpl = obj_b1spring.tennaexpl;
48
        loadline = true;
49
    }
50
}
51
if (i_ex(cactus))
52
{
53
    if (lancer == 0)
54
    {
55
        lancer = instance_create(cactus.x + 32, cactus.y - 10, obj_board_marker);
56
        lancer.sprite_index = spr_board_lancer_down;
57
        
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(lancer);
58
        lancer.depth = cactus.depth - 10;
59
    }
60
}
61
if (active == 1)
62
{
63
    var potcount;
64
    if (potinit == 0 && obj_board_camera.con == 0)
65
    {
66
        potinit = 1;
67
        potcount = 0;
68
        with (obj_board_grabbleObject)
69
        {
70
            if (x >= 128 && x < 512 && y >= 64 && y <= 320)
71
                potcount++;
72
        }
73
    }
74
    if (solved == 1 && obj_board_camera.con == 0)
75
    {
76
        if (wateringholeline == 0)
77
            wateringholeline = 1;
78
        if (wateringholeline == 2)
79
            wateringholeline = 3;
80
    }
81
    if (subcon == 0 && solved == 0 && i_ex(cactus) && cactus.triggered == true)
82
    {
83
        snd_play(snd_lancerhonk);
84
        help = false;
85
        lancereasteregg = -1;
86
        susiegrabhint = 999;
87
        sugrahittimer = 999;
88
        obj_board_lancerswitch.disabled = true;
89
        con = -999;
90
        subtimer = 0;
91
        subcon = 1;
92
        kris.canfreemove = false;
93
        solved = 1;
94
    }
95
    if (subcon == 1)
96
    {
97
        with (cactus)
98
            
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); }
();
99
        with (lancer)
100
            
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); }
();
101
        scr_delay_var("subcon", subcon + 1, 15);
102
        var poof = false;
103
        var pots = [];
104
        if (i_ex(pot1))
105
            array_push(pots, pot1);
106
        if (i_ex(pot2))
107
            array_push(pots, pot2);
108
        if (i_ex(pot3))
109
            array_push(pots, pot3);
110
        if (i_ex(pot4))
111
            array_push(pots, pot4);
112
        for (var i = 0; i < array_length(pots); i++)
113
        {
114
            poof = true;
115
            with (pots[i])
116
            {
117
                instance_create_depth(x, y, depth - 1, obj_board_smokepuff);
118
                instance_destroy();
119
            }
120
        }
121
        if (poof)
122
        {
123
            snd_play(snd_board_splash);
124
            with (obj_board_lancerswitch)
125
            {
126
                instance_create_depth(x, y, depth - 1, obj_board_smokepuff);
127
                x = room_width * 40;
128
                visible = false;
129
            }
130
        }
131
        subcon = -1;
132
    }
133
    if (subcon == 2)
134
    {
135
        mudversion = true;
136
        msgsetloc(0, 
OH HAPPY DAY! THE ENDLESS DEPTHS HAVE BEEN DRAINED!Wait for input
"OH HAPPY DAY! THE ENDLESS DEPTHS HAVE BEEN DRAINED!/", "obj_b1lancer_slash_Step_0_gml_95_0"
);
137
        msgnextloc(
YOU HAVE RESCUED ME FROM MY SPINY TORMENT!Wait for inputClose Message
"YOU HAVE RESCUED ME FROM MY SPINY TORMENT!/%", "obj_b1lancer_slash_Step_0_gml_96_0"
);
138
        var bw = bw_make();
139
        bw.side = 1;
140
        
scr_boardlancer_voice
scr_boardlancer_voice

function
scr_boardlancer_voice()
{ if (argument_count == 0) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 8 + (3 * i), 1, 1 + (i / 14)); } else if (argument0 == 1) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 1 + (3 * i), 1, 1 - (i / 14)); } }
();
141
        subcon++;
142
        subtimer = 0;
143
    }
144
    if (subcon == 3 && !bw_ex())
145
    {
146
        with (lancer)
147
            
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();
}
();
148
        var starttime = 5;
149
        var jumptime = 20;
150
        subtimer++;
151
        if (subtimer == starttime)
152
        {
153
            lancer.sprite_index = spr_board_lancer_spin;
154
            lancer.image_speed = -0.5;
155
            with (lancer)
156
                
scr_jump_to_point_board
scr_jump_to_point_board

function
scr_jump_to_point_board(arg0, arg1, arg2, arg3, arg4 = 0)
{ var ___jump =
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump) { trackalpha = arg4; trackblend = arg4; trackindex = arg4; tracksprite = arg4; board = true; } return ___jump; }
(board_tilex(2), board_tiley(5), 24, jumptime);
157
        }
158
        if (subtimer == (starttime + round(jumptime / 2)))
159
        {
160
            kris.facing = 3;
161
            susie.facing = 3;
162
            ralsei.facing = 3;
163
        }
164
        if (subtimer == (starttime + jumptime))
165
        {
166
            lancer.image_speed = 0;
167
            lancer.image_index = 0;
168
        }
169
        if (subtimer == (starttime + jumptime + 5))
170
            lancer.image_index = 3;
171
        if (subtimer == (starttime + jumptime + 5 + 5))
172
        {
173
            with (lancer)
174
                
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();
}
();
175
            
scr_boardlancer_voice
scr_boardlancer_voice

function
scr_boardlancer_voice()
{ if (argument_count == 0) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 8 + (3 * i), 1, 1 + (i / 14)); } else if (argument0 == 1) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 1 + (3 * i), 1, 1 - (i / 14)); } }
();
176
            msgset(0, everythingIhaveline1);
177
            msgnext(everythingIhaveline2);
178
            var dd = bw_make();
179
            dd.side = 0;
180
            solvetimer = 0;
181
            con = 40;
182
            subcon++;
183
        }
184
    }
185
    if (subcon == 4)
186
    {
187
    }
188
    if (subcon == 5 && !bw_ex())
189
    {
190
        kris.facing = 0;
191
        susie.facing = 0;
192
        ralsei.follow = true;
193
        
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++; } } }
();
194
        kris.canfreemove = true;
195
        global.interact = 0;
196
        subcon = 6;
197
    }
198
    if (subcon == 6)
199
    {
200
        if (mudversion)
201
        {
202
            timer = 0;
203
            subcon = 7;
204
        }
205
    }
206
    if (susiegrabhint == 0 && global.flag[1020 got_power_croissant] == 1 && visit > 0 && !i_ex(obj_couchwriter) && !bw_ex())
207
    {
208
        susiegrabhint = 1;
209
        sugrahittimer = 0;
210
    }
211
    if (moat.wither == true)
212
        susiegrabhint = 999;
213
    if (susiegrabhint == 1)
214
    {
215
        sugrahittimer++;
216
        if (sugrahittimer == 30)
217
        {
218
            var sushint = stringsetloc(
Can I throw something?
"Can I throw something?", "obj_b1lancer_slash_Step_0_gml_185_0"
);
219
            
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; }
(sushint, "susie", 2);
220
            susiegrabhint = 2;
221
        }
222
    }
223
    if (susietalked == 1)
224
        ur_timer++;
225
    if (ralseiwalkinit == 0 && obj_board_camera.con == 0)
226
    {
227
        if (visit > 0)
228
        {
229
            ralsei.follow = 0;
230
            
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_pathfind_to_point, 8, "ralsei", 6, 5, 2);
231
            ralseiwalkinit = 1;
232
        }
233
    }
234
    if (susiewalkcon == 0 && obj_board_camera.con == 0 && visit > 0)
235
        susiewalkcon = 1;
236
    if (con == 0 && obj_board_camera.con == 0 && obj_board_camera.shift == "none")
237
    {
238
        var triggered = 0;
239
        var mytrigger = "lancercactus";
240
        with (kris)
241
        {
242
            if (place_meeting(x, y, obj_board_trigger))
243
            {
244
                var inst = instance_place(x, y, obj_board_trigger);
245
                if (inst.extflag == mytrigger)
246
                    triggered = 1;
247
            }
248
        }
249
        if (solved == 0)
250
        {
251
            if (i_ex(moat))
252
            {
253
                if (moat.myinteract != 0)
254
                    triggered = 1;
255
            }
256
            if (button.pressed && presscount < 2)
257
                triggered = 2;
258
        }
259
        if (triggered == 1)
260
        {
261
            if (i_ex(moat))
262
                moat.myinteract = 0;
263
            with (obj_board_trigger)
264
            {
265
                if (extflag == mytrigger)
266
                    instance_destroy();
267
            }
268
            if (visit == 0)
269
            {
270
                global.interact = 1;
271
                con = 1;
272
            }
273
            else
274
            {
275
                global.interact = 1;
276
                con = 10;
277
            }
278
            visit++;
279
        }
280
        if (triggered == 2)
281
        {
282
            if (global.flag[1020 got_power_croissant] == 0)
283
                con = 20;
284
            else
285
                con = 30;
286
        }
287
    }
288
    if (con == 1)
289
    {
290
        msgsetloc(0, 
HELP!Delay 11 I'M STUCK IN THE SPINY SEA OF GREEN.Wait for input
"HELP^1! I'M STUCK IN THE SPINY SEA OF GREEN./", "obj_b1lancer_slash_Step_0_gml_267_0"
);
291
        msgnextloc(
WON'T ANYONE FREE A POOR INNOCENT BOY?Wait for inputClose Message
"WON'T ANYONE FREE A POOR INNOCENT BOY?/%", "obj_b1lancer_slash_Step_0_gml_268_0"
);
292
        var bw = bw_make();
293
        bw.side = 1;
294
        
scr_boardlancer_voice
scr_boardlancer_voice

function
scr_boardlancer_voice()
{ if (argument_count == 0) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 8 + (3 * i), 1, 1 + (i / 14)); } else if (argument0 == 1) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 1 + (3 * i), 1, 1 - (i / 14)); } }
();
295
        con = 1.1;
296
    }
297
    if (con == 1.1 && !bw_ex())
298
    {
299
        if (global.flag[1020 got_power_croissant] == 0)
300
            extalk = 1;
301
        con = 9999;
302
        global.interact = 0;
303
    }
304
    if (con == 10)
305
    {
306
        
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; ...
("no_name");
307
        msgsetloc(0, 
OH,Delay 11 COULD ANYONE THROW ME A CERAMIC POT?Wait for input
"OH^1, COULD ANYONE THROW ME A CERAMIC POT?/", "obj_b1lancer_slash_Step_0_gml_289_0"
);
308
        msgnextloc(
I'LL EVEN TAKE ONE WITHOUT SALSA AT THIS POINT.Wait for inputClose Message
"I'LL EVEN TAKE ONE WITHOUT SALSA AT THIS POINT./%", "obj_b1lancer_slash_Step_0_gml_290_0"
);
309
        var bw = bw_make();
310
        bw.side = 1;
311
        
scr_boardlancer_voice
scr_boardlancer_voice

function
scr_boardlancer_voice()
{ if (argument_count == 0) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 8 + (3 * i), 1, 1 + (i / 14)); } else if (argument0 == 1) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 1 + (3 * i), 1, 1 - (i / 14)); } }
();
312
        con = 11;
313
    }
314
    if (con == 11 && !bw_ex())
315
        con = 9999;
316
    if (con == 20)
317
    {
318
        if (presscount == 0)
319
        {
320
            con = 20.1;
321
            pctime = 0;
322
            
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", 2, 5, 3);
323
            presscount++;
324
        }
325
        else
326
        {
327
            con = 0;
328
        }
329
    }
330
    if (con == 20.1)
331
    {
332
        pctime++;
333
        if (pctime >= 10)
334
            con = 21;
335
    }
336
    if (con == 21)
337
    {
338
        var susiestring = stringsetloc(
Do these do anything?
"Do these do anything?", "obj_b1lancer_slash_Step_0_gml_317_0"
);
339
        
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; }
(susiestring, "susie", 1);
340
        con = 22;
341
    }
342
    if (con == 22)
343
    {
344
        if (button.pressed == 0)
345
        {
346
            
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", 4, 5, 2);
347
            con = 0;
348
        }
349
    }
350
    if (con == 30 && obj_board_lancerswitch.pressed)
351
    {
352
        var __proceed = true;
353
        with (obj_board_trigger)
354
        {
355
            if (extflag == "potspawnchecker")
356
            {
357
                if (place_meeting(x, y, obj_mainchara_board))
358
                    __proceed = false;
359
            }
360
        }
361
        if (__proceed)
362
        {
363
            pot1 = instance_create_board(11, 3, obj_board_grabbleObject);
364
            pot2 = instance_create_board(11, 4, obj_board_grabbleObject);
365
            pot3 = instance_create_board(5, 7, obj_board_grabbleObject);
366
            pot4 = instance_create_board(6, 7, obj_board_grabbleObject);
367
            instance_create_board(11, 3, obj_board_smokepuff);
368
            instance_create_board(11, 4, obj_board_smokepuff);
369
            instance_create_board(5, 7, obj_board_smokepuff);
370
            instance_create_board(6, 7, obj_board_smokepuff);
371
            solvetimer = 0;
372
            con = 30.1;
373
        }
374
    }
375
    if (con == 30.1)
376
    {
377
        if (
scr_board_checklocation
scr_board_checklocation

function
scr_board_checklocation()
{ var _name = argument0; var _xloc = argument1; var _yloc = argument2; if (_xloc < 12) _xloc = board_tilex(_xloc); if (_yloc < 12) _yloc = board_tiley(_yloc); var _tol = 4; if (argument_count == 4) _tol = argument3; var targ = 0; with (obj_mainchara_board) { if (name == _name) targ = id; } if (!i_ex(targ)) { debug_message("target does not exist"); return false; } if (abs(targ.x - _xloc) < _tol && abs(targ.y - _yloc) < _tol) return true; }
("susie", 256, 224, 6))
378
        {
379
            solvetimer++;
380
            if (solvetimer == 1)
381
                susie.facing = 3;
382
            if (solvetimer == 30)
383
            {
384
                help = false;
385
                solved = 1;
386
                var susiesolvestring = stringsetloc(
Hm...
"Hm...", "obj_b1lancer_slash_Step_0_gml_358_0"
);
387
                
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; }
(susiesolvestring, "susie", 2, 60);
388
            }
389
            var a = 30;
390
            var b = 90;
391
            if (between(solvetimer, a + 5, b))
392
            {
393
                if (button3_h())
394
                    solvetimer = b - 1;
395
            }
396
            if (between(solvetimer, a, b))
397
            {
398
                if (button1_p())
399
                    solvetimer = b - 1;
400
            }
401
            if (solvetimer == 90)
402
            {
403
                timer = 0;
404
                con = 31;
405
                solvetimer = 0;
406
            }
407
        }
408
    }
409
    if (con == 31)
410
    {
411
        solvetimer++;
412
        if (solvetimer == 1)
413
        {
414
            var susiesolvestring = stringsetloc(
Heh, got it!
"Heh, got it!", "obj_b1lancer_slash_Step_0_gml_374_0"
);
415
            
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; }
(susiesolvestring, "susie", 2, 80);
416
        }
417
        var a = 1;
418
        var b = 30;
419
        if (between(solvetimer, a + 5, b))
420
        {
421
            if (button3_h())
422
                solvetimer = b - 1;
423
        }
424
        if (between(solvetimer, a, b))
425
        {
426
            if (button1_p())
427
                solvetimer = b - 1;
428
        }
429
        if (solvetimer == 30)
430
        {
431
            
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", ralsei.x - 28, ralsei.y, 1);
432
            solvetimer = 0;
433
            con = 32;
434
        }
435
    }
436
    if (con == 32)
437
    {
438
        if (
scr_board_checklocation
scr_board_checklocation

function
scr_board_checklocation()
{ var _name = argument0; var _xloc = argument1; var _yloc = argument2; if (_xloc < 12) _xloc = board_tilex(_xloc); if (_yloc < 12) _yloc = board_tiley(_yloc); var _tol = 4; if (argument_count == 4) _tol = argument3; var targ = 0; with (obj_mainchara_board) { if (name == _name) targ = id; } if (!i_ex(targ)) { debug_message("target does not exist"); return false; } if (abs(targ.x - _xloc) < _tol && abs(targ.y - _yloc) < _tol) return true; }
("susie", ralsei.x - 28, ralsei.y, 4))
439
            solvetimer++;
440
        if (solvetimer == 1)
441
        {
442
            with (obj_board_lancerswitch)
443
                aesthetic = true;
444
            ralsei.visible = false;
445
            susie.fun = 1;
446
            susie.sprite_index = spr_board_susie_walk_right_armsup;
447
            ralmarker = instance_create(susie.x, susie.y - 32, obj_board_marker);
448
            ralmarker.sprite_index = spr_board_ralsei_walk_down;
449
            ralmarker.image_speed = 0.125;
450
            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(ralmarker);
451
            snd_play(snd_board_lift);
452
            global.flag[1257 times_carried_ralsei]++;
453
            debug_print("ralsei lift: " + string(global.flag[1257 times_carried_ralsei]));
454
            var ralseitext = stringsetloc(
M-me!?
"M-me!?", "obj_b1lancer_slash_Step_0_gml_396_0"
);
455
            
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; }
(ralseitext, "ralsei", 2, 70);
456
            solvetimer = 0;
457
            con = 33;
458
        }
459
    }
460
    if (con == 33)
461
    {
462
        solvetimer++;
463
        var a = 1;
464
        var b = 40;
465
        if (between(solvetimer, a + 5, b))
466
        {
467
            if (button3_h())
468
                solvetimer = b - 1;
469
        }
470
        if (between(solvetimer, a, b))
471
        {
472
            if (button1_p())
473
                solvetimer = b - 1;
474
        }
475
        if (solvetimer == 40)
476
        {
477
            var walktime = 8;
478
            
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);
}
(susie, "x", susie.x, susie.x - 32, walktime);
479
            
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);
}
(ralmarker, "x", ralmarker.x, ralmarker.x - 32, walktime);
480
            susie.sprite_index = spr_board_susie_walk_left_armsup;
481
            susie.image_speed = 0.125;
482
            with (susie)
483
                
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_var, walktime, "sprite_index", spr_board_susie_walk_up_armsup);
484
            with (susie)
485
                
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_var, walktime, "image_speed", 0);
486
            con = -19650976;
487
            
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_var, walktime, "con", 34);
488
            solvetimer = 0;
489
        }
490
    }
491
    if (con == 34)
492
    {
493
        solvetimer++;
494
        var a = 1;
495
        var b = 5;
496
        if (between(solvetimer, a + 5, b))
497
        {
498
            if (button3_h())
499
                solvetimer = b - 1;
500
        }
501
        if (between(solvetimer, a, b))
502
        {
503
            if (button1_p())
504
                solvetimer = b - 1;
505
        }
506
        if (solvetimer == 5)
507
        {
508
            var throwtime = 10;
509
            with (ralmarker)
510
                
scr_jump_to_point_board
scr_jump_to_point_board

function
scr_jump_to_point_board(arg0, arg1, arg2, arg3, arg4 = 0)
{ var ___jump =
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump) { trackalpha = arg4; trackblend = arg4; trackindex = arg4; tracksprite = arg4; board = true; } return ___jump; }
(x, 136, 12, throwtime);
511
            snd_play(snd_board_throw);
512
            snd_play_delay(snd_board_playerhurt, throwtime);
513
            susie.sprite_index = spr_board_susie_walk_up;
514
            solvetimer = 0;
515
            con = -19650976;
516
            
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_var, throwtime, "con", 35);
517
            scr_delay_var("hurtralsei", 1, throwtime);
518
        }
519
    }
520
    if (con == 35)
521
    {
522
        var falltime = 10;
523
        with (cactus)
524
            
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); }
();
525
        with (ralmarker)
526
            
scr_jump_to_point_board
scr_jump_to_point_board

function
scr_jump_to_point_board(arg0, arg1, arg2, arg3, arg4 = 0)
{ var ___jump =
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump) { trackalpha = arg4; trackblend = arg4; trackindex = arg4; tracksprite = arg4; board = true; } return ___jump; }
(x, board_tiley(4), 12, falltime);
527
        con = 35.1;
528
        ptime = falltime;
529
        if (moat.wither == 0)
530
        {
531
            snd_play_delay(snd_board_splash, falltime);
532
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] = arg1; target = arg0; } }
(ralmarker, falltime);
533
        }
534
        else
535
        {
536
            snd_play_delay(snd_board_damage, falltime);
537
            with (ralsei)
538
                setxy(260, 192);
539
            ralsei.facing = 0;
540
            with (ralsei)
541
                scr_delay_var("visible", true, falltime);
542
            with (ralsei)
543
                scr_delay_var("iframes", 20, falltime);
544
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] = arg1; target = arg0; } }
(ralmarker, falltime);
545
        }
546
        solvetimer = 0;
547
    }
548
    if (con == 35.1)
549
    {
550
        ptime--;
551
        if (ptime == 0)
552
            con = 36;
553
    }
554
    if (con == 36)
555
    {
556
        var waitforrespawntime = 20;
557
        var lancerjumpdelay = waitforrespawntime + 15;
558
        solvetimer++;
559
        if (solvetimer == waitforrespawntime && moat.wither == 0)
560
        {
561
            ralsei.visible = true;
562
            ralsei.facing = 3;
563
            ralsei.iframes = 20;
564
        }
565
        if (solvetimer == lancerjumpdelay)
566
        {
567
            ralsei.facing = 3;
568
            var lancerspinspeed = 0.5;
569
            snd_play(snd_board_throw);
570
            var lancerjumptime = 10;
571
            lancer.sprite_index = spr_board_lancer_spin;
572
            lancer.image_speed = lancerspinspeed;
573
            with (lancer)
574
            {
575
                with (
scr_jump_to_point_board
scr_jump_to_point_board

function
scr_jump_to_point_board(arg0, arg1, arg2, arg3, arg4 = 0)
{ var ___jump =
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump) { trackalpha = arg4; trackblend = arg4; trackindex = arg4; tracksprite = arg4; board = true; } return ___jump; }
(other.susie.x, other.susie.y - 32, 12, lancerjumptime))
576
                    board = true;
577
            }
578
            con = -19650976;
579
            solvetimer = 0;
580
            
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_var, lancerjumptime, "con", 37);
581
        }
582
    }
583
    if (con == 37)
584
    {
585
        snd_play(snd_board_lift);
586
        susie.sprite_index = spr_board_susie_walk_up_armsup;
587
        lancer.image_speed = 0;
588
        lancer.image_index = 0;
589
        
scr_boardlancer_voice
scr_boardlancer_voice

function
scr_boardlancer_voice()
{ if (argument_count == 0) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 8 + (3 * i), 1, 1 + (i / 14)); } else if (argument0 == 1) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 1 + (3 * i), 1, 1 - (i / 14)); } }
();
590
        msgsetloc(0, 
HO HO HO!Delay 11 YOU HAVE RESCUED ME!Wait for inputClose Message
"HO HO HO^1! YOU HAVE RESCUED ME!/%", "obj_b1lancer_slash_Step_0_gml_498_0"
);
591
        var dd = bw_make();
592
        dd.side = 0;
593
        global.interact = 1;
594
        solvetimer = 0;
595
        con = 38;
596
    }
597
    if (con == 38 && !bw_ex())
598
    {
599
        var lancerthrowdelay = 15;
600
        solvetimer++;
601
        if (solvetimer == 1)
602
            global.interact = 0;
603
        if (solvetimer == lancerthrowdelay)
604
        {
605
            susie.sprite_index = spr_board_susie_walk_left_armsup;
606
            lancer.sprite_index = spr_board_lancer_left;
607
            _target = instance_create_board(2, 5, obj_board_marker);
608
            _target.sprite_index = spr_board_throw_reticle;
609
            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(_target);
610
            solvetimer = 0;
611
            con = 39;
612
        }
613
    }
614
    if (con == 39)
615
    {
616
        var lancerthrowdelay = 15;
617
        var lancerthrowtime = 12;
618
        var lancerlandingtimedelay = 5;
619
        solvetimer++;
620
        if (solvetimer == lancerthrowdelay)
621
        {
622
            var lancerspinspeed = 0.5;
623
            lancer.image_speed = lancerspinspeed;
624
            susie.facing = 3;
625
            susie.fun = 0;
626
            snd_play(snd_board_throw);
627
            with (lancer)
628
                
scr_jump_to_point_board
scr_jump_to_point_board

function
scr_jump_to_point_board(arg0, arg1, arg2, arg3, arg4 = 0)
{ var ___jump =
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump) { trackalpha = arg4; trackblend = arg4; trackindex = arg4; tracksprite = arg4; board = true; } return ___jump; }
(other._target.x, other._target.y, 12, lancerthrowtime);
629
            snd_play_delay(snd_txtlan, lancerthrowtime);
630
            safe_delete(_target);
631
        }
632
        if (solvetimer == (lancerthrowdelay + lancerthrowtime))
633
        {
634
            with (lancer)
635
                
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();
}
();
636
            lancer.image_speed = 0;
637
            lancer.sprite_index = spr_board_lancer_right;
638
        }
639
        if (solvetimer == (lancerthrowdelay + lancerthrowtime + lancerlandingtimedelay))
640
        {
641
            global.interact = 1;
642
            
scr_boardlancer_voice
scr_boardlancer_voice

function
scr_boardlancer_voice()
{ if (argument_count == 0) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 8 + (3 * i), 1, 1 + (i / 14)); } else if (argument0 == 1) { for (var i = 0; i < 3; i++) snd_play_delay(snd_txtlan, 1 + (3 * i), 1, 1 - (i / 14)); } }
();
643
            msgset(0, everythingIhaveline1);
644
            msgnext(everythingIhaveline2);
645
            var dd = bw_make();
646
            dd.side = 0;
647
            solvetimer = 0;
648
            con = 40;
649
        }
650
    }
651
    if (con == 40 && !bw_ex())
652
    {
653
        var xdest = 88;
654
        var ydest = 170;
655
        lancer.depth = 5000;
656
        lancer.sprite_index = spr_board_lancer_spin;
657
        snd_play_pitch(snd_board_door_close, 1.4);
658
        with (lancer)
659
        {
660
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, xdest, 45, -1, "in");
661
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, ydest, 45, -1, "out");
662
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_speed", 0.05, 0.25, 30, 2, "out");
663
            var poof = instance_create(x, y, obj_board_smokepuff);
664
            poof.depth = depth + 20;
665
        }
666
        con = -9999;
667
        scr_delay_var("con", 41, 45);
668
    }
669
    if (con == 41)
670
    {
671
        var xdest = 88;
672
        var ydest = 170;
673
        safe_delete(lancer);
674
        obj_board_inventory.lancer = 1;
675
        snd_play(snd_item);
676
        solved = 1;
677
        
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; ...
("no_name");
678
        msgsetloc(0, 
YOU GOT LANCER x1!\nIS THERE SOMETHING HE CAN DIG?Wait for inputClose Message
"YOU GOT \\cYLANCER\\cW x1!\nIS THERE SOMETHING HE CAN DIG?/%", "obj_b1lancer_slash_Step_0_gml_592_0"
);
679
        snd_play(snd_link_sfx_itemget);
680
        var d = bw_make();
681
        d.side = 0;
682
        global.interact = 1;
683
        if (subcon != 4)
684
        {
685
            solved = 1;
686
            susie.graballpots = true;
687
            ralsei.facing = 0;
688
            con = 9999;
689
            
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", 7, 5, 0);
690
        }
691
        else
692
        {
693
            con = -999;
694
            subcon = 5;
695
        }
696
    }
697
    if (con == 9999 && !bw_ex())
698
    {
699
        global.interact = 0;
700
        con = 0;
701
    }
702
    if (ralseiwalkinit == 1)
703
    {
704
        if (ralsei.x == board_tilex(5) && ralsei.y == board_tiley(5))
705
            ralseiwalkinit = 2;
706
    }
707
    if (susiewalkcon == 1)
708
    {
709
        if (solved == 1 && supotcon == 0 && potcount > 0)
710
        {
711
            with (susie)
712
                graballpots = true;
713
            supotcon = 1;
714
            susiewalkcon = 999;
715
        }
716
        else
717
        {
718
            
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_pathfind_to_point, 4, "susie", 4, 5, 2);
719
            susiewalkcon = 2;
720
        }
721
    }
722
    if (susiewalkcon == 2)
723
    {
724
        if (susie.x == board_tilex(4) && susie.y == board_tiley(5))
725
            susiewalkcon = 3;
726
    }
727
    if (lancereasteregg == 0 && visit > 0 && presscount > 0 && solved == 0)
728
    {
729
        ltimer++;
730
        if (ltimer >= 60)
731
            lancereasteregg = 1;
732
    }
733
}
734
else
735
{
736
    supotcon = 0;
737
    ur_timer = 0;
738
    ralseiwalkinit = 0;
739
    susiewalkcon = 0;
740
    suwalktimer = 0;
741
    if (wateringholeline == 1)
742
        wateringholeline = 2;
743
    potinit = 0;
744
    safe_delete(pot1);
745
    safe_delete(pot2);
746
    safe_delete(pot3);
747
    safe_delete(pot4);
748
}
749
if (global.flag[1020 got_power_croissant] == 1)
750
    lancereasteregg = 999;
751
if (lancereasteregg == 1)
752
{
753
    reallancer = instance_create(62, 438, obj_marker);
754
    reallancer.sprite_index = spr_lancer_ut;
755
    reallancer.depth = 95010;
756
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(reallancer);
757
    
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);
}
(reallancer, "y", 438, 406, 8, -1, "out");
758
    lancereasteregg = 2;
759
    ltimer = 0;
760
    lbub = 0;
761
}
762
if (lancereasteregg == 2)
763
{
764
    ltimer++;
765
    if (ltimer == 75)
766
    {
767
        var lancereastereggtext = stringsetloc(
That guy looks cute!#You should save him!
"That guy looks cute!#You should save him!", "obj_b1lancer_slash_Step_0_gml_754_0"
);
768
        lbub = 
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; }
(lancereastereggtext, "lancer", 0, 90, 100, 368, 134);
769
        lbub.mycolor = hexcolor(#BD8555);
770
    }
771
    if (ltimer == 180)
772
        
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);
}
(reallancer, "y", 406, 480, 8, -1, "in");
773
    if (ltimer == 188)
774
    {
775
        safe_delete(reallancer);
776
        lancereasteregg = 4;
777
        ltimer = 0;
778
    }
779
}
780
if (lancereasteregg == 4)
781
{
782
    if (active)
783
    {
784
        ltimer++;
785
        if (ltimer == 15)
786
        {
787
            var ralseitext = stringsetloc(
Hmm... looks like we#can't do anything#for now...
"Hmm... looks like we#can't do anything#for now...", "obj_b1lancer_slash_Step_0_gml_777_0_b"
);
788
            
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; }
(ralseitext, "ralsei", 2, 120);
789
        }
790
        if (ltimer == 135)
791
        {
792
            var susietext = stringsetloc(
Yeah...#guess so...
"Yeah...#guess so...", "obj_b1lancer_slash_Step_0_gml_782_0"
);
793
            
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; }
(susietext, "susie", 2, 90);
794
            lancereasteregg = 99;
795
        }
796
    }
797
    else
798
    {
799
        lancereasteregg = 99;
800
    }
801
}
802
if (extalk == 1)
803
{
804
    extimer++;
805
    if (extimer == 1)
806
    {
807
        var susiestring = stringsetloc(
Damn, it's Lancer!#We gotta save him!
"Damn, it's Lancer!#We gotta save him!", "obj_b1lancer_slash_Step_0_gml_777_0"
);
808
        
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; }
(susiestring, "susie", 1, 120);
809
        susietalked = 1;
810
    }
811
}
812
if (wateringholeline == 3)
813
{
814
    wattimer++;
815
    if (wattimer < 14)
816
    {
817
        if (obj_board_inventory.lancer == 0)
818
        {
819
            wateringholeline = 999;
820
            wattimer = 9999;
821
        }
822
    }
823
    if (wattimer == 14)
824
    {
825
        lancmarker = 
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; }
(60, 470, spr_lancer_ut);
826
        lancmarker.depth = 94990;
827
        with (lancmarker)
828
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", 438, 406, 8, -1, "out");
829
    }
830
    if (wattimer == 30)
831
    {
832
        var lancertalk = stringsetloc(
NOSTALGIC.#MY OLD WATERING#HOLE...
"NOSTALGIC.#MY OLD WATERING#HOLE...", "obj_b1lancer_slash_Step_0_gml_814_0"
);
833
        if (obj_board_oasis.wither != 0)
834
            lancertalk = stringsetloc(
NOSTALGIC. MY#OLD MUD HOLE...
"NOSTALGIC. MY#OLD MUD HOLE...", "obj_b1lancer_slash_Step_0_gml_815_0"
);
835
        lbub = 
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; }
(lancertalk, "lancer", 1, 90, 96, 356, 134);
836
        lbub.mycolor = hexcolor(#BD8555);
837
    }
838
    if (wattimer < 150)
839
    {
840
        var trig = false;
841
        with (obj_b1spring)
842
        {
843
            if (active)
844
                trig = true;
845
        }
846
        if (trig)
847
        {
848
            wattimer = 150;
849
            with (lbub)
850
                instance_destroy();
851
        }
852
    }
853
    if (wattimer == 150)
854
    {
855
        with (lancmarker)
856
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", 406, 478, 20, -1, "in");
857
    }
858
    if (wattimer == 170)
859
    {
860
        safe_delete(lancmarker);
861
        wateringholeline = 999;
862
    }
863
}
864
if (hurtralsei == 1)
865
{
866
    hurtralsei = 0;
867
    with (obj_mainchara_board)
868
    {
869
        if (name == "ralsei")
870
        {
871
            if (myhealth > 1)
872
                myhealth--;
873
            with (obj_board_healthbar)
874
            {
875
                if (target == other.id)
876
                {
877
                    
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); }
();
878
                    scr_delay_var("mycolor", mycolor, 2);
879
                    mycolor = c_red;
880
                }
881
            }
882
        }
883
    }
884
}