Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_legend_cutscene_base_Step_0

(view raw script w/o annotations or w/e)
1
if (!init)
2
{
3
    init_timer++;
4
    if (init_timer == 1)
5
        alarm[2]
 = 1;
gml_Object_obj_legend_cutscene_base_Alarm_2.gml

init_plot = global.plot >= 0 && global.plot < 999; if (
scr_debug())
show_debug_message("Warning: need to set plot check for legend cutscene!");
6
    if (init_timer > 1)
7
    {
8
        if (!init_plot)
9
        {
10
            looper.dialogue_finish = true;
11
            instance_destroy();
12
            exit;
13
        }
14
        else
15
        {
16
            init = true;
17
        }
18
    }
19
    exit;
20
}
21
if (con == 0 && looper.enteredloop == 1 && global.interact == 0)
22
{
23
    looper.preventmenu = 1;
24
    con = 1;
25
    alarm[0]
 = 1;
gml_Object_obj_legend_cutscene_base_Alarm_0.gml

exit;
26
    alarm[1]
 = 2;
gml_Object_obj_legend_cutscene_base_Alarm_1.gml

con = 10; d = d_make(); d.zurasu = 1;
27
}
28
if (con == 10 && !d_ex())
29
{
30
    con = 2;
31
    looper.dialogue_finish = true;
32
    alarm[3]
 = 1;
gml_Object_obj_legend_cutscene_base_Alarm_3.gml

global.plot = 999; if (
scr_debug())
show_debug_message("Warning: need to set plot for end of legend cutscene!");
33
}