Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_b2_atlantisdecor_Step_0

(view raw script w/o annotations or w/e)
1
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; } } }
();
2
if (kris.boat == true)
3
    depth = 100000;
4
else
5
    
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();
}
();
6
if (active)
7
{
8
    if (!kris.boat)
9
    {
10
        if (place_meeting(x, y, kris))
11
        {
12
            with (obj_b2loverbridge)
13
                stoptalk = 1;
14
            
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; } }
(2432, 64, 2592, 192);
15
            snd_play(snd_board_escaped);
16
            active = false;
17
        }
18
    }
19
}