Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_split_attack_checker_Step_0

(view raw script w/o annotations or w/e)
1
switch counter_current
2
{
3
    case 0:
4
        instance_create(350, 320, obj_battle_enemy_attack_ceroba_beam_vertical)
5
        instance_create(395, 320, obj_battle_enemy_attack_ceroba_beam_vertical)
6
        instance_create(440, 320, obj_battle_enemy_attack_ceroba_beam_vertical)
7
        with (obj_battle_enemy_attack_ceroba_beam_vertical)
8
            attack_beam_timer = 150
9
        counter_timer = 10
10
        counter_current++
11
        break
12
    case 1:
13
        if (counter_timer > 0)
14
        {
15
            counter_timer--
16
            return;
17
        }
18
        if (!instance_exists(obj_battle_enemy_attack_ceroba_split_spray_spawner))
19
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - 40), -60, obj_battle_enemy_attack_ceroba_split_spray_spawner)
20
        counter_timer = 160
21
        counter_current++
22
        break
23
    case 2:
24
        if (counter_timer > 0)
25
        {
26
            counter_timer--
27
            return;
28
        }
29
        if instance_exists(obj_battle_enemy_attack_ceroba_split_spray_spawner)
30
            obj_battle_enemy_attack_ceroba_split_spray_spawner.current_position = 3
31
        counter_timer = 15
32
        counter_current++
33
        break
34
    case 3:
35
        instance_create(290, 320, obj_battle_enemy_attack_ceroba_beam_vertical)
36
        instance_create(245, 320, obj_battle_enemy_attack_ceroba_beam_vertical)
37
        instance_create(200, 320, obj_battle_enemy_attack_ceroba_beam_vertical)
38
        with (obj_battle_enemy_attack_ceroba_beam_vertical)
39
            attack_beam_timer = 50
40
        counter_timer = 85
41
        counter_current++
42
        break
43
    case 4:
44
        if (counter_timer > 0)
45
        {
46
            counter_timer--
47
            return;
48
        }
49
        instance_destroy()
50
        break
51
}