Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_b2sword_boatwarp_Step_0

(view raw script w/o annotations or w/e)
1
scr_gameshow_populatevars
scr_gameshow_populatevars

function
scr_gameshow_populatevars()
{ if (!variable_instance_exists(id, "kr_real")) kr_real = 0; if (!variable_instance_exists(id, "su_real")) su_real = 0; if (!variable_instance_exists(id, "ra_real")) ra_real = 0; if (!variable_instance_exists(id, "tenna")) tenna = 0; if (kr_real == 0) { with (obj_mainchara) other.kr_real = id; } if (su_real == 0) { with (obj_caterpillarchara) { if (name == "susie") other.su_real = id; } } if (ra_real == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ra_real = id; } } if (tenna == 0) { with (obj_actor_tenna) other.tenna = id; } }
();
2
scr_board_populatevars
scr_board_populatevars

function
scr_board_populatevars()
{ if (!variable_instance_exists(id, "kris")) kris = 0; if (!variable_instance_exists(id, "susie")) susie = 0; if (!variable_instance_exists(id, "ralsei")) ralsei = 0; if (kris == 0) { with (obj_mainchara_board) { if (name == "kris") other.kris = id; } } if (ralsei == 0) { with (obj_mainchara_board) { if (name == "ralsei") other.ralsei = id; } } if (susie == 0) { with (obj_mainchara_board) { if (name == "susie") other.susie = id; } } }
();
3
if (con == 0)
4
{
5
    if (place_meeting(x, y, obj_board_boat))
6
    {
7
        snd_play(snd_link_secret_bad);
8
        global.interact = 1;
9
        timer = 0;
10
        con = 1;
11
        
scr_quickwarp
scr_quickwarp

function
scr_quickwarp(arg0, arg1, arg2, arg3)
{ with (obj_board_camera) { global.interact = 1; shift = "warp"; warpx = arg0; warpy = arg1; playerX = arg2; playerY = arg3; } }
(3968, 2112, 4192, 2240);
12
    }
13
}
14
if (con == 1)
15
{
16
    with (obj_board_transition)
17
    {
18
        if (con == 3)
19
        {
20
            with (obj_board_boat)
21
            {
22
                if (engaged)
23
                    instance_destroy();
24
            }
25
            with (obj_mainchara_board)
26
            {
27
                setxy_board(4192, 2240);
28
                facing = 0;
29
            }
30
            other.con++;
31
        }
32
    }
33
}