Deltarune (Chapter 2) 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
            draw_sprite_ext(face, face_index, x - 5, y, f, f, 0, c_white, 1);
44
        }
45
    }
46
    if (global.fc == 2)
47
    {
48
        face = spr_face_r_dark;
49
        if (global.flag[30 ralsei_hat_state] == 1)
50
            face = spr_face_r_hood;
51
        if (global.flag[30 ralsei_hat_state] == 2 || global.chapter > 1)
52
            face = spr_face_r_nohat;
53
        face_index = global.fe;
54
        draw_sprite_ext(face, face_index, x - 15, y - 10, f, f, 0, c_white, 1);
55
    }
56
    if (global.fc == 3)
57
    {
58
        face = spr_face_n0;
59
        if (global.fe == 1)
60
            face = spr_face_n1;
61
        if (global.fe == 2)
62
            face = spr_face_n2;
63
        if (global.fe == 3)
64
            face = spr_face_n3;
65
        if (global.fe == 4)
66
            face = spr_face_n4;
67
        if (global.fe == 5)
68
            face = spr_face_n5;
69
        if (global.fe == 6)
70
            face = spr_face_n6;
71
        if (global.fe == 7)
72
            face = spr_face_n7;
73
        if (global.fe == 8)
74
            face = spr_face_n8;
75
        if (global.fe == 9)
76
            face = spr_face_n9;
77
        if (global.chapter >= 2)
78
        {
79
            face = spr_face_n_matome;
80
            face_index = global.fe;
81
        }
82
        draw_sprite_ext(face, face_index, x - 12, y - 10, f, f, 0, c_white, 1);
83
    }
84
    if (global.fc == 4)
85
    {
86
        draw_sprite_ext(spr_face_tbody, 0, x - 7, y + 29, f, f, 0, c_white, 1);
87
        face = spr_face_t0;
88
        if (global.fe == 1)
89
            face = spr_face_t1;
90
        if (global.fe == 2)
91
            face = spr_face_t2;
92
        if (global.fe == 3)
93
            face = spr_face_t3;
94
        if (global.fe == 4)
95
            face = spr_face_t4;
96
        if (global.fe == 5)
97
            face = spr_face_t5;
98
        if (global.fe == 6)
99
            face = spr_face_t6;
100
        if (global.fe == 7)
101
            face = spr_face_t7;
102
        if (global.fe == 8)
103
            face = spr_face_t8;
104
        if (global.fe == 9)
105
            face = spr_face_t9;
106
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
107
    }
108
    if (global.fc == 5)
109
    {
110
        face = spr_face_l0;
111
        face_index = global.fe;
112
        draw_sprite_ext(face, face_index, x - 15, y - 10, f, f, 0, c_white, 1);
113
    }
114
    if (global.fc == 6)
115
    {
116
        face = spr_face_sans0;
117
        if (global.fe == 1)
118
            face = spr_face_sans1;
119
        if (global.fe == 2)
120
            face = spr_face_sans2;
121
        if (global.fe == 3)
122
            face = spr_face_sans3;
123
        if (global.fe == 4)
124
            face = spr_face_sans4;
125
        if (global.fe == 5)
126
            face = spr_face_sans5;
127
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
128
    }
129
    if (global.fc == 9)
130
    {
131
        face = spr_face_undyne;
132
        face_index = global.fe;
133
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
134
    }
135
    if (global.fc == 10)
136
    {
137
        face = spr_face_asgore0;
138
        if (global.fe == 1)
139
            face = spr_face_asgore1;
140
        if (global.fe == 2)
141
            face = spr_face_asgore2;
142
        if (global.fe == 3)
143
            face = spr_face_asgore3;
144
        if (global.fe == 4)
145
            face = spr_face_asgore4;
146
        if (global.fe == 5)
147
            face = spr_face_asgore5;
148
        if (global.fe == 6)
149
            face = spr_face_asgore6;
150
        if (global.fe == 7)
151
            face = spr_face_asgore7;
152
        if (global.fe == 8)
153
            face = spr_face_asgore8;
154
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
155
    }
