Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_geno_backtrack_blocker_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
switch scene
4
{
5
    case 0:
6
        if ((!global.cutscene) && place_meeting(x, y, obj_pl))
7
        {
8
            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 }
()
9
            cutscene_advance()
10
        }
11
        break
12
    case 1:
13
        var narrator = instance_create_depth(0, 0, -100, obj_dialogue_narrator)
14
        with (narrator)
15
            message[0] = "* (The other way.)"
16
        scene++
17
        break
18
    case 2:
19
        with (obj_pl)
20
        {
21
            clover_walk_backwards = false
22
            autowalk_direction = other.walk_dir
23
            switch other.walk_dir
24
            {
25
                case "down":
26
                    direction = 270
27
                    break
28
                case "right":
29
                    direction = 0
30
                    break
31
                case "left":
32
                    direction = 180
33
                    break
34
                case "up":
35
                    direction = 90
36
                    break
37
            }
38
39
            state = gml_Script_scr_autowalk_state
40
           alarm[1]
41
        }
42
        cutscene_advance()
43
        break
44
    case 3:
45
        if (!obj_pl.alarm[1])
46
        {
47
            scr_cutscene_end
scr_cutscene_end

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