Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_guns_n_dynamite_checker_Step_0

(view raw script w/o annotations or w/e)
1
var counter_timer_max = 0
2
var player_soul = 2979
3
var box = obj_dialogue_box_battle_transformation_any
4
var gun_top_y = box.y - 25
5
var gun_mid_y = box.y
6
var gun_bot_y = box.y + 25
7
var gun_left_x = box.bbox_left - 60
8
var gun_right_x = box.bbox_right + 60
9
var dynamite_left_x = box.bbox_left + 40
10
var dynamite_mid_x = box.x
11
var dynamite_right_x = box.bbox_right - 40
12
var dynamite_y = box.bbox_top - 20
13
switch counter_current
14
{
15
    case 0:
16
        instance_create(dynamite_mid_x, dynamite_y, obj_battle_enemy_attack_starlo_dynamite_vertical)
17
        counter_current++
18
        break
19
    case 1:
20
        counter_timer_max = 67.5
21
        break
22
    case 2:
23
        instance_create(gun_left_x, gun_top_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun)
24
        counter_current++
25
        break
26
    case 3:
27
        counter_timer_max = 20
28
        break
29
    case 4:
30
        instance_create(dynamite_left_x, dynamite_y, obj_battle_enemy_attack_starlo_dynamite_vertical)
31
        counter_current++
32
        break
33
    case 5:
34
        counter_timer_max = 24
35
        break
36
    case 6:
37
        instance_create(dynamite_right_x, dynamite_y, obj_battle_enemy_attack_starlo_dynamite_vertical)
38
        counter_current++
39
    case 7:
40
        counter_timer_max = 67.5
41
        break
42
    case 8:
43
        instance_create(gun_left_x, gun_bot_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun)
44
        instance_create(gun_right_x, gun_top_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun)
45
        counter_current++
46
        break
47
    case 9:
48
        counter_timer_max = 60
49
        break
50
    case 10:
51
        instance_destroy()
52
        break
53
}
54
55
if (counter_timer_max == 0)
56
    return;
57
if (counter_timer < counter_timer_max)
58
    counter_timer++
59
else
60
{
61
    counter_timer = 0
62
    counter_current += 1
63
}