Undertale script viewer

← back to main script listing

gml_Script_scr_facechoice

(view raw script w/o annotations or w/e)
1
if (global.facechoice == 1)
2
{
3
    instance_create(writer.x - 33, writer.y + 25, obj_face_torieltalk);
4
    instance_create(0, 0, obj_torbody);
5
}
6
if (global.facechoice == 2)
7
    instance_create(writer.x - 36, writer.y + 25, obj_face_floweytalk);
8
if (global.facechoice == 3)
9
    instance_create(writer.x - 35, writer.y + 25, obj_face_sans);
10
if (global.facechoice == 4)
11
{
12
    var face_x;
13
    if (global.language == "ja")
14
        face_x = writer.writingxend + 30;
15
    else
16
        face_x = writer.x - 35;
17
    var face = instance_create(face_x, writer.y + 25, obj_face_papyrus);
18
    if (global.language == "ja")
19
        face.image_xscale = -1;
20
}
21
if (global.facechoice == 5)
22
    instance_create(writer.x - 40, writer.y + 25, obj_face_undyne);
23
if (global.facechoice == 6)
24
    instance_create(writer.x - 39, writer.y + 25, obj_face_alphys);
25
if (global.facechoice == 7)
26
    instance_create(writer.x - 40, writer.y + 20, obj_face_asgore);
27
if (global.facechoice == 8)
28
    instance_create(writer.x - 18, writer.y + 45, obj_face_mettaton);
29
if (global.facechoice == 9)
30
    instance_create(writer.x - 30, writer.y + 30, obj_face_asriel);