Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_29b_controller_Create_0

(view raw script w/o annotations or w/e)
1
if (global.dunes_flag[16] >= 1)
2
    instance_destroy()
3
if (global.route == 1 && global.snowdin_flag[13] == 2 && global.geno_complete[2] == false)
4
{
5
    instance_destroy()
6
    instance_create(0, 0, obj_dunes_29b_controller_neutral)
7
}
8
else if (global.snowdin_flag[13] == 3 && global.snowdin_flag[21] == 1 && global.geno_complete[3] == true)
9
{
10
    instance_destroy()
11
    instance_create(0, 0, obj_dunes_29b_controller_geno)
12
}
13
else if ((global.snowdin_flag[13] == 3 && global.snowdin_flag[21] == 0) || (global.geno_complete[2] == true && (global.geno_complete[3] == false || global.route == 1)))
14
{
15
    instance_destroy()
16
    instance_create(0, 0, obj_dunes_29b_controller_neutral_geno)
17
}
18
scene = 0