Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b1lancer_Step_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
        subcon = -1;
103
    }
104
    if (subcon == 2)
105
    {
106
        mudversion = true;
107
        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"
);
108
        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"
);
109
        var bw = bw_make();
110
        bw.side = 1;
111
        
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)); } }
();
112
        subcon++;
113
        subtimer = 0;
114
    }
115
    if (subcon == 3 && !bw_ex())
116
    {
117
        with (lancer)
118
            
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();
}
();
119
        var starttime = 5;
120
        var jumptime = 20;
121
        subtimer++;
122
        if (subtimer == starttime)
123
        {
124
            lancer.sprite_index = spr_board_lancer_spin;
125
            lancer.image_speed = -0.5;
126
            with (lancer)
127
                
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);
128
        }
129
        if (subtimer == (starttime + round(jumptime / 2)))
130
        {
131
            kris.facing = 3;
132
            susie.facing = 3;
133
            ralsei.facing = 3;
134
        }
135
        if (subtimer == (starttime + jumptime))
136
        {
137
            lancer.image_speed = 0;
138
            lancer.image_index = 0;
139
        }
140
        if (subtimer == (starttime + jumptime + 5))
141
            lancer.image_index = 3;
142
        if (subtimer == (starttime + jumptime + 5 + 5))
143
        {
144
            with (lancer)
145
                
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();
}
();
146
            
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)); } }
();
147
            msgset(0, everythingIhaveline1);
148
            msgnext(everythingIhaveline2);
149
            var dd = bw_make();
150
            dd.side = 0;
151
            solvetimer = 0;
152
            con = 40;
153
            subcon++;
154
        }
155
    }
156
    if (subcon == 4)
157
    {
158
    }
159
    if (subcon == 5 && !bw_ex())
160
    {
161
        kris.facing = 0;
162
        susie.facing = 0;
163
        ralsei.follow = true;
164
        
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++; } } }
();
165
        kris.canfreemove = true;
166
        global.interact = 0;
167
        subcon = 6;
168
    }
169
    if (subcon == 6)
170
    {
171
        if (mudversion)
172
        {
173
            timer = 0;
174
            subcon = 7;
175
        }
176
    }
177
    if (susiegrabhint == 0 && global.flag[1020 got_power_croissant] == 1 && visit > 0 && !i_ex(obj_couchwriter) && !bw_ex())
178
    {
179
        susiegrabhint = 1;
180
        sugrahittimer = 0;
181
    }
182
    if (moat.wither == true)
183
        susiegrabhint = 999;
184
    if (susiegrabhint == 1)
185
    {
186
        sugrahittimer++;
187
        if (sugrahittimer == 30)
188
        {
189
            var sushint = stringsetloc(
Can I throw something?
"Can I throw something?", "obj_b1lancer_slash_Step_0_gml_185_0"
);
190
            
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);
191
            susiegrabhint = 2;
192
        }
193
    }
194
    if (susietalked == 1)
195
        ur_timer++;
196
    if (ralseiwalkinit == 0 && obj_board_camera.con == 0)
197
    {
198
        if (visit > 0)
199
        {
200
            ralsei.follow = 0;
201
            
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);
202
            ralseiwalkinit = 1;
203
        }
204
    }
205
    if (susiewalkcon == 0 && obj_board_camera.con == 0 && visit > 0)
206
        susiewalkcon = 1;
207
    if (con == 0 && obj_board_camera.con == 0 && obj_board_camera.shift == "none")
208
    {
209
        var triggered = 0;
210
        var mytrigger = "lancercactus";
211
        with (kris)
212
        {
213
            if (place_meeting(x, y, obj_board_trigger))
214
            {
215
                var inst = instance_place(x, y, obj_board_trigger);
216
                if (inst.extflag == mytrigger)
217
                    triggered = 1;
218
            }
219
        }
220
        if (solved == 0)
221
        {
222
            if (i_ex(moat))
223
            {
224
                if (moat.myinteract != 0)
225
                    triggered = 1;
226
            }
227
            if (button.pressed && presscount < 2)
228
                triggered = 2;
229
        }
230
        if (triggered == 1)
231
        {
232
            if (i_ex(moat))
233
                moat.myinteract = 0;
234
            with (obj_board_trigger)
235
            {
236
                if (extflag == mytrigger)
237
                    instance_destroy();
238
            }
239
            if (visit == 0)
240
            {
241
                global.interact = 1;
242
                con = 1;
243
            }
244
            else
245
            {
246
                global.interact = 1;
247
                con = 10;
248
            }
249
            visit++;
250
        }
251
        if (triggered == 2)
252
        {
253
            if (global.flag[1020 got_power_croissant] == 0)
254
                con = 20;
255
            else
256
                con = 30;
257
        }
258
    }
