Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_feather_ext_checker_final_Alarm_0

(view raw script w/o annotations or w/e)
1
var random_number = 5
2
switch random_number
3
{
4
    case 4:
5
        feather_sprite = spr_battle_enemy_attack_martlet_feather_4
6
        break
7
    case 5:
8
        feather_sprite = spr_battle_enemy_attack_martlet_feather_5
9
        break
10
    default:
11
        feather_sprite = spr_battle_enemy_attack_martlet_feather_1
12
}
13
14
for (i = 0; i < fcreate_count; i += 1)
15
{
16
    var fcreate_x = x + feather_radius * cos(degtorad(fcreate_angle_diff))
17
    var fcreate_y = y - feather_radius * sin(degtorad(fcreate_angle_diff))
18
    global.id_store = id
19
    instance_create_depth(fcreate_x, fcreate_y, -100, obj_battle_enemy_attack_martlet_final_feather_ext_feather)
20
    id_feather[i] = global.id_store
21
    with (id_feather[i])
22
    {
23
        sprite_index = id_checker.feather_sprite
24
        image_index = 0
25
        image_speed = 0
26
        direction = id_checker.fcreate_angle_diff
27
        image_angle = id_checker.fcreate_angle_diff
28
        trail_sprite = sprite_index
29
    }
30
    fcreate_angle_diff -= fcreate_decrease
31
    if (fcreate_angle_diff < 0)
32
        fcreate_angle_diff += 360
33
}
34
can_move = true
35
switch feather_sprite
36
{
37
    case spr_battle_enemy_attack_martlet_feather_1:
38
    case 2274:
39
    case 2275:
40
        audio_play_sound(snd_mart_spiral_attack_2, 20, 0)
41
        break
42
    case 2276:
43
    case 2278:
44
        audio_play_sound(snd_mart_spiral_attack_1, 20, 0)
45
        break
46
    default:
47
        audio_play_sound(snd_mart_spiral_attack_1, 20, 0)
48
}