Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_gamer_break_6_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.dunes_flag[24] == 1)
7
    {
8
        switch (npc_flag)
9
        {
10
            case 0:
11
                with (msg)
12
                {
13
                    portrait = false;
14
                    sndfnt = 99;
15
                    message[0] = "* Yo, exciting news.";
16
                    message[1] = "* I just built myself a new#  computer and guess what?";
17
                    message[2] = "* You can play GAMES on it!";
18
                    message[3] = "* Sorry North Star but I'm never#  leaving my room again!!!";
19
                }
20
                npc_flag += 1;
21
                break;
22
            case 1:
23
                with (msg)
24
                {
25
                    portrait = false;
26
                    sndfnt = 99;
27
                    message[0] = "* There's these videos on#  Undernet of monsters playing#  Love Blaster.";
28
                    message[1] = "* I'll tell ya what, they're#  playing it all wrong!";
29
                    message[2] = "* You're supposed to GRAB the#  powerups, not avoid them!!";
30
                    message[3] = "* Also, Mew mew doesn't \"shoot#  bullets\", she spreads joy";
31
                    message[4] = "* It's so obvious they haven't#  studied the deep lore like I#  have.";
32
                }
33
                npc_flag += 1;
34
                break;
35
            case 2:
36
                with (msg)
37
                {
38
                    portrait = false;
39
                    sndfnt = 99;
40
                    message[0] = "* You should come over#  sometime.";
41
                    message[1] = "* We could play a co-op game!";
42
                }
43
                break;
44
        }
45
    }
46
    else if (global.dunes_flag[24] == 2)
47
    {
48
        switch (npc_flag)
49
        {
50
            case 0:
51
                with (msg)
52
                {
53
                    portrait = false;
54
                    sndfnt = 99;
55
                    message[0] = "* Yo, exciting news.";
56
                    message[1] = "* I just built myself a new#  computer and guess what?";
57
                    message[2] = "* You can play GAMES on it!";
58
                    message[3] = "* Isn't that awesome???";
59
                    message[4] = "* Why don't you look excited?";
60
                    message[5] = "* ...Alright then, sorry I#  brought it up.";
61
                }
62
                npc_flag += 1;
63
                break;
64
            case 1:
65
                with (msg)
66
                {
67
                    portrait = false;
68
                    sndfnt = 99;
69
                    message[0] = "* Forget about the game stuff.";
70
                    message[1] = "* I'm more of a single-player#  type anyway.";
71
                }
72
                break;
73
        }
74
    }
75
}