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 |
var random_number = irandom_range(0, 13) |
3 |
switch random_number |
4 |
{ |
5 |
case 0: |
6 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_globe |
7 |
break |
8 |
case 1: |
9 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_shoe |
10 |
break |
11 |
case 2: |
12 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_mug |
13 |
break |
14 |
case 3: |
15 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_can |
16 |
break |
17 |
case 4: |
18 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_thingy |
19 |
break |
20 |
case 5: |
21 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_ball |
22 |
break |
23 |
case 6: |
24 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_glass |
25 |
break |
26 |
case 7: |
27 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_saw |
28 |
break |
29 |
case 8: |
30 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_idk |
31 |
break |
32 |
case 9: |
33 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_nail |
34 |
break |
35 |
case 10: |
36 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_screw |
37 |
break |
38 |
case 11: |
39 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_plank |
40 |
break |
41 |
case 12: |
42 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_radio |
43 |
break |
44 |
case 13: |
45 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_screwdriver |
46 |
break |
47 |
default: |
48 |
sprite_index = spr_battle_enemy_attack_martlet_wing_gust_junk_globe |
49 |
} |
50 |
|
51 |
image_speed = 0 |
52 |
image_index = 0 |
53 |
image_alpha = 1 |
54 |
image_angle = 0 |
55 |
image_xscale = 1 |
56 |
image_yscale = 1 |
57 |
junk_vsp = irandom_range(-9, -11) |
58 |
junk_hsp = irandom_range(3, 4) |
59 |
junk_grav = 0.4 |
60 |
junk_direction = 0 |
61 |
battle_box_bottom = obj_dialogue_box_battle_transformation_any.bbox_bottom |
62 |
fade_out = false |