Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_rhythmgame_Other_14

(view raw script w/o annotations or w/e)
1
if (!tutorial_ready)
2
{
3
    debug_print("tutorial not ready to advance!");
4
    exit;
5
}
6
tutorial++;
7
tutorial_ready = false;
8
if (tutorial == 1)
9
{
10
    timer = 0;
11
    debug_print("Tutorial: How to play");
12
    difficulty = 5;
13
    show_chart = 1;
14
    auto_play = 1;
15
    song_id = 3;
16
    intro_con = 2;
17
    loadsong = 1;
18
    with (obj_rhythmgame_chart)
19
        auto_play = true;
20
    alarm[0]
 = 20;
gml_Object_obj_rhythmgame_Alarm_0.gml

tutorial_ready = true;
21
}
22
else if (tutorial == 2)
23
{
24
    scr_rhythmgame_toggle_notes(true);
25
    debug_print("Tutorial: Spawn notes");
26
    alarm[0]
 = 60;
gml_Object_obj_rhythmgame_Alarm_0.gml

tutorial_ready = true;
27
}
28
else if (tutorial == 3)
29
{
30
    timer = 1;
31
    debug_print("Tutorial: Ignore your friends");
32
    alarm[0]
 = 20;
gml_Object_obj_rhythmgame_Alarm_0.gml

tutorial_ready = true;
33
}
34
else if (tutorial == 4)
35
{
36
    debug_print("Tutorial: Playing bad");
37
    auto_play = -1;
38
    alarm[0]
 = 60;
gml_Object_obj_rhythmgame_Alarm_0.gml

tutorial_ready = true;
39
}
40
else if (tutorial == 5)
41
{
42
    debug_print("Tutorial: Kris failed");
43
    difficulty = 10;
44
    alarm[0]
 = 30;
gml_Object_obj_rhythmgame_Alarm_0.gml

tutorial_ready = true;
45
}
46
else if (tutorial == 6)
47
{
48
    with (obj_rhythmgame_chart)
49
    {
50
        if (instrument == 1)
51
            auto_play = false;
52
    }
53
    debug_print("Tutorial: Everyone's a loser (except Ralsei)");
54
    alarm[0]
 = 60;
gml_Object_obj_rhythmgame_Alarm_0.gml

tutorial_ready = true;
55
}
56
else if (tutorial == 7)
57
{
58
    debug_print("Tutorial: Gone");
59
    auto_play = 0;
60
    show_chart = 0;
61
    difficulty = 5;
62
    alarm[0]
 = 20;
gml_Object_obj_rhythmgame_Alarm_0.gml

tutorial_ready = true;
63
}
64
else if (tutorial == 8)
65
{
66
    tutorial = -1;
67
    miss_timer = 0;
68
    missnotecon = 0;
69
    missnotetimer = 0;
70
    mus_volume(track1_instance, 0, 60);
71
    mus_volume(track2_instance, 0, 60);
72
    event_user(1);
73
    debug_print("Tutorial: Wrapped up");
74
    tutorial_ready = true;
75
}