Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_text_hp_stat_Draw_0

(view raw script w/o annotations or w/e)
1
var game_mode = global.game_mode;
2
var battle_enemy_name = global.battle_enemy_name;
3
draw_set_font(fnt_mars_needs_cunnilingus);
4
draw_set_color(c_white);
5
draw_set_halign(fa_left);
6
draw_set_valign(fa_top);
7
if (game_mode == "customs")
8
{
9
    if (global.current_hp_self < 10 && global.current_hp_self > -10)
10
        draw_text_colour((314 + obj_battle_hp_max_self.sprite_width) - 25, 400, string_hash_to_newline("0" + string(global.current_hp_self) + " / " + string(global.max_hp_self)), c_white, c_white, c_white, c_white, global.image_alpha_enemy_attacking);
11
    else
12
        draw_text_colour((314 + obj_battle_hp_max_self.sprite_width) - 25, 400, string_hash_to_newline(string(global.current_hp_self) + " / " + string(global.max_hp_self)), c_white, c_white, c_white, c_white, global.image_alpha_enemy_attacking);
13
}
14
else if (game_mode == "yellow")
15
{
16
    if (battle_enemy_name == "flowey intro" || battle_enemy_name == "shufflers")
17
    {
18
        if (global.current_hp_self < 10 && global.current_hp_self > -10)
19
            draw_text_colour((353 + obj_battle_hp_max_self.sprite_width) - 25, 400, string_hash_to_newline("0" + string(global.current_hp_self) + " / " + string(global.max_hp_self)), c_white, c_white, c_white, c_white, global.image_alpha_enemy_attacking);
20
        else
21
            draw_text_colour((353 + obj_battle_hp_max_self.sprite_width) - 25, 400, string_hash_to_newline(string(global.current_hp_self) + " / " + string(global.max_hp_self)), c_white, c_white, c_white, c_white, global.image_alpha_enemy_attacking);
22
    }
23
    else if (battle_enemy_name == "ceroba" && instance_exists(obj_ceroba_phase_2_red_shader))
24
    {
25
    }
26
    else if (global.current_hp_self < 10 && global.current_hp_self > -10)
27
    {
28
        draw_text_colour((314 + obj_battle_hp_max_self.sprite_width) - 25, 400, string_hash_to_newline("0" + string(global.current_hp_self) + " / " + string(global.max_hp_self)), c_white, c_white, c_white, c_white, global.image_alpha_enemy_attacking);
29
    }
30
    else
31
    {
32
        draw_text_colour((314 + obj_battle_hp_max_self.sprite_width) - 25, 400, string_hash_to_newline(string(global.current_hp_self) + " / " + string(global.max_hp_self)), c_white, c_white, c_white, c_white, global.image_alpha_enemy_attacking);
33
    }
34
}