Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_return_heart_battle_menu_position

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

function scr_return_heart_battle_menu_position() //gml_Script_scr_return_heart_battle_menu_position { var part_1 = global.battle_menu_number var part_2 = 0 var part_3 = 0 var part_4 = 0 if (part_1 == 1) part_2 = global.fight_number else if (part_1 == 2) { part_2 = global.act_number part_3 = global.act_number_row part_4 = global.act_number_column } else if (part_1 == 4) part_2 = global.mercy_number return (string(part_1) + string(part_2) + string(part_3) + string(part_4)); }
() //gml_Script_scr_return_heart_battle_menu_position
2
{
3
    var part_1 = global.battle_menu_number
4
    var part_2 = 0
5
    var part_3 = 0
6
    var part_4 = 0
7
    if (part_1 == 1)
8
        part_2 = global.fight_number
9
    else if (part_1 == 2)
10
    {
11
        part_2 = global.act_number
12
        part_3 = global.act_number_row
13
        part_4 = global.act_number_column
14
    }
15
    else if (part_1 == 4)
16
        part_2 = global.mercy_number
17
    return (string(part_1) + string(part_2) + string(part_3) + string(part_4));
18
}