Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ruins_01_controller_Create_0

(view raw script w/o annotations or w/e)
1
if (global.ruins_flag[0] == 2)
2
{
3
    instance_destroy();
4
    exit;
5
}
6
if (global.ruins_flag[0] == 1)
7
{
8
    instance_create(160, 240, obj_toriel_npc);
9
    obj_pl.x = 160;
10
    obj_pl.direction = 90;
11
    global.cutscene = true;
12
}
13
scene = 0;