259
    if (con == 1)
260
    {
261
        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"
);
262
        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"
);
263
        var bw = bw_make();
264
        bw.side = 1;
265
        
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)); } }
();
266
        con = 1.1;
267
    }
268
    if (con == 1.1 && !bw_ex())
269
    {
270
        if (global.flag[1020 got_power_croissant] == 0)
271
            extalk = 1;
272
        con = 9999;
273
        global.interact = 0;
274
    }
275
    if (con == 10)
276
    {
277
        
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");
278
        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"
);
279
        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"
);
280
        var bw = bw_make();
281
        bw.side = 1;
282
        
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)); } }
();
283
        con = 11;
284
    }
285
    if (con == 11 && !bw_ex())
286
        con = 9999;
287
    if (con == 20)
288
    {
289
        if (presscount == 0)
290
        {
291
            con = 20.1;
292
            pctime = 0;
293
            
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);
294
            presscount++;
295
        }
296
        else
297
        {
298
            con = 0;
299
        }
300
    }
301
    if (con == 20.1)
302
    {
303
        pctime++;
304
        if (pctime >= 10)
305
            con = 21;
306
    }
307
    if (con == 21)
308
    {
309
        var susiestring = stringsetloc(
Do these do anything?
"Do these do anything?", "obj_b1lancer_slash_Step_0_gml_317_0"
);
310
        
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);
311
        con = 22;
312
    }
313
    if (con == 22)
314
    {
315
        if (button.pressed == 0)
316
        {
317
            
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);
318
            con = 0;
319
        }
320
    }
321
    if (con == 30 && obj_board_lancerswitch.pressed)
322
    {
323
        var __proceed = true;
324
        with (obj_board_trigger)
325
        {
326
            if (extflag == "potspawnchecker")
327
            {
328
                if (place_meeting(x, y, obj_mainchara_board))
329
                    __proceed = false;
330
            }
331
        }
332
        if (__proceed)
333
        {
334
            pot1 = instance_create_board(11, 3, obj_board_grabbleObject);
335
            pot2 = instance_create_board(11, 4, obj_board_grabbleObject);
336
            pot3 = instance_create_board(5, 7, obj_board_grabbleObject);
337
            pot4 = instance_create_board(6, 7, obj_board_grabbleObject);
338
            instance_create_board(11, 3, obj_board_smokepuff);
339
            instance_create_board(11, 4, obj_board_smokepuff);
340
            instance_create_board(5, 7, obj_board_smokepuff);
341
            instance_create_board(6, 7, obj_board_smokepuff);
342
            solvetimer = 0;
343
            con = 30.1;
344
        }
345
    }
346
    if (con == 30.1)
347
    {
348
        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))
349
        {
350
            solvetimer++;
351
            if (solvetimer == 1)
352
                susie.facing = 3;
353
            if (solvetimer == 30)
354
            {
355
                help = false;
356
                solved = 1;
357
                var susiesolvestring = stringsetloc(
Hm...
"Hm...", "obj_b1lancer_slash_Step_0_gml_358_0"
);
358
                
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);
359
            }
360
            var a = 30;
361
            var b = 90;
362
            if (between(solvetimer, a + 5, b))
363
            {
364
                if (button3_h())
365
                    solvetimer = b - 1;
366
            }
367
            if (between(solvetimer, a, b))
368
            {
369
                if (button1_p())
370
                    solvetimer = b - 1;
371
            }
372
            if (solvetimer == 90)
373
            {
374
                timer = 0;
375
                con = 31;
376
                solvetimer = 0;
377
            }
378
        }
379
    }
380
    if (con == 31)
381
    {
382
        solvetimer++;
383
        if (solvetimer == 1)
384
        {
385
            var susiesolvestring = stringsetloc(
Heh, got it!
"Heh, got it!", "obj_b1lancer_slash_Step_0_gml_374_0"
);
386
            
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);
387
        }
388
        var a = 1;
389
        var b = 30;
390
        if (between(solvetimer, a + 5, b))
391
        {
392
            if (button3_h())
393
                solvetimer = b - 1;
394
        }
395
        if (between(solvetimer, a, b))
396
        {
397
            if (button1_p())
398
                solvetimer = b - 1;
399
        }
400
        if (solvetimer == 30)
401
        {
402
            
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);
403
            solvetimer = 0;
404
            con = 32;
405
        }
406
    }
407
    if (con == 32)
408
    {
409
        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))
410
            solvetimer++;
