Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_end_enemy_attacking_axis_geno

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

function scr_end_enemy_attacking_axis_geno() //gml_Script_scr_end_enemy_attacking_axis_geno { if (global.geno_complete[4] == false && global.geno_complete[3] == true) { if (global.enemy_sparing == true) return false; if (global.attack_cycle >= (global.attack_cycle_max - 4)) { instance_create(402, 68, obj_quote_bubble_battle_yellow_2) instance_create(0, 0, obj_quote_battle_axis_neutral_geno_end) return true; } else return false; } else if (global.attack_cycle >= global.attack_cycle_max) { instance_create(402, 68, obj_quote_bubble_battle_yellow_2) instance_create(0, 0, obj_quote_battle_axis_geno_end) return true; } else return false; }
() //gml_Script_scr_end_enemy_attacking_axis_geno
2
{
3
    if (global.geno_complete[4] == false && global.geno_complete[3] == true)
4
    {
5
        if (global.enemy_sparing == true)
6
            return false;
7
        if (global.attack_cycle >= (global.attack_cycle_max - 4))
8
        {
9
            instance_create(402, 68, obj_quote_bubble_battle_yellow_2)
10
            instance_create(0, 0, obj_quote_battle_axis_neutral_geno_end)
11
            return true;
12
        }
13
        else
14
            return false;
15
    }
16
    else if (global.attack_cycle >= global.attack_cycle_max)
17
    {
18
        instance_create(402, 68, obj_quote_bubble_battle_yellow_2)
19
        instance_create(0, 0, obj_quote_battle_axis_geno_end)
20
        return true;
21
    }
22
    else
23
        return false;
24
}