Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_tellyvis_a_Create_0

(view raw script w/o annotations or w/e)
1
execute_normal = true
2
execute_random = false
3
text_effect = "twitchy"
4
text_effect_2 = "twitchy"
5
color_count = 0
6
random_message = 0
7
if (execute_normal == true)
8
{
9
    if (global.enemy_low_hp == true)
10
    {
11
        if (global.last_action_selected == "Action 1 Message 0")
12
            message[0] = "Th.i>s is- my#f-f-favorite shoOw/"
13
        else if (global.last_action_selected == "Action 3 Message 0" || global.last_action_selected == "Action 3 Message 1")
14
            message[0] = "/NeEd s[ome#Maint/enan-ce . ,,"
15
        else
16
            message[0] = "T/Time to;?#Go on coMmercial#break. ... ."
17
        obj_tellyvis_body_a.tellyvis_face_next = 3787
18
        message_end = 0
19
    }
20
    else if (global.last_action_selected == "Action 1 Message 0")
21
    {
22
        random_message = irandom_range(0, 1)
23
        switch random_message
24
        {
25
            case 0:
26
                message[0] = "What are you#staring at?"
27
                break
28
            case 1:
29
                message[0] = "There's nothing#on yet!"
30
                break
31
        }
32
33
        message_end = 0
34
    }
35
    else if (global.last_action_selected == "Action 1 Message 1")
36
    {
37
        random_message = irandom_range(0, 1)
38
        switch random_message
39
        {
40
            case 0:
41
                message[0] = "Oh! Check#this out!"
42
                break
43
            case 1:
44
                message[0] = "Here comes the#best part!"
45
                break
46
        }
47
48
        message_end = 0
49
    }
50
    else if (global.last_action_selected_2 == "Action 2 Message 0")
51
    {
52
        random_message = irandom_range(0, 1)
53
        switch random_message
54
        {
55
            case 0:
56
                message[0] = "Am... Am I#boring you?"
57
                obj_tellyvis_body_a.tellyvis_face_next = 3787
58
                break
59
            case 1:
60
                message[0] = "Hey, buddy!#I'm still here!"
61
                obj_tellyvis_body_a.tellyvis_face_next = 3787
62
                break
63
        }
64
65
        message_end = 0
66
    }
67
    else if (global.last_action_selected_3 == "Action 3 Message 0")
68
    {
69
        random_message = irandom_range(0, 1)
70
        switch random_message
71
        {
72
            case 0:
73
                message[0] = "Just what#I needed!"
74
                break
75
            case 1:
76
                message[0] = "Whoa, hey!#I'm picking#something up!"
77
                break
78
        }
79
80
        obj_tellyvis_body_a.tellyvis_face_next = 2544
81
        message_end = 0
82
    }
83
    else if (global.last_action_selected_3 == "Action 3 Message 1")
84
    {
85
        random_message = irandom_range(0, 1)
86
        switch random_message
87
        {
88
            case 0:
89
                message[0] = "They're good#where they are!"
90
                break
91
            case 1:
92
                message[0] = "Hey, don't ruin#my electrical#flow!"
93
                break
94
        }
95
96
        message_end = 0
97
    }
98
    else
99
        execute_random = true
100
    if (execute_random == true)
101
    {
102
        random_number = irandom_range(0, 3)
103
        if (random_number == 0)
104
        {
105
            message[0] = "Don't touch that#dial! Seriously,#I'll hurt you."
106
            message_end = 0
107
        }
108
        else if (random_number == 1)
109
        {
110
            message[0] = "I live life in#glorious standard#definition!#Nothing better!"
111
            obj_tellyvis_body_a.tellyvis_face_next = 2544
112
            message_end = 0
113
        }
114
        else if (random_number == 2)
115
        {
116
            message[0] = "Never take#advice from#Vis. He's#a mouthful!"
117
            message_end = 0
118
        }
119
        else if (random_number == 3)
120
        {
121
            message[0] = "Network TV? Yeah,#I do the work,#and they net#the profits!"
122
            message_end = 0
123
        }
124
    }
125
}
126
message_current = 0
127
message_draw = ""
128
increase = global.text_speed
129
characters = 0
130
hold = 0
131
message_length = string_length(message[message_current])
132
script_execute(gml_Script_scr_generate_text_counters)
133
circle_text_angle = global.circle_text_angle_default
134
circle_text_angle_direction = 1