Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_noteblock_snowdin_14b_overworld_yellow_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
animate = obj_rodney_snowdin_14b_overworld_yellow.animate
3
if (animate == 0)
4
{
5
    image_speed = 0
6
    image_index = 0
7
}
8
else
9
    image_speed = 0.2
10
if interact
11
{
12
    scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
13
    is_talking = true
14
    with (msg)
15
    {
16
        portrait = false
17
        if (global.route != 3)
18
        {
19
            switch other.npc_flag
20
            {
21
                case 0:
22
                    message[0] = "* Confession time:"
23
                    message[1] = "* I claim to be a musician,"
24
                    message[2] = "* but I know nothing about#  reading sheet music, scales,#  intervals, or any of that."
25
                    message[3] = "* That's why I just hit things#  with sticks rhythmically for a#  living."
26
                    other.npc_flag++
27
                    break
28
                case 1:
29
                    message[0] = "* Just goes to show, you don't#  need smarts to be a Cool Dude"
30
                    other.npc_flag++
31
                    break
32
                case 2:
33
                    message[0] = "* Drums give me a rhythmic#  purpose in life."
34
                    break
35
            }
36
37
        }
38
        if (global.route == 3)
39
        {
40
            message[0] = "* Confession time:"
41
            message[1] = "* I claim to be a musician,"
42
            message[2] = "* but I know nothing about#  reading sheet music, scales,#  intervals, or any of that."
43
            message[3] = "* That's why I just hit things#  with sticks rhythmically for a#  living."
44
        }
45
    }
46
}