Deltarune script viewer

← back to main script listing

gml_Object_obj_susiebadguy_event_ch1_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 1)
2
{
3
    if (obj_mainchara_ch1.x >= (x - 200) && global.interact == 0)
4
    {
5
        snd_free_all_ch1();
6
        global.facing = 1;
7
        with (obj_caterpillarchara_ch1)
8
        {
9
            fun = 1;
10
            if (rsprite == spr_ralseir_ch1)
11
                sprite_index = spr_ralseir_ch1;
12
        }
13
        with (obj_mainchara_ch1)
14
            cutscene = 1;
15
        global.interact = 1;
16
        sprite_index = spr_lancer_lt_ch1;
17
        with (s)
18
            sprite_index = spr_susiel_dark_ch1;
19
        exc = instance_create_ch1(x + 30, y - 20, obj_excblcon_ch1);
20
        con = 2;
21
        scr_pan_ch1
scr_pan_ch1

function scr_pan_ch1(arg0, arg1, arg2) { panner = instance_create_ch1(0, 0, obj_panner_ch1); panner.panmax = arg2; panner.panx = arg0; panner.pany = arg1; }
(4, 0, 30);
22
        alarm[4] = 30;
23
    }
24
}
25
if (con == 3)
26
{
27
    global.currentsong[0] = snd_init_ch1("lancer.ogg");
28
    global.currentsong[1] = mus_loop_ext_ch1(global.currentsong[0], 0.7, 1);
29
    global.typer = 31;
30
    global.fc = 2;
31
    global.fe = 10;
32
    global.msg[0] = 
* Susie...!Delay 11 Lancer...!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_susiebadguy_event_slash_Step_0_gml_30_0")
;
33
    scr_susface_ch1
scr_susface_ch1

function scr_susface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FS \TS Close Message
scr_84_get_lang_string_ch1("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1)); }
(1, 2);
34
    global.msg[2] = 
* Heheheh...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_susiebadguy_event_slash_Step_0_gml_32_0")
;
35
    scr_lanface_ch1
scr_lanface_ch1

function scr_lanface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FL \TL Close Message
scr_84_get_lang_string_ch1("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1)); }
(3, 1);
36
    global.msg[4] = 
* Well if it isn't the so-called Heroes...!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_susiebadguy_event_slash_Step_0_gml_34_0")
;
37
    scr_susface_ch1
scr_susface_ch1

function scr_susface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FS \TS Close Message
scr_84_get_lang_string_ch1("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1)); }
(5, 2);
38
    global.msg[6] = 
* Are you finally ready to see what happens...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_susiebadguy_event_slash_Step_0_gml_36_0")
;
39
    scr_lanface_ch1
scr_lanface_ch1

function scr_lanface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FL \TL Close Message
scr_84_get_lang_string_ch1("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1)); }
(7, 2);
40
    global.msg[8] = 
* When you try to act soft...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_susiebadguy_event_slash_Step_0_gml_38_0")
;
41
    scr_susface_ch1
scr_susface_ch1

function scr_susface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FS \TS Close Message
scr_84_get_lang_string_ch1("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1)); }
(9, 4);
42
    global.msg[10] = 
* Against a team that crushes ANYONE in their way?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_susiebadguy_event_slash_Step_0_gml_40_0")
;
43
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
44
    con = 4;
45
}
46
if (con == 4 && !d_ex_ch1())
47
{
48
    sprite_index = spr_lancer_dt_ch1;
49
    snd_play_ch1(snd_impact_ch1);
50
    instance_create_ch1(0, 0, obj_shake_ch1);
51
    con = 5;
52
    alarm[4] = 5;
53
}
54
if (con == 6)
55
{
56
    global.typer = 32;
57
    global.fc = 5;
58
    global.fe = 2;
59
    global.msg[0] = 
* Dark Jack Lancer!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_susiebadguy_event_slash_Step_0_gml_60_0")
;
60
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
61
    con = 7;
62
}
63
if (con == 7 && !d_ex_ch1())
64
{
65
    with (s)
66
        sprite_index = spr_susied_dark_ch1;
67
    snd_play_ch1(snd_impact_ch1);
68
    instance_create_ch1(0, 0, obj_shake_ch1);
69
    con = 8;
70
    alarm[4] = 5;
71
}
72
if (con == 9 && !d_ex_ch1())
73
{
74
    global.typer = 30;
75
    global.fc = 1;
76
    global.fe = 2;
77
    global.msg[0] = 
* Violent Ax Susie!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_susiebadguy_event_slash_Step_0_gml_79_0")
;
78
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
79
    con = 10;
80
}
81
if (con == 10 && !d_ex_ch1())
82
{
83
    sprite_index = spr_lancer_rt_ch1;
84
    with (s)
85
        sprite_index = spr_susiel_dark_ch1;
86
    con = 11;
87
    alarm[4] = 5;
88
}
89
if (con == 12)
90
{
91
    global.typer = 30;
92
    global.fc = 1;
93
    global.fe = 3;
94
    global.msg[0] = 
* Together we are...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_susiebadguy_event_slash_Step_0_gml_97_0")
;
95
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
96
    con = 13;
97
}
98
if (con == 13 && !d_ex_ch1())
99
{
100
    snd_play_ch1(snd_magicsprinkle_ch1);
101
    whitefade = scr_dark_marker_ch1
scr_dark_marker_ch1

function scr_dark_marker_ch1(arg0, arg1, arg2) { thismarker = instance_create_ch1(arg0, arg1, obj_marker_ch1); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(-10, -10, spr_pixel_white_ch1);
102
    with (whitefade)
103
    {
104
        image_alpha = 0;
105
        image_xscale = 1000;
106
        image_yscale = 1000;
107
        depth = -100;
108
    }
109
    wtimer = 0;
110
    con = 14;
111
}
112
if (con == 14)
113
{
114
    wtimer += 1;
115
    if (wtimer <= 25)
116
    {
117
        with (whitefade)
118
            image_alpha += 0.04;
119
    }
120
    if (wtimer == 26)
121
    {
122
        sprite_index = spr_lancer_pose_ch1;
123
        with (s)
124
            sprite_index = spr_susieb_spellready_ch1;
125
        with (s)
126
            image_xscale = -2;
127
        with (s)
128
            image_speed = 0.2;
129
        with (s)
130
            x += 60;
131
    }
132
    if (wtimer > 28)
133
    {
134
        with (whitefade)
135
            image_alpha -= 0.04;
136
    }
137
    if (wtimer >= 60)
138
    {
139
        with (whitefade)
140
            instance_destroy();
141
        con = 15;
142
    }
143
}
144
if (con == 15 && !d_ex_ch1())
145
{
146
    global.typer = 32;
147
    global.fc = 5;
148
    global.fe = 3;
149
    global.msg[0] = 
* The DARK Fun Gang!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_susiebadguy_event_slash_Step_0_gml_158_0")
;
150
    if (global.flag[214 team_name] == 1)
151
        global.msg[0] = 
* The DARK $!$? Squad!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_susiebadguy_event_slash_Step_0_gml_161_0")
;
152
    if (global.flag[214 team_name] == 2)
153
        global.msg[0] = 
* The DARK Lancer Fan Club!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_susiebadguy_event_slash_Step_0_gml_165_0")
;
154
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
155
    con = 16;
156
}
157
if (con == 16 && !d_ex_ch1())
158
{
159
    alarm[4] = 30;
160
    con = 17;
161
}
162
if (con == 18)
163
{
164
    snd_free_all_ch1();
165
    global.fc = 2;
166
    global.fe = 8;
167
    global.typer = 31;
168
    global.msg[0] = 
* Um...Delay 11 So what's your,Delay 11 um,Delay 11 evil plan?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_susiebadguy_event_slash_Step_0_gml_185_0")
;
169
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
170
    con = 19;
171
}
172
if (con == 19 && !d_ex_ch1())
173
{
174
    with (s)
175
    {
176
        image_speed = 0;
177
        image_index = 0;
178
        sprite_index = spr_susiel_dark_unhappy_ch1;
179
        image_xscale = 2;
180
        x -= 60;
181
    }
182
    sprite_index = spr_lancer_lt_unhappy_ch1;
183
    global.typer = 30;
184
    global.fc = 1;
185
    global.fe = 6;
186
    global.msg[0] = 
* 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_susiebadguy_event_slash_Step_0_gml_205_0")
;
187
    global.msg[1] = 
\E0* Dude,Delay 11 we JUST formed our team.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_susiebadguy_event_slash_Step_0_gml_206_0")
;
188
    global.msg[2] = 
* We haven't done anything past our intro yet.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_susiebadguy_event_slash_Step_0_gml_207_0")
;
189
    scr_lanface_ch1
scr_lanface_ch1

function scr_lanface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FL \TL Close Message
scr_84_get_lang_string_ch1("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1)); }
(3, 6);
190
    global.msg[4] = 
* Have a little patience,Delay 11 please...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_susiebadguy_event_slash_Step_0_gml_209_0")
;
191
    scr_ralface_ch1
scr_ralface_ch1

function scr_ralface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FR \TR Close Message
scr_84_get_lang_string_ch1("scr_ralface_slash_scr_ralface_gml_1_0")
, string(arg1)); }
(5, 1);
192
    global.msg[6] = 
* Oh,Delay 11 um,Delay 11 sorry...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_susiebadguy_event_slash_Step_0_gml_211_0")
;
193
    global.msg[7] = 
\E8* We're,Delay 11 um,Delay 11 looking forward to the rest!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_susiebadguy_event_slash_Step_0_gml_212_0")
;
194
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
195
    con = 20;
196
}
197
if (con == 20 && !d_ex_ch1())
198
{
199
    sprite_index = spr_lancer_lt_ch1;
200
    with (s)
201
        sprite_index = spr_susiel_dark_ch1;
202
    global.typer = 30;
203
    global.fc = 1;
204
    global.fe = 1;
205
    global.msg[0] = 
* Heh,Delay 11 well,Delay 11 you won't have to look forward for long.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_susiebadguy_event_slash_Step_0_gml_224_0")
;
206
    scr_lanface_ch1
scr_lanface_ch1

function scr_lanface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FL \TL Close Message
scr_84_get_lang_string_ch1("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1)); }
(1, 2);
207
    global.msg[2] = 
* Starting now...Delay 11 We're going to work CEASELESSLY...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_susiebadguy_event_slash_Step_0_gml_226_0")
;
208
    scr_susface_ch1
scr_susface_ch1

function scr_susface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FS \TS Close Message
scr_84_get_lang_string_ch1("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1)); }
(3, 2);
209
    global.msg[4] = 
* Unstoppably...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_susiebadguy_event_slash_Step_0_gml_228_0")
;
210
    scr_lanface_ch1
scr_lanface_ch1

function scr_lanface_ch1(arg0, arg1) { global.msg[arg0] = scr_84_get_subst_string_ch1(
\TX \F0 \E~1 \FL \TL Close Message
scr_84_get_lang_string_ch1("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1)); }
(5, 2);
211
    global.msg[6] = 
* To make an evil plan to THRASH you clowns.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_susiebadguy_event_slash_Step_0_gml_230_0")
;
212
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
213
    con = 21;
214
}
215
if (con == 21 && !d_ex_ch1())
216
{
217
    with (s)
218
        sprite_index = spr_susier_dark_ch1;
219
    con = 22;
220
    alarm[4] = 30;
221
}
222
if (con == 23)
223
{
224
    global.typer = 30;
225
    global.fc = 1;
226
    global.fe = 1;
227
    global.msg[0] = 
* Watch your backs.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_susiebadguy_event_slash_Step_0_gml_247_0")
;
228
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
229
    con = 24;
230
}
231
if (con == 24 && !d_ex_ch1())
232
{
233
    sprite_index = spr_lancer_rt_ch1;
234
    con = 25;
235
    alarm[4] = 30;
236
}
237
if (con == 26)
238
{
239
    global.fc = 5;
240
    global.fe = 3;
241
    global.typer = 32;
242
    global.msg[0] = 
* And your fronts!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_susiebadguy_event_slash_Step_0_gml_265_0")
;
243
    instance_create_ch1(0, 0, obj_dialoguer_ch1);
244
    con = 27;
245
}
246
if (con == 27 && !d_ex_ch1())
247
{
248
    sprite_index = spr_lancer_dt_ch1;
249
    vspeed = 16;
250
    with (s)
251
    {
252
        sprite_index = spr_susied_dark_ch1;
253
        image_speed = 0.5;
254
        vspeed = 16;
255
    }
256
    con = 27.1;
257
    alarm[4] = 30;
258
}
259
if (con == 28.1)
260
{
261
    scr_pan_ch1
scr_pan_ch1

function scr_pan_ch1(arg0, arg1, arg2) { panner = instance_create_ch1(0, 0, obj_panner_ch1); panner.panmax = arg2; panner.panx = arg0; panner.pany = arg1; }
(-4, 0, 30);
262
    con = 28;
263
    alarm[4] = 30;
264
}
265
if (con == 29)
266
{
267
    global.currentsong[0] = snd_init_ch1("forest.ogg");
268
    global.currentsong[1] = mus_loop_ext_ch1(global.currentsong[0], 0.7, 1);
269
    global.facing = 0;
270
    with (obj_caterpillarchara_ch1)
271
        fun = 0;
272
    with (obj_mainchara_ch1)
273
        cutscene = 0;
274
    global.interact = 0;
275
    global.plot = 70;
276
    con = 30;
277
}