Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_east_jail_controller_Create_0

(view raw script w/o annotations or w/e)
1
if (global.route == 3)
2
{
3
    instance_destroy()
4
    return;
5
}
6
if (global.dunes_flag[24] == 0)
7
    instance_create(206, 128, obj_npc_martlet_jail)
8
else
9
    instance_create(210, 128, obj_npc_kangarufus_break_6)
10
switch global.dunes_flag[20]
11
{
12
    case 1:
13
        instance_create(120, 126, obj_npc_virgil_break_1)
14
        break
15
    case 3:
16
        instance_create(260, 156, obj_npc_moray_break_2)
17
        break
18
}
19
20
instance_destroy()