Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_tellyvis_overworld_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
if (interact == 1)
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
                color = true
12
                col_modif[0] = 16776960
13
                message[0] = "* How goes it, lil fella?"
14
                message[1] = "* Sorry, but we're on a station#  break at the moment."
15
                message[2] = "* What's broadcasting in the#  meantime?"
16
                message[3] = "* Why my face of course!"
17
                message_col[0][0] = "* How goes it, lil fella?"
18
                message_col[1][0] = "* Sorry, but we're on a station#  break at the moment."
19
                message_col[2][0] = "* What's broadcasting in the#  meantime?"
20
                message_col[3][0] = "* Why my face of course!"
21
                message[4] = "* Ugh, this break can't end soon#  enough!"
22
            }
23
            npc_flag += 1
24
            break
25
        case 1:
26
            with (msg)
27
            {
28
                color = true
29
                col_modif[0] = 16776960
30
                message[0] = "* When can I play a movie I#  like?"
31
                message[1] = "* Your movies go against the#  very nature of television!"
32
                message[2] = "* Gratuitous violence... heavy#  cursing... a secret third#  thing..."
33
                message_col[1][0] = "* Your movies go against the#  very nature of television!"
34
                message_col[2][0] = "* Gratuitous violence... heavy#  cursing... a secret third#  thing..."
35
                message[3] = "* Third thing?"
36
                message[4] = "* Oh you mean"
37
                message[5] = "* Nuh-uh-uh! Off limits!!"
38
                message[6] = "* We can only host mild cursing#  with censored/and or cartoon#  violence."
39
                message[7] = "* TV-14 at worst!"
40
                message_col[5][0] = "* Nuh-uh-uh! Off limits!!"
41
                message_col[6][0] = "* We can only host mild cursing#  with censored/and or cartoon#  violence."
42
                message_col[7][0] = "* TV-14 at worst!"
43
                message[8] = "* Yeeeah, but that's not gonna#  stop anybody, now is it?"
44
            }
45
            break
46
        case 2:
47
            with (msg)
48
            {
49
                color = true
50
                col_modif[0] = 16776960
51
                message[0] = "* We hope we've entertained you,#  fella!"
52
                message[1] = "* Television is a wonderful#  invention!"
53
                message[2] = "* It's even better when you sit#  inches from the screen with#  your eyes WIDE open!"
54
                message_col[0][0] = "* We hope we've entertained you,#  fella!"
55
                message_col[1][0] = "* Television is a wonderful#  invention!"
56
                message_col[2][0] = "* It's even better when you sit#  inches from the screen with#  your eyes WIDE open!"
57
                message[3] = "* What? No! Don't do that, kid.#  Don't listen to her."
58
                message[4] = "* Yes! Destroy your eyesight!!"
59
                message[5] = "* Your lenses should thicken#  with every exam!!!"
60
                message_col[4][0] = "* Yes! Destroy your eyesight!!"
61
                message_col[5][0] = "* Your lenses should thicken#  with every exam!!!"
62
                message[6] = "* You can't just say these kinds#  of things to kids!"
63
                message[7] = "* (Shut your flap, Vis! I'm#  running an optometrist ad!)"
64
                message_col[7][0] = "* (Shut your flap, Vis! I'm#  running an optometrist ad!)"
65
                message[8] = "* That doesn't make it better!!!"
66
            }
67
            npc_flag += 1
68
            break
69
        case 3:
70
            with (msg)
71
            {
72
                color = true
73
                col_modif[0] = 16776960
74
                message[0] = "* We'll be back after these#  messages!"
75
                message_col[0][0] = "* We'll be back after these#  messages!"
76
                message[1] = "* Man, I hope not."
77
            }
78
            break
79
    }
80
81
}
82
if (is_talking == 1 && npc_flag == 1)
83
{
84
    if (obj_dialogue.message_current == 4)
85
        obj_dialogue.message_timer = 15
86
    else
87
        obj_dialogue.message_timer = -1
88
    if (obj_dialogue.message_current == 5)
89
        npc_flag += 1
90
}