Undertale script viewer

← back to main script listing

gml_Object_obj_face_sans_Step_0

(view raw script w/o annotations or w/e)
1
if (global.faceemotion == 0 && sprite_index != spr_face_sans)
2
    sprite_index = spr_face_sans;
3
if (global.faceemotion == 1 && sprite_index != spr_face_sanschuckle)
4
    sprite_index = spr_face_sanschuckle;
5
if (global.faceemotion == 2 && sprite_index != spr_face_sanswink)
6
    sprite_index = spr_face_sanswink;
7
if (global.faceemotion == 3 && sprite_index != spr_face_sansblink)
8
    sprite_index = spr_face_sansblink;
9
if (global.faceemotion == 4 && sprite_index != spr_face_sansnoeyes)
10
    sprite_index = spr_face_sansnoeyes;