411
        if (solvetimer == 1)
412
        {
413
            with (obj_board_lancerswitch)
414
                aesthetic = true;
415
            ralsei.visible = false;
416
            susie.fun = 1;
417
            susie.sprite_index = spr_board_susie_walk_right_armsup;
418
            ralmarker = instance_create(susie.x, susie.y - 32, obj_board_marker);
419
            ralmarker.sprite_index = spr_board_ralsei_walk_down;
420
            ralmarker.image_speed = 0.125;
421
            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(ralmarker);
422
            snd_play(snd_board_lift);
423
            global.flag[1257 times_carried_ralsei]++;
424
            debug_print("ralsei lift: " + string(global.flag[1257 times_carried_ralsei]));
425
            var ralseitext = stringsetloc(
M-me!?
"M-me!?", "obj_b1lancer_slash_Step_0_gml_396_0"
);
426
            
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);
427
            solvetimer = 0;
428
            con = 33;
429
        }
430
    }
431
    if (con == 33)
432
    {
433
        solvetimer++;
434
        var a = 1;
435
        var b = 40;
436
        if (between(solvetimer, a + 5, b))
437
        {
438
            if (button3_h())
439
                solvetimer = b - 1;
440
        }
441
        if (between(solvetimer, a, b))
442
        {
443
            if (button1_p())
444
                solvetimer = b - 1;
445
        }
446
        if (solvetimer == 40)
447
        {
448
            var walktime = 8;
449
            
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);
450
            
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);
451
            susie.sprite_index = spr_board_susie_walk_left_armsup;
452
            susie.image_speed = 0.125;
453
            with (susie)
454
                
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);
455
            with (susie)
456
                
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);
457
            con = -19650976;
458
            
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);
459
            solvetimer = 0;
460
        }
461
    }
462
    if (con == 34)
463
    {
464
        solvetimer++;
465
        var a = 1;
466
        var b = 5;
467
        if (between(solvetimer, a + 5, b))
468
        {
469
            if (button3_h())
470
                solvetimer = b - 1;
471
        }
472
        if (between(solvetimer, a, b))
473
        {
474
            if (button1_p())
475
                solvetimer = b - 1;
476
        }
477
        if (solvetimer == 5)
478
        {
479
            var throwtime = 10;
480
            with (ralmarker)
481
                
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);
482
            snd_play(snd_board_throw);
483
            snd_play_delay(snd_board_playerhurt, throwtime);
484
            susie.sprite_index = spr_board_susie_walk_up;
485
            solvetimer = 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, throwtime, "con", 35);
488
            scr_delay_var("hurtralsei", 1, throwtime);
489
        }
490
    }
491
    if (con == 35)
492
    {
493
        var falltime = 10;
494
        with (cactus)
495
            
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); }
();
496
        with (ralmarker)
497
            
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);
498
        con = 35.1;
499
        ptime = falltime;
500
        if (moat.wither == 0)
501
        {
502
            snd_play_delay(snd_board_splash, falltime);
503
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(ralmarker, falltime);
504
        }
505
        else
506
        {
507
            snd_play_delay(snd_board_damage, falltime);
508
            with (ralsei)
509
                setxy(260, 192);
510
            ralsei.facing = 0;
511
            with (ralsei)
512
                scr_delay_var("visible", true, falltime);
513
            with (ralsei)
514
                scr_delay_var("iframes", 20, falltime);
515
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(ralmarker, falltime);
516
        }
517
        solvetimer = 0;
518
    }
519
    if (con == 35.1)
520
    {
521
        ptime--;
522
        if (ptime == 0)
523
            con = 36;
524
    }
525
    if (con == 36)
526
    {
527
        var waitforrespawntime = 20;
528
        var lancerjumpdelay = waitforrespawntime + 15;
529
        solvetimer++;
530
        if (solvetimer == waitforrespawntime && moat.wither == 0)
531
        {
532
            ralsei.visible = true;
533
            ralsei.facing = 3;
534
            ralsei.iframes = 20;
535
        }
536
        if (solvetimer == lancerjumpdelay)
537
        {
538
            ralsei.facing = 3;
539
            var lancerspinspeed = 0.5;
540
            snd_play(snd_board_throw);
541
            var lancerjumptime = 10;
542
            lancer.sprite_index = spr_board_lancer_spin;
543
            lancer.image_speed = lancerspinspeed;
544
            with (lancer)
545
            {
546
                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))
547
                    board = true;
548
            }
549
            con = -19650976;
550
            solvetimer = 0;
551
            
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);
552
        }
553
    }
554
    if (con == 37)
