Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_complex_lobby_lad_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() //gml_Script_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] = "* You know that UGPS station#  right outside?"
28
                    message[1] = "* I hear it's going to be#  removed soon. All of them, in#  fact."
29
                    message[2] = "* You might think it's because#  letters are going out of style#  but nah."
30
                    message[3] = "* The company is just switching#  up their business model."
31
                    message[4] = "* Direct delivery to citizens'#  mailboxes from now on!"
32
                    message[5] = "* Convenient, but kinda#  bittersweet. I enjoyed my daily#  walks to the ol' station."
33
                    message[6] = "* At least this means everyone#  keeps their jobs. That's good#  news!"
34
                }
35
                npc_flag = 1
36
                break
37
            case 1:
38
                with (msg)
39
                {
40
                    portrait = false
41
                    sndfnt = 99
42
                    message[0] = "* While the new mail system is#  nice, the King's kinda given up#  on improving society."
43
                    message[1] = "* I respect what's been#  accomplished but most monsters#  act like we've peaked."
44
                    message[2] = "* Not true, there's always more#  that could be done in my#  opinion!"
45
                    message[3] = "* We could use better public#  transportation for example.#  Like a train!"
46
                    message[4] = "* Or better yet, a subway train!"
47
                    message[5] = "* ...Wait, wouldn't all trains#  be considered subway trains#  here? "
48
                }
49
                npc_flag = 2
50
                break
51
            case 2:
52
                with (msg)
53
                {
54
                    portrait = false
55
                    sndfnt = 99
56
                    message[0] = "* I wonder if I could get a job#  as a mailmonster?"
57
                    message[1] = "* Sure I can't fly but I placed#  fourth on my highschool track#  team!"
58
                }
59
        }
60
61
    }
62
}