1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (random_attack_current == "nothing") |
4 |
random_attack_current = ds_list_find_value(random_attack_list, irandom_range(0, (ds_list_size(random_attack_list) - 1))) |
5 |
while (random_attack_current == random_attack_current_last) |
6 |
random_attack_current = ds_list_find_value(random_attack_list, irandom_range(0, (ds_list_size(random_attack_list) - 1))) |
7 |
var enemy_attack = random_attack_current |
8 |
if (enemy_attack == "Crispy Slash") |
9 |
{ |
10 |
if (attack_counter_current == -1) |
11 |
attack_counter_current = 90 |
12 |
script_execute(gml_Script_scr_enemy_attack_crispy_slash) |
13 |
if (global.attack_counter >= 0) |
14 |
{ |
15 |
global.attack_counter -= 1 |
16 |
if (global.attack_counter < 0) |
17 |
global.attack_counter = global.attack_counter_max |
18 |
} |
19 |
} |
20 |
else if (enemy_attack == "Flier Flies") |
21 |
{ |
22 |
if (attack_counter_current == -1) |
23 |
attack_counter_current = 120 |
24 |
script_execute(gml_Script_scr_enemy_attack_flier_flies) |
25 |
if (global.attack_counter >= 0) |
26 |
{ |
27 |
global.attack_counter -= 1 |
28 |
if (global.attack_counter < 0) |
29 |
global.attack_counter = global.attack_counter_max |
30 |
} |
31 |
} |
32 |
else if (enemy_attack == "Penilla Drawing" && (!instance_exists(obj_battle_enemy_attack_penilla_pencil))) |
33 |
{ |
34 |
if (attack_counter_current == -1) |
35 |
attack_counter_current = 100 |
36 |
script_execute(gml_Script_scr_enemy_attack_penilla_drawing) |
37 |
} |
38 |
else if (enemy_attack == "Rorrim Mirror") |
39 |
{ |
40 |
if (attack_counter_current == -1) |
41 |
attack_counter_current = 80 |
42 |
script_execute(gml_Script_scr_enemy_attack_rorrim_mirror) |
43 |
if (global.attack_counter >= 0) |
44 |
{ |
45 |
global.attack_counter -= 1 |
46 |
if (global.attack_counter < 0) |
47 |
global.attack_counter = global.attack_counter_max |
48 |
} |
49 |
} |
50 |
else if (enemy_attack == "Candy Spear Corn") |
51 |
{ |
52 |
if (attack_counter_current == -1) |
53 |
attack_counter_current = 80 |
54 |
script_execute(gml_Script_scr_enemy_attack_candy_spear_corn) |
55 |
if (global.attack_counter >= 0) |
56 |
{ |
57 |
global.attack_counter -= 1 |
58 |
if (global.attack_counter < 0) |
59 |
global.attack_counter = global.attack_counter_max |
60 |
} |
61 |
if ((!instance_exists(obj_battle_enemy_attack_spear_corn)) && (!instance_exists(obj_battle_enemy_attack_spear_corn_warning))) |
62 |
instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom - 5), obj_battle_enemy_attack_spear_corn_warning) |
63 |
} |
64 |
else if (enemy_attack == "Frostermit Ice Cubes") |
65 |
{ |
66 |
if (attack_counter_current == -1) |
67 |
attack_counter_current = 120 |
68 |
script_execute(gml_Script_scr_enemy_attack_frostermit_ice_cubes) |
69 |
if (global.attack_counter >= 0) |
70 |
{ |
71 |
global.attack_counter -= 1 |
72 |
if (global.attack_counter < 0) |
73 |
global.attack_counter = global.attack_counter_max |
74 |
} |
75 |
} |
76 |
else if (enemy_attack == "Insomnitot Stars") |
77 |
{ |
78 |
if (attack_counter_current == -1) |
79 |
attack_counter_current = 90 |
80 |
script_execute(gml_Script_scr_enemy_attack_insomnitot_stars) |
81 |
if (global.attack_counter >= 0) |
82 |
{ |
83 |
global.attack_counter -= 1 |
84 |
if (global.attack_counter < 0) |
85 |
global.attack_counter = global.attack_counter_max |
86 |
} |
87 |
} |
88 |
else if (enemy_attack == "Know Cone Cherries" && (!instance_exists(obj_battle_enemy_attack_know_cone_cherry))) |
89 |
{ |
90 |
if (attack_counter_current == -1) |
91 |
attack_counter_current = 80 |
92 |
script_execute(gml_Script_scr_enemy_attack_know_cone_cherries) |
93 |
} |
94 |
else if (enemy_attack == "Bowll Silverware" && (!instance_exists(obj_battle_enemy_attack_bowll_silverware_generator))) |
95 |
{ |
96 |
if (attack_counter_current == -1) |
97 |
attack_counter_current = 80 |
98 |
instance_create(0, 0, obj_battle_enemy_attack_bowll_silverware_generator) |
99 |
} |
100 |
else if (enemy_attack == "Cactony Needle Side" && (!instance_exists(obj_battle_enemy_attack_cactony_needle_side_generator))) |
101 |
{ |
102 |
if (attack_counter_current == -1) |
103 |
attack_counter_current = 90 |
104 |
var script_tgt = obj_dialogue_box_battle_transformation_any |
105 |
scr_create_attack_boundaryscr_create_attack_boundaryfunction scr_create_attack_boundary(argument0, argument1, argument2, argument3, argument4, argument5) //gml_Script_scr_create_attack_boundary
{
instance_create(0, 0, obj_attack_boundary_creator)
obj_attack_boundary_creator.create_x = argument0
obj_attack_boundary_creator.create_y = argument1
obj_attack_boundary_creator.width = argument2
obj_attack_boundary_creator.height = argument3
obj_attack_boundary_creator.thickness = argument4
obj_attack_boundary_creator.unique_id = argument5
with (obj_attack_boundary_creator)
event_user(0)
} ((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0) |
106 |
instance_create(0, 0, obj_battle_enemy_attack_cactony_needle_side_generator) |
107 |
} |
108 |
else if (enemy_attack == "Dunebud Tumbleweeds" && (!instance_exists(obj_battle_enemy_attack_dunebud_tumbleweeds_creator))) |
109 |
{ |
110 |
if (attack_counter_current == -1) |
111 |
attack_counter_current = 120 |
112 |
instance_create(0, 0, obj_battle_enemy_attack_dunebud_tumbleweeds_creator) |
113 |
} |
114 |
attack_counter_current -= 1 |
115 |
with (obj_battle_enemy_attack_parent) |
116 |
damage_number = scr_determine_damage_number_enemyscr_determine_damage_number_enemyfunction scr_determine_damage_number_enemy(argument0, argument1, argument2) //gml_Script_scr_determine_damage_number_enemy
{
var enemy_count = global.enemy_count
if (global.battle_enemy_name_1 == argument0)
return 1;
else if (enemy_count >= 2 && global.battle_enemy_name_2 == argument1)
return 2;
else if (enemy_count >= 3 && global.battle_enemy_name_3 == argument2)
return 3;
else
return 0;
} ("tellyvis a", "void", "void") |
117 |
if (attack_counter_current == 0) |
118 |
{ |
119 |
scene = 2 |
120 |
attack_counter_max -= 1 |
121 |
with (all) |
122 |
{ |
123 |
if (object_index == obj_quote_bubble_battle || object_index == obj_quote_battle_tellyvis_a_mid_attack) |
124 |
return; |
125 |
var destroy_self = true |
126 |
for (var i = 0; i < ds_list_size(other.instance_list); i++) |
127 |
{ |
128 |
if (ds_list_find_value(other.instance_list, i) == id) |
129 |
destroy_self = false |
130 |
} |
131 |
if (destroy_self == true) |
132 |
instance_destroy() |
133 |
} |
134 |
} |