Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_last_text_move_select

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

function scr_determine_last_text_move_select() //gml_Script_scr_determine_last_text_move_select { var battle_enemy_name = global.battle_enemy_name switch battle_enemy_name { case "craniex": case "ms mettaton": return 4; default: return 1; } }
() //gml_Script_scr_determine_last_text_move_select
2
{
3
    var battle_enemy_name = global.battle_enemy_name
4
    switch battle_enemy_name
5
    {
6
        case "craniex":
7
        case "ms mettaton":
8
            return 4;
9
        default:
10
            return 1;
11
    }
12
13
}