Deltarune script viewer

← back to main script listing

gml_Object_obj_unusedclassevent_ch1_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    scr_windowcaption_ch1
scr_windowcaption_ch1

function scr_windowcaption_ch1(arg0) { if (global.tempflag[10] == 1) window_set_caption(
DELTARUNE
scr_84_get_lang_string_ch1("scr_windowcaption_slash_scr_windowcaption_gml_1_0")
); else window_set_caption(arg0); }
(" ");
4
    global.facing = 0;
5
    con = 1;
6
    alarm[4] = 90;
7
}
8
if (con == 2)
9
{
10
    global.darkzone = 0;
11
    global.flag[29 susie_show_eyes] = 1;
12
    global.typer = 10;
13
    global.fe = 0;
14
    global.fc = 0;
15
    global.msg[0] = 
* Wh...Delay 11 what happened!?Delay 22
* I can't see anything!!Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_16_0")
;
16
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
17
    con = 3;
18
}
19
if (con == 3 && !d_ex_ch1())
20
{
21
    snd_play_ch1(snd_impact_ch1);
22
    con = 4;
23
    alarm[4] = 15;
24
}
25
if (con == 5)
26
{
27
    snd_play_ch1(snd_drive_ch1);
28
    con = 6;
29
    alarm[4] = 15;
30
}
31
if (con == 7)
32
{
33
    snd_play_ch1(snd_locker_ch1);
34
    con = 8;
35
    alarm[4] = 15;
36
}
37
if (con == 9)
38
{
39
    snd_play_ch1(snd_squeaky_ch1);
40
    con = 10;
41
    alarm[4] = 15;
42
}
43
if (con == 11)
44
{
45
    snd_play_ch1(snd_sussurprise_ch1);
46
    global.msg[0] = 
* Hey,Delay 11 WATCH IT!Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_52_0")
;
47
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
48
    con = 12;
49
    alarm[4] = 15;
50
}
51
if (con == 13 && !d_ex_ch1())
52
{
53
    snd_play_ch1(snd_wing_ch1);
54
    con = 14;
55
    alarm[4] = 15;
56
}
57
if (con == 15)
58
{
59
    snd_play_ch1(snd_pombark_ch1);
60
    con = 16;
61
    alarm[4] = 15;
62
}
63
if (con == 17)
64
{
65
    snd_play_ch1(snd_impact_ch1);
66
    con = 18;
67
    alarm[4] = 15;
68
}
69
if (con == 19)
70
{
71
    scr_windowcaption_ch1
scr_windowcaption_ch1

function scr_windowcaption_ch1(arg0) { if (global.tempflag[10] == 1) window_set_caption(
DELTARUNE
scr_84_get_lang_string_ch1("scr_windowcaption_slash_scr_windowcaption_gml_1_0")
); else window_set_caption(arg0); }
(
The Return
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_81_0")
);
72
    snd_play_ch1(snd_noise_ch1);
73
    lightsoff = 0;
74
    s = scr_marker_ch1
scr_marker_ch1

function scr_marker_ch1(arg0, arg1, arg2) { thismarker = instance_create_ch1(arg0, arg1, obj_marker_ch1); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(146, 70, spr_susied_plain_ch1);
75
    with (s)
76
        depth = 100000;
77
    con = 24;
78
    alarm[4] = 50;
79
}
80
if (con == 25)
81
{
82
    global.fc = 1;
83
    global.fe = 0;
84
    global.msg[0] = 
* H...Delay 11 Huh...?Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_94_0")
;
85
    global.msg[1] = 
* The unused classroom...?Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_95_0")
;
86
    global.msg[2] = 
\E3* How'd we get here...?Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_96_0")
;
87
    con = 26;
88
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
89
}
90
if (con == 26 && !d_ex_ch1())
91
{
92
    with (s)
93
    {
94
        image_speed = 0.1;
95
        vspeed = 0.5;
96
    }
97
    con = 27;
98
    alarm[4] = 40;
99
}
100
if (con == 28)
101
{
102
    with (s)
103
        scr_halt_ch1
scr_halt_ch1

function scr_halt_ch1() { image_index = 0; image_speed = 0; speed = 0; }
();
104
    con = 29;
105
    alarm[4] = 45;
106
    global.fe = 0;
107
}
108
if (con == 30)
109
{
110
    with (s)
111
        sprite_index = spr_susier_plain_ch1;
112
    global.msg[0] = 
* ... Hey, Kris...Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_123_0")
;
113
    global.msg[1] = 
\E1* What...Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_124_0")
;
114
    global.msg[2] = 
\E0* What just happened...?Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_125_0")
;
115
    global.msg[3] = 
\E3* Like,Delay 11 that wasn't a dream or anything,Delay 11 was it...?Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_126_0")
;
116
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
117
    con = 31;
118
}
119
if (con == 31 && !d_ex_ch1())
120
{
121
    con = 32;
122
    alarm[4] = 60;
123
}
124
if (con == 33)
125
{
126
    with (s)
127
        sprite_index = spr_susied_plain_ch1;
128
    global.fe = 0;
129
    global.msg[0] = 
\E0* ...Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_141_0")
;
130
    global.msg[1] = 
\E3* Anyway, as I was SAYING,Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_142_0")
;
131
    global.msg[2] = 
\E2* Let's just tell Alphys we couldn't find any chalk.Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_unusedclassevent_slash_Step_0_gml_143_0")
;
132
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
133
    con = 34;
134
}
135
if (con == 34 && !d_ex_ch1())
136
{
137
    with (s)
138
    {
139
        vspeed = 2;
140
        image_speed = 0.2;
141
    }
142
    con = 35;
143
}
144
if (con == 35)
145
{
146
    if (s.y >= 140)
147
    {
148
        snd_play_ch1(snd_doorclose_ch1);
149
        with (s)
150
            visible = 0;
151
        con = 37;
152
    }
153
}
154
if (con == 37)
155
{
156
    global.interact = 0;
157
    if (global.plot < 250)
158
        global.plot = 250;
159
    con = 38;
160
}