Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_guardener_attack_2_Step_0

(view raw script w/o annotations or w/e)
1
var box = obj_dialogue_box_battle_transformation_any
2
switch scene
3
{
4
    case 0:
5
        cutscene_wait(0.5)
6
        break
7
    case 1:
8
        var arm = instance_create_depth((box.bbox_left - 5), 330, (obj_heart_battle_fighting_parent.depth - 1), obj_battle_enemy_attack_guardener_arm)
9
        arm.launch_dir = "right"
10
        arm.image_angle = 90
11
        cutscene_advance()
12
        break
13
    case 2:
14
        cutscene_wait(1.5)
15
        break
16
    case 3:
17
        if (!alarm[0])
18
        {
19
            if (grass_spawn_count > 0)
20
            {
21
                alarm[0] = 7
alarm[0]

var box = obj_dialogue_box_battle_transformation_any var seed = instance_create_depth(grass_spawn_x, (box.bbox_bottom - 4), (obj_heart_battle_fighting_parent.depth - 3), obj_battle_enemy_attack_guardener_seed_grow) seed.direction = 90 grass_spawn_x += grass_spawn_inc
22
                grass_spawn_count -= 1
23
            }
24
            else
25
                cutscene_advance()
26
        }
27
        break
28
    case 4:
29
        cutscene_wait(2.5)
30
        break
31
    case 5:
32
        instance_destroy()
33
        break
34
}