Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_genocide_counter_total_yellow

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

function scr_determine_genocide_counter_total_yellow() //gml_Script_scr_determine_genocide_counter_total_yellow { global.genocide_counter_total = 0 var genocide_counter_array_max = array_length_1d(global.dark_ruins_genocide_counter) - 1 for (var i = 1; i <= genocide_counter_array_max; i += 1) global.genocide_counter_total += global.dark_ruins_genocide_counter[i] genocide_counter_array_max = array_length_1d(global.snowdin_genocide_counter) - 1 for (i = 1; i <= genocide_counter_array_max; i += 1) global.genocide_counter_total += global.snowdin_genocide_counter[i] }
() //gml_Script_scr_determine_genocide_counter_total_yellow
2
{
3
    global.genocide_counter_total = 0
4
    var genocide_counter_array_max = array_length_1d(global.dark_ruins_genocide_counter) - 1
5
    for (var i = 1; i <= genocide_counter_array_max; i += 1)
6
        global.genocide_counter_total += global.dark_ruins_genocide_counter[i]
7
    genocide_counter_array_max = array_length_1d(global.snowdin_genocide_counter) - 1
8
    for (i = 1; i <= genocide_counter_array_max; i += 1)
9
        global.genocide_counter_total += global.snowdin_genocide_counter[i]
10
}