Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_face_Draw_0

(view raw script w/o annotations or w/e)
1
facechange -= 1;
2
if (nowface != global.fc)
3
    facechange = 3;
4
if (facechange <= 0)
5
{
6
    if (global.fc == 1)
7
    {
8
        if (global.flag[29 susie_show_eyes] == 0 && global.chapter <= 1)
9
        {
10
            face = spr_face_s0;
11
            if (global.fe == 1)
12
                face = spr_face_s1;
13
            if (global.fe == 2)
14
                face = spr_face_s2;
15
            if (global.fe == 3)
16
                face = spr_face_s3;
17
            if (global.fe == 4)
18
                face = spr_face_s4;
19
            if (global.fe == 5)
20
                face = spr_face_s5;
21
            if (global.fe == 6)
22
                face = spr_face_s6;
23
            if (global.fe == 7)
24
                face = spr_face_s7;
25
            if (global.fe == 8)
26
                face = spr_face_s8;
27
            if (global.fe == 9)
28
                face = spr_face_s9;
29
            if (global.fe == 10)
30
                face = spr_face_sA;
31
            if (global.fe == 11)
32
                face = spr_face_sB;
33
            if (global.fe == 12)
34
                face = spr_face_sC;
35
            if (global.fe == 13)
36
                face = spr_face_sD;
37
            draw_sprite_ext(face, face_index, x - 5, y, f, f, 0, c_white, 1);
38
        }
39
        if (global.flag[29 susie_show_eyes] != 0 || global.chapter > 1)
40
        {
41
            face = spr_face_susie_alt;
42
            face_index = global.fe;
43
            if (global.fe == 61)
44
            {
45
                face = spr_face_placeholder;
46
                face_index = 0;
47
            }
48
            draw_sprite_ext(face, face_index, x - 5, y, f, f, 0, c_white, 1);
49
        }
50
    }
51
    if (global.fc == 2)
52
    {
53
        face = spr_face_r_dark;
54
        if (global.flag[30 ralsei_hat_state] == 1)
55
            face = spr_face_r_hood;
56
        if (global.flag[30 ralsei_hat_state] == 2 || global.chapter > 1)
57
            face = spr_face_r_nohat;
58
        face_index = global.fe;
59
        if (global.fe == 61)
60
        {
61
            face = spr_face_placeholder;
62
            face_index = 0;
63
        }
64
        draw_sprite_ext(face, face_index, x - 15, y - 10, f, f, 0, c_white, 1);
65
    }
66
    if (global.fc == 3)
67
    {
68
        face = spr_face_n0;
69
        if (global.fe == 1)
70
            face = spr_face_n1;
71
        if (global.fe == 2)
72
            face = spr_face_n2;
73
        if (global.fe == 3)
74
            face = spr_face_n3;
75
        if (global.fe == 4)
76
            face = spr_face_n4;
77
        if (global.fe == 5)
78
            face = spr_face_n5;
79
        if (global.fe == 6)
80
            face = spr_face_n6;
81
        if (global.fe == 7)
82
            face = spr_face_n7;
83
        if (global.fe == 8)
84
            face = spr_face_n8;
85
        if (global.fe == 9)
86
            face = spr_face_n9;
87
        if (global.chapter >= 2)
88
        {
89
            face = spr_face_n_matome;
90
            face_index = global.fe;
91
        }
92
        if (global.fe == 61)
93
        {
94
            face = spr_face_placeholder;
95
            face_index = 0;
96
        }
97
        draw_sprite_ext(face, face_index, x - 12, y - 10, f, f, 0, c_white, 1);
98
    }
99
    if (global.fc == 4)
100
    {
101
        draw_sprite_ext(spr_face_tbody, 0, x - 7, y + 29, f, f, 0, c_white, 1);
102
        face = spr_face_t0;
103
        if (global.fe == 1)
104
            face = spr_face_t1;
105
        if (global.fe == 2)
106
            face = spr_face_t2;
107
        if (global.fe == 3)
108
            face = spr_face_t3;
109
        if (global.fe == 4)
110
            face = spr_face_t4;
111
        if (global.fe == 5)
112
            face = spr_face_t5;
113
        if (global.fe == 6)
114
            face = spr_face_t6;
115
        if (global.fe == 7)
116
            face = spr_face_t7;
117
        if (global.fe == 8)
118
            face = spr_face_t8;
119
        if (global.fe == 9)
120
            face = spr_face_t9;
121
        if (global.fe == 61)
122
        {
123
            face = spr_face_placeholder;
124
            face_index = 0;
125
        }
126
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
127
    }
128
    if (global.fc == 5)
129
    {
130
        face = spr_face_l0;
131
        face_index = global.fe;
132
        if (global.fe == 61)
133
        {
134
            face = spr_face_placeholder;
135
            face_index = 0;
136
        }
137
        draw_sprite_ext(face, face_index, x - 15, y - 10, f, f, 0, c_white, 1);
138
    }
139
    if (global.fc == 6)
140
    {
141
        face = spr_face_sans0;
142
        if (global.fe == 1)
143
            face = spr_face_sans1;
144
        if (global.fe == 2)
145
            face = spr_face_sans2;
146
        if (global.fe == 3)
147
            face = spr_face_sans3;
148
        if (global.fe == 4)
149
            face = spr_face_sans4;
150
        if (global.fe == 5)
151
            face = spr_face_sans5;
152
        if (global.fe == 61)
153
        {
154
            face = spr_face_placeholder;
155
            face_index = 0;
156
        }
157
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
158
    }
159
    if (global.fc == 9)
160
    {
161
        face = spr_face_undyne;
162
        face_index = global.fe;
163
        if (global.fe == 61)
164
        {
165
            face = spr_face_placeholder;
166
            face_index = 0;
167
        }
168
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
169
    }
170
    if (global.fc == 10)
171
    {
172
        face = spr_face_asgore0;
173
        if (global.fe == 1)
174
            face = spr_face_asgore1;
175
        if (global.fe == 2)
176
            face = spr_face_asgore2;
177
        if (global.fe == 3)
178
            face = spr_face_asgore3;
179
        if (global.fe == 4)
180
            face = spr_face_asgore4;
181
        if (global.fe == 5)
182
            face = spr_face_asgore5;
183
        if (global.fe == 6)
184
            face = spr_face_asgore6;
185
        if (global.fe == 7)
186
            face = spr_face_asgore7;
187
        if (global.fe == 8)
188
            face = spr_face_asgore8;
189
        if (global.fe == 61)
190
        {
191
            face = spr_face_placeholder;
192
            face_index = 0;
193
        }
194
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
195
    }
196
    if (global.fc == 11)
197
    {
198
        face = spr_alphysface;
199
        face_index = global.fe;
200
        if (global.fe == 61)
201
        {
202
            face = spr_face_placeholder;
203
            face_index = 0;
204
        }
205
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
206
    }
207
    if (global.fc == 12)
208
    {
209
        face = spr_face_b0;
210
        if (global.fe == 1)
211
            face = spr_face_b1;
212
        if (global.fe == 2)
213
            face = spr_face_b2;
214
        if (global.fe == 3)
215
            face = spr_face_b3;
216
        if (global.fe == 4)
217
            face = spr_face_b4;
218
        if (global.fe == 5)
219
            face = spr_face_b5;
220
        if (global.fe == 6)
221
            face = spr_face_b1;
222
        if (global.fe == 7)
223
            face = spr_face_b1;
224
        if (global.fe == 8)
225
            face = spr_face_b1;
226
        if (global.fe == 9)
227
            face = spr_face_b1;
228
        if (global.darkzone == 1)
229
        {
230
            face = spr_face_berdly_dark;
231
            face_index = global.fe;
232
        }
233
        if (global.fe == 61)
234
        {
235
            face = spr_face_placeholder;
236
            face_index = 0;
237
        }
238
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
239
    }
240
    if (global.fc == 13)
241
    {
242
        face = spr_face_c0;
243
        if (global.fe == 1)
244
            face = spr_face_c1;
245
        if (global.fe == 2)
246
            face = spr_face_c2;
247
        if (global.fe == 61)
248
        {
249
            face = spr_face_placeholder;
250
            face_index = 0;
251
        }
252
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
253
    }
254
    if (global.fc == 14)
255
    {
256
        face = spr_face_jock0;
257
        if (global.fe == 1)
258
            face = spr_face_jock1;
259
        if (global.fe == 1)
260
            face = spr_face_jock2;
261
        if (global.fe == 1)
262
            face = spr_face_jock3;
263
        if (global.fe == 1)
264
            face = spr_face_jock4;
265
        if (global.fe == 1)
266
            face = spr_face_jock5;
267
        if (global.fe == 1)
268
            face = spr_face_jock6;
269
        if (global.fe == 1)
270
            face = spr_face_jock7;
271
        if (global.fe == 1)
272
            face = spr_face_jock8;
273
        if (global.fe == 1)
274
            face = spr_face_jock9;
275
        if (global.fe == 61)
276
        {
277
            face = spr_face_placeholder;
278
            face_index = 0;
279
        }
280
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
281
    }
282
    if (global.fc == 15)
283
    {
284
        face = spr_face_rudy;
285
        face_index = global.fe;
286
        if (global.fe == 61)
287
        {
288
            face = spr_face_placeholder;
289
            face_index = 0;
290
        }
291
        draw_sprite_ext(face, face_index, x - 12, y - 10, f, f, 0, c_white, 1);
292
    }
293
    if (global.fc == 16)
294
    {
295
        face = spr_face_catty;
296
        face_index = global.fe;
297
        if (global.fe == 61)
298
        {
299
            face = spr_face_placeholder;
300
            face_index = 0;
301
        }
302
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
303
    }
304
    if (global.fc == 17)
305
    {
306
        face = spr_face_bratty;
307
        face_index = global.fe;
308
        if (global.fe == 61)
309
        {
310
            face = spr_face_placeholder;
311
            face_index = 0;
312
        }
313
        draw_sprite_ext(face, face_index, x - 5, y + 2, f, f, 0, c_white, 1);
314
    }
315
    if (global.fc == 18)
316
    {
317
        face = spr_face_rurus;
318
        face_index = global.fe;
319
        if (global.fe == 61)
320
        {
321
            face = spr_face_placeholder;
322
            face_index = 0;
323
        }
324
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
325
        if (global.flag[326 rouxls_pirate_hat] == 1)
326
            draw_sprite_ext(spr_face_rurus_piratehat, face_index, x - 10 - (3 * f), y - (4 * f), f, f, 0, c_white, 1);
327
    }
328
    if (global.fc == 19)
329
    {
330
        face = spr_face_burgerpants;
331
        face_index = global.fe;
332
        if (global.fe == 61)
333
        {
334
            face = spr_face_placeholder;
335
            face_index = 0;
336
        }
337
        draw_sprite_ext(face, face_index, x - 5, y - 5, f, f, 0, c_white, 1);
338
    }
339
    if (global.fc == 20)
340
    {
341
        face = spr_face_king;
342
        face_index = global.fe;
343
        if (global.fe == 61)
344
        {
345
            face = spr_face_placeholder;
346
            face_index = 0;
347
        }
348
        draw_sprite_ext(face, face_index, x - 5, y - 5, f, f, 0, c_white, 1);
349
    }
350
    if (global.fc == 21)
351
    {
352
        face = 
scr_84_get_sprite
scr_84_get_sprite

function
scr_84_get_sprite(arg0)
{ return ds_map_find_value(global.chemg_sprite_map, arg0); }
("spr_face_queen");
353
        face_index = global.fe;
354
        if (global.fe == 61)
355
        {
356
            face = spr_face_placeholder;
357
            face_index = 0;
358
        }
359
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
360
    }
361
}
362
if (global.chapter >= 3)
363
{
364
    if (global.fc == 22)
365
    {
366
        var sinoff = sin(battletimer / 2) * 2;
367
        var xoffset = 60;
368
        var _prog = clamp(battletimer / 10, 0, 1);
369
        var yoffset = lerp_ease_in(440, 224, _prog, 2);
370
        draw_sprite_ext(spr_tenna_point_up, 0, x + xoffset, y + yoffset, f, f, image_angle + sinoff, image_blend, image_alpha);
371
    }
372
}
373
nowface = global.fc;