Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_barnpc_wildeast_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (interact)
3
{
4
    scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
5
    is_talking = 1;
6
    if (global.snowdin_flag[18] >= 1)
7
    {
8
        global.snowdin_flag[18] = 2;
9
        switch (npc_flag)
10
        {
11
            case 0:
12
                with (msg)
13
                {
14
                    message[0] = "* 'Ay, it's you again!";
15
                    message[1] = "* Nice to see a face around 'ere#  that's seen places other than#  this desert, heh heh.";
16
                    message[2] = "* I live 'round these parts, but#  it's not always like... this...";
17
                    message[3] = "* The Wild East is changin';#  something's in the air.";
18
                    message[4] = "* North Star and his gang are#  doin' their best I suppose.";
19
                }
20
                npc_flag = 1;
21
                break;
22
            case 1:
23
                with (msg)
24
                {
25
                    message[0] = "* Speakin' of North Star, he's#  got you roped into his crew,#  huh.";
26
                    message[1] = "* Don't be too intimidated,#  they're all a bunch of softies#  at heart!";
27
                    message[2] = "* Maybe not that Ed guy though...#  Something tells me not to cross#  him, heh heh...";
28
                }
29
                npc_flag = 2;
30
                break;
31
            case 2:
32
                with (msg)
33
                {
34
                    message[0] = "* I'm thinkin' of taking a trip#  to Waterfall.";
35
                    message[1] = "* You should stop by that place#  if ya get the chance!";
36
                    message[2] = "* Prettier than here, fer'sure.";
37
                }
38
                break;
39
        }
40
    }
41
    else
42
    {
43
        switch (npc_flag)
44
        {
45
            case 0:
46
                with (msg)
47
                {
48
                    message[0] = "* You must be that new kid in the#  paper, eh?";
49
                    message[1] = "* Trust me, the Wild East ain't#  always this... active...";
50
                    message[2] = "* North Star must just be excited#  to add another member to his#  posse!";
51
                }
52
                npc_flag = 1;
53
                break;
54
            case 1:
55
                with (msg)
56
                {
57
                    message[0] = "* If you plan on leavin' here,#  don't expect it to be easy.";
58
                    message[1] = "* When North Star gets his mind#  set on something, he sees it#  though.";
59
                    message[2] = "* So embrace yer position. I'm#  sure only good things can come#  from it!";
60
                }
61
                npc_flag = 2;
62
                break;
63
            case 2:
64
                with (msg)
65
                    message[0] = "* I'm gonna head out of town,#  don't get into too much trouble,#  heh heh.";
66
                break;
67
        }
68
    }
69
}