Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_cycler_martlet_final_Other_10

(view raw script w/o annotations or w/e)
1
if (global.hotland_flag[9] < 2)
2
{
3
    if (global.enemy_mode == 0)
4
    {
5
        global.attack_cycle += 1
6
        if (global.attack_cycle >= global.attack_cycle_max)
7
            global.enemy_mode = 1
8
    }
9
    else if (global.enemy_mode == 1)
10
    {
11
        with (obj_martlet_final_attack_controller)
12
            event_user(0)
13
    }
14
}
15
else
16
{
17
    with (obj_martlet_final_2_attack_controller)
18
        event_user(0)
19
}