Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_genocide_feather_ext_checker_Alarm_0

(view raw script w/o annotations or w/e)
1
var random_number = irandom_range(4, 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(fcreate_x, fcreate_y, obj_battle_enemy_attack_martlet_genocide_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
        image_angle = id_checker.fcreate_angle_diff
27
        trail_sprite = sprite_index
28
    }
29
    fcreate_angle_diff -= fcreate_decrease
30
    if (fcreate_angle_diff < 0)
31
        fcreate_angle_diff += 360
32
}
33
can_move = true
34
switch feather_sprite
35
{
36
    case spr_battle_enemy_attack_martlet_feather_1:
37
    case 2274:
38
    case 2275:
39
        audio_play_sound(snd_mart_spiral_attack_2, 20, 0)
40
        break
41
    case 2276:
42
    case 2278:
43
        audio_play_sound(snd_mart_spiral_attack_1, 20, 0)
44
        break
45
    default:
46
        audio_play_sound(snd_mart_spiral_attack_1, 20, 0)
47
}