Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_boat_Step_0

(view raw script w/o annotations or w/e)
1
if (buffer > -5)
2
    buffer--;
3
if (myinteract == 3)
4
{
5
    
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("ralsei");
6
    
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("susie");
7
    
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("kris");
8
    with (obj_mainchara_board)
9
        canfreemove = false;
10
    kris = 0;
11
    with (obj_mainchara_board)
12
    {
13
        if (controlled == 1)
14
        {
15
            visible = true;
16
            boat = true;
17
            other.kris = id;
18
        }
19
    }
20
    canfreemove = true;
21
    facing = 0;
22
    myinteract = 20;
23
    buffer = 5;
24
    embark = 1;
25
}
26
if (embark == 1)
27
{
28
    embarktimer++;
29
    var jumptime = 10;
30
    if (embarktimer == 1)
31
    {
32
        global.interact = 1;
33
        if (!
scr_swordroom
scr_swordroom

function
scr_swordroom()
{ if (room == room_board_dungeon_2 || room == room_board_dungeon_3 || room == room_board_sword_intro || room == room_board_1_sword || room == room_board_1_sword_trees || room == room_board_preshadowmantle || room == room_board_preshadowmantle_repeat || room == room_shadowmantle || room == room_board_prepostshadowmantle || room == room_board_postshadowmantle || room == room_board_2_sword || room == room_board_3_sword) return true; else return false; }
())
34
            mus_volume(global.currentsong[1], 0, jumptime);
35
        engaged = 0;
36
        with (obj_mainchara_board)
37
        {
38
            visible = true;
39
            if (name == "kris")
40
            {
41
                other.kris = id;
42
                var amt = round(distance_to_point(other.x, other.y) / 6);
43
                var jumpheight = clamp(amt, 10, 32);
44
                
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.x, other.y, jumpheight, jumptime);
45
                snd_play_delay(snd_board_lift, jumptime, 1, 1);
46
            }
47
        }
48
    }
49
    if (embarktimer == (1 + jumptime))
50
    {
51
        if (!
scr_swordroom
scr_swordroom

function
scr_swordroom()
{ if (room == room_board_dungeon_2 || room == room_board_dungeon_3 || room == room_board_sword_intro || room == room_board_1_sword || room == room_board_1_sword_trees || room == room_board_preshadowmantle || room == room_board_preshadowmantle_repeat || room == room_shadowmantle || room == room_board_prepostshadowmantle || room == room_board_postshadowmantle || room == room_board_2_sword || room == room_board_3_sword) return true; else return false; }
())
52
        {
53
            var oceansound = snd_init("ch3_board2.ogg");
54
            oceansong = mus_loop(oceansound);
55
            snd_stop(icemusic);
56
        }
57
    }
58
    if (embarktimer == 6)
59
    {
60
        with (obj_mainchara_board)
61
        {
62
            if (name == "susie")
63
            {
64
                facing = other.kris.facing;
65
                var amt = round(distance_to_point(other.x, other.y) / 6);
66
                var jumpheight = clamp(amt, 10, 32);
67
                
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.x, other.y, jumpheight, jumptime);
68
                snd_play_delay(snd_board_lift, jumptime, 1, 1.2);
69
            }
70
        }
71
    }
72
    if (embarktimer == 11)
73
    {
74
        with (obj_mainchara_board)
75
        {
76
            if (name == "ralsei")
77
            {
78
                facing = other.kris.facing;
79
                var amt = round(distance_to_point(other.x, other.y) / 6);
80
                var jumpheight = clamp(amt, 10, 32);
81
                
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.x, other.y, jumpheight, jumptime);
82
                snd_play_delay(snd_board_lift, jumptime, 1, 1.4);
83
            }
84
        }
85
    }
86
    if (embarktimer == (11 + jumptime))
87
    {
88
        with (obj_mainchara_board)
89
        {
90
        }
91
        embark = 0;
92
        embarktimer = 0;
93
        engaged = true;
94
        global.interact = 0;
95
    }
