Deltarune (Chapter 1) 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)
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
        else
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)
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_n_matome;
59
        face_index = global.fe;
60
        draw_sprite_ext(face, face_index, x - 12, y - 10, f, f, 0, c_white, 1);
61
    }
62
    if (global.fc == 4)
63
    {
64
        draw_sprite_ext(spr_face_tbody, 0, x - 7, y + 29, f, f, 0, c_white, 1);
65
        face = spr_face_t0;
66
        if (global.fe == 1)
67
            face = spr_face_t1;
68
        if (global.fe == 2)
69
            face = spr_face_t2;
70
        if (global.fe == 3)
71
            face = spr_face_t3;
72
        if (global.fe == 4)
73
            face = spr_face_t4;
74
        if (global.fe == 5)
75
            face = spr_face_t5;
76
        if (global.fe == 6)
77
            face = spr_face_t6;
78
        if (global.fe == 7)
79
            face = spr_face_t7;
80
        if (global.fe == 8)
81
            face = spr_face_t8;
82
        if (global.fe == 9)
83
            face = spr_face_t9;
84
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
85
    }
86
    if (global.fc == 5)
87
    {
88
        face = spr_face_l0;
89
        face_index = global.fe;
90
        draw_sprite_ext(face, face_index, x - 15, y - 10, f, f, 0, c_white, 1);
91
    }
92
    if (global.fc == 6)
93
    {
94
        face = spr_face_sans0;
95
        if (global.fe == 1)
96
            face = spr_face_sans1;
97
        if (global.fe == 2)
98
            face = spr_face_sans2;
99
        if (global.fe == 3)
100
            face = spr_face_sans3;
101
        if (global.fe == 4)
102
            face = spr_face_sans4;
103
        if (global.fe == 5)
104
            face = spr_face_sans5;
105
        draw_sprite_ext(face, face_index, x, y, f, f, 0, c_white, 1);
106
    }
107
    if (global.fc == 9)
108
    {
109
        face = spr_face_undyne;
110
        face_index = global.fe;
111
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
112
    }
113
    if (global.fc == 10)
114
    {
115
        face = spr_face_asgore0;
116
        if (global.fe == 1)
117
            face = spr_face_asgore1;
118
        if (global.fe == 2)
119
            face = spr_face_asgore2;
120
        if (global.fe == 3)
121
            face = spr_face_asgore3;
122
        if (global.fe == 4)
123
            face = spr_face_asgore4;
124
        if (global.fe == 5)
125
            face = spr_face_asgore5;
126
        if (global.fe == 6)
127
            face = spr_face_asgore6;
128
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
129
    }
130
    if (global.fc == 11)
131
    {
132
        face = spr_alphysface;
133
        face_index = global.fe;
134
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
135
    }
136
    if (global.fc == 12)
137
    {
138
        face = spr_face_b0;
139
        if (global.fe == 1)
140
            face = spr_face_b1;
141
        if (global.fe == 2)
142
            face = spr_face_b2;
143
        if (global.fe == 3)
144
            face = spr_face_b3;
145
        if (global.fe == 4)
146
            face = spr_face_b4;
147
        if (global.fe == 5)
148
            face = spr_face_b5;
149
        if (global.fe == 6)
150
            face = spr_face_b1;
151
        if (global.fe == 7)
152
            face = spr_face_b1;
153
        if (global.fe == 8)
154
            face = spr_face_b1;
155
        if (global.fe == 9)
156
            face = spr_face_b1;
157
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
158
    }
159
    if (global.fc == 13)
160
    {
161
        face = spr_face_c0;
162
        if (global.fe == 1)
163
            face = spr_face_c1;
164
        if (global.fe == 2)
165
            face = spr_face_c2;
166
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
167
    }
168
    if (global.fc == 14)
169
    {
170
        face = spr_face_jock0;
171
        if (global.fe == 1)
172
            face = spr_face_jock1;
173
        if (global.fe == 1)
174
            face = spr_face_jock2;
175
        if (global.fe == 1)
176
            face = spr_face_jock3;
177
        if (global.fe == 1)
178
            face = spr_face_jock4;
179
        if (global.fe == 1)
180
            face = spr_face_jock5;
181
        if (global.fe == 1)
182
            face = spr_face_jock6;
183
        if (global.fe == 1)
184
            face = spr_face_jock7;
185
        if (global.fe == 1)
186
            face = spr_face_jock8;
187
        if (global.fe == 1)
188
            face = spr_face_jock9;
189
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
190
    }
191
    if (global.fc == 15)
192
    {
193
        face = spr_face_rudy;
194
        face_index = global.fe;
195
        draw_sprite_ext(face, face_index, x - 12, y - 10, f, f, 0, c_white, 1);
196
    }
197
    if (global.fc == 16)
198
    {
199
        face = spr_face_catty;
200
        face_index = global.fe;
201
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
202
    }
203
    if (global.fc == 17)
204
    {
205
        face = spr_face_bratty;
206
        face_index = global.fe;
207
        draw_sprite_ext(face, face_index, x - 5, y + 2, f, f, 0, c_white, 1);
208
    }
209
    if (global.fc == 18)
210
    {
211
        face = spr_face_rurus;
212
        face_index = global.fe;
213
        draw_sprite_ext(face, face_index, x - 10, y, f, f, 0, c_white, 1);
214
    }
215
    if (global.fc == 19)
216
    {
217
        face = spr_face_burgerpants;
218
        face_index = global.fe;
219
        draw_sprite_ext(face, face_index, x - 5, y - 5, f, f, 0, c_white, 1);
220
    }
221
    if (global.fc == 20)
222
    {
223
        face = spr_face_king;
224
        face_index = global.fe;
225
        draw_sprite_ext(face, face_index, x - 5, y - 5, f, f, 0, c_white, 1);
226
    }
227
}
228
nowface = global.fc;