Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_froggits_break_1_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
    switch (npc_flag)
7
    {
8
        case 0:
9
            with (msg)
10
                message[0] = "* (Watch your step! A posse of#  Micro Froggits are camping#  out.)";
11
            npc_flag = 1;
12
            break;
13
        case 1:
14
            with (msg)
15
            {
16
                message[0] = "* (The Micro Froggits are#  arguing over the political#  strife of the Underground.)";
17
                message[1] = "* (A mini-bar fight ensues!)";
18
            }
19
            npc_flag = 2;
20
            break;
21
        case 2:
22
            with (msg)
23
            {
24
                message[0] = "* (The head of the party calms#  the rest down, reminding them#  of their strong brotherhood.)";
25
                message[1] = "* (The Micro Froggits hug it#  out, settling their#  differences...)";
26
                message[2] = "* (...Because at the end of the#  day, they're all just tiny#  frogs in a great big world.)";
27
            }
28
            npc_flag = 3;
29
            break;
30
        case 3:
31
            with (msg)
32
            {
33
                message[0] = "* (This town IS big enough for#  the six of them.)";
34
                message[1] = "* (Too big.)";
35
            }
36
            break;
37
    }
38
}