Undertale script viewer

← back to main script listing

gml_Object_obj_face_torielblink_Step_0

(view raw script w/o annotations or w/e)
1
if (image_index == 0)
2
{
3
    if (instance_exists(OBJ_WRITER))
4
    {
5
        if (OBJ_WRITER.halt == 0)
6
            instance_change(obj_face_torieltalk, true);
7
    }
8
}
9
if (global.faceemotion == 0 && sprite_index != spr_face_torielhappyblink)
10
    sprite_index = spr_face_torielhappyblink;
11
if (global.faceemotion == 1 && sprite_index != spr_face_torielblinkside)
12
    sprite_index = spr_face_torielblinkside;
13
if (global.faceemotion == 2 && sprite_index != spr_face_torielblink)
14
    sprite_index = spr_face_torielblink;
15
if (global.faceemotion == 3 && sprite_index != spr_face_torielwhat)
16
    sprite_index = spr_face_torielwhat;
17
if (global.faceemotion == 4 && sprite_index != spr_face_torielwhatside)
18
    sprite_index = spr_face_torielwhatside;
19
if (global.faceemotion == 5 && sprite_index != spr_face_torielrevenge)
20
    sprite_index = spr_face_torielrevenge;
21
if (global.faceemotion == 6 && sprite_index != spr_face_torielcold)
22
    sprite_index = spr_face_torielcoldblink;
23
if (global.faceemotion == 7 && sprite_index != spr_face_torielmad)
24
    sprite_index = spr_face_torielmadblink;
25
if (global.faceemotion == 8 && sprite_index != spr_face_torielembarrassed)
26
    sprite_index = spr_face_torielembarrassed;
27
if (global.faceemotion == 9 && sprite_index != spr_face_toriel_goawayasgore)
28
    sprite_index = spr_face_toriel_goawayasgore;