Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_rock_man_dunes_30_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (interact)
3
{
4
    if (global.party_member != -4)
5
    {
6
        scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
7
        with (msg)
8
        {
9
            sndfnt = 102;
10
            message[0] = "* (We need to stay#  focused.)";
11
            message[1] = "* (Let's not bother the#  townsfolk with our#  problems.)";
12
            prt[0] = 321;
13
            prt[1] = 338;
14
        }
15
        exit;
16
    }
17
    scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
18
    is_talking = true;
19
    switch (npc_flag)
20
    {
21
        case 0:
22
            with (msg)
23
            {
24
                portrait = false;
25
                sndfnt = 99;
26
                message[0] = "* Something going on at the old#  Ketsukane residence?";
27
                message[1] = "* I've noticed an unusual number#  of monsters visiting.";
28
                message[2] = "* Guess there's never a bad time#  to pay your respects. \t";
29
                message[3] = "* Brilliant minds, the#  Ketsukane's.";
30
            }
31
            npc_flag += 1;
32
            break;
33
        case 1:
34
            with (msg)
35
            {
36
                portrait = false;
37
                sndfnt = 99;
38
                message[0] = "* Have you seen our little#  sapling south of here?";
39
                message[1] = "* Well, perhaps I shouldn't call#  it \"little\" anymore.";
40
                message[2] = "* Its rate of growth has been#  unprecedented.";
41
                message[3] = "* My latest botanical methods#  seem to be working better than#  expected.";
42
                message[4] = "* The Meadow is sure to return#  in the coming years. I truly#  believe it.";
43
            }
44
            npc_flag += 1;
45
            break;
46
        case 2:
47
            with (msg)
48
            {
49
                message[0] = "* Patience is a virtue.";
50
                message[1] = "* You will get what you put in#  but it may take time.";
51
                message[2] = "* Remember that.";
52
            }
53
            break;
54
    }
55
}