Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_saloon_cutscene_05_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] = "* Welcome back, partner!";
13
            message[1] = "* We're about halfway#  done with yer trainin'!";
14
            message[2] = "* They grow up so fast...";
15
            message[3] = "* Ready to continue?";
16
            prt[0] = 417;
17
            prt[1] = 417;
18
            prt[2] = 418;
19
            prt[3] = 417;
20
            ch_msg = 3;
21
            ch[1] = "Yes";
22
            ch[2] = "No";
23
            if (outcome == 1)
24
            {
25
                if (audio_sound_get_gain(obj_radio.current_song) == 1)
26
                    audio_sound_gain(obj_radio.current_song, 0, 500);
27
                message[4] = "* Follow me!";
28
                prt[4] = 417;
29
            }
30
            if (outcome == 2)
31
            {
32
                message[4] = "* Alright, take yer#  time.";
33
                prt[4] = 417;
34
                other.scene = 0;
35
            }
36
        }
37
        if (!global.dialogue_open)
38
        {
39
            global.dunes_flag[20] = 6;
40
            trn = instance_create(0, 0, obj_transition_clock);
41
            trn.newRoom = 127;
42
            trn.xx = 700;
43
            trn.yy = 375;
44
            instance_destroy();
45
        }
46
        break;
47
}