Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_death_count_yellow_old

(view raw script w/o annotations or w/e)
1
function scr_determine_death_count_yellow_old
scr_determine_death_count_yellow_old

function scr_determine_death_count_yellow_old() //gml_Script_scr_determine_death_count_yellow_old { var battle_enemy_name = global.battle_enemy_name if (battle_enemy_name == "dalv") global.death_count[1] += 1 else if (battle_enemy_name == "martlet pacifist") global.death_count[2] += 1 global.death_count_total += 1 }
() //gml_Script_scr_determine_death_count_yellow_old
2
{
3
    var battle_enemy_name = global.battle_enemy_name
4
    if (battle_enemy_name == "dalv")
5
        global.death_count[1] += 1
6
    else if (battle_enemy_name == "martlet pacifist")
7
        global.death_count[2] += 1
8
    global.death_count_total += 1
9
}