Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_complex_food_enjoyer_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.hotland_flag[1] > 0 && global.party_member != -4)
7
    {
8
        with (msg)
9
        {
10
            other.is_talking = 0;
11
            sndfnt = 102;
12
            message[0] = "* (We need to stay#  focused.)";
13
            message[1] = "* (Let's not bother#  others with our#  problems.)";
14
            prt[0] = 321;
15
            prt[1] = 329;
16
        }
17
    }
18
    else
19
    {
20
        switch (npc_flag)
21
        {
22
            case 0:
23
                with (msg)
24
                {
25
                    portrait = false;
26
                    sndfnt = 99;
27
                    message[0] = "* This has got to be the best#  restaurant in the Underground.#  Seriously.";
28
                    message[1] = "* You can't beat the food, the#  service, the atmosphere...";
29
                    message[2] = "* Something has always puzzled#  me though...";
30
                    message[3] = "* ...Where is the kitchen?";
31
                }
32
                npc_flag = 1;
33
                break;
34
            case 1:
35
                with (msg)
36
                {
37
                    portrait = false;
38
                    sndfnt = 99;
39
                    message[0] = "* I must confess, there is ONE#  thing about this place that#  gets me down.";
40
                    message[1] = "* The music.";
41
                    message[2] = "* Like, this band is FINE. A#  little too \"new wave\" for my#  taste.";
42
                    message[3] = "* I miss the acts of my youth.";
43
                    message[4] = "* There was this lounge singer#  they'd host... ";
44
                    message[5] = "* Bea-u-ti-ful!";
45
                    message[6] = "* I mean, wowza!! MEEE-OWW!!!";
46
                    message[7] = "* sorry.";
47
                }
48
                npc_flag = 2;
49
                break;
50
            case 2:
51
                with (msg)
52
                {
53
                    portrait = false;
54
                    sndfnt = 99;
55
                    message[0] = "* My food should be out any#  minute. Can't wait!";
56
                }
57
        }
58
    }
59
}