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 |
sound_type = 0 |
3 |
var random_number = irandom_range(0, 13) |
4 |
switch random_number |
5 |
{ |
6 |
case 0: |
7 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_globe |
8 |
sound_type = 1 |
9 |
break |
10 |
case 1: |
11 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_shoe |
12 |
sound_type = 2 |
13 |
break |
14 |
case 2: |
15 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_mug |
16 |
sound_type = 2 |
17 |
break |
18 |
case 3: |
19 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_can |
20 |
sound_type = 1 |
21 |
break |
22 |
case 4: |
23 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_thingy |
24 |
sound_type = 2 |
25 |
break |
26 |
case 5: |
27 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_ball |
28 |
sound_type = 3 |
29 |
break |
30 |
case 6: |
31 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_glass |
32 |
sound_type = 2 |
33 |
break |
34 |
case 7: |
35 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_saw |
36 |
sound_type = 2 |
37 |
break |
38 |
case 8: |
39 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_idk |
40 |
sound_type = 1 |
41 |
break |
42 |
case 9: |
43 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_nail |
44 |
sound_type = 2 |
45 |
break |
46 |
case 10: |
47 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_screw |
48 |
sound_type = 2 |
49 |
break |
50 |
case 11: |
51 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_plank |
52 |
sound_type = 1 |
53 |
break |
54 |
case 12: |
55 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_radio |
56 |
sound_type = 3 |
57 |
break |
58 |
case 13: |
59 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_screwdriver |
60 |
sound_type = 2 |
61 |
break |
62 |
default: |
63 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_globe |
64 |
sound_type = 1 |
65 |
} |
66 |
|
67 |
image_speed = 0 |
68 |
image_index = 0 |
69 |
image_alpha = 0 |
70 |
image_angle = 0 |
71 |
image_xscale = 2 |
72 |
image_yscale = 2 |
73 |
state = 0 |
74 |
fall_speed = 3 |
75 |
fall_speed_max = 12 |
76 |
can_fade_out = false |
77 |
landing_init = false |
78 |
landing_count = 0 |
79 |
no_loop_alarm_fading_in = false |
80 |
while (bbox_left < (obj_dialogue_box_battle_transformation_any.bbox_left + 4)) |
81 |
x += 1 |
82 |
while (bbox_right > (obj_dialogue_box_battle_transformation_any.bbox_right - 4)) |
83 |
x -= 1 |
84 |
while (bbox_bottom < (obj_dialogue_box_battle_transformation_any.bbox_top - 10)) |
85 |
y += 1 |
86 |
while (bbox_bottom > (obj_dialogue_box_battle_transformation_any.bbox_top - 10)) |
87 |
y -= 1 |