96
}
97
if (engaged == true)
98
{
99
    press_l = 0;
100
    press_r = 0;
101
    press_u = 0;
102
    press_d = 0;
103
    with (obj_mainchara_board)
104
    {
105
        if (name == "ralsei")
106
            follow = false;
107
    }
108
    if (canfreemove && !i_ex(obj_board_playercamera) && global.interact == 0)
109
    {
110
        if (left_h())
111
            press_l = 1;
112
        if (right_h())
113
            press_r = 1;
114
        if (up_h())
115
            press_u = 1;
116
        if (down_h())
117
            press_d = 1;
118
        px = 0;
119
        py = 0;
120
        pressdir = -1;
121
        if (press_r == 1)
122
        {
123
            px = wspeed;
124
            pressdir = 1;
125
        }
126
        if (press_l == 1)
127
        {
128
            px = -wspeed;
129
            pressdir = 3;
130
        }
131
        if (press_d == 1)
132
        {
133
            py = wspeed;
134
            pressdir = 0;
135
        }
136
        if (press_u == 1)
137
        {
138
            py = -wspeed;
139
            pressdir = 2;
140
        }
141
        if (nopress == 1 && pressdir != -1)
142
            facing = pressdir;
143
        if (facing == 2)
144
        {
145
            if (press_d == 1)
146
                facing = 0;
147
            if (press_u == 0 && pressdir != -1)
148
                facing = pressdir;
149
        }
150
        if (facing == 0)
151
        {
152
            if (press_u == 1)
153
                facing = 2;
154
            if (press_d == 0 && pressdir != -1)
155
                facing = pressdir;
156
        }
157
        if (facing == 3)
158
        {
159
            if (press_r == 1)
160
                facing = 1;
161
            if (press_l == 0 && pressdir != -1)
162
                facing = pressdir;
163
        }
164
        if (facing == 1)
165
        {
166
            if (press_l == 1)
167
                facing = 3;
168
            if (press_r == 0 && pressdir != -1)
169
                facing = pressdir;
170
        }
171
        nopress = 0;
172
        xmeet = 0;
173
        ymeet = 0;
174
        xymeet = 0;
175
        var lenient_x = px;
176
        var lenient_y = py;
177
        if (place_meeting(x + px, y + py, obj_board_boatsolid))
178
            xymeet = 1;
179
        if (place_meeting(x + px, y, obj_board_boatsolid))
180
        {
181
            var block = instance_place(x + px, y, obj_board_boatsolid);
182
            if (block.object_index == obj_pushableblock_board && block.jello == true)
183
            {
184
            }
185
            else
186
            {
187
                if (place_meeting(x + px, y, obj_board_boatsolid))
188
                {
189
                    for (g = wspeed; g > 0; g -= 1)
190
                    {
191
                        mvd = 0;
192
                        if (press_d == 0 && !place_meeting(x + px, y - g, obj_board_boatsolid))
193
                        {
194
                            y -= g;
195
                            py = 0;
196
                            break;
197
                            mvd = 1;
198
                        }
199
                        if (press_u == 0 && mvd == 0 && !place_meeting(x + px, y + g, obj_board_boatsolid))
200
                        {
201
                            y += g;
202
                            py = 0;
203
                            break;
204
                        }
205
                    }
206
                }
207
                xmeet = 1;
208
                bkx = 0;
209
                if (px > 0)
210
                {
211
                    for (i = px; i >= 0; i -= 1)
212
                    {
213
                        if (!place_meeting(x + i, y, obj_board_boatsolid))
214
                        {
215
                            px = i;
216
                            bkx = 1;
217
                            break;
218
                        }
219
                    }
220
                }
221
                if (px < 0)
222
                {
223
                    for (i = px; i <= 0; i += 1)
224
                    {
225
                        if (!place_meeting(x + i, y, obj_board_boatsolid))
226
                        {
227
                            px = i;
228
                            bkx = 1;
229
                            break;
230
                        }
231
                    }
232
                }
233
                if (bkx == 0)
234
                    px = 0;
235
            }
236
        }
237
        if (place_meeting(x, y + py, obj_board_boatsolid))
238
        {
239
            var block = instance_place(x, y + py, obj_board_boatsolid);
240
            if (block.object_index == obj_pushableblock_board && block.jello == true)
241
            {
242
            }
243
            else
244
            {
245
                ymeet = 1;
246
                bky = 0;
247
                if (place_meeting(x, y + py, obj_board_boatsolid))
248
                {
249
                    for (g = wspeed; g > 0; g -= 1)
250
                    {
251
                        mvd = 0;
252
                        if (press_r == 0 && !place_meeting(x - g, y + py, obj_board_boatsolid))
253
                        {
254
                            x -= g;
255
                            px = 0;
256
                            break;
257
                            mvd = 1;
258
                        }
259
                        if (mvd == 0 && press_l == 0 && !place_meeting(x + g, y + py, obj_board_boatsolid))
260
                        {
261
                            x += g;
262
                            px = 0;
263
                            break;
264
                        }
265
                    }
266
                }
267
                if (py > 0)
268
                {
269
                    for (i = py; i >= 0; i -= 1)
270
                    {
271
                        if (!place_meeting(x, y + i, obj_board_boatsolid))
272
                        {
273
                            py = i;
274
                            bky = 1;
275
                            break;
276
                        }
277
                    }
278
                }
279
                if (py < 0)
280
                {
281
                    for (i = py; i <= 0; i += 1)
282
                    {
283
                        if (!place_meeting(x, y + i, obj_board_boatsolid))
284
                        {
285
                            py = i;
286
                            bky = 1;
287
                            break;
288
                        }
289
                    }
290
                }
291
                if (bky == 0)
292
                    py = 0;
293
            }
294
        }
295
        if (place_meeting(x + px, y + py, obj_board_boatsolid))
296
        {
297
            xymeet = 1;
298
            bkxy = 0;
299
            i = px;
300
            j = py;
301
            while (j != 0 || i != 0)
302
            {
303
                if (!place_meeting(x + i, y + j, obj_board_boatsolid))
304
                {
305
                    px = i;
306
                    py = j;
307
                    bkxy = 1;
308
                    break;
309
                }
310
                if (abs(j) >= 1)
311
                {
312
                    if (j > 0)
313
                        j -= 1;
314
                    if (j < 0)
315
                        j += 1;
316
                }
317
                else
318
                {
319
                    j = 0;
320
                }
321
                if (abs(i) >= 1)
322
                {
323
                    if (i > 0)
324
                        i -= 1;
325
                    if (i < 0)
326
                        i += 1;
327
                }
328
                else
329
                {
330
                    i = 0;
331
                }
332
            }
333
            if (bkxy == 0)
334
            {
335
                px = 0;
336
                py = 0;
337
            }
338
        }
339
        var lenient_amount = 8;
340
        if (px == 0 && lenient_y == 0 && lenient_x > 0)
341
        {
342
            var colllide_count = 0;
343
            for (i = 0; i <= 16; i += 1)
344
            {
345
                if (position_meeting(x + 32, (y + 32) - i, obj_board_boatsolid))
346
                    colllide_count = i;
347
            }
348
            if (colllide_count <= lenient_amount)
349
                y -= wspeed;
350
            colllide_count = 0;
351
            for (i = 0; i <= 16; i += 1)
352
            {
353
                if (position_meeting(x + 32, y + 16 + i, obj_board_boatsolid))
354
                    colllide_count = i;
355
            }
356
            if (colllide_count <= lenient_amount)
357
                y += wspeed;
358
        }
359
        if (px == 0 && lenient_y == 0 && lenient_x < 0)
360
        {
361
            var colllide_count = 0;
362
            for (i = 0; i <= 16; i += 1)
363
            {
364
                if (position_meeting(x - 1, (y + 32) - i, obj_board_boatsolid))
365
                    colllide_count = i;
366
            }
367
            if (colllide_count <= lenient_amount)
368
                y -= wspeed;
369
            colllide_count = 0;
370
            for (i = 0; i <= 16; i += 1)
371
            {
372
                if (position_meeting(x - 1, y + 16 + i, obj_board_boatsolid))
373
                    colllide_count = i;
374
            }
375
            if (colllide_count <= lenient_amount)
376
                y += wspeed;
377
        }
378
        if (py == 0 && lenient_x == 0 && lenient_y > 0)
379
        {
380
            lenient_amount = 12;
381
            var colllide_count = 0;
382
            for (i = 0; i <= 32; i += 1)
383
            {
384
                if (position_meeting((x + 32) - i, y + 32, obj_board_boatsolid))
385
                    colllide_count = i;
386
            }
387
            if (colllide_count <= lenient_amount)
388
                x -= wspeed;
389
            colllide_count = 0;
390
            for (i = 0; i <= 32; i += 1)
391
            {
392
                if (position_meeting(x + i, y + 32, obj_board_boatsolid))
393
                    colllide_count = i;
394
            }
395
            if (colllide_count <= lenient_amount)
396
                x += wspeed;
397
            lenient_amount = 8;
398
        }
399
        if (py == 0 && lenient_x == 0 && lenient_y < 0)
400
        {
401
            var colllide_count = 0;
402
            for (i = 0; i <= 32; i += 1)
403
            {
404
                if (position_meeting((x + 32) - i, y, obj_board_boatsolid))
405
                    colllide_count = i;
406
            }
407
            if (colllide_count <= lenient_amount)
408
                x -= wspeed;
409
            colllide_count = 0;
410
            for (i = 0; i <= 32; i += 1)
411
            {
412
                if (position_meeting(x + i, y, obj_board_boatsolid))
413
                    colllide_count = i;
414
            }
415
            if (colllide_count <= lenient_amount)
416
                x += wspeed;
417
        }
418
        x += px;
419
        y += py;
420
    }
421
    var __canscreentransition = true;
422
    if (__canscreentransition == true)
423
    {
424
        if (x > 480)
425
        {
426
            x = 480;
427
            if (!place_meeting(x + 32, y, obj_board_boatsolid))
428
            {
429
                facing = 1;
430
                canfreemove = 0;
431
                with (obj_board_camera)
432
                    shift = "right";
433
            }
434
        }
435
        if (x < 128)
436
        {
437
            x = 128;
438
            if (!place_meeting(x - 32, y, obj_board_boatsolid))
439
            {
440
                facing = 3;
441
                canfreemove = 0;
442
                with (obj_board_camera)
443
                    shift = "left";
444
            }
445
        }
446
        if (y > 288)
447
        {
448
            y = 288;
449
            if (!place_meeting(x, y + 32, obj_board_boatsolid))
450
            {
451
                canfreemove = 0;
452
                with (obj_board_camera)
453
                    shift = "down";
454
            }
455
        }
456
        if (y < 64)
457
        {
458
            y = 64;
459
            if (!place_meeting(x, y - 32, obj_board_boatsolid))
460
            {
461
                facing = 2;
462
                canfreemove = 0;
463
                with (obj_board_camera)
464
                    shift = "up";
465
            }
466
        }
467
        if (place_meeting(x, y, obj_board_warpentrance))
468
        {
469
            var warp = instance_place(x, y, obj_board_warpentrance);
470
            with (obj_board_camera)
471
            {
472
                if (shift != "none")
473
                {
474
                    warpx = warp.warpx;
475
                    warpy = warp.warpy;
476
                    playerX = warp.playerX;
477
                    playerY = warp.playerY;
478
                    shift = "warp";
479
                }
480
            }
481
        }
482
    }
483
    if (buffer < 0 && obj_board_camera.con == 0 && obj_board_camera.shift == "none")
484
    {
485
        if (button1_p())
486
        {
487
            buffer = 3;
488
            dock = 0;
489
            var cx = 0;
490
            var cy = 0;
491
            if (facing == 0)
492
                cy = 32;
493
            if (facing == 1)
494
                cx = 32;
495
            if (facing == 2)
496
                cy = -32;
497
            if (facing == 3)
498
                cx = -32;
499
            dock = collision_rectangle(x + cx + 12, y + cy + 12, x + cx + 20, y + cy + 20, obj_board_dock, false, true);
500
            if (instance_exists(dock))
501
            {
502
                myx = dock.x;
503
                myy = dock.y;
504
                if (facing == 0)
505
                    myy -= 32;
506
                if (facing == 2)
507
                    myy += 32;
508
                if (facing == 1)
509
                    myx -= 32;
510
                if (facing == 3)
511
                    myx += 32;
512
                global.interact = 1;
513
                disembark = 1;
514
                canfreemove = 0;
515
            }
516
        }
517
    }
518
}
519
if (disembark == 1)
520
{
521
    with (obj_mainchara_board)
522
        boat = false;
523
    disembark = 2;
524
    disembarktimer = 0;
525
}
526
if (disembark == 2)
527
{
528
    disembarktimer++;
529
    if (abs(x - myx) > 1)
530
    {
531
        if (x < myx)
532
            x += 2;
533
        if (x > myx)
534
            x -= 2;
535
    }
536
    else
537
    {
538
        x = myx;
539
    }
540
    if (abs(y - myy) > 1)
541
    {
542
        if (y < myy)
543
            y += 2;
544
        if (y > myy)
545
            y -= 2;
546
    }
547
    else
548
    {
549
        y = myy;
550
    }
551
    if ((x == myx && y == myy) || disembarktimer > 16)
552
    {
553
        setxy(myx, myy);
554
        disembark = 3;
555
        kris = 0;
556
        with (obj_mainchara_board)
557
        {
558
            visible = false;
559
            if (controlled == 1)
560
            {
561
                other.kris = id;
562
                visible = true;
563
            }
564
        }
565
        disembarktimer = 0;
566
        engaged = 0;
567
    }
568
}
569
if (disembark == 3)
570
{
571
    disembarktimer++;
572
    var jumptime = 10;
573
    if (disembarktimer == 1)
574
    {
575
        if (!
scr_swordroom
scr_swordroom

function
scr_swordroom()
{ if (room == room_board_dungeon_2 || room == room_board_dungeon_3 || room == room_board_sword_intro || room == room_board_1_sword || room == room_board_1_sword_trees || room == room_board_preshadowmantle || room == room_board_preshadowmantle_repeat || room == room_shadowmantle || room == room_board_prepostshadowmantle || room == room_board_postshadowmantle || room == room_board_2_sword || room == room_board_3_sword) return true; else return false; }
())
576
            mus_fade(oceansong, jumptime);
577
        engaged = 0;
578
        with (obj_mainchara_board)
579
        {
580
            facing = other.facing;
581
            visible = true;
582
            if (name == "kris")
583
            {
584
                
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.dock.x, other.dock.y, 10, jumptime);
585
                snd_play_delay(snd_board_lift, jumptime, 1, 1.4);
586
            }
587
        }
588
    }
