Deltarune (Chapter 4) 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
        if (global.chapter == 4 && 
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(1591) == 1)
66
        {
67
            var _index = 0;
68
            if (face_index == 41 || face_index == 48 || face_index == 49)
69
                _index = 1;
70
            draw_sprite_ext(spr_face_r_blood, _index, x - 15, y - 10, f, f, 0, c_white, 1);
71
        }
72
    }
73
    if (global.fc == 3)
74
    {
75
        face = spr_face_n0;
76
        if (global.fe == 1)
77
            face = spr_face_n1;
78
        if (global.fe == 2)
79
            face = spr_face_n2;
80
        if (global.fe == 3)
81
            face = spr_face_n3;
82
        if (global.fe == 4)
83
            face = spr_face_n4;
84
        if (global.fe == 5)
85
            face = spr_face_n5;
86
        if (global.fe == 6)
87
            face = spr_face_n6;
88
        if (global.fe == 7)
89
            face = spr_face_n7;
90
        if (global.fe == 8)
91
            face = spr_face_n8;
92
        if (global.fe == 9)
93
            face = spr_face_n9;
94
        if (global.chapter >= 2)
95
        {
96
            face = spr_face_n_matome;
97
            face_index = global.fe;
98
        }
99
        if (global.fe == 61)
100
        {
101
            face = spr_face_placeholder;
102
            face_index = 0;
103
        }
104
        draw_sprite_ext(face, face_index, x - 12, y - 10, f, f, 0, c_white, 1);
105
    }
106
    if (global.fc == 4)
107
    {
108
        var tbody_sprite = 239;
109
        if (global.chapter == 4 && global.plot >= 15 && global.plot < 40)
110
        {
111
            tbody_sprite = 244;
112
            draw_sprite_ext(tbody_sprite, 0, x - 7 - 1, y + 29, f, f, 0, c_white, 1);
113
        }
114
        else
115
        {
116
            draw_sprite_ext(tbody_sprite, 0, x - 7, y + 29, f, f, 0, c_white, 1);
117
        }
118
        face = spr_face_t0;
119
        if (global.fe == 1)
120
            face = spr_face_t1;
121
        if (global.fe == 2)
122
            face = spr_face_t2;
123
        if (global.fe == 3)
124
            face = spr_face_t3;
125
        if (global.fe == 4)
126
            face = spr_face_t4;
127
        if (global.fe == 5)
128
            face = spr_face_t5;
129
        if (global.fe == 6)
130
            face = spr_face_t6;
131
        if (global.fe == 7)
132
            face = spr_face_t7;
133
        if (global.fe == 8)
134
            face = spr_face_t8;
135
        if (global.fe == 9)
136
            face = spr_face_t9;
137
        if (global.fe == 61)
138
        {
139
            face = spr_face_placeholder;
140
            face_index = 0;
141
        }
142
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
143
        if (global.flag[778] > 0)
144
            draw_sprite_ext(spr_face_torielblush, 0, x, y, f, f, 0, c_white, 1);
145
    }
146
    if (global.fc == 5)
147
    {
148
        face = spr_face_l0;
149
        face_index = global.fe;
150
        if (global.fe == 61)
151
        {
152
            face = spr_face_placeholder;
153
            face_index = 0;
154
        }
155
        draw_sprite_ext(face, face_index, x - 15, y - 10, f, f, 0, c_white, 1);
156
    }
157
    if (global.fc == 6)
158
    {
159
        face = spr_face_sans0;
160
        if (global.fe == 1)
161
            face = spr_face_sans1;
162
        if (global.fe == 2)
163
            face = spr_face_sans2;
164
        if (global.fe == 3)
165
            face = spr_face_sans3;
166
        if (global.fe == 4)
167
            face = spr_face_sans4;
168
        if (global.fe == 5)
169
            face = spr_face_sans5;
170
        if (global.fe == 61)
171
        {
172
            face = spr_face_placeholder;
173
            face_index = 0;
174
        }
175
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
176
    }
177
    if (global.fc == 9)
178
    {
179
        face = spr_face_undyne;
180
        face_index = global.fe;
181
        if (global.fe == 61)
182
        {
183
            face = spr_face_placeholder;
184
            face_index = 0;
185
        }
186
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
187
    }
188
    if (global.fc == 10)
189
    {
190
        face = spr_face_asgore0;
191
        if (global.fe == 1)
192
            face = spr_face_asgore1;
193
        if (global.fe == 2)
194
            face = spr_face_asgore2;
195
        if (global.fe == 3)
196
            face = spr_face_asgore3;
197
        if (global.fe == 4)
198
            face = spr_face_asgore4;
199
        if (global.fe == 5)
200
            face = spr_face_asgore5;
201
        if (global.fe == 6)
202
            face = spr_face_asgore6;
203
        if (global.fe == 7)
204
            face = spr_face_asgore7;
205
        if (global.fe == 8)
206
            face = spr_face_asgore8;
207
        if (global.fe == 61)
208
        {
209
            face = spr_face_placeholder;
210
            face_index = 0;
211
        }
212
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
213
    }
214
    if (global.fc == 11)
215
    {
216
        face = spr_alphysface;
217
        face_index = global.fe;
218
        if (global.fe == 61)
219
        {
220
            face = spr_face_placeholder;
221
            face_index = 0;
222
        }
223
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
224
    }
