Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_cowcat_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
    is_talking = 1
6
    switch npc_flag
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                portrait = false
12
                sndfnt = 99
13
                message[0] = "* Howdy..."
14
                message[1] = "* You got any of that..."
15
                message[2] = "* Any of that good catnip?"
16
                message[3] = "* I've been dying to try some..."
17
                message[4] = "* ...IS WHAT I WOULD SAY IF I#  WERE A DIRTY BANDIT!!"
18
                message[5] = "* Nyahaha! You were almost#  tricked!"
19
                message[6] = "* I coulda caught'cha and turned#  you in to the Feisty Five!"
20
                message[7] = "* Nyahaha! Be more careful,#  partner!"
21
            }
22
            npc_flag = 1
23
            break
24
        case 1:
25
            with (msg)
26
            {
27
                portrait = false
28
                sndfnt = 99
29
                message[0] = "* The fact you didn't fall for my#  trap is pretty neato."
30
                message[1] = "* Maybe you'll fit in 'round here#  better than I thought."
31
                message[2] = "* Unless you're a bandit in#  disguise???"
32
                message[3] = "* Nyahaha! I'm only joshin',#  partner!"
33
            }
34
            npc_flag = 2
35
            break
36
        case 2:
37
            with (msg)
38
            {
39
                portrait = false
40
                sndfnt = 99
41
                message[0] = "* Ain't no place like the Wild#  East, I'll tell ya that!"
42
            }
43
            break
44
    }
45
46
}