Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_k_d

(view raw script w/o annotations or w/e)
1
function k_d(arg0 = 0)
2
{
3
    with (obj_dialoguer)
4
    {
5
        if (arg0 > 0)
6
        {
7
            var _stayer = instance_create_depth(x, y, depth + 1, obj_writer_stay);
8
            _stayer.side = side;
9
            _stayer.xoff = xoff;
10
            _stayer.yoff = yoff;
11
            _stayer.boxwidth = boxwidth;
12
            _stayer.boxheight = boxheight;
13
            _stayer.cur_jewel = cur_jewel;
14
            
scr_doom
scr_doom

function
scr_doom(arg0 = id, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; persistent = arg0.persistent; } }
(_stayer, arg0);
15
        }
16
        instance_destroy();
17
    }
18
    with (obj_writer)
19
        instance_destroy();
20
}