Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_diamond_attack_checker_pacifist_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var counter_timer_max = 0
4
var player_soul = obj_heart_battle_fighting_parent
5
var battle_box = obj_dialogue_box_battle_transformation_any
6
switch counter_current
7
{
8
    case 0:
9
        instance_create_depth(320, (battle_box.bbox_top - 80), -400, obj_battle_enemy_attack_ceroba_flower_spray_spawner_pacifist)
10
        counter_current++
11
        break
12
    case 1:
13
        counter_timer_max = 15
14
        break
15
    case 2:
16
        instance_create(player_soul.x, player_soul.y, obj_battle_enemy_attack_ceroba_diamond)
17
        counter_current++
18
        break
19
    case 3:
20
        counter_timer_max = 100
21
        break
22
    case 4:
23
        instance_create_depth(choose((battle_box.bbox_left - 80), (battle_box.bbox_right + 80)), (battle_box.bbox_top - 80), -400, obj_battle_enemy_attack_ceroba_flower_spray_spawner_pacifist)
24
        counter_current++
25
        break
26
    case 5:
27
        counter_timer_max = 1
28
        break
29
    case 6:
30
        instance_create(player_soul.x, player_soul.y, obj_battle_enemy_attack_ceroba_diamond)
31
        counter_current++
32
        break
33
    case 7:
34
        counter_timer_max = 100
35
        break
36
    case 8:
37
        instance_create_depth(choose((battle_box.bbox_left - 80), (battle_box.bbox_right + 80)), (battle_box.bbox_top - 80), -400, obj_battle_enemy_attack_ceroba_flower_spray_spawner_pacifist)
38
        counter_current++
39
        break
40
    case 9:
41
        counter_timer_max = 1
42
        break
43
    case 10:
44
        instance_create(player_soul.x, player_soul.y, obj_battle_enemy_attack_ceroba_diamond)
45
        counter_current++
46
        break
47
    case 11:
48
        counter_timer_max = 100
49
        break
50
    case 12:
51
        if (counter_timer > 0)
52
        {
53
            counter_timer--
54
            return;
55
        }
56
        instance_destroy()
57
        break
58
}
59
60
if (counter_timer_max == 0)
61
    return;
62
if (counter_timer < counter_timer_max)
63
    counter_timer++
64
else
65
{
66
    counter_timer = 0
67
    counter_current += 1
68
}