Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_35b_mr_sir_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
depth = -10
3
if interact
4
{
5
    scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
6
    is_talking = 1
7
    switch npc_flag
8
    {
9
        case 0:
10
            with (msg)
11
            {
12
                message[0] = "* Yep..."
13
                message[1] = "* ..."
14
                message[2] = "* That's correct..."
15
                message[3] = "* ..."
16
                message[4] = "* No, not that I know of."
17
                message[5] = "* ..."
18
                message[6] = "* Sir, what are you suggesting?"
19
                message[7] = "* ..."
20
                message[8] = "* Are you sure?"
21
                message[9] = "* ..."
22
                message[10] = "* No, I'm not arguing, it's#  just..."
23
                message[11] = "* ..."
24
                message[12] = "* Affirmative."
25
                message[13] = "* Over and out."
26
            }
27
            npc_flag = 1
28
            break
29
        case 1:
30
            with (msg)
31
            {
32
                message[0] = "* Please stand clear of this#  machine while we're operating."
33
                message[1] = "* In fact, I'mma need you to#  stand clear of the whole#  arcade."
34
                message[2] = "* It's best you don't question#  it, alright?"
35
            }
36
            npc_flag = 2
37
            break
38
        case 2:
39
            with (msg)
40
            {
41
                message[0] = "* Sir, it's me again."
42
                message[1] = "* We have a problem."
43
                message[2] = "* ..."
44
                message[3] = "* Yeah. "
45
                message[4] = "* There's a kid jeopardizing the#  operation."
46
                message[5] = "* Brown hat. Yellow bandana."
47
                message[6] = "* ..."
48
                message[7] = "* Yep, that's the one."
49
                message[8] = "* ..."
50
                message[9] = "* Do I have a distraction? "
51
                message[10] = "* No, why would I?"
52
                message[11] = "* What do kids like?"
53
                message[12] = "* ..."
54
                message[13] = "* Video games!?"
55
                message[14] = "* You do know what I'm trying to#  get them away from right?"
56
                message[15] = "* ..."
57
                message[16] = "* Their parents?"
58
                message[17] = "* Yeah, I think kids like their#  parents..."
59
                message[18] = "* ..."
60
                message[19] = "* What?"
61
                message[20] = "* But sir!"
62
                message[21] = "* ..."
63
                message[22] = "* ...Affirmative."
64
                message[23] = "* Over and out."
65
            }
66
            npc_flag = 3
67
            break
68
        case 3:
69
            waiter = 1
70
            npc_flag = 4
71
            break
72
        case 4:
73
            with (msg)
74
            {
75
                message[0] = "* (Not again!)"
76
                message[1] = "* Um, hey kiddo!"
77
                message[2] = "* Why don't you go to the#  playground?"
78
                message[3] = "* Yeah!"
79
                message[4] = "* Go on and get some exercise!"
80
                message[5] = "* These arcade games will#  only..."
81
                message[6] = "* Will only..."
82
                message[7] = "* ..."
83
            }
84
            npc_flag = 5
85
            break
86
        case 5:
87
            with (msg)
88
            {
89
                message[0] = "* ..."
90
                message[1] = "* I've got a job to do."
91
            }
92
            break
93
    }
94
95
}
96
if (waiter == 1)
97
{
98
    scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
99
    with (msg)
100
    {
101
        ch_msg = 3
102
        ch[1] = "Great!"
103
        ch[2] = ":("
104
        message[0] = "* Say, sport!"
105
        message[1] = "* How have you been lately?"
106
        message[2] = "* How's the homework coming?"
107
        message[3] = "* How're the grades?"
108
        if (outcome == 1)
109
        {
110
            message[4] = "* What swell news!"
111
            message[5] = "* Your mother always said your#  head was too large for your#  body but you know what?"
112
            message[6] = "* It's because you're so smart!"
113
            message[7] = "* Ha ha! Proud of you!"
114
            message[8] = "* (I'm so sorry.)"
115
            other.waiter = 0
116
        }
117
        if (outcome == 2)
118
        {
119
            message[4] = "* Ah, well, you always were a#  disappointment!"
120
            message[5] = "* ...Is what those nasty bullies#  at school would say!"
121
            message[6] = "* Ha ha! I would never!"
122
            message[7] = "* Uhh-just keep studying and I'm#  sure you'll be on the path to#  success in no time!"
123
            message[8] = "* (I'm so sorry.)"
124
            other.waiter = 0
125
        }
126
    }
127
}