Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_pedla_overworld_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (interact == 1)
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
    switch (npc_flag)
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                message[0] = "* Why hello! Hope you're having#  a glorious day!";
12
                message[1] = "* I'd give you a flower but#  those are in low supply around#  here.";
13
                message[2] = "* I hope a friendly smile#  suffices!";
14
            }
15
            npc_flag += 1;
16
            break;
17
        case 1:
18
            with (msg)
19
            {
20
                message[0] = "* Honestly, the Dunes are not#  the best place for my sisters#  and I.";
21
                message[1] = "* But I feel an obligation to be#  here. You know, to help grow#  the ecosystem.";
22
                message[2] = "* One day, we'll return this#  place to its former glory!#  Mmhm!";
23
            }
24
            npc_flag += 1;
25
            break;
26
        case 2:
27
            with (msg)
28
            {
29
                message[0] = "* I've heard rumors about an#  abandoned greenhouse FILLED#  with flowers.";
30
                message[1] = "* Not sure how or why such a#  thing would exist but I really#  wanna see it!";
31
            }
32
            npc_flag += 1;
33
            break;
34
        case 3:
35
            with (msg)
36
            {
37
                message[0] = "* Remember to give flowers lots#  of love and attention!";
38
                message[1] = "* They are alive and can teach#  you many things!";
39
            }
40
            break;
41
    }
42
}