Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2d_intro_Create_0

(view raw script w/o annotations or w/e)
1
image_alpha = 0;
2
active = false;
3
init = 0;
4
con = 0;
5
timer = 0;
6
kris = 0;
7
kr_real = 0;
8
transitionmarker = 0;
9
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
10
{
11
    if (keyboard_check(ord("H")))
12
        global.swordboardeath = 1;
13
}
14
kind = 0;
15
if (global.swordboardeath == 1)
16
    kind = 1;
17
if (kind == 0)
18
{
19
    global.flag[1055 sword_route_progress] = 1.5;
20
    global.flag[7 disable_menu?] = 1;
21
    if (global.flag[1087 entered_ice_palace] == 1)
22
    {
23
        transitionmarker = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(x - 32, y - 64, spr_pxwhite);
24
        with (transitionmarker)
25
        {
26
            image_xscale = 384;
27
            image_yscale = 32;
28
            image_blend = c_black;
29
            depth = -5;
30
        }
31
        transition = instance_create(x - 32, y - 32, obj_board_squaretransition);
32
        transition.depth = 100001;
33
        transition.special = "heart";
34
        obj_gameshow_swordroute.screencolor = c_black;
35
    }
36
    scon = 0;
37
    cskip = 0;
38
}
39
if (kind == 1)
40
{
41
    con = 49.6;
42
    timer = 0;
43
}