Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_hit_special_effect_boss

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

function scr_determine_hit_special_effect_boss() //gml_Script_scr_determine_hit_special_effect_boss { var game_mode = global.game_mode var battle_enemy_name = global.battle_enemy_name if (game_mode == "customs") { } else if (game_mode == "yellow") { if (battle_enemy_name == "dalv") { var enemy_mode = global.enemy_mode switch enemy_mode { case 0: case 1: if (global.current_hp_enemy <= (global.max_hp_enemy / 2) && global.enemy_mode_gen == 0) { global.enemy_mode_gen = 1 global.turns_passed = 0 global.enemy_sparing = false global.action_2_important = false } break } } else if (battle_enemy_name == "dummy training pacifist") { if (global.hit_count >= 3) audio_stop_sound(mus_prebattle3_yellow) } } }
() //gml_Script_scr_determine_hit_special_effect_boss
2
{
3
    var game_mode = global.game_mode
4
    var battle_enemy_name = global.battle_enemy_name
5
    if (game_mode == "customs")
6
    {
7
    }
8
    else if (game_mode == "yellow")
9
    {
10
        if (battle_enemy_name == "dalv")
11
        {
12
            var enemy_mode = global.enemy_mode
13
            switch enemy_mode
14
            {
15
                case 0:
16
                case 1:
17
                    if (global.current_hp_enemy <= (global.max_hp_enemy / 2) && global.enemy_mode_gen == 0)
18
                    {
19
                        global.enemy_mode_gen = 1
20
                        global.turns_passed = 0
21
                        global.enemy_sparing = false
22
                        global.action_2_important = false
23
                    }
24
                    break
25
            }
26
27
        }
28
        else if (battle_enemy_name == "dummy training pacifist")
29
        {
30
            if (global.hit_count >= 3)
31
                audio_stop_sound(mus_prebattle3_yellow)
32
        }
33
    }
34
}