Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland_3_paci_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 != -4)
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() { global.cutscene = true; obj_pl.state = 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] = "* (Who knows what might happen#  from this point forward.)";
20
            message[1] = "* (Continue?)";
21
            ch_msg = 1;
22
            ch[1] = "Turn back";
23
            ch[2] = "Continue";
24
            if (outcome == 2)
25
            {
26
                instance_destroy(other);
27
                global.hotland_flag[15] = 1;
28
                scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() { global.cutscene = false; obj_pl.alarm[0] = 1; }
();
29
                exit;
30
            }
31
            if (outcome == 1)
32
                other.scene++;
33
        }
34
        break;
35
    case 2:
36
        with (obj_pl)
37
        {
38
            clover_walk_backwards = false;
39
            autowalk_direction = "down";
40
            direction = 270;
41
            state = scr_autowalk_state;
42
alarm[1]
43
        }
44
        cutscene_advance();
45
        break;
46
    case 3:
47
        if (!obj_pl.alarm[1])
48
        {
49
            scr_cutscene_end
scr_cutscene_end

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