Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_crispy_scroll_solo

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

function scr_enemy_timer_attacks_crispy_scroll_solo() //gml_Script_scr_enemy_timer_attacks_crispy_scroll_solo { var enemy_attack = global.enemy_attack if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Crispy Slash" && obj_heart_battle_fighting_parent.moveable == true) { script_execute(gml_Script_scr_enemy_attack_crispy_slash) if (global.attack_counter >= 0) { global.attack_counter -= 1 if (global.attack_counter < 0) global.attack_counter = global.attack_counter_max } } else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Crispy Laser" && obj_heart_battle_fighting_parent.moveable == true) { script_execute(gml_Script_scr_enemy_attack_crispy_laser) if (global.attack_counter >= 0) { global.attack_counter -= 1 if (global.attack_counter < 0) global.attack_counter = global.attack_counter_max } } else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Crispy Tub" && obj_heart_battle_fighting_parent.moveable == true) { script_execute(gml_Script_scr_enemy_attack_crispy_tub) if (global.attack_counter >= 0) { global.attack_counter -= 1 if (global.attack_counter < 0) global.attack_counter = global.attack_counter_max } } }
() //gml_Script_scr_enemy_timer_attacks_crispy_scroll_solo
2
{
3
    var enemy_attack = global.enemy_attack
4
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Crispy Slash" && obj_heart_battle_fighting_parent.moveable == true)
5
    {
6
        script_execute(gml_Script_scr_enemy_attack_crispy_slash)
7
        if (global.attack_counter >= 0)
8
        {
9
            global.attack_counter -= 1
10
            if (global.attack_counter < 0)
11
                global.attack_counter = global.attack_counter_max
12
        }
13
    }
14
    else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Crispy Laser" && obj_heart_battle_fighting_parent.moveable == true)
15
    {
16
        script_execute(gml_Script_scr_enemy_attack_crispy_laser)
17
        if (global.attack_counter >= 0)
18
        {
19
            global.attack_counter -= 1
20
            if (global.attack_counter < 0)
21
                global.attack_counter = global.attack_counter_max
22
        }
23
    }
24
    else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Crispy Tub" && obj_heart_battle_fighting_parent.moveable == true)
25
    {
26
        script_execute(gml_Script_scr_enemy_attack_crispy_tub)
27
        if (global.attack_counter >= 0)
28
        {
29
            global.attack_counter -= 1
30
            if (global.attack_counter < 0)
31
                global.attack_counter = global.attack_counter_max
32
        }
33
    }
34
}