Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_saloon_cutscene_02_Step_0

(view raw script w/o annotations or w/e)
1
var starlo = 1169;
2
if (starlo.interact)
3
    other.scene++;
4
switch (scene)
5
{
6
    case 1:
7
        scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
8
        with (msg)
9
        {
10
            sndfnt = 107;
11
            talker[0] = starlo;
12
            message[0] = "* Are ya ready to begin?";
13
            prt[0] = 417;
14
            ch_msg = 0;
15
            ch[1] = "Yes";
16
            ch[2] = "No";
17
            if (outcome == 1)
18
            {
19
                message[1] = "* Did ya talk to the#  townsfolk? Explore#  every nook and cranny?";
20
                message[2] = "* You're gunna need to if#  you wanna be a good...#  deputy.";
21
                message[3] = "* That's right, kid!";
22
                message[4] = "* I'm heavily considerin'#  you for my coveted#  sidekick position!";
23
                message[5] = "* Now, don't get too high#  and mighty just yet.";
24
                message[6] = "* To be a deputy, you#  gotta know how to#  wrangle the \"horses.\"";
25
                message[7] = "* Me and my posse are#  gunna show you how it's#  done 'round here.";
26
                message[8] = "* I wouldn't drag anyone#  off the road and give#  them special treatment.";
27
                message[9] = "* You'll hav'ta prove#  yer gunslingin' skills#  to me.";
28
                message[10] = "* That bein' said, let's#  go meet up with the#  others!";
29
                prt[0] = 417;
30
                prt[1] = 417;
31
                prt[2] = 415;
32
                prt[3] = 422;
33
                prt[4] = 417;
34
                prt[5] = 419;
35
                prt[6] = 419;
36
                prt[7] = 417;
37
                prt[8] = 417;
38
                prt[9] = 417;
39
                prt[10] = 417;
40
                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; }
();
41
            }
42
            if (outcome == 2)
43
            {
44
                message[1] = "* No rush.";
45
                message[2] = "* Make yerself at home.";
46
                prt[1] = 417;
47
                prt[2] = 417;
48
                other.scene = 0;
49
            }
50
        }
51
        if (!global.dialogue_open)
52
        {
53
            scr_camera_move
scr_camera_move

function scr_camera_move(arg0, arg1, arg2) { if (!instance_exists(obj_camera)) { instance_create(__view_get(e__VW.Object, 0).x, __view_get(e__VW.Object, 0).y, obj_camera); __view_set(e__VW.Object, 0, obj_camera); } else { obj_camera.x = __view_get(e__VW.Object, 0).x; obj_camera.y = __view_get(e__VW.Object, 0).y; __view_set(e__VW.Object, 0, obj_camera); } obj_camera.move = true; obj_camera.xx = arg0; obj_camera.yy = arg1; obj_camera.spd = arg2; if (abs(arg0 - obj_camera.x) <= arg2 && abs(arg1 - obj_camera.y) <= arg2) return true; else return false; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
(obj_pl.x, obj_pl.y, 1);
54
            npc_clover = instance_create(obj_pl.x, obj_pl.y, obj_player_npc);
55
            npc_clover.x_dest[0] = 90;
56
            npc_clover.y_dest[0] = 360;
57
            npc_clover.axis_override = "x";
58
            starlo.x_dest[0] = 90;
59
            starlo.y_dest[0] = 360;
60
            starlo.axis_override = "x";
61
            starlo.can_walk = false;
62
            other.timer = 30;
63
            other.scene++;
64
        }
65
        break;
66
    case 2:
67
        if (!scr_timer
scr_timer

function scr_timer() { if (timer > 0) { timer--; return false; } else { return true; } }
())
68
            exit;
69
        starlo.can_walk = true;
70
        timer = 30;
71
        scene++;
72
        break;
73
    case 3:
74
        if (!scr_timer
scr_timer

function scr_timer() { if (timer > 0) { timer--; return false; } else { return true; } }
())
75
            exit;
76
        npc_clover.can_walk = true;
77
        npc_clover.walk_speed = 3;
78
        timer = 30;
79
        scene++;
80
        break;
81
    case 4:
82
        if (npc_clover.npc_arrived == true && !scr_timer
scr_timer

function scr_timer() { if (timer > 0) { timer--; return false; } else { return true; } }
())
83
        {
84
            global.dunes_flag[20] = 2;
85
            trn = instance_create(0, 0, obj_transition);
86
            trn.newRoom = 127;
87
            trn.xx = 720;
88
            trn.yy = 180;
89
            scene++;
90
        }
91
        break;
92
}