225
    if (global.fc == 12)
226
    {
227
        face = spr_face_b0;
228
        if (global.fe == 1)
229
            face = spr_face_b1;
230
        if (global.fe == 2)
231
            face = spr_face_b2;
232
        if (global.fe == 3)
233
            face = spr_face_b3;
234
        if (global.fe == 4)
235
            face = spr_face_b4;
236
        if (global.fe == 5)
237
            face = spr_face_b5;
238
        if (global.fe == 6)
239
            face = spr_face_b1;
240
        if (global.fe == 7)
241
            face = spr_face_b1;
242
        if (global.fe == 8)
243
            face = spr_face_b1;
244
        if (global.fe == 9)
245
            face = spr_face_b1;
246
        if (global.darkzone == 1)
247
        {
248
            face = spr_face_berdly_dark;
249
            face_index = global.fe;
250
        }
251
        else
252
        {
253
            face = spr_face_berdly;
254
            face_index = global.fe;
255
        }
256
        if (global.fe == 61)
257
        {
258
            face = spr_face_placeholder;
259
            face_index = 0;
260
        }
261
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
262
    }
263
    if (global.fc == 13)
264
    {
265
        face = spr_face_catti;
266
        face_index = global.fe;
267
        if (global.fe == 61)
268
        {
269
            face = spr_face_placeholder;
270
            face_index = 0;
271
        }
272
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
273
    }
274
    if (global.fc == 14)
275
    {
276
        face = spr_face_jock0;
277
        if (global.fe == 1)
278
            face = spr_face_jock1;
279
        if (global.fe == 1)
280
            face = spr_face_jock2;
281
        if (global.fe == 1)
282
            face = spr_face_jock3;
283
        if (global.fe == 1)
284
            face = spr_face_jock4;
285
        if (global.fe == 1)
286
            face = spr_face_jock5;
287
        if (global.fe == 1)
288
            face = spr_face_jock6;
289
        if (global.fe == 1)
290
            face = spr_face_jock7;
291
        if (global.fe == 1)
292
            face = spr_face_jock8;
293
        if (global.fe == 1)
294
            face = spr_face_jock9;
295
        if (global.fe == 61)
296
        {
297
            face = spr_face_placeholder;
298
            face_index = 0;
299
        }
300
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
301
    }
302
    if (global.fc == 15)
303
    {
304
        face = spr_face_rudy;
305
        face_index = global.fe;
306
        if (global.fe == 61)
307
        {
308
            face = spr_face_placeholder;
309
            face_index = 0;
310
        }
311
        draw_sprite_ext(face, face_index, x - 12, y - 10, f, f, 0, c_white, 1);
312
    }
313
    if (global.fc == 16)
314
    {
315
        face = spr_face_catty;
316
        face_index = global.fe;
317
        if (global.fe == 61)
318
        {
319
            face = spr_face_placeholder;
320
            face_index = 0;
321
        }
322
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
323
    }
324
    if (global.fc == 17)
325
    {
326
        face = spr_face_bratty;
327
        face_index = global.fe;
328
        if (global.fe == 61)
329
        {
330
            face = spr_face_placeholder;
331
            face_index = 0;
332
        }
333
        draw_sprite_ext(face, face_index, x - 5, y + 2, f, f, 0, c_white, 1);
334
    }
335
    if (global.fc == 18)
336
    {
337
        face = spr_face_rurus;
338
        face_index = global.fe;
339
        if (global.fe == 61)
340
        {
341
            face = spr_face_placeholder;
342
            face_index = 0;
343
        }
344
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
345
        if (global.flag[326 rouxls_pirate_hat] == 1)
346
            draw_sprite_ext(spr_face_rurus_piratehat, face_index, x - 10 - (3 * f), y - (4 * f), f, f, 0, c_white, 1);
347
    }
348
    if (global.fc == 19)
349
    {
350
        face = spr_face_burgerpants;
351
        face_index = global.fe;
352
        if (global.fe == 61)
353
        {
354
            face = spr_face_placeholder;
355
            face_index = 0;
356
        }
357
        draw_sprite_ext(face, face_index, x - 5, y - 5, f, f, 0, c_white, 1);
358
    }
359
    if (global.fc == 20)
360
    {
361
        face = spr_face_king;
362
        face_index = global.fe;
363
        if (global.fe == 61)
364
        {
365
            face = spr_face_placeholder;
366
            face_index = 0;
367
        }
368
        draw_sprite_ext(face, face_index, x - 5, y - 5, f, f, 0, c_white, 1);
369
    }
370
    if (global.fc == 21)
371
    {
372
        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");
373
        face_index = global.fe;
374
        if (global.fe == 61)
375
        {
376
            face = spr_face_placeholder;
377
            face_index = 0;
378
        }
379
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
380
    }
381
    if (global.fc == 22)
382
    {
383
        face = spr_face_carol;
384
        face_index = global.fe;
385
        if (global.fe == 61)
386
        {
387
            face = spr_face_placeholder;
388
            face_index = 0;
389
        }
390
        draw_sprite_ext(face, face_index, x - 9, y - 4, f, f, 0, c_white, 1);
391
    }
392
}
393
nowface = global.fc;