Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_puzzle3bridgeroom_Step_0

(view raw script w/o annotations or w/e)
1
if (puzzlecount == 10)
2
{
3
    global.flag[6 Second Dark Ruins light puzzle completion] = true
4
    audio_play_sound(snd_success, 1, 0)
5
    puzzlecount++
6
}
7
if (global.flag[6 Second Dark Ruins light puzzle completion] == true)
8
    obj_spikes.image_index = 1
9
if (global.flag[12 Gate lever activated] == true)
10
{
11
    dor = instance_create(940, 120, obj_doorway)
12
    with (dor)
13
    {
14
        nextroom = 32
15
        xx = 160
16
        yy = 380
17
        image_xscale = 2.5
18
        image_yscale = 1.25
19
    }
20
    with (obj_drgate)
21
        instance_destroy()
22
    instance_destroy()
23
}
24
else if (!instance_exists(obj_drgate))
25
    instance_create(960, 110, obj_drgate)