Undertale script viewer

← back to main script listing

gml_Object_obj_torinteractable7_Step_1

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
if (global.flag[7 true_pacifist] == 0)
3
{
4
    if (instance_exists(obj_face_torieltalk))
5
        image_index = obj_face_torieltalk.image_index;
6
    else
7
        image_index = 0;
8
}
9
if (global.flag[7 true_pacifist] == 1)
10
{
11
    if (instance_exists(obj_face_asriel))
12
        image_index = obj_face_asriel.image_index;
13
    else
14
        image_index = 0;
15
}
16
script_execute(scr_npcdir, 2);