Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_happycactus_break_6_Step_0

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

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
7
    is_talking = 1
8
    if (global.dunes_flag[24] == 1)
9
    {
10
        switch npc_flag
11
        {
12
            case 0:
13
                with (msg)
14
                {
15
                    portrait = false
16
                    sndfnt = 99
17
                    message[0] = "* Oh ho! Why if it isn't the#  Deputy!"
18
                    message[1] = "* Will you sign my needle? "
19
                    message[2] = "* Please do!"
20
                    ch_msg = 2
21
                    ch[1] = "Yes"
22
                    ch[2] = "No"
23
                    if (outcome == 1)
24
                    {
25
                        message[3] = "* How exciting! Here's a pen!"
26
                        message[4] = "* (You make a few scribbles on#  one of the fellow's needles.)"
27
                        message[5] = "* Oh boy!"
28
                        message[6] = "* Hope you don't mind if I sell#  that needle online!"
29
                        message[7] = "* Ta-ta!"
30
                    }
31
                    if (outcome == 2)
32
                        message[3] = "* Boo-hoo."
33
                    if (outcome != 0)
34
                    {
35
                        waiter = 0
36
                        other.npc_flag++
37
                    }
38
                }
39
                break
40
            case 1:
41
                waiter = 0
42
                with (msg)
43
                {
44
                    portrait = false
45
                    sndfnt = 99
46
                    message[0] = "* Good luck with the new job! Ah#  ha!!"
47
                }
48
                break
49
        }
50
51
    }
52
    else if (global.dunes_flag[24] == 2)
53
    {
54
        waiter = 0
55
        switch npc_flag
56
        {
57
            case 0:
58
                with (msg)
59
                {
60
                    portrait = false
61
                    sndfnt = 99
62
                    message[0] = "* Why if it isn't the Deputy!	"
63
                    message[1] = "* Do you think the Feisty Five#  will ever get back together!	"
64
                    message[2] = "* I hope-hope-hope they do!	"
65
                    message[3] = "* It isn't any fun being apart,#  no ho!"
66
                }
67
                npc_flag += 1
68
                break
69
            case 1:
70
                with (msg)
71
                {
72
                    portrait = false
73
                    sndfnt = 99
74
                    message[0] = "* You're Star's right-hand man,#  correct?	"
75
                    message[1] = "* If you see him, tell him we#  all miss his leadership!	"
76
                    message[2] = "* That we do!"
77
                }
78
                break
79
        }
80
81
    }
82
}