Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_core_directory_action_3_name

(view raw script w/o annotations or w/e)
1
function scr_battle_core_directory_action_3_name
scr_battle_core_directory_action_3_name

function scr_battle_core_directory_action_3_name(argument0, argument1) //gml_Script_scr_battle_core_directory_action_3_name { if (global.battling_boss == true) { var battle_enemy_name = global.battle_enemy_name if (global.action_3_important == true) draw_set_color(global.action_3_color) else draw_set_color(c_white) } else { var act_number = global.act_number switch act_number { case 1: battle_enemy_name = global.battle_enemy_name_1 if (global.action_3_important == true) draw_set_color(global.action_3_color) else draw_set_color(c_white) break case 2: battle_enemy_name = global.battle_enemy_name_2 if (global.action_3_important_2 == true) draw_set_color(global.action_3_color_2) else draw_set_color(c_white) break case 3: battle_enemy_name = global.battle_enemy_name_3 if (global.action_3_important_3 == true) draw_set_color(global.action_3_color_3) else draw_set_color(c_white) break default: battle_enemy_name = global.battle_enemy_name_1 if (global.action_3_important == true) { draw_set_color(global.action_3_color) break } else draw_set_color(c_white) } } var game_mode = global.game_mode if (game_mode == "customs") { if (battle_enemy_name == "craniex") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Joke" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } else if (battle_enemy_name == "ms mettaton") { var turns_passed = global.turns_passed if (turns_passed > 4) { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Envy" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } } } else if (game_mode == "yellow") { if (battle_enemy_name == "flier a" || battle_enemy_name == "flier b" || battle_enemy_name == "flier c") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Criticize" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } else if (battle_enemy_name == "sweet corn a" || battle_enemy_name == "sweet corn b") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Gift" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } else if (battle_enemy_name == "crispy scroll a") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Judge" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } else if (battle_enemy_name == "rorrim a") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Smile" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } else if (battle_enemy_name == "decibat") ...
(argument0, argument1) //gml_Script_scr_battle_core_directory_action_3_name
2
{
3
    if (global.battling_boss == true)
4
    {
5
        var battle_enemy_name = global.battle_enemy_name
6
        if (global.action_3_important == true)
7
            draw_set_color(global.action_3_color)
8
        else
9
            draw_set_color(c_white)
10
    }
11
    else
12
    {
13
        var act_number = global.act_number
14
        switch act_number
15
        {
16
            case 1:
17
                battle_enemy_name = global.battle_enemy_name_1
18
                if (global.action_3_important == true)
19
                    draw_set_color(global.action_3_color)
20
                else
21
                    draw_set_color(c_white)
22
                break
23
            case 2:
24
                battle_enemy_name = global.battle_enemy_name_2
25
                if (global.action_3_important_2 == true)
26
                    draw_set_color(global.action_3_color_2)
27
                else
28
                    draw_set_color(c_white)
29
                break
30
            case 3:
31
                battle_enemy_name = global.battle_enemy_name_3
32
                if (global.action_3_important_3 == true)
33
                    draw_set_color(global.action_3_color_3)
34
                else
35
                    draw_set_color(c_white)
36
                break
37
            default:
38
                battle_enemy_name = global.battle_enemy_name_1
39
                if (global.action_3_important == true)
40
                {
41
                    draw_set_color(global.action_3_color)
42
                    break
43
                }
44
                else
45
                    draw_set_color(c_white)
46
        }
47
48
    }
49
    var game_mode = global.game_mode
50
    if (game_mode == "customs")
51
    {
52
        if (battle_enemy_name == "craniex")
53
        {
54
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
55
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
56
            battle_menu_option_string = "* Joke"
57
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
58
        }
59
        else if (battle_enemy_name == "ms mettaton")
60
        {
61
            var turns_passed = global.turns_passed
62
            if (turns_passed > 4)
63
            {
64
                battle_menu_option_x = obj_dialogue_box_battle.x + argument0
65
                battle_menu_option_y = obj_dialogue_box_battle.y + argument1
66
                battle_menu_option_string = "* Envy"
67
                script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
68
            }
69
        }
70
    }
71
    else if (game_mode == "yellow")
72
    {
73
        if (battle_enemy_name == "flier a" || battle_enemy_name == "flier b" || battle_enemy_name == "flier c")
74
        {
75
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
76
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
77
            battle_menu_option_string = "* Criticize"
78
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
79
        }
80
        else if (battle_enemy_name == "sweet corn a" || battle_enemy_name == "sweet corn b")
81
        {
82
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
83
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
84
            battle_menu_option_string = "* Gift"
85
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
86
        }
87
        else if (battle_enemy_name == "crispy scroll a")
88
        {
89
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
90
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
91
            battle_menu_option_string = "* Judge"
92
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
93
        }
94
        else if (battle_enemy_name == "rorrim a")
95
        {
96
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
97
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
98
            battle_menu_option_string = "* Smile"
99
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
100
        }
101
        else if (battle_enemy_name == "decibat")
102
        {
103
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
104
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
105
            battle_menu_option_string = "* Shoo"
106
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
107
        }
108
        else if (battle_enemy_name == "micro froggit")
109
        {
110
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
111
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
112
            battle_menu_option_string = "* Stomp"
113
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
114
        }
115
        else if (battle_enemy_name == "insomnitot a" || battle_enemy_name == "insomnitot b")
116
        {
117
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
118
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
119
            battle_menu_option_string = "* Hypnotize"
120
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
121
        }
122
        else if (battle_enemy_name == "know cone a" || battle_enemy_name == "know cone b")
123
        {
124
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
125
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
126
            battle_menu_option_string = "* Berate"
127
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
128
        }
129
        else if (battle_enemy_name == "frostermit a")
130
        {
131
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
132
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
133
            battle_menu_option_string = "* Compliment"
134
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
135
        }
136
        else if (battle_enemy_name == "trihecta")
137
        {
138
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
139
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
140
            battle_menu_option_string = "* Climb"
141
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
142
        }
143
        else if (battle_enemy_name == "martlet pacifist")
144
        {
145
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
146
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
147
            battle_menu_option_string = "* Insult"
148
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
149
        }
150
        else if (battle_enemy_name == "dunebud a" || battle_enemy_name == "dunebud b")
151
        {
152
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
153
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
154
            battle_menu_option_string = "* Shoo"
155
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
156
        }
157
        else if (battle_enemy_name == "slither a" || battle_enemy_name == "slither b")
158
        {
159
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
160
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
161
            battle_menu_option_string = "* Doubt"
162
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
163
        }
164
        else if (battle_enemy_name == "bowll a")
165
        {
166
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
167
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
168
            battle_menu_option_string = "* Console"
169
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
170
        }
171
        else if (battle_enemy_name == "el bailador")
172
        {
173
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
174
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
175
            battle_menu_option_string = "* Stare"
176
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
177
        }
178
        else if (battle_enemy_name == "flower girls")
179
        {
180
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
181
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
182
            switch global.dunes_flag[31]
183
            {
184
                case 1:
185
                    battle_menu_option_string = "* Insult"
186
                    break
187
                case 2:
188
                    battle_menu_option_string = "* Deny"
189
                    break
190
                case 3:
191
                    battle_menu_option_string = "* Insult"
192
                    break
193
            }
194
195
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
196
        }
197
        else if (battle_enemy_name == "ceroba genocide")
198
        {
199
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
200
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
201
            battle_menu_option_string = "* Mock"
202
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
203
        }
204
        else if (battle_enemy_name == "starlo")
205
        {
206
            if (global.attack_cycle < 10)
207
            {
208
                battle_menu_option_x = obj_dialogue_box_battle.x + argument0
209
                battle_menu_option_y = obj_dialogue_box_battle.y + argument1
210
                battle_menu_option_string = "* Bite"
211
                script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
212
            }
213
            else
214
            {
215
                battle_menu_option_x = obj_dialogue_box_battle.x + argument0
216
                battle_menu_option_y = obj_dialogue_box_battle.y + argument1
217
                battle_menu_option_string = "* Focus"
218
                script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
219
            }
220
        }
221
        else if (battle_enemy_name == "ed" || battle_enemy_name == "moray" || battle_enemy_name == "ace" || battle_enemy_name == "mooch")
222
        {
223
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
224
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
225
            battle_menu_option_string = "* Smirk"
226
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
227
        }
228
        else if (battle_enemy_name == "tellyvis a")
229
        {
230
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
231
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
232
            battle_menu_option_string = "* Signal"
233
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
234
        }
235
        else if (battle_enemy_name == "jandroid a" || battle_enemy_name == "jandroid b")
236
        {
237
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
238
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
239
            battle_menu_option_string = "* Analyze"
240
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
241
        }
242
        else if (battle_enemy_name == "goosic a" || battle_enemy_name == "goosic b")
243
        {
244
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
245
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
246
            battle_menu_option_string = "* Needle"
247
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
248
        }
249
        else if (battle_enemy_name == "sousborg")
250
        {
251
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
252
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
253
            switch global.enemy_mode
254
            {
255
                case 1:
256
                    battle_menu_option_string = "* Bake"
257
                    break
258
                case 2:
259
                    battle_menu_option_string = "* Season"
260
                    break
261
            }
262
263
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
264
        }
265
        else if (battle_enemy_name == "guardener")
266
        {
267
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
268
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
269
            battle_menu_option_string = "* Antagonize"
270
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
271
        }
272
        else if (battle_enemy_name == "axis")
273
        {
274
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
275
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
276
            battle_menu_option_string = "* Cool"
277
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
278
        }
279
        else if (battle_enemy_name == "axis genocide")
280
        {
281
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
282
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
283
            battle_menu_option_string = "* Toughen"
284
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
285
        }
286
        else if (battle_enemy_name == "macro froggit")
287
        {
288
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
289
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
290
            if (global.turns_passed == 0)
291
                battle_menu_option_string = "* Stomp"
292
            else
293
                battle_menu_option_string = "* Frog"
294
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
295
        }
296
        else if (battle_enemy_name == "flowey")
297
        {
298
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
299
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
300
            switch global.flowey_act[2]
301
            {
302
                case 0:
303
                    battle_menu_option_string = "* Stress"
304
                    break
305
                case 1:
306
                    battle_menu_option_string = "* Beg"
307
                    break
308
                case 2:
309
                    battle_menu_option_string = "* Weaken"
310
                    break
311
                case 3:
312
                    battle_menu_option_string = "* Decay"
313
                    break
314
                case 4:
315
                    battle_menu_option_string = "* Endure"
316
                    break
317
            }
318
319
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
320
        }
321
        else if (battle_enemy_name == "ceroba")
322
        {
323
            battle_menu_option_x = obj_dialogue_box_battle.x + argument0
324
            battle_menu_option_y = obj_dialogue_box_battle.y + argument1
325
            switch global.hotland_flag[2]
326
            {
327
                case 0:
328
                    battle_menu_option_string = "* Scowl"
329
                    break
330
                default:
331
                    battle_menu_option_string = "* Remember"
332
                    break
333
            }
334
335
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options)
336
        }
337
    }
338
}