589
    if (disembarktimer == (1 + jumptime))
590
    {
591
        if (!
scr_swordroom
scr_swordroom

function
scr_swordroom()
{ if (room == room_board_dungeon_2 || room == room_board_dungeon_3 || room == room_board_sword_intro || room == room_board_1_sword || room == room_board_1_sword_trees || room == room_board_preshadowmantle || room == room_board_preshadowmantle_repeat || room == room_shadowmantle || room == room_board_prepostshadowmantle || room == room_board_postshadowmantle || room == room_board_2_sword || room == room_board_3_sword) return true; else return false; }
())
592
        {
593
            var resumemusic = true;
594
            if (room == room_board_2)
595
            {
596
                if (obj_b2_ice_c2.active == true)
597
                    resumemusic = false;
598
            }
599
            if (resumemusic)
600
            {
601
                snd_stop(icemusic);
602
                mus_volume(global.currentsong[1], 1, 30);
603
            }
604
            else
605
            {
606
                snd_stop(icemusic);
607
                var icemusic_snd = snd_init("board_ocean.ogg");
608
                icemusic = mus_loop(icemusic_snd);
609
            }
610
        }
611
    }
612
    if (disembarktimer == 6)
613
    {
614
        with (obj_mainchara_board)
615
        {
616
            if (name == "susie")
617
            {
618
                
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.dock.x, other.dock.y - 1, 10, jumptime);
619
                snd_play_delay(snd_board_lift, jumptime, 1, 1.2);
620
            }
621
        }
622
    }
623
    if (disembarktimer == 11)
624
    {
625
        with (obj_mainchara_board)
626
        {
627
            if (name == "ralsei")
628
            {
629
                
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.dock.x, other.dock.y, 10, jumptime);
630
                snd_play_delay(snd_board_lift, jumptime, 1, 1);
631
            }
632
        }
633
    }
634
    if (disembarktimer == (11 + jumptime))
635
    {
636
        global.interact = 0;
637
        with (obj_mainchara_board)
638
        {
639
            if (name == "ralsei")
640
                facing = other.kris.facing;
641
            canfreemove = true;
642
        }
643
        
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++; } } }
();
644
        resetpos = true;
645
        scr_delay_var("resetpos", false, 1);
646
        disembark = 0;
647
        disembarktimer = 0;
648
        snd_stop(oceansong);
649
    }
650
}