Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_turtle_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
    switch npc_flag
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                portrait = false
12
                sndfnt = 99
13
                message[0] = "* Say, another explorer in this#  neck of the caves?"
14
                message[1] = "* Pleased to meet ya!"
15
                message[2] = "* You wouldn't be in the#  stone-moving business, would#  you?"
16
                message[3] = "* Ha! Only kidding around!"
17
                message[4] = "* This morning, I set out on an#  expedition to find new wares#  for my shop."
18
                message[5] = "* Right as I passed through that#  door there, it caved in!"
19
                message[6] = "* Close one, huh?"
20
                message[7] = "* Sorry universe, but you won't#  do me in that easily!"
21
                message[8] = "* Wa ha ha!"
22
            }
23
            npc_flag = 1
24
            break
25
        case 1:
26
            waiter = 1
27
            break
28
        case 2:
29
            with (msg)
30
            {
31
                portrait = false
32
                sndfnt = 99
33
                message[0] = "* If you're ever in Waterfall,#  be sure to stop by my shop!"
34
                message[1] = "* Got plenty o'wares to sell ya!"
35
                message[2] = "* No better place your allowance#  could go!"
36
            }
37
            npc_flag = 3
38
            break
39
        case 3:
40
            with (msg)
41
            {
42
                portrait = false
43
                sndfnt = 99
44
                message[0] = "* Oh, do you want me to say my#  catchphrase as a farewell?"
45
                message[1] = "* Alright then! Ready?"
46
                message[2] = "* Let justice prevail!!!"
47
                message[3] = "* ..."
48
                message[4] = "* Or was it \"Let justice be#  done\"?"
49
                message[5] = "* Could've also been \"Here comes#  the hammer.\""
50
                message[6] = "* ..."
51
                message[7] = "* What can I say? I never could#  decide on my catchphrase!"
52
                message[8] = "* Wa ha ha!"
53
            }
54
            npc_flag = 4
55
            break
56
        case 4:
57
            with (msg)
58
            {
59
                portrait = false
60
                sndfnt = 99
61
                message[0] = "* Be careful out there, kid!"
62
            }
63
            break
64
    }
65
66
}
67
if (waiter == 1)
68
{
69
    scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
70
    with (msg)
71
    {
72
        portrait = false
73
        sndfnt = 99
74
        message[0] = "* What's a young'n like you#  doing out here anyway?"
75
        message[1] = "* Surely it wasn't to meet ol'#  Gerson, was it?"
76
        message[2] = "* To hear one of my famous#  stories?"
77
        message[3] = "* Surely not!"
78
        ch_msg = 3
79
        ch[1] = "Stories?"
80
        ch[2] = "I should\ngo"
81
        if (outcome == 1)
82
        {
83
            message[4] = "* Yes! I have many great stories#  of the old days."
84
            message[5] = "* Though, at this point, they're#  more like legends!"
85
            message[6] = "* You see, I used to be a hero.#  The Hammer of Justice!"
86
            message[7] = "* I'd go ‘round, day and night,#  walloping any bad guys that#  needed walloping."
87
            message[8] = "* This one time, I-"
88
            message[9] = "* I... er..."
89
            message[10] = "* I just forgot all of my#  stories."
90
            message[11] = "* Wa ha ha!!"
91
            other.npc_flag = 2
92
            other.waiter = 0
93
        }
94
        if (outcome == 2)
95
        {
96
            message[4] = "* Hey, I would too if I could,#  wa ha ha!"
97
            message[5] = "* If my memory serves, and it#  usually doesn't, Mining Co. is#  stationed around here."
98
            message[6] = "* They could clear this cave in#  a jiff!"
99
            message[7] = "* Eh, well... the geology here#  IS interesting."
100
            message[8] = "* Maybe I'll stay a while, ya#  know?"
101
            message[9] = "* Take my situation as a#  blessing in disguise!"
102
            other.npc_flag = 2
103
            other.waiter = 0
104
        }
105
    }
106
}