Undertale script viewer

← back to main script listing

gml_Object_obj_demodoorA_Create_0

(view raw script w/o annotations or w/e)
1
touched = 0;
2
if (room == room_ruinsexit)
3
{
4
    if (global.flag[7 true_pacifist] == 1)
5
    {
6
        instance_create(x, y, obj_door_s_musfade);
7
        instance_destroy();
8
    }
9
    else
10
    {
11
        instance_create(140, 400, obj_solidsmall);
12
        instance_create(160, 400, obj_solidsmall);
13
    }
14
}