156
    if (global.fc == 11)
157
    {
158
        face = spr_alphysface;
159
        face_index = global.fe;
160
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
161
    }
162
    if (global.fc == 12)
163
    {
164
        face = spr_face_b0;
165
        if (global.fe == 1)
166
            face = spr_face_b1;
167
        if (global.fe == 2)
168
            face = spr_face_b2;
169
        if (global.fe == 3)
170
            face = spr_face_b3;
171
        if (global.fe == 4)
172
            face = spr_face_b4;
173
        if (global.fe == 5)
174
            face = spr_face_b5;
175
        if (global.fe == 6)
176
            face = spr_face_b1;
177
        if (global.fe == 7)
178
            face = spr_face_b1;
179
        if (global.fe == 8)
180
            face = spr_face_b1;
181
        if (global.fe == 9)
182
            face = spr_face_b1;
183
        if (global.darkzone == 1)
184
        {
185
            face = spr_face_berdly_dark;
186
            face_index = global.fe;
187
        }
188
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
189
    }
190
    if (global.fc == 13)
191
    {
192
        face = spr_face_c0;
193
        if (global.fe == 1)
194
            face = spr_face_c1;
195
        if (global.fe == 2)
196
            face = spr_face_c2;
197
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
198
    }
199
    if (global.fc == 14)
200
    {
201
        face = spr_face_jock0;
202
        if (global.fe == 1)
203
            face = spr_face_jock1;
204
        if (global.fe == 1)
205
            face = spr_face_jock2;
206
        if (global.fe == 1)
207
            face = spr_face_jock3;
208
        if (global.fe == 1)
209
            face = spr_face_jock4;
210
        if (global.fe == 1)
211
            face = spr_face_jock5;
212
        if (global.fe == 1)
213
            face = spr_face_jock6;
214
        if (global.fe == 1)
215
            face = spr_face_jock7;
216
        if (global.fe == 1)
217
            face = spr_face_jock8;
218
        if (global.fe == 1)
219
            face = spr_face_jock9;
220
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
221
    }
222
    if (global.fc == 15)
223
    {
224
        face = spr_face_rudy;
225
        face_index = global.fe;
226
        draw_sprite_ext(face, face_index, x - 12, y - 10, f, f, 0, c_white, 1);
227
    }
228
    if (global.fc == 16)
229
    {
230
        face = spr_face_catty;
231
        face_index = global.fe;
232
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
233
    }
234
    if (global.fc == 17)
235
    {
236
        face = spr_face_bratty;
237
        face_index = global.fe;
238
        draw_sprite_ext(face, face_index, x - 5, y + 2, f, f, 0, c_white, 1);
239
    }
240
    if (global.fc == 18)
241
    {
242
        face = spr_face_rurus;
243
        face_index = global.fe;
244
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
245
        if (global.flag[326 rouxls_pirate_hat] == 1)
246
            draw_sprite_ext(spr_face_rurus_piratehat, face_index, x - 10 - (3 * f), y - (4 * f), f, f, 0, c_white, 1);
247
    }
248
    if (global.fc == 19)
249
    {
250
        face = spr_face_burgerpants;
251
        face_index = global.fe;
252
        draw_sprite_ext(face, face_index, x - 5, y - 5, f, f, 0, c_white, 1);
253
    }
254
    if (global.fc == 20)
255
    {
256
        face = spr_face_king;
257
        face_index = global.fe;
258
        draw_sprite_ext(face, face_index, x - 5, y - 5, f, f, 0, c_white, 1);
259
    }
260
    if (global.fc == 21)
261
    {
262
        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");
263
        face_index = global.fe;
264
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
265
    }
266
}
267
nowface = global.fc;