1 |
if live_call() |
2 |
return global.live_result; |
3 |
var battle_box = obj_dialogue_box_battle_transformation_any |
4 |
switch attack_tick |
5 |
{ |
6 |
case 30: |
7 |
instance_create_depth(320, (battle_box.bbox_top - 40), -100, obj_martlet_attack_talon_giant) |
8 |
break |
9 |
case 80: |
10 |
scr_screenshake_battle_customscr_screenshake_battle_customfunction scr_screenshake_battle_custom() //gml_Script_scr_screenshake_battle_custom
{
instance_destroy(obj_screenshake_battle)
var screenshake = instance_create(0, 0, obj_screenshake_battle)
screenshake.battle_screenshake_duration = argument[0]
screenshake.battle_screenshake_intensity = argument[1]
screenshake.battle_screenshake_dec = screenshake.battle_screenshake_intensity / screenshake.battle_screenshake_duration
} (5, 5) |
11 |
audio_play_sound(snd_undertale_explosion, 1, 0) |
12 |
instance_destroy(obj_martlet_attack_talon_giant) |
13 |
for (var j = 0; j < array_length(xx); j++) |
14 |
{ |
15 |
for (var i = 0; i < 180; i += 3) |
16 |
instance_create_depth(xx[j], (battle_box.bbox_top + i), -100, obj_fmartlet_spawner_talon_wall) |
17 |
} |
18 |
break |
19 |
case 85: |
20 |
var feather = instance_create_depth((battle_box.bbox_left + 25), (battle_box.bbox_top - 20), -100, obj_fmartlet_feather_straight) |
21 |
feather.direction = 270 |
22 |
feather.can_play_sound = true |
23 |
feather = instance_create_depth((battle_box.bbox_left + 75), (battle_box.bbox_bottom + 20), -100, obj_fmartlet_feather_straight) |
24 |
feather.direction = 90 |
25 |
feather = instance_create_depth((battle_box.bbox_left + 125), (battle_box.bbox_top - 20), -100, obj_fmartlet_feather_straight) |
26 |
feather.direction = 270 |
27 |
feather = instance_create_depth((battle_box.bbox_left + 175), (battle_box.bbox_bottom + 20), -100, obj_fmartlet_feather_straight) |
28 |
feather.direction = 90 |
29 |
break |
30 |
case 125: |
31 |
var attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon) |
32 |
attack_instance.attack_delay = 5 |
33 |
break |
34 |
case 145: |
35 |
attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon) |
36 |
attack_instance.image_xscale = -1 |
37 |
attack_instance.attack_delay = 1 |
38 |
break |
39 |
case 165: |
40 |
attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon) |
41 |
attack_instance.attack_delay = 1 |
42 |
break |
43 |
case 185: |
44 |
attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon) |
45 |
attack_instance.image_xscale = -1 |
46 |
attack_instance.attack_delay = 50 |
47 |
break |
48 |
case 210: |
49 |
var inc = 25.714285714285715 |
50 |
for (i = 0; i < 180; i += inc) |
51 |
{ |
52 |
if (((i / inc) % 2) == 1) |
53 |
{ |
54 |
feather = instance_create_depth((battle_box.bbox_left - 20), (battle_box.bbox_top + i), -100, obj_fmartlet_feather_straight) |
55 |
feather.direction = 0 |
56 |
} |
57 |
else |
58 |
{ |
59 |
feather = instance_create_depth((battle_box.bbox_right + 20), (battle_box.bbox_top + i), -100, obj_fmartlet_feather_straight) |
60 |
feather.direction = 180 |
61 |
} |
62 |
if (i == 0) |
63 |
feather.can_play_sound = true |
64 |
} |
65 |
break |
66 |
case 300: |
67 |
instance_destroy() |
68 |
break |
69 |
} |
70 |
|
71 |
attack_tick += 1 |