Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_hotland_cold_man_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() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
5
    is_talking = 1;
6
    with (msg)
7
    {
8
        if (global.hotland_flag[1] > 0 && global.party_member != -4)
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
        else
18
        {
19
            switch (other.npc_flag)
20
            {
21
                case 0:
22
                    message[0] = "* I'm starting to think my date#  stood me up.";
23
                    message[1] = "* I've been waiting here for#  three hours.";
24
                    message[2] = "* The date is tomorrow night but#  would it hurt to show up a#  little early?";
25
                    message[3] = "* The silverware is getting#  cold...";
26
                    other.npc_flag++;
27
                    break;
28
                case 1:
29
                    message[0] = "* Who am I kidding?";
30
                    message[1] = "* My date is so cute, way out of#  my league.";
31
                    message[2] = "* Why would anyone show up twenty#  hours early for someone like#  me?";
32
                    message[3] = "* Sigh...";
33
                    other.npc_flag++;
34
                    break;
35
                case 2:
36
                    message[0] = "* I'm just not cut out for love.";
37
                    break;
38
            }
39
        }
40
    }
41
}