Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_red_hp_numbers_Draw_0

(view raw script w/o annotations or w/e)
1
var _color_current = make_color_rgb(255, color_number_current, color_number_current);
2
draw_set_font(fnt_mars_needs_cunnilingus);
3
if (player_hp_max_start != global.max_hp_self)
4
{
5
    var current_hp_width = string_width(string_hash_to_newline(string(global.current_hp_self) + " / "));
6
    if (global.current_hp_self < 10 && global.current_hp_self > -10)
7
    {
8
        current_hp_width = string_width(string_hash_to_newline("0" + string(global.current_hp_self) + " / "));
9
        draw_text_colour(((314 + obj_battle_hp_max_self.sprite_width) - 25) + current_hp_width, 400, string_hash_to_newline(string(global.max_hp_self)), _color_current, _color_current, _color_current, _color_current, global.image_alpha_enemy_attacking);
10
    }
11
    else
12
    {
13
        draw_text_colour(((314 + obj_battle_hp_max_self.sprite_width) - 25) + current_hp_width, 400, string_hash_to_newline(string(global.max_hp_self)), _color_current, _color_current, _color_current, _color_current, global.image_alpha_enemy_attacking);
14
    }
15
}