Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_29_geno_blocker_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var door = instance_place(x, y, obj_doorway)
4
if (door != noone)
5
    instance_destroy(door)
6
switch scene
7
{
8
    case 0:
9
        if ((!global.cutscene) && place_meeting(x, y, obj_pl))
10
        {
11
            scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
12
            cutscene_advance()
13
        }
14
        break
15
    case 1:
16
        cutscene_dialogue()
17
        with (msg)
18
        {
19
            message[0] = "* (There are still enemies to#  bring justice on.)"
20
            ch_msg = 0
21
            ch[1] = "Turn back"
22
            ch[2] = "Continue"
23
            if (outcome == 2)
24
            {
25
                scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
26
                instance_destroy(other)
27
                global.dunes_flag[55] = 1
28
                return;
29
            }
30
            if (outcome == 1)
31
                other.scene++
32
        }
33
        break
34
    case 2:
35
        with (obj_pl)
36
        {
37
            clover_walk_backwards = false
38
            autowalk_direction = "left"
39
            direction = 180
40
            state = gml_Script_scr_autowalk_state
41
           alarm[1]
42
        }
43
        cutscene_advance()
44
        break
45
    case 3:
46
        if (!obj_pl.alarm[1])
47
        {
48
            scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
49
            scene = 0
50
        }
51
        break
52
}