Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_soundtrack_snowdin_14b_overworld_yellow_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
var snow_geno = false;
3
if (global.kill_number[2] <= 0)
4
    snow_geno = true;
5
if (!instance_exists(obj_dialogue))
6
{
7
    waiter = 0;
8
    talk = 0;
9
}
10
if (interact)
11
{
12
    scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
13
    waiter = 1;
14
    talk = 1;
15
}
16
if (waiter == 1)
17
{
18
    with (msg)
19
    {
20
        portrait = false;
21
        switch (other.npc_flag)
22
        {
23
            case 0:
24
                ch_msg = 3;
25
                ch[1] = "Major";
26
                ch[2] = "Minor";
27
                message[0] = "* What's up?";
28
                message[1] = "* Glad you could stop by for a#  listen.";
29
                message[2] = "* Mind if I ask you a question?";
30
                message[3] = "* Which are better, minor scales#  or major scales?";
31
                switch (outcome)
32
                {
33
                    case 1:
34
                        message[4] = "* Sad.";
35
                        message[5] = "* I thought I might find another#  minor scale fan.";
36
                        message[6] = "* Everyone I've talked to likes#  major scales.";
37
                        message[7] = "* Can't be happy all the time,#  sometimes you need to switch it#  up.";
38
                        if (global.route == 3)
39
                            message[7] = "* It just doesn't seem to fit the#  mood anymore.";
40
                        other.npc_flag = 1;
41
                        break;
42
                    case 2:
43
                        if (global.route == 3)
44
                        {
45
                            message[4] = "* Yeah, I agree.";
46
                            message[5] = "* There's something about the#  bittersweet tune that feels#  especially relevant right now.";
47
                        }
48
                        else
49
                        {
50
                            message[4] = "* Whoa, hey, really?";
51
                            message[5] = "* You appreciate the bittersweet#  sound of a minor scale?";
52
                            message[6] = "* I never thought I'd find#  another fan!";
53
                            message[7] = "* No one around here appreciates#  them like I do.";
54
                            message[8] = "* Not even my bandmates.";
55
                            message[9] = "* You need both to coexist, but#  minor just flows better, you#  know?";
56
                        }
57
                        other.npc_flag = 2;
58
                        break;
59
                }
60
                break;
61
            case 1:
62
                message[0] = "* Even though I'm alone in this#  debate, I can tell you have#  good taste in music.";
63
                message[1] = "* Maybe one day you'll grow to#  love minor scales like me.";
64
                break;
65
            case 2:
66
                message[0] = "* You're pretty cool.";
67
                message[1] = "* We should jam sometime.";
68
                break;
69
        }
70
    }
71
}
72
var animate = obj_rodney_snowdin_14b_overworld_yellow.animate;
73
if (animate == 0)
74
{
75
    image_speed = 0;
76
    image_index = 0;
77
}
78
else
79
{
80
    image_speed = 0.2;
81
}