Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_text_damage_count_Draw_0

(view raw script w/o annotations or w/e)
1
var player_character = global.player_character
2
draw_set_font(fnt_hachicro)
3
draw_set_color(c_red)
4
draw_set_halign(fa_center)
5
draw_set_valign(fa_top)
6
draw_set_alpha(image_alpha)
7
if (obj_target_bar_battle.damage_type == "betrayed")
8
    draw_text(x, y, string_hash_to_newline(string(global.attacking_damage_stat_betrayal)))
9
else if (obj_target_bar_battle.damage_type == "critical")
10
{
11
    if (global.fight_number == 1)
12
        draw_text(x, y, string_hash_to_newline(string(global.attacking_damage_stat_critical)))
13
    if (global.fight_number == 2)
14
        draw_text(x, y, string_hash_to_newline(string(global.attacking_damage_stat_critical_2)))
15
    if (global.fight_number == 3)
16
        draw_text(x, y, string_hash_to_newline(string(global.attacking_damage_stat_critical_3)))
17
}
18
else
19
    draw_text(x, y, string_hash_to_newline(string(global.attacking_damage_stat)))
20
draw_set_alpha(1)