Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_text_battle_move_selected_enemy_name_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_font(global.font_type_text)
2
if (global.enemy_sparing == 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_1_name
scr_battle_core_directory_enemy_1_name

function scr_battle_core_directory_enemy_1_name(argument0, argument1) //gml_Script_scr_battle_core_directory_enemy_1_name { var battle_enemy_name = global.battle_enemy_name 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 = "* Craniex" 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 == "ms mettaton") { var ms_mettaton_transformed = global.ms_mettaton_transformed if (ms_mettaton_transformed == false) { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Ms. Mettaton" 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 (ms_mettaton_transformed == true) { battle_menu_option_x = obj_dialogue_box_battle.x + argument0 battle_menu_option_y = obj_dialogue_box_battle.y + argument1 battle_menu_option_string = "* Ms. Mettaton EX" 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 (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 = "* Froggit" 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 solo") { 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" 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 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 A" 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 == "penilla solo") { 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 == "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 = "* Flier" 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 solo") { 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" 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 A" 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 = "* Sweet Corn" 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)) } ...
(68, 20)