Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_important_cutscene_attacking

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

function scr_determine_important_cutscene_attacking() //gml_Script_scr_determine_important_cutscene_attacking { var game_mode = global.game_mode var battle_enemy_name = global.battle_enemy_name if (global.game_mode == "customs") { } else if (global.game_mode == "yellow") { switch battle_enemy_name { case "froggit intro": return true; case "martlet pacifist": var enemy_mode = global.enemy_mode switch enemy_mode { case 10: case 11: case 12: return true; default: return false; } break case "martlet genocide": enemy_mode = global.enemy_mode switch enemy_mode { case 5: case 6: return true; default: return false; } break default: return false; } } }
() //gml_Script_scr_determine_important_cutscene_attacking
2
{
3
    var game_mode = global.game_mode
4
    var battle_enemy_name = global.battle_enemy_name
5
    if (global.game_mode == "customs")
6
    {
7
    }
8
    else if (global.game_mode == "yellow")
9
    {
10
        switch battle_enemy_name
11
        {
12
            case "froggit intro":
13
                return true;
14
            case "martlet pacifist":
15
                var enemy_mode = global.enemy_mode
16
                switch enemy_mode
17
                {
18
                    case 10:
19
                    case 11:
20
                    case 12:
21
                        return true;
22
                    default:
23
                        return false;
24
                }
25
26
                break
27
            case "martlet genocide":
28
                enemy_mode = global.enemy_mode
29
                switch enemy_mode
30
                {
31
                    case 5:
32
                    case 6:
33
                        return true;
34
                    default:
35
                        return false;
36
                }
37
38
                break
39
            default:
40
                return false;
41
        }
42
43
    }
44
}