Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_mooch_backtrack_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
    switch npc_flag
6
    {
7
        case 0:
8
            waiter = 1
9
            npc_flag = 1
10
            break
11
        case 1:
12
            with (msg)
13
            {
14
                talker[0] = other.object_index
15
                message[0] = "* I keep trying to sneak#  a drink from Dina but#  she won't let me!"
16
                message[1] = "* It's not fair, being#  the ONLY member who#  can't touch the stuff."
17
                message[2] = "* Oh, wait, am I being a#  bad influence?"
18
                message[3] = "* Right, uhhhh..."
19
                message[4] = "* Vegetables! Education!#  The stock market!#  OoooOOOooo!!"
20
                prt[0] = 460
21
                prt[1] = 460
22
                prt[2] = 456
23
                prt[3] = 455
24
                prt[4] = 458
25
            }
26
            npc_flag = 2
27
            break
28
        case 2:
29
            with (msg)
30
            {
31
                talker[0] = other.object_index
32
                message[0] = "* While I'm sad you're#  leaving us, I know#  you'll do great things."
33
                message[1] = "* Give 'em heck, Clover!"
34
                prt[0] = 455
35
                prt[1] = 458
36
            }
37
            break
38
    }
39
40
}
41
if (ds_map_find_value(global.npc_map, npc_id) != npc_flag)
42
    ds_map_replace(global.npc_map, npc_id, npc_flag)
43
if (waiter == 1)
44
{
45
    with (msg)
46
    {
47
        talker[0] = other.object_index
48
        message[0] = "* Clover!! Hiya!"
49
        message[1] = "* Just dropping by?"
50
        message[2] = "* Yeah..."
51
        message[3] = "* Sucks you aren't#  actually joining the#  squad."
52
        message[4] = "* With two small bodies,#  we could steal SO much#  sh-"
53
        message[5] = "* Uh...	"
54
        message[6] = "* ...I should probably#  stop saying the quiet#  part out loud, heh!"
55
        prt[0] = 458
56
        prt[1] = 455
57
        prt[2] = 462
58
        prt[3] = 455
59
        prt[4] = 463
60
        prt[5] = 456
61
        prt[6] = 462
62
        if (message_current == 4)
63
        {
64
            skippable = false
65
            message_timer = 15
66
        }
67
        if (message_current > 4)
68
        {
69
            skippable = true
70
            other.waiter = 0
71
            message_timer = -1
72
        }
73
    }
74
}