Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_room_controller_mansion_entrance_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
        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 }
()
7
        cutscene_follower_into_actor()
8
        obj_martlet_npc.npc_direction = "up"
9
        obj_martlet_npc.can_walk = false
10
        instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
11
        obj_player_npc.npc_direction = "up"
12
        break
13
    case 1:
14
        cutscene_npc_walk(1164, 160, 185, 2, "y", "up")
15
        if (abs(obj_martlet_npc.y - obj_player_npc.y) > 30)
16
            scene = 2
17
        break
18
    case 2:
19
        cutscene_npc_walk(1168, 160, 220, 2, "x", "up")
20
        break
21
    case 3:
22
        cutscene_camera_move(160, 160, 2)
23
        break
24
    case 4:
25
        cutscene_wait(1.5)
26
        break
27
    case 5:
28
        cutscene_npc_direction(obj_martlet_npc, "down")
29
        break
30
    case 6:
31
        cutscene_dialogue()
32
        with (msg)
33
        {
34
            talker[0] = 1164
35
            message[0] = "* I should've asked where#  the \"papers and tapes\"#  are located, huh?"
36
            message[1] = "* Hmm... I guess we can#  take a look around."
37
            message[2] = "* Should be an office#  somewhere..."
38
            prt[0] = 311
39
            prt[1] = 324
40
            prt[2] = 321
41
            if (message_current == 2)
42
                obj_martlet_npc.npc_direction = "up"
43
        }
44
        break
45
    case 7:
46
        cutscene_npc_walk(1164, obj_player_npc.x, (obj_player_npc.y + 20), 3, "y", "up")
47
        break
48
    case 8:
49
        cutscene_actor_into_follower()
50
        break
51
    case 9:
52
        cutscene_camera_move(obj_pl.x, obj_pl.y, 2)
53
        break
54
    case 10:
55
        cutscene_camera_reset()
56
        instance_destroy(obj_player_npc)
57
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
58
        global.dunes_flag[41] = 3
59
        break
60
    case 11:
61
        if (obj_pl.y >= 260 && global.party_member != -4)
62
        {
63
            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 }
()
64
            instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
65
            cutscene_advance()
66
        }
67
        break
68
    case 12:
69
        cutscene_dialogue()
70
        with (msg)
71
        {
72
            message[0] = "* We need to find the#  things Ed mentioned#  before we go."
73
            prt[0] = 321
74
            sndfnt = 102
75
        }
76
        break
77
    case 13:
78
        cutscene_npc_walk(1168, obj_pl.x, 250, 3, "y", "up")
79
        break
80
    case 14:
81
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
82
        instance_destroy(obj_player_npc)
83
        scene = 11
84
        break
85
}