Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_text_battle_move_selected_enemy_name_2_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_font(global.font_type_text)
2
if (global.enemy_sparing_2 == true)
3
    draw_set_color(c_yellow)
4
else
5
    draw_set_color(c_white)
6
draw_set_halign(fa_left)
7
draw_set_valign(fa_top)
8
scr_battle_core_directory_enemy_2_name
scr_battle_core_directory_enemy_2_name

function scr_battle_core_directory_enemy_2_name(argument0, argument1) //gml_Script_scr_battle_core_directory_enemy_2_name { var battle_enemy_name = global.battle_enemy_name var game_mode = global.game_mode if (game_mode == "customs") { } else if (game_mode == "yellow") { if (battle_enemy_name == "flier trio") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Flier B" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "flier penilla duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Penilla" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "sweet corn duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Sweet Corn B" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "sweet corn penilla duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Penilla" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "crispy scroll penilla duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Penilla" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "insomnitot duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Insomnitot B" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "know cone insomnitot duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Insomnitot" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "frostermit know cone duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Know Cone" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "trihecta separated") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Hec" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "dunebud duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Dunebud B" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "cactony slither duo") { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Sir Slither" script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_menu_options) global.battle_enemy_name_string_width = string_width(string_hash_to_newline(battle_menu_option_string)) } else if (battle_enemy_name == "feisty five") { var battle_enemy_name_2 = global.battle_enemy_name_2 battle_menu_option_x = obj_dialogue_box_battle.x + argument0 ...
(68, 52)