Undertale script viewer

← back to main script listing

gml_Object_obj_face_alphys_Step_0

(view raw script w/o annotations or w/e)
1
if (global.flag[430 alphys_expression] == 0)
2
    sprite_index = u[global.faceemotion];
3
if (instance_exists(OBJ_WRITER))
4
{
5
    if (OBJ_WRITER.halt != 0)
6
    {
7
        image_speed = 0;
8
        image_index = 0;
9
    }
10
    else
11
    {
12
        image_speed = 0.25;
13
    }
14
}
15
if (global.flag[430 alphys_expression] == 1)
16
    sprite_index = u[global.faceemotion + 10];
17
if (global.flag[430 alphys_expression] == 2)
18
    sprite_index = u[global.faceemotion + 15];
19
if (global.flag[430 alphys_expression] == 3)
20
{
21
    sprite_index = u[global.faceemotion];
22
    if (global.faceemotion == 7)
23
        sprite_index = u[24];
24
    if (global.faceemotion == 0)
25
        sprite_index = u[25];
26
}
27
if (global.flag[7 true_pacifist] == 1)
28
{
29
    sprite_index = u[global.faceemotion];
30
    if (global.faceemotion == 1)
31
        sprite_index = spr_alphysface_laugh;
32
    if (global.faceemotion == 2)
33
        sprite_index = spr_alphysface_smarmy;
34
    if (global.faceemotion == 8)
35
        sprite_index = spr_alphysface_2;
36
    if (global.faceemotion == 9)
37
        sprite_index = u[24];
38
}
39
if (global.flag[430 alphys_expression] == 4)
40
{
41
    image_index = global.faceemotion;
42
    sprite_index = spr_alphysface_new;
43
}