555
    {
556
        snd_play(snd_board_lift);
557
        susie.sprite_index = spr_board_susie_walk_up_armsup;
558
        lancer.image_speed = 0;
559
        lancer.image_index = 0;
560
        
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)); } }
();
561
        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"
);
562
        var dd = bw_make();
563
        dd.side = 0;
564
        global.interact = 1;
565
        solvetimer = 0;
566
        con = 38;
567
    }
568
    if (con == 38 && !bw_ex())
569
    {
570
        var lancerthrowdelay = 15;
571
        solvetimer++;
572
        if (solvetimer == 1)
573
            global.interact = 0;
574
        if (solvetimer == lancerthrowdelay)
575
        {
576
            susie.sprite_index = spr_board_susie_walk_left_armsup;
577
            lancer.sprite_index = spr_board_lancer_left;
578
            _target = instance_create_board(2, 5, obj_board_marker);
579
            _target.sprite_index = spr_board_throw_reticle;
580
            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(_target);
581
            solvetimer = 0;
582
            con = 39;
583
        }
584
    }
585
    if (con == 39)
586
    {
587
        var lancerthrowdelay = 15;
588
        var lancerthrowtime = 12;
589
        var lancerlandingtimedelay = 5;
590
        solvetimer++;
591
        if (solvetimer == lancerthrowdelay)
592
        {
593
            var lancerspinspeed = 0.5;
594
            lancer.image_speed = lancerspinspeed;
595
            susie.facing = 3;
596
            susie.fun = 0;
597
            snd_play(snd_board_throw);
598
            with (lancer)
599
                
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);
600
            snd_play_delay(snd_txtlan, lancerthrowtime);
601
            safe_delete(_target);
602
        }
603
        if (solvetimer == (lancerthrowdelay + lancerthrowtime))
604
        {
605
            with (lancer)
606
                
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();
}
();
607
            lancer.image_speed = 0;
608
            lancer.sprite_index = spr_board_lancer_right;
609
        }
610
        if (solvetimer == (lancerthrowdelay + lancerthrowtime + lancerlandingtimedelay))
611
        {
612
            global.interact = 1;
613
            
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)); } }
();
614
            msgset(0, everythingIhaveline1);
615
            msgnext(everythingIhaveline2);
616
            var dd = bw_make();
617
            dd.side = 0;
618
            solvetimer = 0;
619
            con = 40;
620
        }
621
    }
622
    if (con == 40 && !bw_ex())
623
    {
624
        var xdest = 88;
625
        var ydest = 170;
626
        lancer.depth = 5000;
627
        lancer.sprite_index = spr_board_lancer_spin;
628
        snd_play_pitch(snd_board_door_close, 1.4);
629
        with (lancer)
630
        {
631
            
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");
632
            
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");
633
            
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");
634
            poof = instance_create(x, y, obj_board_smokepuff);
635
            poof.depth = depth + 20;
636
        }
637
        con = -9999;
638
        scr_delay_var("con", 41, 45);
639
    }
640
    if (con == 41)
641
    {
642
        var xdest = 88;
643
        var ydest = 170;
644
        safe_delete(lancer);
645
        obj_board_inventory.lancer = 1;
646
        snd_play(snd_item);
647
        solved = 1;
648
        
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");
649
        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"
);
650
        snd_play(snd_link_sfx_itemget);
651
        var d = bw_make();
652
        d.side = 0;
653
        global.interact = 1;
654
        if (subcon != 4)
655
        {
656
            solved = 1;
657
            susie.graballpots = true;
658
            ralsei.facing = 0;
659
            con = 9999;
660
            
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);
661
        }
662
        else
663
        {
664
            con = -999;
665
            subcon = 5;
666
        }
667
    }
668
    if (con == 9999 && !bw_ex())
669
    {
670
        global.interact = 0;
671
        con = 0;
672
    }
673
    if (ralseiwalkinit == 1)
674
    {
675
        if (ralsei.x == board_tilex(5) && ralsei.y == board_tiley(5))
676
            ralseiwalkinit = 2;
677
    }
678
    if (susiewalkcon == 1)
679
    {
680
        if (solved == 1 && supotcon == 0 && potcount > 0)
681
        {
682
            with (susie)
683
                graballpots = true;
684
            supotcon = 1;
685
            susiewalkcon = 999;
686
        }
687
        else
688
        {
689
            
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);
690
            susiewalkcon = 2;
691
        }
692
    }
693
    if (susiewalkcon == 2)
694
    {
695
        if (susie.x == board_tilex(4) && susie.y == board_tiley(5))
696
            susiewalkcon = 3;
697
    }
