Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_text_battle_move_selected_action_2_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_2_name
scr_battle_core_directory_action_2_name

function scr_battle_core_directory_action_2_name(argument0, argument1) //gml_Script_scr_battle_core_directory_action_2_name { if (global.battling_boss == true) { var battle_enemy_name = global.battle_enemy_name if (global.action_2_important == true) draw_set_color(global.action_2_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_2_important == true) draw_set_color(global.action_2_color) else draw_set_color(c_white) break case 2: battle_enemy_name = global.battle_enemy_name_2 if (global.action_2_important_2 == true) draw_set_color(global.action_2_color_2) else draw_set_color(c_white) break case 3: battle_enemy_name = global.battle_enemy_name_3 if (global.action_2_important_3 == true) draw_set_color(global.action_2_color_3) else draw_set_color(c_white) break default: battle_enemy_name = global.battle_enemy_name_1 if (global.action_2_important == true) { draw_set_color(global.action_2_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 = "* Insult" 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 = "* Ogle" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } } } else if (game_mode == "yellow") { if (battle_enemy_name == "froggit intro") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Threat" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } else 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 = "* Compliment" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } else if (battle_enemy_name == "penilla a" || battle_enemy_name == "penilla 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 = "* Distract" 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 = "* Hug" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) } else if (battle_enemy_name == "crispy scroll a") ...
(68, 52)