Undertale script viewer

← back to main script listing

gml_Object_obj_face_torieltalk_Step_0

(view raw script w/o annotations or w/e)
1
if (global.faceemotion == 0 && sprite_index != spr_face_torielhappytalk)
2
    sprite_index = spr_face_torielhappytalk;
3
if (global.faceemotion == 1 && sprite_index != spr_face_torieltalkside)
4
    sprite_index = spr_face_torieltalkside;
5
if (global.faceemotion == 2 && sprite_index != spr_face_torieltalk)
6
    sprite_index = spr_face_torieltalk;
7
if (global.faceemotion == 3 && sprite_index != spr_face_torielwhat)
8
    sprite_index = spr_face_torielwhat;
9
if (global.faceemotion == 4 && sprite_index != spr_face_torielwhatside)
10
    sprite_index = spr_face_torielwhatside;
11
if (global.faceemotion == 5 && sprite_index != spr_face_torielrevenge)
12
    sprite_index = spr_face_torielrevengetalk;
13
if (global.faceemotion == 6 && sprite_index != spr_face_torielcold)
14
    sprite_index = spr_face_torielcold;
15
if (global.faceemotion == 7 && sprite_index != spr_face_torielmad)
16
    sprite_index = spr_face_torielmad;
17
if (global.faceemotion == 8 && sprite_index != spr_face_torielembarrassed)
18
    sprite_index = spr_face_torielembarrassed;
19
if (global.faceemotion == 9 && sprite_index != spr_face_toriel_goawayasgore)
20
    sprite_index = spr_face_toriel_goawayasgore;