Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_17c_clock_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 = true;
6
    switch (npc_flag)
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                portrait = false;
12
                sndfnt = 99;
13
                message[0] = "* Tick-tock - tick-tock -#  tick-tock...";
14
                message[1] = "* The current time is 6:26,#  Monday morning!";
15
                message[2] = "* You may have noticed the#  apple trees outside the#  Steamworks are blooming.";
16
                message[3] = "* That means Spring is upon us! ";
17
                message[4] = "* This time of year, my creator#  recommends a picnic by the#  river just south of here!";
18
            }
19
            npc_flag = 1;
20
            break;
21
        case 1:
22
            with (msg)
23
            {
24
                message[0] = "* Why the puzzled look? Have we#  not met before?";
25
                message[1] = "* I am the Grandfather Clock of#  the Underground!";
26
                message[2] = "* It is my responsibility to#  keep the standard time for all#  monsters.";
27
                message[3] = "* However, I cannot help but#  feel there is a miscalculation#  in my tick-tocking.";
28
                message[4] = "* It is simply driving me mad!";
29
            }
30
            npc_flag = 2;
31
            break;
32
        case 2:
33
            with (msg)
34
            {
35
                message[0] = "* I do not sense the gears#  turning within these walls.";
36
                message[1] = "* Hm, yes, I believe the main#  clock face outside has stalled!";
37
                message[2] = "* An engineer should arrive to#  fix it soon.";
38
                message[3] = "* Do not worry, I will continue#  to keep the time!";
39
            }
40
            npc_flag = 3;
41
            break;
42
        case 3:
43
            with (msg)
44
                message[0] = "* Tick-tock - tick-tock -#  tick-tock...";
45
            break;
46
    }
47
}