1 |
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;
} ("martlet", "void", "void") |
2 |
sprite_index = obj_battle_enemy_attack_martlet_tornado_checker.feather_sprite |
3 |
image_index = 1 |
4 |
image_speed = 0 |
5 |
image_angle = 0 |
6 |
image_alpha = 0 |
7 |
image_xscale = -1 |
8 |
image_yscale = 1 |
9 |
feather_angle = 90 |
10 |
depth_default = depth |
11 |
draw_color_front = 16777215 |
12 |
draw_color_back = 8421504 |
13 |
draw_color = draw_color_back |
14 |
x_center = obj_battle_enemy_attack_martlet_tornado_checker.x_center |
15 |
y_center = obj_battle_enemy_attack_martlet_tornado_checker.y_center |
16 |
depth = obj_dialogue_box_battle_transformation_any.depth + 1 |
17 |
y_difference = 60 |
18 |
radius_difference = 20 |
19 |
global.id_store = id |
20 |
id_counter = "above" |
21 |
follow_index = 0 |
22 |
instance_create(x, (y - y_difference), obj_battle_enemy_attack_martlet_tornado_follow) |
23 |
id_feather[0] = global.id_store |
24 |
global.id_store = id |
25 |
id_counter = "below" |
26 |
follow_index = 2 |
27 |
instance_create(x, (y + y_difference), obj_battle_enemy_attack_martlet_tornado_follow) |
28 |
id_feather[1] = global.id_store |
29 |
with (id_feather[0]) |
30 |
{ |
31 |
y_difference = (-id_master.y_difference) |
32 |
radius_difference = id_master.radius_difference |
33 |
} |
34 |
with (id_feather[1]) |
35 |
{ |
36 |
y_difference = id_master.y_difference |
37 |
radius_difference = (-id_master.radius_difference) |
38 |
} |
39 |
global.id_store = id |