Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_b2_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 (active)
4
{
5
    if (con == 0)
6
    {
7
        if (place_meeting(x, y, obj_board_boat))
8
        {
9
            global.interact = 1;
10
            timer = 0;
11
            con = 1;
12
            
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; } }
(1664, 3136, 1856, 3296);
13
        }
14
    }
15
}
16
if (con == 1)
17
{
18
    with (obj_board_transition)
19
    {
20
        if (con == 3)
21
        {
22
            with (obj_board_boat)
23
            {
24
                if (engaged)
25
                    setxy(board_tilex(6), board_tiley(5));
26
            }
27
            other.con++;
28
        }
29
    }
30
}