Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_DEVICE_FAILURE_Create_0

(view raw script w/o annotations or w/e)
1
EVENT = 0;
2
TIMER = 0;
3
HEARTMADE = 0;
4
HSINER = 0;
5
OBMADE = 0;
6
global.flag[20 other_text_command] = 0;
7
global.flag[6 disable_text_skip] = 1;
8
global.typer = 667;
9
scr_windowcaption
scr_windowcaption

function
scr_windowcaption(arg0)
{ if (global.tempflag[10] != 1 && global.chapter == 1) window_set_caption(arg0); else window_set_caption("DELTARUNE Chapter " + string(global.chapter)); }
(stringsetloc(
THE DEATH
"THE DEATH", "DEVICE_FAILURE_slash_Create_0_gml_12_0"
));
10
FADEFACTOR = 0;
11
WHITEFADE = 0;
12
FADEUP = 0;
13
DARK_WAIT = 0;
14
text_timer = 30;
15
restart = false;
16
restart_timer = 0;
17
gamepad_controls = [gp_face1, gp_face2, gp_face3, gp_face4, gp_shoulderl, gp_shoulderlb, gp_shoulderr, gp_shoulderrb, gp_select, gp_start, gp_stickl, gp_stickr, gp_padu, gp_padd, gp_padl, gp_padr];
18
if (global.chapter > 1)
19
{
20
    var gameover_bg = instance_create(0, 20, obj_gameoverbg);
21
    with (gameover_bg)
22
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
23
}
24
with (obj_event_manager)
25
    trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_13);
26
27
enum UnknownEnum
28
{
29
    Value_0,
30
    Value_13 = 13
31
}