Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_insomnitot_a_Create_0

(view raw script w/o annotations or w/e)
1
execute_normal = false
2
execute_random = false
3
text_effect = "twitchy"
4
text_effect_2 = "twitchy"
5
color_count = 0
6
if (global.battle_enemy_name == "insomnitot duo")
7
{
8
    var heart_position = script_execute(gml_Script_scr_return_heart_battle_menu_position)
9
    if (global.enemy_dead_2 == true && global.fight_number == 2 && global.battle_menu_number == 1)
10
    {
11
        message[0] = "Huh? What? I#think I nodded#off..."
12
        message_end = 0
13
    }
14
    else if (global.last_action_selected_2 == "Action 1 Message 1" && heart_position == "2222")
15
    {
16
        message[0] = "So much for all night."
17
        message_end = 0
18
    }
19
    else
20
        execute_normal = true
21
}
22
else
23
    execute_normal = true
24
if (execute_normal == true)
25
{
26
    if (global.last_action_selected == "Action 1 Low HP")
27
    {
28
        message[0] = "You need vocal#lessons."
29
        message_end = 0
30
    }
31
    else if (global.last_action_selected == "Action 1 Sparing")
32
    {
33
        message[0] = "Pretty song...#zzzz..."
34
        message_end = 0
35
    }
36
    else if (global.last_action_selected == "Action 1 Message 1")
37
    {
38
        random_number = irandom_range(0, 1)
39
        if (random_number == 0)
40
        {
41
            text_effect_2 = "circle"
42
            message[0] = "You're a       #good sing...er..."
43
            message_2[0] = "         *YAWN*#                 "
44
            message_end = 0
45
            color_count = 1
46
        }
47
        else if (random_number == 1)
48
        {
49
            message[0] = "I like that#song..."
50
            message_end = 0
51
        }
52
    }
53
    else if (global.last_action_selected == "Action 1 Message 0")
54
    {
55
        random_number = irandom_range(0, 1)
56
        if (random_number == 0)
57
        {
58
            message[0] = "Know anything#more upbeat?"
59
            message_end = 0
60
        }
61
        else if (random_number == 1)
62
        {
63
            message[0] = "I see what#you're doing.#It's not gonna#work!"
64
            message_end = 0
65
        }
66
    }
67
    else if (global.last_action_selected == "Action 2 Low HP")
68
    {
69
        message[0] = "You're not the#boss of me."
70
        message_end = 0
71
    }
72
    else if (global.last_action_selected == "Action 2 Sparing" || global.last_action_selected == "Action 2 Message 0")
73
    {
74
        random_number = irandom_range(0, 1)
75
        if (random_number == 0)
76
        {
77
            message[0] = "Yeah, yeah,#don't talk to#strangers."
78
            message_end = 0
79
        }
80
        else if (random_number == 1)
81
        {
82
            message[0] = "You sound like#my parents!"
83
            message_end = 0
84
        }
85
    }
86
    else if (global.last_action_selected == "Action 3 Low HP")
87
    {
88
        message[0] = "Nice try."
89
        message_end = 0
90
    }
91
    else if (global.last_action_selected == "Action 3 Sparing" || global.last_action_selected == "Action 3 Message 0")
92
    {
93
        random_number = irandom_range(0, 1)
94
        if (random_number == 0)
95
        {
96
            message[0] = "I'm...#getting...#sleepy?"
97
            message_end = 0
98
        }
99
        else if (random_number == 1)
100
        {
101
            text_effect = "circle"
102
            message[0] = "*YAWN*"
103
            message_end = 0
104
        }
105
    }
106
    else if (global.enemy_low_hp == true)
107
    {
108
        random_number = irandom_range(0, 1)
109
        if (random_number == 0)
110
        {
111
            message[0] = "Ow... now I have#a headache."
112
            message_end = 0
113
        }
114
        else if (random_number == 1)
115
        {
116
            message[0] = "No need to be so#crass."
117
            message_end = 0
118
        }
119
    }
120
    else if (global.enemy_sparing == true)
121
    {
122
        random_number = irandom_range(0, 2)
123
        if (random_number == 0)
124
        {
125
            message[0] = "Zzzz...zzz"
126
            message_end = 0
127
        }
128
        else if (random_number == 1)
129
        {
130
            text_effect = "circle"
131
            message[0] = "*Snore*"
132
            message_end = 0
133
        }
134
        else if (random_number == 2)
135
        {
136
            message[0] = "Zzzzz... noodles... zzz"
137
            message_end = 0
138
        }
139
    }
140
    else
141
    {
142
        if (global.battle_enemy_name == "insomnitot duo")
143
        {
144
            if ((global.enemy_dead_2 + global.enemy_spared_2) < 1)
145
            {
146
                random_number = irandom_range(0, 3)
147
                if (random_number == 0)
148
                {
149
                    message[0] = "When you have#friends, you#don't need sleep!"
150
                    message_end = 0
151
                }
152
                else if (random_number == 1)
153
                {
154
                    message[0] = "We're gonna stay#up all night#chatting!"
155
                    message_end = 0
156
                }
157
                else if (random_number == 2)
158
                {
159
                    message[0] = "We're starting a#night owl club."
160
                    message_end = 0
161
                }
162
                else if (random_number == 3)
163
                {
164
                    message[0] = "Together we fight#the oppressive#construct of#bedtimes!"
165
                    message_end = 0
166
                }
167
            }
168
            else
169
                execute_random = true
170
        }
171
        else
172
            execute_random = true
173
        if (execute_random == true)
174
        {
175
            random_number = irandom_range(0, 4)
176
            if (random_number == 0)
177
            {
178
                message[0] = "I outgrew my#bedtime, so no#rules for me."
179
                message_end = 0
180
            }
181
            else if (random_number == 1)
182
            {
183
                message[0] = "Sleep is for#the weak!"
184
                message_end = 0
185
            }
186
            else if (random_number == 2)
187
            {
188
                message[0] = "Cool things#happen 24 hours#a day!"
189
                message_end = 0
190
            }
191
            else if (random_number == 3)
192
            {
193
                message[0] = "I'm not tired,#you are!"
194
                message_end = 0
195
            }
196
            else if (random_number == 4)
197
            {
198
                message[0] = "Don't know what#time it is and#I don't care."
199
                message_end = 0
200
            }
201
        }
202
    }
203
}
204
message_current = 0
205
message_draw = ""
206
increase = global.text_speed
207
characters = 0
208
hold = 0
209
message_length = string_length(message[message_current])
210
script_execute(gml_Script_scr_generate_text_counters)
211
circle_text_angle = global.circle_text_angle_default
212
circle_text_angle_direction = 1