Undertale script viewer

← back to main script listing

gml_Object_obj_face_floweytalk_Step_0

(view raw script w/o annotations or w/e)
1
if (global.faceemotion == 0 && sprite_index != spr_floweynice)
2
    sprite_index = spr_floweynice;
3
if (global.faceemotion == 1 && sprite_index != spr_floweynicesideum)
4
    sprite_index = spr_floweynicesideum;
5
if (global.faceemotion == 2 && sprite_index != spr_floweysassy)
6
    sprite_index = spr_floweysassy;
7
if (global.faceemotion == 3 && sprite_index != spr_floweypissed)
8
    sprite_index = spr_floweypissed;
9
if (global.faceemotion == 4 && sprite_index != spr_floweyevil)
10
    sprite_index = spr_floweyevil;
11
if (global.faceemotion == 5 && sprite_index != spr_floweygrin)
12
    sprite_index = spr_floweygrin;
13
if (room == room_ruinsexit)
14
{
15
    if (global.faceemotion == 6 && sprite_index != spr_floweygrin)
16
        sprite_index = spr_floweytoriel;
17
    if (global.faceemotion == 7 && sprite_index != spr_floweygrin)
18
        sprite_index = spr_floweytoriel2;
19
    if (global.faceemotion == 8 && sprite_index != spr_floweygrin)
20
        sprite_index = spr_floweyplain;
21
}
22
if (instance_exists(OBJ_WRITER))
23
{
24
    if (OBJ_WRITER.halt != 0)
25
    {
26
        image_speed = 0;
27
        image_index = 0;
28
    }
29
    else
30
    {
31
        image_speed = 0.2;
32
    }
33
}