Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_axis_chase_blocker_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (global.sworks_flag[12] >= 2)
4
{
5
    instance_destroy()
6
    return;
7
}
8
var door = instance_place(x, y, obj_doorway)
9
if (door != noone)
10
    instance_destroy(door)
11
switch scene
12
{
13
    case 0:
14
        if ((!global.cutscene) && place_meeting(x, y, obj_pl))
15
        {
16
            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 }
()
17
            cutscene_advance()
18
        }
19
        break
20
    case 1:
21
        cutscene_dialogue()
22
        with (msg)
23
            message[0] = "* (Better not approach#  him.)"
24
        break
25
    case 2:
26
        with (obj_pl)
27
        {
28
            clover_walk_backwards = false
29
            autowalk_direction = "down"
30
            direction = 270
31
            state = gml_Script_scr_autowalk_state
32
           alarm[1]
33
        }
34
        cutscene_advance()
35
        break
36
    case 3:
37
        if (!obj_pl.alarm[1])
38
        {
39
            scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
40
            scene = 0
41
        }
42
        break
43
}