Undertale script viewer

← back to main script listing

gml_Object_obj_torielbody_Draw_0

(view raw script w/o annotations or w/e)
1
image_xscale = 2;
2
image_yscale = 2;
3
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
4
if (shock == 0)
5
{
6
    facespr = spr_face_torielhappytalk;
7
    if (global.faceemotion == 0)
8
        facespr = spr_face_torielhappytalk;
9
    if (global.faceemotion == 1)
10
        facespr = spr_face_torieltalk;
11
    if (global.faceemotion == 2)
12
        facespr = spr_face_torielcold;
13
    if (global.faceemotion == 3)
14
        facespr = spr_face_torielembarrassed;
15
    if (global.faceemotion == 4)
16
        facespr = spr_face_torieltalkside;
17
    if (global.faceemotion == 5)
18
        facespr = spr_face_torielmad;
19
    if (global.faceemotion == 6)
20
        facespr = spr_face_torielhappy_left;
21
    if (global.faceemotion == 7)
22
        facespr = spr_face_torielhappy_2;
23
    if (global.faceemotion == 9)
24
        facespr = spr_face_torielhappy_down;
25
    if (global.faceemotion == 10)
26
        facespr = spr_face_torielsigh;
27
    if (global.faceemotion == 11)
28
        facespr = spr_face_toriel_noasgore;
29
    if (global.faceemotion == 12)
30
        facespr = spr_face_toriel_laughleft;
31
    if (global.faceemotion == 13)
32
        facespr = spr_face_torielup;
33
    if (global.faceemotion == 14)
34
        facespr = spr_face_torielhappy_right;
35
    if (global.faceemotion == 15)
36
        facespr = spr_face_toriel_noface;
37
    draw_sprite_ext(facespr, 0, x + 40, y - 52, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
38
}
39
if (shock == 1)
40
    draw_sprite_ext(spr_face_torieldie, 0, x + 40, y - 52, image_xscale, image_yscale, image_angle, image_blend, image_alpha);