698
    if (lancereasteregg == 0 && visit > 0 && presscount > 0 && solved == 0)
699
    {
700
        ltimer++;
701
        if (ltimer >= 60)
702
            lancereasteregg = 1;
703
    }
704
}
705
else
706
{
707
    supotcon = 0;
708
    ur_timer = 0;
709
    ralseiwalkinit = 0;
710
    susiewalkcon = 0;
711
    suwalktimer = 0;
712
    if (wateringholeline == 1)
713
        wateringholeline = 2;
714
    potinit = 0;
715
    safe_delete(pot1);
716
    safe_delete(pot2);
717
    safe_delete(pot3);
718
    safe_delete(pot4);
719
}
720
if (global.flag[1020 got_power_croissant] == 1)
721
    lancereasteregg = 999;
722
if (lancereasteregg == 1)
723
{
724
    reallancer = instance_create(62, 438, obj_marker);
725
    reallancer.sprite_index = spr_lancer_ut;
726
    reallancer.depth = 95010;
727
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
(reallancer);
728
    
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");
729
    lancereasteregg = 2;
730
    ltimer = 0;
731
    lbub = 0;
732
}
733
if (lancereasteregg == 2)
734
{
735
    ltimer++;
736
    if (ltimer == 75)
737
    {
738
        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"
);
739
        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);
740
        lbub.mycolor = hexcolor(#BD8555);
741
    }
742
    if (ltimer == 180)
743
        
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");
744
    if (ltimer == 188)
745
    {
746
        safe_delete(reallancer);
747
        lancereasteregg = 4;
748
        ltimer = 0;
749
    }
750
}
751
if (lancereasteregg == 4)
752
{
753
    if (active)
754
    {
755
        ltimer++;
756
        if (ltimer == 15)
757
        {
758
            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"
);
759
            
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);
760
        }
761
        if (ltimer == 135)
762
        {
763
            var susietext = stringsetloc(
Yeah...#guess so...
"Yeah...#guess so...", "obj_b1lancer_slash_Step_0_gml_782_0"
);
764
            
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);
765
            lancereasteregg = 99;
766
        }
767
    }
768
    else
769
    {
770
        lancereasteregg = 99;
771
    }
772
}
773
if (extalk == 1)
774
{
775
    extimer++;
776
    if (extimer == 1)
777
    {
778
        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"
);
779
        
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);
780
        susietalked = 1;
781
    }
782
}
783
if (wateringholeline == 3)
784
{
785
    wattimer++;
786
    if (wattimer < 14)
787
    {
788
        if (obj_board_inventory.lancer == 0)
789
        {
790
            wateringholeline = 999;
791
            wattimer = 9999;
792
        }
793
    }
794
    if (wattimer == 14)
795
    {
796
        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);
797
        lancmarker.depth = 94990;
798
        with (lancmarker)
799
            
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");
800
    }
801
    if (wattimer == 30)
802
    {
803
        var lancertalk = stringsetloc(
NOSTALGIC.#MY OLD WATERING#HOLE...
"NOSTALGIC.#MY OLD WATERING#HOLE...", "obj_b1lancer_slash_Step_0_gml_814_0"
);
804
        if (obj_board_oasis.wither != 0)
805
            lancertalk = stringsetloc(
NOSTALGIC. MY#OLD MUD HOLE...
"NOSTALGIC. MY#OLD MUD HOLE...", "obj_b1lancer_slash_Step_0_gml_815_0"
);
806
        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);
807
        lbub.mycolor = hexcolor(#BD8555);
808
    }
809
    if (wattimer < 150)
810
    {
811
        var trig = false;
812
        with (obj_b1spring)
813
        {
814
            if (active)
815
                trig = true;
816
        }
817
        if (trig)
818
        {
819
            wattimer = 150;
820
            with (lbub)
821
                instance_destroy();
822
        }
823
    }
824
    if (wattimer == 150)
825
    {
826
        with (lancmarker)
827
            
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");
828
    }
829
    if (wattimer == 170)
830
    {
831
        safe_delete(lancmarker);
832
        wateringholeline = 999;
833
    }
834
}
835
if (hurtralsei == 1)
836
{
837
    hurtralsei = 0;
838
    with (obj_mainchara_board)
839
    {
840
        if (name == "ralsei")
841
        {
842
            if (myhealth > 1)
843
                myhealth--;
844
            with (obj_board_healthbar)
845
            {
846
                if (target == other.id)
847
                {
848
                    
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); }
();
849
                    scr_delay_var("mycolor", mycolor, 2);
850
                    mycolor = c_red;
851
                }
852
            }
853
        }
854
    }
855
}