Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_40_geno_controller_Create_0

(view raw script w/o annotations or w/e)
1
if (global.route != 3 || (!global.geno_complete[3]))
2
{
3
    instance_destroy()
4
    return;
5
}
6
if (global.dunes_flag[51] == 1)
7
{
8
    var pellets = instance_create_depth(148, 41, 0, obj_steamworks_34_pellets)
9
    pellets.image_index = pellets.image_number - 1
10
    instance_destroy()
11
}
12
if (global.dunes_flag[51] == 2)
13
    instance_destroy()
14
scene = 0
15
cutscene_timer = 0