Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_text_battle_move_selected_action_3_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_font(global.font_type_text)
2
draw_set_halign(fa_left)
3
draw_set_valign(fa_top)
4
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") ...
(324, 52)