Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_krisroom_Create_0

(view raw script w/o annotations or w/e)
1
if (global.plot <= 10)
2
    snd_free_all();
3
con = 0;
4
image_speed = 0;
5
wallwindow = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(140, 40, spr_housewindow);
6
with (wallwindow)
7
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
8
if (global.plot > 0)
9
{
10
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
11
    with (wallwindow)
12
        image_index = 1;
13
    image_index = 1;
14
}
15
else
16
{
17
    scr_windowcaption
scr_windowcaption

function scr_windowcaption(arg0) { if (global.tempflag[10] == 1) window_set_caption(
DELTARUNE
scr_84_get_lang_string("scr_windowcaption_slash_scr_windowcaption_gml_1_0")
); else window_set_caption(arg0); }
(
The Beginning
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_krisroom_slash_Create_0_gml_14_0")
);
18
    t = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(151, 97, spr_toriel_rt);
19
    with (t)
20
    {
21
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
22
        image_speed = 0.25;
23
    }
24
    global.msc = 0;
25
    global.typer = 7;
26
    global.fc = 4;
27
    global.fe = 1;
28
    global.msg[0] = 
* KRIS!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_krisroom_slash_Create_0_gml_21_0")
;
29
    global.msg[1] = 
* Kris,Delay 11 if you do not wake up,Delay 11 we will be late for school!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_krisroom_slash_Create_0_gml_22_0")
;
30
    d = instance_create(0, 0, obj_dialoguer);
31
    con = 1;
32
    global.interact = 1;
33
    global.facing = 3;
34
}