Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_fire_circle_checker_Step_0

(view raw script w/o annotations or w/e)
1
if (counter_current > counter_max)
2
{
3
    if (!alarm[1])
4
        alarm[1] = 20
alarm[1]

instance_destroy()
5
    return;
6
}
7
if (global.battle_phase == 1)
8
{
9
    if (!alarm[0])
10
        alarm[0] = 50
alarm[0]

counter_current += 1 instance_create(0, 0, obj_battle_enemy_attack_ceroba_fire_circle_spawner)
11
}
12
else if (global.battle_phase == 2)
13
{
14
    if (!alarm[0])
15
        alarm[0] = 40
alarm[0]

counter_current += 1 instance_create(0, 0, obj_battle_enemy_attack_ceroba_fire_circle_spawner)
16
}