Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_room_controller_dunes_30c_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
scene = 0;
4
cutscene_timer = 0;
5
if (global.dunes_flag[41] >= 2 && global.dunes_flag[41] != 4 && global.dunes_flag[41] != 5)
6
{
7
    instance_destroy();
8
    exit;
9
}
10
else if (global.dunes_flag[41] == 4)
11
{
12
    instance_create(470, 520, obj_ed_npc);
13
    obj_ed_npc.npc_direction = "up";
14
    instance_create(420, 500, obj_mooch_npc);
15
    obj_mooch_npc.npc_direction = "up";
16
    instance_create(520, 520, obj_ace_npc);
17
    obj_ace_npc.npc_direction = "up";
18
    instance_create(550, 500, obj_moray_npc);
19
    obj_moray_npc.npc_direction = "up";
20
    scene = 9;
21
    with (obj_radio)
22
        audio_stop_sound(current_song);
23
}
24
else if (global.dunes_flag[41] == 5)
25
{
26
    scene = 46;
27
}