Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_saloon_cutscene_06_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
            color = true;
12
            col_modif[0] = 65535;
13
            talker[0] = starlo;
14
            message[0] = "* Howdy!";
15
            message[1] = "* Man, am I excited for#  this.";
16
            message[2] = "* Have you done#  everythin' you wanted?";
17
            message[3] = "* Caught some bandits?#  SAVED some lives?";
18
            message_col[3][0] = "                      #  SAVED            ";
19
            prt[0] = 417;
20
            prt[1] = 417;
21
            prt[2] = 417;
22
            prt[3] = 417;
23
            ch_msg = 3;
24
            ch[1] = "Yes";
25
            ch[2] = "No";
26
            if (outcome == 1)
27
            {
28
                if (audio_sound_get_gain(obj_radio.current_song) == 1)
29
                    audio_sound_gain(obj_radio.current_song, 0, 500);
30
                message[4] = "* Let's get goin' then!";
31
                prt[4] = 417;
32
            }
33
            if (outcome == 2)
34
            {
35
                message[4] = "* Hurry it on up, then!";
36
                prt[4] = 417;
37
                other.scene = 0;
38
            }
39
        }
40
        if (!global.dialogue_open)
41
        {
42
            global.dunes_flag[20] = 8;
43
            trn = instance_create(0, 0, obj_transition_clock);
44
            trn.newRoom = 127;
45
            trn.xx = 700;
46
            trn.yy = 375;
47
            instance_destroy();
48
        }
49
        break;
50
}