Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_jandroid_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
var random_message = 0
7
if (global.battle_enemy_name == "jandroid goosic duo")
8
{
9
    if (global.enemy_dead_2 == true && global.fight_number == 2 && global.battle_menu_number == 1)
10
    {
11
        message[0] = "wow#SerIOUSLY!?!?!?."
12
        message_end = 0
13
    }
14
    else
15
        execute_normal = true
16
}
17
else if (global.battle_enemy_name == "jandroid duo")
18
{
19
    if (global.enemy_dead_2 == true && global.fight_number == 2 && global.battle_menu_number == 1)
20
    {
21
        random_message = irandom_range(1, 2)
22
        switch random_message
23
        {
24
            case 1:
25
                message[0] = "WHOA#therE!!"
26
                break
27
            case 2:
28
                message[0] = "HahA!!#Cool Trick!!"
29
                break
30
        }
31
32
        message_end = 0
33
    }
34
    else
35
        execute_normal = true
36
}
37
else
38
    execute_normal = true
39
if (execute_normal == true)
40
{
41
    if (global.enemy_low_hp == true)
42
    {
43
        if (global.last_action_selected == "Action 1 Message 0")
44
            message[0] = "W//what#was_That? /("
45
        else if (global.last_action_selected == "Action 2 Message 0")
46
            message[0] = "St_amwrrks#Need_/ scruBbed#0"
47
        else if (global.last_action_selected == "Action 3 Message 0")
48
            message[0] = "AaAAaoo/aa/.#Bzzt.’\"<<<"
49
        else
50
        {
51
            random_message = irandom_range(0, 1)
52
            switch random_message
53
            {
54
                case 0:
55
                    message[0] = "//Cleaaaaan - _"
56
                    break
57
                case 1:
58
                    message[0] = "LLLet's#;-:_#Wassh up"
59
                    break
60
            }
61
62
        }
63
        message_end = 0
64
    }
65
    else if (global.last_action_selected == "Action 1 Message 0")
66
    {
67
        random_message = irandom_range(0, 1)
68
        switch random_message
69
        {
70
            case 0:
71
                message[0] = "To rid the#Underground of#SOAP!!!"
72
                break
73
            case 1:
74
                message[0] = "To cle//a--I#mean help all#Germs conquer#the land!!"
75
                break
76
        }
77
78
        message_end = 0
79
    }
80
    else if (global.last_action_selected == "Action 2 Message 0")
81
    {
82
        random_message = irandom_range(0, 1)
83
        switch random_message
84
        {
85
            case 0:
86
                message[0] = "NO YOU!!"
87
                break
88
            case 1:
89
                message[0] = "You are RUDE!#Take THIS!!"
90
                break
91
        }
92
93
        message_end = 0
94
    }
95
    else if (global.last_action_selected == "Action 3 Message 0")
96
    {
97
        random_message = irandom_range(0, 1)
98
        switch random_message
99
        {
100
            case 0:
101
                message[0] = "I can't beLIEVE#you Would propose#such a Thing!"
102
                break
103
            case 1:
104
                message[0] = "Don't comE#ANY cLosER!!"
105
                break
106
        }
107
108
        message_end = 0
109
    }
110
    else
111
        execute_random = true
112
    if (execute_random == true)
113
    {
114
        if (global.battle_enemy_name == "jandroid goosic duo" && (global.enemy_dead + global.enemy_spared + global.enemy_sparing) < 1)
115
        {
116
            random_number = irandom_range(0, 1)
117
            if (random_number == 0)
118
            {
119
                message[0] = "YEAH yeAH!!#puMP IT UP!!!!"
120
                message_end = 0
121
            }
122
            else if (random_number == 1)
123
            {
124
                message[0] = "goNNA woRK so#MucH HARDER!!!"
125
                message_end = 0
126
            }
127
        }
128
        if (global.battle_enemy_name == "jandroid duo" && (global.enemy_dead + global.enemy_spared + global.enemy_sparing) < 1)
129
        {
130
            random_number = irandom_range(0, 3)
131
            if (random_number == 0)
132
            {
133
                message[0] = "*Hum-DEE-DUM#dE-DUMM!!"
134
                message_end = 0
135
            }
136
            else if (random_number == 1)
137
            {
138
                message[0] = "*ToGther we#are Strong!!!"
139
                message_end = 0
140
            }
141
            else if (random_number == 2)
142
            {
143
                message[0] = "HA Heh!!#Bet I am DIRTIER#than YOU!!"
144
                message_end = 0
145
            }
146
            else if (random_number == 3)
147
            {
148
                message[0] = "It iS time#to Meet Our#Mops!!"
149
                message_end = 0
150
            }
151
        }
152
        else
153
        {
154
            random_number = irandom_range(0, 4)
155
            if (random_number == 0)
156
            {
157
                message[0] = "Gee, you're too#Clean! Let's#staIN thaT VEsT!!"
158
                message_end = 0
159
            }
160
            else if (random_number == 1)
161
            {
162
                message[0] = "Nothin' like the#smell of RuSted#meTal in the#Morning!!"
163
                message_end = 0
164
            }
165
            else if (random_number == 2)
166
            {
167
                message[0] = "I will NeVER take#out the TrASH!#YOU CAN'T MAKE#ME!!!"
168
                message_end = 0
169
            }
170
            else if (random_number == 3)
171
            {
172
                message[0] = "Scrub-a-dub-dub!#Sewage in the#tub!!!"
173
                message_end = 0
174
            }
175
            else if (random_number == 4)
176
            {
177
                message[0] = "Want a sip of#my Mop Water?#It's FReshly MaDe!! "
178
                message_end = 0
179
            }
180
        }
181
    }
182
}
183
message_current = 0
184
message_draw = ""
185
increase = global.text_speed
186
characters = 0
187
hold = 0
188
message_length = string_length(message[message_current])
189
script_execute(gml_Script_scr_generate_text_counters)
190
circle_text_angle = global.circle_text_angle_default
191
circle_text_angle_direction = 1