Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_end_enemy_attacking_guardener

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

function scr_end_enemy_attacking_guardener() //gml_Script_scr_end_enemy_attacking_guardener { var turns_passed = global.turns_passed if (turns_passed == 10) { instance_create(402, 68, obj_quote_bubble_battle_yellow_2) instance_create(0, 0, obj_quote_battle_guardener_attack_end) return true; } if (turns_passed == 12) { obj_guardener_guy_a.active = false return false; } if (turns_passed == 13) { obj_guardener_guy_a.active = false obj_guardener_guy_b.active = false return false; } else return false; }
() //gml_Script_scr_end_enemy_attacking_guardener
2
{
3
    var turns_passed = global.turns_passed
4
    if (turns_passed == 10)
5
    {
6
        instance_create(402, 68, obj_quote_bubble_battle_yellow_2)
7
        instance_create(0, 0, obj_quote_battle_guardener_attack_end)
8
        return true;
9
    }
10
    if (turns_passed == 12)
11
    {
12
        obj_guardener_guy_a.active = false
13
        return false;
14
    }
15
    if (turns_passed == 13)
16
    {
17
        obj_guardener_guy_a.active = false
18
        obj_guardener_guy_b.active = false
19
        return false;
20
    }
21
    else
22
        return false;
23
}